summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2010-08-13Add 1.10.0 entry to ChangeLog1.10.0Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-07-26Fix handling of empty variables in local config filesRichard Purdie
(From Poky rev: dbd9308) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-26Gross hack to fix packaged-staging with BBCLASSEXTEND packagesRichard Purdie
(From Poky rev: 589df80ca1b825afd138531bb796aa8617ed0991) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-06-04Search up the directory tree for bblayers.confChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-06-04Add 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-06-04Move 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-06-04Make the file not found error actually useable.Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-15Bump version from 1.9.0 to 1.10.0Chris 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-04-06Resurrect the old bb.vercmp as bb.utils.vercmp, and its depsChris Larson
This is just for compatibility. We may drop it in the future, or rewrite it, as it's not particularly pythonic. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-06Pass the config metadata into the Cache constructor rather than the cookerChris Larson
Cache only uses the config metadata from the cooker, no need for the cooker itself. Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-03-31Resurrect merged anonfunc executionChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-31Add & utilize a simple_exec utility functionChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-30Consolidate the exec/eval bits, switch anonfunc to better_exec, etcChris Larson
The methodpool, ${@} expansions, anonymous python functions, event handlers now all run with the same global context, ensuring a consistent environment for them. Added a bb.utils.better_eval function which does an eval() with the same globals as better_exec. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-30Pass an empty locals dict in expansion, since list comprehensions apparently ↵Chris Larson
leak their '_' helper variable Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-30Two minor changes to the way python snippet expansion happensChris Larson
- Use a single dictionary for the context, both global & local, since for some reason it chokes wanting a global "d" rather than a local in the metadata. - First compile the string into a code object before running eval, so we can include the variable name in an evaluation error. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-25bitbake/event.py: Run class eventhandlers in the task context but ensure UI ↵Richard Purdie
handlers run in the server context (From Poky rev: d3d36d9f440288fa8bc0901ebefe875fc92409c4) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
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-25cache.py: Bump the cache version after the BBVERSIONS updateRichard Purdie
(From Poky rev: fb245be03d8e3327165033045245f5f853c0b0d4) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-03-25bb.manifest: Drop, its unused and obsolete. No point in having dead code aroundRichard Purdie
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-24bb/command was importing bb and accessing some of its own classes indirectly ↵Chris Larson
as bb.command.<class> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-24Why is bb/__init__.py importing bb?Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-24data_smart: be explicit about what we make available to eval'd python codeChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-24Fix 7 references to undefined variables, as spotted by pyflakesChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-24bb.utils: remove old portage remnantsChris Larson
The following utility functions were removed. Note that in this particular case we're bypassing a proper deprecation process, as these functions are clearly not utilized, are obvious remnants of old ways of doing things, and some of which do not even function properly. - tokenize - evaluate - flatten - relparse - ververify - isjustname - isspecific - catpkgsplit - pkgsplit - pkgcmp - dep_parenreduce - dep_opconvert Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-24bb.utils: utilize string.letters and string.digitsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-24bb.which: fix broken direction/reverse argumentChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-23crumbs: fix hassattr typoChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-23Implement BBVERSIONSChris Larson
This implements a feature similar to BBCLASSEXTEND, but for generating multiple versions of a given recipe. For example: BBVERSIONS = "1.0 2.0 git". In addition to the above, one can utilize [a-b] style patterns, and can have a :<basever> postfix, which allows you to essentially name the range of versions. Both the current version and the basever end up in OVERRIDES, and the basever gets placed into the BPV variable. The default BPV, if none is specified, is the original PV of the recipe, before bbversions processing. In this way, you can do things like: BBVERSIONS = "1.0.[0-6]:1.0.0+ 1.0.[7-9]:1.0.7+" SRC_URI_append_1.0.7+ = "file://some_extra_patch.patch;patch=1" Or you can create a recipe per range, and name the recipe file as such: nano_1.0.7+.bb. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-23utils: improve wording of error messageBernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-03-23Expand PREMIRRORSEnrico Scholz
When not expanding PREMIRRORS, the functions fails/does not work correctly when PREMIRRORS is not a plain string (e.g. contains ${...} or a ${@...} statements). Signed-off-by: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-03-22usermanual.xml: Add documentation on bblayers.confRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.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-03-01Fix issues with BBCLASSEXTEND set by anonymous python, and rename some ↵Chris Larson
variables to improve code clarity Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-02-26Implement ??= operatorChris Larson
??= is a lazy, conditional assignment. Whereas a ?= immediately assigns to the variable if the variable has not yet been set, ??= does not apply the default assignment until the end of the parse. As a result, the final ??= for a given variable is used, as opposed to the first as in ?=. Note that the initial implementation relies upon finalise() to apply the defaults, so a "bitbake -e" without specifying a recipe will not show the defaults as set by ??=. Moving application of the default into getVar adds too large a performance hit. We may want to revisit this later. Signed-off-by: Chris Larson <chris_larson@mentor.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-02-25knotty: tweak failure phraseBernhard Reutner-Fischer
..to make copy and paste of the logfile easier. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-02-24Fix ud.basecmd error introduced by the FETCHCMD_git commitChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-02-24Add initial 'repo' fetcherTom Rini
Signed-off-by: Tom Rini <tom_rini@mentor.com> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-02-23Re-getVar BBCLASSEXTEND after finalise()Chris Larson
This ensures that an anonymous python function is able to manipulate the BBCLASSEXTEND contents, and, therefore, amend.inc files are able to add to it. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-02-19Error early if BBPATH is unset, rather than falling back to share/bitbakeChris Larson
Better to error as early as possible rather than experience strange behavior resulting from the use of the largely useless stock bitbake.conf/base.bbclass. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-02-19Add PERSISTENT_DIR to bitbake.conf, as bb.fetch requires it or CACHE.Chris Larson
Signed-off-by: Chris Larson <clarson@mvista.com>
2010-02-19Kill unused projectdir in bb package.Chris Larson
Signed-off-by: Chris Larson <clarson@mvista.com>
2010-02-19Fix msg usage in the moved utility functions.Chris Larson
Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-02-19Move most utility functions from bb into bb.utils.Chris Larson
Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-02-19Move compat imports in the bb package to avoid circular dep issues.Chris Larson
Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-02-19Move encodeurl, decodeurl into bb.fetch.Chris Larson
Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-02-19Move MalformedUrl, VarExpandError into appropriate modules.Chris Larson
Signed-off-by: Chris Larson <clarson@kergoth.com>