aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/cooker.py
AgeCommit message (Collapse)Author
2010-06-07cooker: use time.strftime() instead of spawing sh with dateBernhard Reutner-Fischer
time.strftime() defaults to using time.localtime(), use that instead of spawning "sh -c 'date +<FMT>'" Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-04-20Move a var definition in cooker.parse_nextChris Larson
Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-04-20Don't try to expand non-string valuesChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-14Search up the directory tree for bblayers.confChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-14Add a hack to avoid the req that all vars using LAYERDIR be immediately expandedChris Larson
See the comment in the code for details. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-14Move the unset BBPATH sanity check after the bblayers processingChris Larson
This way we can fully utilize bblayers, you can do everything in bblayers.conf and avoid setting any environment variables at all. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-09Apply the 2to3 print function transformChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-09Import fixupsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-09Formatting cleanupsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-09Ensure we always utilize the correct messaging domainsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-09Made '-b' work with BBCLASSEXTENDEnrico Scholz
When BBCLASSEXTEND is set, '-b' builds usually failed with messages like | ERROR: Parsing error data_fn virtual:native:<recipe>.bb and fn <recipe>.bb don't match | | File ".../bb/providers.py", line 47, in sortPriorities | priority = dataCache.bbfile_priority[f] | KeyError: 'virtual:native:<recipe>.bb' This patch fixes it and allows to specify the alternative class in a way like | ./bitbake -b virtual:native:<recipe>.bb This patch was written to be so minimal as possible; variables should be probably renamed to reflect their new meaning. Signed-off-by: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
2010-03-25bitbake/cooker.py: Finishing the command needs to happen after the ↵Richard Purdie
BuildCompleted event else the cooker can shutdown first (From Poky rev: 871f731e5733c27664c4a341cf4b6b0770cb1909) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-03-24BBFILES: use a set to remove duplicates when collecting.Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-22cooker.py: Add support for a bblayers.conf fileRichard Purdie
(From Poky rev: 666c753) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-03-08cooker: bail out early if no files to buildBernhard Reutner-Fischer
This prevents a misleading backtrace: ERROR: no files to build. Command execution failed: Traceback (most recent call last): File ".../bitbake/build/lib/bb/command.py", line 83, in runAsyncCommand self.cooker.updateCache() File ".../bitbake/build/lib/bb/cooker.py", line 779, in updateCache if not self.parser.parse_next(): File ".../bitbake/build/lib/bb/cooker.py", line 969, in parse_next cooker.bb_cache.sync() UnboundLocalError: local variable 'cooker' referenced before assignment Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-02-25Avoid unnecessary calls to keys() when iterating over dictionaries.Chris Larson
dict objects provide an __iter__ method for the iteration which gives you the keys, so calling keys directly is unnecessary, and isn't really a best practice. The only time you really need to call the keys is if there's a danger of the dict changing out from underneith you, either due to external forces or due to modification of the iterable in the loop. Iterations over os.environ are apparently subject to such changes, so they must continue to use keys(). As an aside, also switches a couple spots to using sorted() rather than creating a temporary list with keys() and sorting that. Signed-off-by: Chris Larson <clarson@mvista.com>
2010-01-22cooker: Drop unneeded importRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-20Improve BBCLASSEXTEND handling for skipped packages and report better ↵Richard Purdie
parsing statistics Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-19event.py: Pass the datastore to the fire command, don't build it into eventsRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-18server: Improve idle handling timeoutsRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-18Add none server type to avoid xmlrpc in the default caseRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-14Solidify server class creationRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-14Move xmlrpcserver.py into lib/bb/server as xmlrpc.pyRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-22cooker.py: Fix variable name: targets doesn't exist, should be itemRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-10-17Add a compare-versions command which returns whether the SRCREV versions ↵Richard Purdie
have changed since bitbake was last run (from Poky) Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
2009-07-23command/cooker: Remve the need for the cache for -e -b optionsRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-07-23command/cooker: Improve showEnvironment functionalityRichard Purdie
Allow showEnvironment to function without loading the cache by adding a second caching version. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-07-23cooker: Fix cooker parser for case where there are no recipesRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-07-23cooker.py: Improve server idle handling (from Poky)Richard Purdie
This patch: * Uses the xmlrpc timeout controls added in python 2.6 removing the need to hack the class instead. The hacking didn't work for 2.6. * Converts the parsing function to parse a file per call to the function * Allows checking for xmlrpc commands between parsing files allowing the user to interrupt parsing. * Starts to teach the command queue about command properties such as whether they require the cache. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-06-19Merge the BBCLASSEXTEND code from Poky. This allows once recipe to provide ↵Richard Purdie
mutliple targets (e.g. -native and -sdk) and has been discussed on the OE mailing list
2009-04-21lib: remove use of 'sets' to make Python 2.6 happyMarcin Juszkiewicz
Acked-by: Chris Larson <clarson@kergoth.com>
2009-04-08BBMASK: survive a non-existant path and don't keep the dir after globbing.Chris Larson
Signed-off-by: Chris Larson <clarson@mvista.com>
2009-04-08BBPKGS: act as a default that can be overridden via the cmdline.Chris Larson
Signed-off-by: Chris Larson <clarson@mvista.com>
2008-12-06cooker.py: Rearrange the code to allow init of new UIsRichard Purdie
2008-12-06Pass around the tasks to execute rather than using magic variables. Also use ↵Richard Purdie
the empty_environment() function to clear the environment
2008-12-06event.py: Remove the Pkg* events, the make no sense in the task based model ↵Richard Purdie
bitbake now uses (From Rob Bradford in Poky)
2008-12-06cooker.py: Pass the task to run to tryBuild directly, don't use ↵Richard Purdie
self.configuration.cmd (From Rob Bradford in Poky)
2008-12-06Rename online/offline to sync/async for less confusion (from Rob Bradford in ↵Richard Purdie
Poky)
2008-10-20cooker.py: Fix an init problem (from poky)Richard Purdie
2008-09-30cooker.py: Add parseConfiguration() function and move inheritFromOS call ↵Richard Purdie
outside the parser and into cooker
2008-09-30cooker.py: Rename __depends to __base_depends after configuration parsing so ↵Richard Purdie
we don't recheck the validity of the config files time after time. Also bump the cache revision to match the format change (from poky)
2008-04-27cooker.py: Reorder calls to avoid cache issuesRichard Purdie
2008-04-06xmlrpcserver.py: Drop python 2.4 hacks, add BitBakeServerCommands class to ↵Richard Purdie
make the server commands clearer
2008-03-16cooker.py: Remove leftover from old code, fixing double parsing whe using ↵Richard Purdie
the -b option
2008-03-15cooker.py: Turn buildFile into a fully blown offline command with idle ↵Richard Purdie
function fixing -b issues
2008-03-08cooker: fix traceback when using -b and -f togetherMichael 'Mickey' Lauer
2008-02-26Remove digraph and switch to new stamp checking code.Richard Purdie
2008-02-26Convert -b option to use taskdata/runqueueRichard Purdie
2008-02-24cooker:Remove a debug message from the parsing loop to lower overheadRichard Purdie
2008-02-23cooker, BBHandler: Change parseConfigurationFile so it works on real data, ↵Richard Purdie
not a copy. Handle 'base' inherit and all other INHERITs from parseConfigurationFile instead of BBHandler