summaryrefslogtreecommitdiff
path: root/bitbake/lib
Commit message (Collapse)AuthorAgeFilesLines
* bitbake/runqueue.py: Ensure rqexe always exists and that empty task lists ↵Richard Purdie2010-08-251-3/+16
| | | | | | cause a graceful exit Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* utils.py: Fix bb.copyfile to change the permissions of the file back correctlyRichard Purdie2010-08-231-2/+4
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* utils.py: Add a new extend_deps() to easily merge two dependency listsMark Hatle2010-08-201-0/+11
| | | | | | | | 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>
* bitbake/utils.py: Allow copyfile to copy files which aren't readableRichard Purdie2010-08-201-0/+3
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/utils.py: Improve better_exec debug outputRichard Purdie2010-08-201-5/+9
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Correctly route events from the worker to the serverRichard Purdie2010-08-204-3/+12
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/knotty: Exiting as soon as a fatal is seen is not desirable as the ↵Richard Purdie2010-08-201-1/+1
| | | | | | stacktrace won't be seen Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/cooker.py: Don't init the fetcher in the worker caseRichard Purdie2010-08-201-1/+2
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/persist_data: Attempt to fix locking issuesRichard Purdie2010-08-201-8/+17
| | | | | | | | | 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>
* bitbake/data.py: Handle exceptions in export_bars in the same way as emit_var()Richard Purdie2010-08-201-3/+8
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/server: Raise a shutdown event if we're seeing exceptionsRichard Purdie2010-08-201-1/+2
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/runqueue.py: Ensure the flush happens as late as possible to avoid ↵Richard Purdie2010-08-191-3/+3
| | | | | | data mixups Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/utils.py: Give useful debug information when no lineno information ↵Richard Purdie2010-08-191-7/+10
| | | | | | is available Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/runqueue.py: Fix runqueue UI issuesRichard Purdie2010-08-191-17/+27
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Switch to use subprocess for forking tasks and FAKEROOTENV to run ↵Richard Purdie2010-08-196-112/+124
| | | | | | shell and python under a fakeroot environment Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Initial scenequeue implementation (needs major fixes)Richard Purdie2010-08-191-24/+262
| | | | | | | 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>
* bitbake/runqueue.py: Factor task skipping code into a functionRichard Purdie2010-08-191-5/+8
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/runqueue.py: Create RunQueueExecute and RunQueueExecuteTasks ↵Richard Purdie2010-08-191-128/+144
| | | | | | classes, further splitting up runqueue Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/cooker.py: Allow idle handlers to pass through a true valueRichard Purdie2010-08-192-2/+7
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/runqueue.py: Drop duplicated classRichard Purdie2010-08-191-6/+0
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Split Runqueue into two classes, a data processor and the execution ↵Richard Purdie2010-08-182-113/+124
| | | | | | part Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/utils.py: Allow explode_dep_versions to handle the commas join_deps ↵Richard Purdie2010-08-171-1/+1
| | | | | | can introduce into strings Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/git.py: Make sure different branches can have different revisions ↵Richard Purdie2010-08-131-1/+1
| | | | | | without triggering build count increases Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/git.py: Allow tracking of branches in SRC_URI without cloning for ↵Richard Purdie2010-08-132-4/+9
| | | | | | use with fullclone Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/git.py: Make sure a full clone checkout always updatesRichard Purdie2010-08-131-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/build.py: Note when calling functions that don't exist. Should ↵Richard Purdie2010-08-121-0/+1
| | | | | | probably error Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/cooker: Make sure no locks are held before we start forking workersRichard Purdie2010-08-121-0/+6
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/build.py: Set the current taskname in the BB_CURRENTTASK variableRichard Purdie2010-08-121-0/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* cooker.py: Fix case of -b option with a full filepathRichard Purdie2010-08-041-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* *: Fix typo in documentationBernhard Reutner-Fischer2010-08-042-2/+2
| | | | | | | | | s/dictonary/dictionary/ (Bitbake rev: 0cc632761e75f66a8ce5ca2fe370f7551ccbfdf0) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/build.py: Add support for pre and postfuncs for tasksRichard Purdie2010-08-041-0/+6
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* utils: Fix number of arguments to bb.msg functionsBernhard Reutner-Fischer2010-08-031-2/+2
| | | | | | | | | | | | the 'fn' argument of them is not used, should be removed anytime: sed -i -e '/^def.*fn/s/,[[:space:]]*fn[[:space:]]*=[[:space:]]*None[[:space:]]*)/)/g' lib/bb/msg.py (Bitbake rev: 1cb72e371322c271ee7f2d008c6f7899fb38b4fd) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* *: cosmetic whitespace removalBernhard Reutner-Fischer2010-08-032-2/+2
| | | | | | | (Bitbake rev: 2ed36a3d57de25e1af31d657a7b0b14857e5056a) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* Add pysh, ply, and codegen to lib/ to prepare for future workChris Larson2010-08-0313-0/+9046
| | | | | | | (Bitbake rev: d0a6e9c5c1887a885e0e73eba264ca66801f5ed0) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* Let the runqueue find the user selected scheduler dynamicallyChris Larson2010-08-031-5/+15
| | | | | | | | | | | Searches the module (bb.runqueue) for any new style classes which are instances of RunQueueScheduler, and uses the one whose 'name' attribute matches the value of BB_SCHEDULER. (Bitbake rev: 6497cedf9cfc03201250af816995dd2bd85c36ef) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: cache: If one virtual of a recipe is uncached, remove all versions ↵Richard Purdie2010-07-251-0/+14
| | | | | | from the cache Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: fetch: Only mark srcrev recipes as uncached when outside of SRCREV ↵Richard Purdie2010-07-251-1/+2
| | | | | | caching mode Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Add support for .bbappend files (see mailing lists for detais)Richard Purdie2010-07-164-28/+55
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* *: use print() as a functionBernhard Reutner-Fischer2010-07-161-5/+5
| | | | | | | | | to make python3 happy (Bitbake rev: c82926ccdd4ec4e3ad6e78a381dacb96adf9b409) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: runqueue: Allow passing of success/failure handlers to ↵Richard Purdie2010-07-161-5/+5
| | | | | | runqueue_process_waitpid() Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: runqueue: Allow taskname to be passed to check_stamp_task()Richard Purdie2010-07-161-4/+5
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: runqueue: Make child process error scary so user is less likely to ↵Richard Purdie2010-07-161-1/+1
| | | | | | ignore Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: runqueue: Fix number of running tasks accounting (include failed tasks)Richard Purdie2010-07-161-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: runqueue: Remove unneeded exception catching from fork_off_task()Richard Purdie2010-07-161-3/+0
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: runqueue: Separate out task forking code into a new functionRichard Purdie2010-07-161-56/+61
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: runqueue: Combine the waitpid result handling code into a functionRichard Purdie2010-07-161-28/+21
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Remove two layers of unnecessary functions from task executionRichard Purdie2010-07-162-34/+12
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Fix handling of empty variables in local config filesRichard Purdie2010-07-021-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* Add a warning if a BBFILE_PATTERN doesn't match any bb filesChris Larson2010-07-021-2/+10
| | | | | | | | | | Likely cause is, of course, typo in the pattern or incorrect BBFILES, so we should warn the user about this. (Bitbake rev: b781317b5006bc047a59e7fa3c93344115e78ccb) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* 3.0 prepChris Larson2010-07-026-22/+31
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>