summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2011-06-09Update version to 1.13.11.13.1Richard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-09bitbake/event/ast: Add RecipePreFinalise eventRichard Purdie
One of the implications is we need to register the event handlers before executing the anonymous python functions. I can't find any issue with making that change in any existing metadata use cases. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-09bitbake/parse/ast: We always need to finalize the default data since ↵Richard Purdie
otherwise overrides to BBCLASSEXTEND may not be applied Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-09bitbake/data_smart: Change overrides behaviour to remove expanded variables ↵Richard Purdie
from the datastore Currently if you do: OVERRIDES = "z" DEPENDS_prepend = "a " DEPENDS = "b" DEPENDS_z = "c" d.update_data() d.getVar("DEPENDS") gives "a c" d.update_data() d.getVar("DEPENDS") then gives "c" This patch changes the behaviour such that at the time bitbake expands the DEPENDS_z override, it removes "DEPENDS_z" from the data store. In the above example this would mean that it wouldn't matter how often you call d.update_data(), you'd always get "a c" back. See the bitbake-devel mailing list for further discussion and analysis of the potential impact of this change. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-09cache.py: fix bitbake -s commandScott Garman
This uses the correct index of self.pn when setting up cachedata's pkg_pn, fixing the output of bitbake -s. This fixes bug [YOCTO #1149]. Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-09bitbake-layers: handle skipped recipesPaul Eggleton
Report bbappends correctly for skipped recipes instead of reporting the bbappends as not having any matching recipe. (From Poky rev: 39d72ecf6bc1da85aefb11e6481719185f0cb953) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-09track skipped packagesPaul Eggleton
Add skiplist to cooker that allows access to the list of packages skipped via SkipPackage (this includes COMPATIBLE_MACHINE, INCOMPATIBLE_LICENSE, etc.) This can be used to enhance error reporting. (From Poky rev: 6c12b7b1099c77b87d4431d55e949cf7c5f52ded) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-09persist_data: Add back code to retry in the case of locked database errorsRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-09Drop psyco supportRichard Purdie
At best it gave 1-2% improvement now, its 32 bit x86 only and isn't supported after python 2.6. PyPy is probably a better option now. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08cooker.py: Drop duplicate parseCommandLine callRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08build/runqueue: Pass quieterrors flag around to supress errors at task ↵Richard Purdie
execution time Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08bitbake-layers: Add comment headerRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08runqueue.py: Export further hash information into the task environmentRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08data.py: Ensure vardeps flags get expandedRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08knotty: If any error messages are seen, set our exit code accordinglyRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08bitbake/hob: fix cancel buttonJoshua Lock
An accidental logic inversion (aka thinko) had the cancel button only cancel a build when the user didn't confirm the cancellation (i.e. clicked no)... (From Poky rev: ff3e326269d27662c830b04e05b571d257b89346) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08bitbake/goggle: closing the progress dialog kills the UIJoshua Lock
It's unlikely that someone wants to close the progress dialog yet leave the UI (and BitBake process) running, so hook up the progress dialogs delete-event to exit gtk. (From Poky rev: c9bb30b232396bbdd3c97c1059e972d6a4abf637) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08bitbake/depexp: closing progress dialog kills guiJoshua Lock
It seems safe to assume a user hitting the close button on the dialog wants to kill the whole UI. (From Poky rev: e21150f2b18ff4ac85e64ed8814f0268007830c0) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08bitbake/hob: only show one progress dialog when changing machineJoshua Lock
Remove a spurious signal emission which resulted in two progress dialogs being shown after changing the machine. (From Poky rev: 7738e86e8b4881056bd44d0f767d17b36159a7bb) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08hob/crumbs/hobeventhandler: Remove server specific implementation details ↵Richard Purdie
missed in the precious cleanup Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08xmlrpc/event: Add ability to send pickled events to UI if requestedRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08bitbake/server: Add the none server back for nowRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08bitbake/server: Move server specific code into the server backend and create ↵Richard Purdie
a server API Move the server implementation specific code into the server backend where it belongs and replace this with a set of object method calls which establish the server, detach it and then connect to it using appropriate IPC. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08bitbake/server/process: Move implementation knowledge of event queue into ↵Richard Purdie
the server Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08bitbake/cooker.py: Fix debug message argumentsRichard Purdie
(From Poky rev: 06bb59d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08bitbake/cooker: Ensure delays are accurately transfered to the idle loops ↵Richard Purdie
from runqueue (From Poky rev: 579ecccc2244da43b9bc03fb09bb71d8a0219a8b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08bitbake/runqueue: When we have successfully collected a pid value return ↵Richard Purdie
True to ensure we don't sleep in the main loop (From Poky rev: 5a178b547bbf6d99c42cba6821b3f559e585a079) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08bitbake/runqueue: When we successfully fork off a task and there are more ↵Richard Purdie
processes we can start do so immediately (From Poky rev: 974ea1a190167dcfd831ba1fc5f733e0dc9a6fda) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08bitbake/runqueue: show correct task name for setscene task failurePaul Eggleton
If a setscene task failed previously it was showing an incorrect task name in the error line. This patch ensures we show the correct name, also including the "_setscene" suffix. (From Poky rev: 9d9c68e3536387150e3ce7261f4770576e724dd9) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08bitbake/runqueue: fix clash when setscene & real tasks done in same buildPaul Eggleton
If a build causes a real task to be run when the setscene task has already run then it was possible for dependent packages to be rebuilding at the same time as a rebuild of the packages they depended on, resulting in failures when files were missing. This change looks in the setscene covered list and removes anything where a dependency of the real task is going to be run (e.g. do_install is going to be run even though the setscene equivalent of do_populate_sysroot has already been run). As an additional safeguard we also delete the stamp file for the setscene task under these circumstances. Fixes [YOCTO #792] (From Poky rev: b4268c08c350a7928a0b1a041b04ffe5a44e77b4) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08cooker/process.py: Move profiling code to a place it can be reused by ↵Richard Purdie
different server mechanisms The cooker profiling code isn't server specific so move it to a place where different server backends can use it. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-07cache: Implement multiple extra cache fields request supportLiping Ke
This patch is to support extra cache. If user needs to request extra cache fields besides CoreRecipeInfo fields, just add a new XXXRecipeInfo class definition as Hob Does. Currently supported Extra RecipeInfo name is an array. We can support multiple extra cache fields at the same time besides CoreRecipeInfo which is needed by all clients. Signed-off-by: Liping Ke <liping.ke@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-07cache: Introduce new param caches_array into Cache impl.Liping Ke
When using hob ui interface, we need extra cache fields. We will save ui required extra cache fields into a separate cache file. This patch introduce this caches_array parameter. It will be used in the extra cache implementation (following patch). Caches_array at least contains CoreRecipeInfo. If users need extra cache fields support, such as 'hob', caches_array will contain more relevant elements such as HobRecipeInfo. Signed-off-by: Liping Ke <liping.ke@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-07cache: Introduce extra cache class for image creatorLiping Ke
Extra RecipeInfo will be all defined in this file. Currently, Only Hob (Image Creator) Requests some extra fields. So HobRecipeInfo is defined. It's named HobRecipeInfo because it is introduced by 'hob'. Users could also introduce other RecipeInfo or simply use those already defined RecipeInfo. In the following patch, this newly defined new extra RecipeInfo will be dynamically loaded and used for loading/saving the extra cache fields. Signed-off-by: Liping Ke <liping.ke@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-07cache.py: Refactory Current Cache implementationLiping Ke
This patch is for refactorying current cache implementation, the main reason is for introducing extra cache fields requests for image creator as well as other users. The refactory parts include: Move cache data retrieve methods out of Cache Data Fields Definition. Since this retrieve methods will be shared for both CoreRecipeInfo as well as the new introduced extra RecipeInfo in the following patches. Signed-off-by: Liping Ke <liping.ke@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-07cache.py: Sync what amounts to whitespace with bitbake in poky, pending ↵Richard Purdie
merge of cache patches Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-07bitbake/cooker: don't error in prepareTreeData for unbuildable targetsJoshua Lock
Set abort to False in prepareTreeData so that unbuildable targets do not raise an exception. (From Poky rev: 3c113f355bce012d55dac873189a410657016a62) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-07universe target: add a new target to collect all recipe targetsSaul Wold
This new universe target is not intended to be used for compiling or building everything, it use is for sanity checking and other tasks that need to find all targets. This does not exclude any broken or virtual targets. (From Poky rev: 28e7041a9c110be2ac5dea1eb1f55ca8f056111e) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-03bb.exceptions: don't choke on frames without argumentsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-06-02siggen: don't choke with traceback when data is NoneChris Larson
Given we use bb.error, not bb.fatal, here, it seems this was intended to be non-fatal, yet we'd end up trying to concatenate None. Fix this by setting an empty task to the empty string, for the purposes of hashing. Also str() the value we get from the datastore, just in case something other than a string was stored there. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-06-02parse: pass a useful (if mangled) key to bb.data.expand for :=Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-06-02cooker: handle ExpansionError the same way we do ParseErrorChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-06-02event: don't catch systemexit from handler executionChris Larson
This means that anyone firing an event can get a systemexit and result in their process exiting, which isn't ideal, but behaves the way it used to (in particular, ensures that a sanity check failure will halt the build). This should be revisited in the future. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-06-02Merge remote branch 'github/exceptions'Chris Larson
* github/exceptions: Shift exception formatting into the UI cooker: don't show a traceback for ParseError cooker: don't show a useless traceback for SyntaxError cooker: use logger.exception for config file parse errors cooker: pass traceback back from parsing thread cooker: show a useful message for ParsingFailure bb.exceptions: don't show a repr of 'self' codeparser.py: fix syntax error in exception handling codeparser.py: Ignore incomplete cache files bb.exceptions: handle tb entries without context bb.exceptions: add to_string convenience function bb.exceptions: add code to create pickleable traceback entries bb.namedtuple_with_abc: add useful util from activestate
2011-06-01data_smart: Adding overrides of zero length is pointless so lets notRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-01bitbake: use layer priority when applying bbappendsPaul Eggleton
If the priority of a layer has been specified with BBFILE_PRIORITY_ then use that to sort the list of BBFILES entries, which will affect the order in which .bbappend files are applied. Fixes [YOCTO #1125] Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-31providers.py: Correct PREFERRED_VERSION handlingRichard Purdie
Overrides on the right are the highest priority and in this case, pn-PN and PN should take priority over any other override so fix the code to do this. Also, since overrides will have been processed by bitbake, we shouldn't then be specifically looking up PREFERRED_VERSION_${PN} but just using PREFERRED_VERSION. This patch corrects the behaviours to match what the code is expected to do. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-27server: add updated/fixed xmlrpc server from PokyJoshua Lock
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-05-27uievent: fix queueing of events for xmlrpc before UI has loadedJoshua Lock
The change to Queue up events before the UI is spawned broke the xmlrpc server because the uievent implementation of BBUIEventQueue expects pickled strings for its queue_event() method. This is because the RPC exposed event.send() method must accept pickled strings, but for xmlrpc event.send() is just mapped to queue_event(). Work around this by adding a send_event method which unpickles strings and hands them off to queue_event() which can then be used for the remapping. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-05-27fetch2/git: ensure network check log matches actual commandDarren Hart
The git command string logged via check_network_access() does not match the actual command executed in a few places. Ensure that it does. Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>