summaryrefslogtreecommitdiff
path: root/bitbake/lib
AgeCommit message (Collapse)AuthorFiles
2010-11-15siggen.py: fix comparison around runtaskdepsKevin Tian1
two dep lists should be sorted before the comparison, or else it just causes false-positive confusion. Also fix 'taskdeps' to 'runtaskdeps' when printing out the difference. Signed-off-by: Kevin Tian <kevin.tian@intel.com>
2010-11-13bitbake: Rewrite profiling code so its functional for both none and xmlrpc ↵Richard Purdie3
backends Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-11-13bitbake/fetch: Allow checking of a single url at a time (massive sstate ↵Richard Purdie1
speed improvement) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-11-13bitbake/fetch: Fix handling of mirrors when checking for url validityRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-11-13Revert "bitbake/fetch/local: Also check DL_DIR for files since they could ↵Richard Purdie1
already exists there" These changes were incorrect. This reverts commit ae98f7eacb9e61fe086d88dc694b4c651af9fee3.
2010-11-13Revert "bitbake/fetch/local: Fix os.exists reference"Richard Purdie1
These changes were incorrect. This reverts commit f8e33979352528bb7c289e7c839605a5880e1e43.
2010-11-13bitbake/fetch/local: Fix os.exists referenceRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-11-13bitbake/fetch/local: Also check DL_DIR for files since they could already ↵Richard Purdie1
exists there [BUGID #533] Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-11-07bitbake.runqueue.py: Fix no exec task handling to correct counter housekeepingRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-11-06bitbake: Add support for 'noexec' tasksRichard Purdie2
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-11-06bitbake/siggen: Allow siggen code to control final stampfile formatRichard Purdie2
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-11-02bitbake/siggen: Provide better warnings about empty tasksRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-11-01bitbake/siggen: Fix finalise call argumentsRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-23bitbake/fetch: When fetchers return errors, ensure any partial download is ↵Richard Purdie1
cleared Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-22bitbake/fetch: Make URL checking slightly less verbose (distracting with the ↵Richard Purdie1
sstate code) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-22pseudo/fakeroot: Move the pseudo directory creation into bitbakeRichard Purdie1
If sstate was used to accelerate a build, the pseudo directory might not have been created leading to subsequent task failures. Also, sstate packages were not being installed under pseudo context meaning file permissions could have been lost. Fix these problems by creating a FAKEROOTDIRS variable which bitbake ensures exists before running tasks and running the appropriate setscene tasks under fakeroot context. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-19bitbake/fetch/git: Ensure fullclone repositories are fully fetchedRichard Purdie1
The git fetcher was failing to pull in new branches into a git repository mirror tarball as the git fetch command being used didn't add new remote branches. This patch uses "git fetch --all" for fullclones to ensure any new remote branches are cloned correctly. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-19bitbake/fetcher: Deal with a ton of different bugsRichard Purdie2
The more we try and patch up the fetcher code, the more things break. The code blocks in question are practically unreadable and are full of corner cases where fetching could fail. In summary the issues noticed included: a) Always fetching strange broken urls from the premirror for "noclone" git repositories b) Not creating or rewriting .md5 stamp files inconsistently c) Always fetching git source mirror tarballs from the premirror even if they already exist but the checkout directory does now d) Passing "None" values to os.access() and os.path.extsts() checks under certain circumstances e) Not using fetched git mirror tarballs if the preexist and always try and fetch them. This patch rewrites the sections of code in question to be simpler and more readable, fixing the above problems and most likely other odd corner cases. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-19bitbake/fetch/git.py: Fix git fetcher to correctly use mirror tarballsRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-14bitbake-runtask: Ensure logging settings take effect in the worker process ↵Richard Purdie1
(and pass verbose setting) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-12bitbake/runqueue: make the runtask program configurableJoshua Lock1
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-10-11bitbake/build.py: Write logfiles on a per task basis, not per functionRichard Purdie1
Per function logging made it hard to track down what was happening so switch to logging on a per task basis. [BUGID #383] Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-11bitbake-runtask: Ensure logging options are inherited from the parentRichard Purdie1
[BUGID #291] Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-09bitbake/fetch: Ensure SRCREV is still set correctly if the pn-X override has ↵Richard Purdie1
been expanded Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-07bitbake/runqueue.py: Fix invalid variable reference fixing the -f option ↵Richard Purdie1
with setscene tasks Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-07bitbake/fetch/__init__.py: Abstract mirror variable handling and enhance to ↵Richard Purdie1
accept \n delimitation in variables Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-07Export ALL_PROXY for bitbake commandsDarren Hart1
We already export http,ftp,https proxy environment variables. Some environments, GNOME for instance, place the socks proxy in ALL_PROXY and all_proxy. Export it as well. Signed-off-by: Darren Hart <dvhart@linux.intel.com>
2010-10-05bitbake/sstate: Implement a lookup function to speed up setscene processingRichard Purdie2
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-05bitbake/fetch: if mirror fetching fails, ensure exception is raisedJoshua Lock1
We catch any exception raised by the fetchers go() method and attempt to work around it by trying any (post) mirrors which are configured. However, should the mirrors fail the exception is lost and the fetch is assumed to have completed successfully. Instead, save the exception and if the local file does not exist after trying the mirrors re-raise the exception. Fixes [BUGID #362] Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-10-01build.py: Add a symlink for the loggingMark Hatle1
[BUGID #375] When configuring for the log file output, we generate a symlink to the target filename. This link uses the same file naming, but without the active pid, making it easier to see which log file is the last one generated. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2010-09-30bitbake/bitbake-sigdiff: Extend to handle dumping single state siginfo filesRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-30bitbake/siggen: Fix issue where excluded dependencies caused exceptionsRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-29bitbake/siggen: Ensure full signature data is not held unless needed, ↵Richard Purdie3
reducing memory consumption Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-28bitbake: Pass task hash information to subprocessesRichard Purdie2
Pass task has informaiton to work processes, allowing full manipulation of the hash data in the task context allowing checksums to be usable. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-28bitbake/fetch: fix logic to prevent fetches when the file already existsJoshua Lock1
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-09-28codeparser.py: Fix storing of hash values as object references can be corruptedRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-13bitbake/runqueue: Remove now unneeded indentationRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-13bitbake/runqueue.py: Optimise delay values to avoid unneeded delaysRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-13bitbake/siggen: Allow generation of siggen data from task contextRichard Purdie1
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 Purdie1
(including any virtual prefix) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-13bitbake/siggen.py: Improve debugging of checksumsRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-13bitbake/data.py: Allow variables to suplement dependencies using the vardep flagRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-10bitbake/fetch: ensure the go() method completes when not using premirrorsJoshua Lock1
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-09-10bitbake: Add proxy variables to standard export listZhai Edwin1
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 Purdie1
compatibility Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-08bitbake: save the initial PATH for use when starting a subprocessJoshua Lock1
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 Lock1
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-09-08bitbake/fetch: fix by moving try_premirror() to the right placeJoshua Lock1
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 Lock2
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/codeparser: Deal with functions with trailing whitespaceRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>