Richard Purdie
1db9ee5e8d
bitbake/runqueue.py: Drop duplicated class
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-08-19 11:39:59 +01:00
Richard Purdie
5d9f37873d
bitbake: Split Runqueue into two classes, a data processor and the execution part
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-08-18 11:49:58 +01:00
Richard Purdie
8e8316c8f0
bitbake/utils.py: Allow explode_dep_versions to handle the commas join_deps can introduce into strings
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-08-17 09:29:08 +01:00
Richard Purdie
f3292fa117
bitbake/git.py: Make sure different branches can have different revisions without triggering build count increases
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-08-13 11:35:11 +01:00
Richard Purdie
a18e9b4f93
bitbake/git.py: Allow tracking of branches in SRC_URI without cloning for use with fullclone
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-08-13 11:35:11 +01:00
Richard Purdie
0ea4b89649
bitbake/git.py: Make sure a full clone checkout always updates
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-08-13 11:35:11 +01:00
Richard Purdie
9ef9b5e1a7
bitbake/build.py: Note when calling functions that don't exist. Should probably error
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-08-12 14:44:07 +01:00
Richard Purdie
36e81a844b
bitbake/cooker: Make sure no locks are held before we start forking workers
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-08-12 14:41:32 +01:00
Richard Purdie
dfd7e1f76b
bitbake/build.py: Set the current taskname in the BB_CURRENTTASK variable
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-08-12 14:41:31 +01:00
Richard Purdie
16d299c6ce
cooker.py: Fix case of -b option with a full filepath
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-08-04 16:12:46 +01:00
Bernhard Reutner-Fischer
8105d4381f
*: Fix typo in documentation
...
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 >
2010-08-04 16:12:39 +01:00
Richard Purdie
0f516fe9a0
bitbake/build.py: Add support for pre and postfuncs for tasks
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-08-04 11:43:12 +01:00
Bernhard Reutner-Fischer
ad8c5b61a4
utils: Fix number of arguments to bb.msg functions
...
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 >
2010-08-03 14:07:11 +01:00
Bernhard Reutner-Fischer
0e3fc6dff2
*: cosmetic whitespace removal
...
(Bitbake rev: 2ed36a3d57de25e1af31d657a7b0b14857e5056a)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-08-03 14:06:40 +01:00
Chris Larson
191a288349
Add pysh, ply, and codegen to lib/ to prepare for future work
...
(Bitbake rev: d0a6e9c5c1887a885e0e73eba264ca66801f5ed0)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-08-03 14:06:07 +01:00
Chris Larson
e6b6767369
Let the runqueue find the user selected scheduler dynamically
...
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 >
2010-08-03 14:03:41 +01:00
Richard Purdie
7edde59de4
bitbake: cache: If one virtual of a recipe is uncached, remove all versions from the cache
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-25 11:33:11 +01:00
Richard Purdie
36cfff8ed5
bitbake: fetch: Only mark srcrev recipes as uncached when outside of SRCREV caching mode
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-25 11:32:42 +01:00
Richard Purdie
63e6ba8567
bitbake: Add support for .bbappend files (see mailing lists for detais)
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-16 15:10:40 +01:00
Bernhard Reutner-Fischer
c4fde248b1
*: use print() as a function
...
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 >
2010-07-16 15:10:40 +01:00
Richard Purdie
6598f98ba8
bitbake: runqueue: Allow passing of success/failure handlers to runqueue_process_waitpid()
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-16 12:31:20 +01:00
Richard Purdie
8c23850453
bitbake: runqueue: Allow taskname to be passed to check_stamp_task()
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-16 12:31:20 +01:00
Richard Purdie
009343b2a2
bitbake: runqueue: Make child process error scary so user is less likely to ignore
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-16 12:31:20 +01:00
Richard Purdie
2d263840b0
bitbake: runqueue: Fix number of running tasks accounting (include failed tasks)
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-16 12:31:20 +01:00
Richard Purdie
3cd042f505
bitbake: runqueue: Remove unneeded exception catching from fork_off_task()
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-16 12:31:19 +01:00
Richard Purdie
5c44f9a78d
bitbake: runqueue: Separate out task forking code into a new function
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-16 12:31:19 +01:00
Richard Purdie
8a5b5080a2
bitbake: runqueue: Combine the waitpid result handling code into a function
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-16 12:31:19 +01:00
Richard Purdie
90db9f3074
bitbake: Remove two layers of unnecessary functions from task execution
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-16 12:31:19 +01:00
Richard Purdie
14df571486
bitbake: Fix handling of empty variables in local config files
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:37 +01:00
Chris Larson
04b2a78837
Add a warning if a BBFILE_PATTERN doesn't match any bb files
...
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 >
2010-07-02 15:41:37 +01:00
Chris Larson
ecbd5ca720
3.0 prep
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:37 +01:00
Chris Larson
ef1de9ecaf
Apply some 2to3 refactorings
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:37 +01:00
Chris Larson
20dc452614
Drop a couple usages of readlines
...
(Bitbake rev: 40925230781ddd550bf21d90714c5349f9240a51)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:37 +01:00
Chris Larson
b9f8af16f4
Until the interactive mode is fixed, kill it from the valid options, to avoid confusion
...
(Bitbake rev: 65a51bb20677148a29b9e472f6d9d0a97798f024)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:37 +01:00
Chris Larson
aa538a405e
Fix syntax error in shell.py
...
(Bitbake rev: 1bddc77268e57e236c274fd91c889ea00a13891b)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:37 +01:00
Chris Larson
fe9172ed55
Add missing 'return False' to the SystemExit handler in runAsyncCommand
...
(Bitbake rev: 966490c555cbdc09f52e1dcc68d3772c28ad9cee)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:37 +01:00
Chris Larson
56f083ad13
Switch from our own 'dummywrite' class to StringIO
...
(Bitbake rev: f5b7e16adf86950d91a88a343031e71beb0f08a6)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
6be4fa575a
Switch a fatal usage to SystemExit ("T" not set)
...
This failure is one the *user* needs to see, as it may have to do with their
setup, but where they don't need to see a traceback and all, since they're not
developers, so I think SystemExit is appropriate here.
(Bitbake rev: e3cc9bc7b6ef1a2eca78235790a051329bceb9a4)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
39f6ec5f63
cooker: Kill __getitem__ usage on exception objects (python 3 prep)
...
(Bitbake rev: 1239df8b82ddcd607630da5a888ca83051a22fa8)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
ef835bf33a
Handle SystemExit and KeyboardInterrupt sanely when executing a command
...
(Bitbake rev: 17f40d036814e4abf6d87363fff7823c8c85c298)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
562fd5f2a7
Drop unnecessarly duplicated messages wrt FuncFailed
...
(Bitbake rev: 9ec9c0e560d4fa6df74a90f598f9db92713525a2)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
6092312acc
knotty: use the future division to prep for 3.x
...
(Bitbake rev: bd0edc19f691146e748b91255be7a5788a070de6)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
8a9a4748c9
Kill the unnecessary setVarFlag debugging message
...
(Bitbake rev: ef8475796fbab4f76a72bbc106da4c35e3afe2e1)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
dabe4a3943
knotty: stop freaking out and dying when bb.build has removed the empty logfile
...
(Bitbake rev: 2197182fe5837d74f1499c644e882e87cf035238)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
e886ec2a2b
Use bb.utils.mkdirhier in bb.cache to shut up the pending deprecation warning
...
(Bitbake rev: 0c885752d69e4108e2960d59ec1bd6c911dd141a)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
8f9bdd68de
Use PendingDeprecationWarning for functions moved from bb to bb.utils
...
This is necessary, as there has not yet been a release with the bb.utils
versions in place. We can't show them a deprecation warning when they can't
safely change it yet. Show a PendingDeprecationWarning until 1.10 releases
and OE requires it, then we can move to DeprecationWarning.
(Bitbake rev: 43700fa1ca1d2635de4ed46110057cb164ee82d1)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
0c5b5b21f7
Start ditching fatal() calls in favor of raising appropriate exceptions
...
(Bitbake rev: 681b73fcc04e22e692ed61650ad53c800b64cace)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Ryan Phillips
40d7de8f06
Change wget fetcher to use the runfetchcmd
...
* Fixes proxy support to honor standard proxy environment variables.
* Quote environment variables
(Bitbake rev: f84f382f340d6db15b9e5afb8c7c93969249a958)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
88a257634a
Show a traceback when a task fails due to an exception
...
(Bitbake rev: 5bb24832761bd518cb0249125f67939e0cbd0998)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Bernhard Reutner-Fischer
c63278bf34
parser: fix harmless typo in variable name
...
s/absolsute/absolute/
(Bitbake rev: 837c84ce47c298316b941a5f3d2479bd2643686b)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00