aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake
AgeCommit message (Collapse)Author
2011-03-08bitbake/fetch2: Allow local file:// urls to be found on mirrorsRichard Purdie
With the current implementation, file:// urls as used by sstate don't access the mirror code, breaking sstate mirror support. This change enables the usual mirror handling. To do this, we remove the localfile special case, using the basename paramemter instead. We also ensure the downloads directory is checked for files. The drawback of this change is that file urls containing "*" globing require special casing in the core. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-03bitbake-layers: drop 2.6 from #!, per Joshua LockChris Larson
(Bitbake rev: 898f557cbd443cdeff137fd926aac06f2aaee6c4) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-03fetch, fetch2: Get rid of DeprecationWarning noticeKhem Raj
* This patch fixes a cosmetic issue currently we get with master WARNING: /home/kraj/work/bitbake/lib/bb/fetch2/__init__.py:733: DeprecationWarning: Call to deprecated function bb.mkdirhier: Please use bb.utils.mkdirhier instead. bb.mkdirhier("%s/%s" % (rootdir, destdir)) (Bitbake rev: 36fe59ce314c295d239b76de34c8714def2c32d5) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-03build: add missing newlineChris Larson
(Bitbake rev: a7aa0415bdaa458a941004bf8dd8bbfeddd6ef5a) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-03build: switch to old cwd handlingChris Larson
We want this to ensure the user can run the run. script from anywhere. (Bitbake rev: a600b79ecefc95eeb266c3f362c7160fa8c948c1) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-28bitbake/cache/runqueue.py: Move workload for recipe parsing to the child processRichard Purdie
Parsing the recipe in the parent before forking off the child worker can mean the parent doesn't hit the idle loop and becomes a bottleneck when lauching many short lived processes. The reason we need this in the parent is to figure out the fakeroot environmental options. To address this, add the fakeroot variables to the cache and move recipe loadData into the child task. For a poky-image-sato build this results in about a 2 minute speedup (1.8%). Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-25bitbake/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. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-02-25bitbake/utils.py: Only try and add read access to a file if we don't have itRichard Purdie
A file we're copying might be on a readonly filesystem so if we can already read it, don't try and add read permission. Fixes BUGID #771 in Yocto. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-25bitbake/utils.py: Allow join_deps to return a list that isn't comman separatedRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-25bitbake/codeparser: fix raising of ShellSyntaxErrorJoshua Lock
To raise the ShellSyntaxError we need to import it's module and reference it by namespace. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-02-24bitbake/cache: bump cache version after recent changesJoshua Lock
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-02-24bitbake/progress: make progress dialog modal for parent windowJoshua Lock
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-02-24bitbake: Add new UI hob, a prototype Gtk+ GUI for creating imagesJoshua Lock
Hob is a first stab at implementing an interactive GUI for BitBake. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-02-24bitbake/cooker: don't drop possible_world ref countJoshua Lock
We need this if we want to run the buildWorldTargetList function more than once, for example in a UI where we can change the MACHINE and DISTRO as much as we like before triggering a build. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-02-24bitbake/progress: add method to pulse the progress barJoshua Lock
When we're running a long operation with indeterminate duration it's useful to use the gtk.ProgressBar's pulse method to show that something is happening but we don't know how long it will take. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-02-24bitbake/crumbs: update documentation headerJoshua Lock
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-02-24bitbake/event: fix some whitespace issuesJoshua Lock
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-02-24bitbake: introduce crumbs.TaskListModel a gtk.ListStore subclassJoshua Lock
Provide a gtk.ListStore subclass which includes a function, populate(), which takes as input the data emitted by bb.event.TargetsTreeGenerated and fills the ListStore model appropriately. Furthermore convenience functions are provided by which the caller can get gtk.TreeModel subclasses which provide filtered views of the data. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-02-24bitbake/[cooker|cache]: cache summary, license and group. Add to targets treeJoshua Lock
Add summary, license and group metadata to RecipeInfo and the cache. Unfortunately this impacts parse speed but gives us a much richer set of metadata to expose through UI's which can be accessed via the generateTargetsTree command. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-02-24bitbake/cooker: reduce code duplicationJoshua Lock
Move runqueua and taskdata initialisation into a new function, prepareTreeData(), so that generateDepTreeData() and generateTargetsTreeData() are not duplicating the same logic. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-02-24bitbake/cooker: add generateTargetsTree methodJoshua Lock
The generateTargetsTree() command needs to return a model which includes more metadata than the one generated by generateDepTree(). This patch adds a new method generateTargetsTreeData() to the cooker, based on generateDepData(), and switches generateTargetsTree() to use it. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-02-24bitbake: implement command to find configuration files for a config variableJoshua Lock
Some configuration variables (MACHINE, MACHINE-SDK and DISTRO) set which confguration files bitbake should use. The added command , findConfigFiles, enables a UI to query which files are suitable values for a specified parameter. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-02-24bitbake: implement command to get all possible targets and their dependenciesJoshua Lock
Add a new command generateTargetsTree() which returns a dependency tree of possible targets (tasks and recipes) as well as their dependency information. Optional parameter 'klass' also ensures any recipes which inherit the specified class path (i.e. 'classes/image.bbclass') are included in the model Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-02-24bitbake/cache: store a list of inherited files in the cacheJoshua Lock
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-02-24bitbake/server/none: fix getEvent() to return eventsPaul Eggleton
In the none server, events don't get processed unless the idle_commands function gets called, which previously wasn't happening with getEvent(); thus UIs that use this to get events were not working. Fixes [BUGID #561] Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2011-02-24bitbake/server/none: remove leftover XMLRPC bits from none serverPaul Eggleton
Remove some comments, imports etc. to do with XMLRPC (inherited from xmlrpc.py which this file was based upon.) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2011-02-23bitbake/build.py: Fix TaskFailed parametersRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-23bitbake/data_smart: Improve Variable expansion error handlingRichard Purdie
If expanding a variable triggers an exception the caller currently has no way to supress the error message or otherwise handle the siutation. An example of where this is a problem is "bitbake -e" showing tracebacks and errors for variables like SRCPV in OE/Poky. Secondly in a chained expansion fails, log mesages are recorded for every step of the expansion, not just the innermost error which is where the real failure occured. To fix this we introduce a new exception ExpansionError which callers can handle as appropriate. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-23bitbake/data_smart: Improve the way lazyassignment worksRichard Purdie
Currently, if a variable has been set with ??= and the code looks it up before the data finalisation phase, no value is found. This is causes serious problems for anonymous python functions which manipulate data, or for the fetcher revision handling code where revisions can be set with ??=. There is also a significant performance implication for processing lazy assignment in finalise. Moving the check for a default value into getVarFlag addresses both the timing issue and the performace. This change gives a 7% real time performance improvement to parsing the Poky metadata. The cost of the check at this point is minimal since we have all the data flags available. This should also fix Yocto bug 752. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-23bitbake/fetch2: Ensure SRCREV_pn-PN is checked for a revision when the ↵Richard Purdie
SRC_URI is unnamed Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-23bitbake/cooker: Fix parsing failure zombie problemRichard Purdie
When parsing if a SystemExit event is triggered, it causes the parsing thread to exit and the main process hangs waiting for it to finish indefintely. Add code to catch BaseExceptions and raise these with the main process gracefully instead of just hanging indefinitely with zombie processes. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-22bitbake/BBHandler: Improve handling of multiline comments and warn users of ↵Richard Purdie
the change Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-21bitbake/runqueue: Drop PATH override. This was needed for the exec() change ↵Richard Purdie
but not now we use fork() Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-21siggen: add bb.data, bb.parse importsChris Larson
(Bitbake rev: 8eafb12208fcd073f930c0c74f25831d02c02198) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-21uihelper: import bb.build, kill commented linesChris Larson
(Bitbake rev: 718448e96d714adf8aaecedac5cb77c7f36b9cdb) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-21runqueue: simplify RunQueueStats.copyChris Larson
(Bitbake rev: 778571f155139fcf43d0e30e875c39d6592ae03f) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-21runqueue: pass a copy of the RunQueueStats to eventsChris Larson
This avoids cases where the stats are modified after the event is fired but before it's dispatched to the UI. (Bitbake rev: 1954f182687a0bd429175dda87f05d8a94bb403a) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-18bitbake/runqueue.py: Move SIGCHLD handler to wrap none server sleep callRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-16bitbake/fecth2: Ensure BB_FETCH_PREMIRRORONLY being set as false is handled ↵Richard Purdie
correctly Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-16bitbake/runqueue.py: Ensure child has the default SIGCHLD handler restoredRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-15bitbake/runqueue: When we successfully fork off a task and there are more ↵Richard Purdie
processes we can start do so immediately Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-15bitbake/runqueue: When we have successfully collected a pid value return ↵Richard Purdie
True to ensure we don't sleep in the main loop Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-15bitbake/runqueue: Add a SIGCHLD handler to ensure we wake from sleeps for ↵Richard Purdie
SIGCHLD events Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-15bitbake/cooker: Ensure delays are accurately transfered to the idle loops ↵Richard Purdie
from runqueue Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-14process.py: Avoid deprecation warningRichard Purdie
bitbake/lib/bb/process.py:15: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-13bitbake/fetch2: Revert part of the unpack change until the issues with it ↵Richard Purdie
are resolved Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-12fetch2: unpack revisionMark Hatle
Revise the unpack function to have a way to disable the unpack. This is based on the work from "Andreas Oberritter <obi@opendreambox.org>", see http://cgit.openembedded.net/cgit.cgi/openembedded/commit/?id=2bdfe8519eda8067845019a699acdf19a21ba380 In addition, the to_boolean function comes from the work of "Chris Larson <chris_larson@mentor.com>", see http://cgit.openembedded.net/cgit.cgi/openembedded/commit/?id=900cc29b603691eb3a077cb660545ead3715ed54 Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-02-11bitbake/fetch2: Add explict network access exception and handling to give ↵Richard Purdie
users usable error messages Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-11bitbake/fetch2: Fix message about md5 checksums when sha256 is incorrectRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-11bitbake/fetch2: Fix patch merge errorRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>