summaryrefslogtreecommitdiffstats
path: root/bitbake
AgeCommit message (Collapse)Author
2010-09-13bitbake/runqueue: Remove now unneeded indentationRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-13bitbake/runqueue.py: Optimise delay values to avoid unneeded delaysRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-13bitbake/siggen: Allow generation of siggen data from task contextRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-13bitbake/build.py: Set BB_FILENAME to represent the .bb file being built ↵Richard Purdie
(including any virtual prefix) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-13bitbake/siggen.py: Improve debugging of checksumsRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-13bitbake/data.py: Allow variables to suplement dependencies using the vardep flagRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-10bitbake/fetch: ensure the go() method completes when not using premirrorsJoshua Lock
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-09-10bitbake: Add proxy variables to standard export listZhai Edwin
With "no_proxy" exported to bitbake, both internal and externel file mirror can be used. "https_proxy" enable fetching "https://" file through proxy. Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
2010-09-09bitbake/__init__.py: Fix named SRCREVS variable name ordering with backwards ↵Richard Purdie
compatibility Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-08bitbake: save the initial PATH for use when starting a subprocessJoshua Lock
It was possible for bitbake-runtime to be run against a semi-installed python-native resulting in tracebacks with ImportError's. To prevent this we stash the initial PATH in the BBConfiguration when bitbake is started and then set this in the env when launching bitbake-runtask through subprocesses Popen() call. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-09-08bitbake/fetch/git: fix try_premirror() definition .Method takes 4 parameters.Joshua Lock
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-09-08bitbake/fetch: fix by moving try_premirror() to the right placeJoshua Lock
The previous commit didn't define the method as part of the Fetch object Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-09-08bitbake/fetch: add try_premirror method and special case git fetcherJoshua Lock
Add a new method, try_premirror, to the Fetch object which checks to see whether the file needs to be fetched from a premirror. Override this in the Git fetcher to only require a pre-mirror fetch when the clone directory does not exist. Fixes [BUGID 290] Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-09-07bitbake/bitbake-runtask: Ensure signals to the parent don't pass to the ↵Richard Purdie
children directly Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-07bitbake/codeparser: Deal with functions with trailing whitespaceRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-06fetch: fix setting of localpath in SRC_URI parametersJoshua Lock
When setting localpath in the SRC_URI parameters the basename should be set explicitly as the localpath() method is not called. Fixes [BUGID #81] Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-09-03bitbake: Add missing signature filesRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-03bitbake: Implement signaturesRichard Purdie
Includes functionality to find out what changes between two different singature data dumps. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-03bitbake/codeparser: Ensure cached sheel entries return the correct dependenciesRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-03bitbake/ast: Ensure function definitions are always added to the dictonaryRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-01bitbake/fetch: ensure the mirrored repository is updated as requiredJoshua Lock
If we fetch a tarball from a mirror it's entirely possible that the mirror will have been from before the required tag/branch/etc was included in the repository. To that end use forcefetch() as a way of testing whether the repository is up to date and if not fetch updates. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-09-01bitbake/git: define a forcefetch methodJoshua Lock
The git fetcher should force a fetch if the required tag is not present in the local clone, or if the fullclone parameter is set. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-09-01bitbake/fetch: Respect forcefetch even when pulling from a mirrorJoshua Lock
When pulling from a premirror we would prefer a local tarball even when the caller had specified the forcefetch parameter. Add an extra parameter 'force' to try_mirrors, defaulting to False. If set the mirrors will be tested even if the file exists locally. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-08-31bitbake/codeparser: Implement persistent cacheRichard Purdie
For a given input to this code, the output doesn't change to implement a persistent cache of the data to speed up parsing. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-31bitbake/data.py: Add emit_func() and generate_dependencies() functionsRichard Purdie
These functions allow generation of dependency data between funcitons and variables allowing moves to be made towards generating checksums and allowing use of the dependency information in other parts of bitbake. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-31bitbake: Add codeparser for parsing shell and python functionsRichard Purdie
This commit is derived from Chris Larson's checksum work, turned into a standalone piece of code for parsing python and shell functions. The deindent code has been replaced with code to work around indentation for speed. The original NodeVisitor in the ast was replaced with a faster class walk call. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-31bitbake/BBHandler: Save python functions into the dictonaryRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-31bitbake/data_smart.py: Allow the data expand function to keep track of ↵Richard Purdie
references (including those from python code) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-25bitbake/runqueue.py: Ensure rqexe always exists and that empty task lists ↵Richard Purdie
cause a graceful exit Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-23utils.py: Fix bb.copyfile to change the permissions of the file back correctlyRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-20utils.py: Add a new extend_deps() to easily merge two dependency listsMark Hatle
Add a new extend_deps function to more easily merge two dependency lists. This avoids adding duplicates, unless the value of the dependency is different. Signed-off-by: Mark Hatle <mhatle@windriver.com>
2010-08-20bitbake/utils.py: Allow copyfile to copy files which aren't readableRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-20bitbake/utils.py: Improve better_exec debug outputRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-20bitbake: Correctly route events from the worker to the serverRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-20bitbake/knotty: Exiting as soon as a fatal is seen is not desirable as the ↵Richard Purdie
stacktrace won't be seen Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-20bitbake/cooker.py: Don't init the fetcher in the worker caseRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-20bitbake/persist_data: Attempt to fix locking issuesRichard Purdie
It appears the timeout sometimes has no effect and we see database access failures. Combat this by wrapping the execute function in all cases and retrying manually ourselves. Thanks to Kevin Tian for help debugging this. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-20bitbake/data.py: Handle exceptions in export_bars in the same way as emit_var()Richard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-20bitbake/server: Raise a shutdown event if we're seeing exceptionsRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-19bitbake/runqueue.py: Ensure the flush happens as late as possible to avoid ↵Richard Purdie
data mixups Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-19bitbake/utils.py: Give useful debug information when no lineno information ↵Richard Purdie
is available Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-19bitbake/runqueue.py: Fix runqueue UI issuesRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-19bitbake: Switch to use subprocess for forking tasks and FAKEROOTENV to run ↵Richard Purdie
shell and python under a fakeroot environment Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-19bitbake: Initial scenequeue implementation (needs major fixes)Richard Purdie
bitbake: scenequeue: Skip setscene if the underlying task already ran bitbake/setscene: Make sure uneeded dependencies are removed recursively Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-19bitbake/runqueue.py: Factor task skipping code into a functionRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-19bitbake/runqueue.py: Create RunQueueExecute and RunQueueExecuteTasks ↵Richard Purdie
classes, further splitting up runqueue Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-19bitbake/cooker.py: Allow idle handlers to pass through a true valueRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-19bitbake/runqueue.py: Drop duplicated classRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-18bitbake: Split Runqueue into two classes, a data processor and the execution ↵Richard Purdie
part Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-17bitbake/utils.py: Allow explode_dep_versions to handle the commas join_deps ↵Richard Purdie
can introduce into strings Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>