summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2010-12-15data_smart: add optional expansion to getVarFlag()Paul Eggleton
Add a parameter to getVarFlag() to auto-expand the value of the flag. This makes getVarFlag() more consistent with getVar(), and allows expansion of vardeps and vardepsexclude (which has been done in this commit). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2010-12-15build: fix copy/paste thinko regarding LC_ALLChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-14runqueue: fix check_stamp_task call in chck_stamp_fnChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-14runqueue: fix a get_task_id callChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-14build: ensure LogTee has a valid name propertyChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-14build: fix -D with shell functionsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-14Fix PWD issue with new exec_func_shellChris Larson
The previous attempt was incorrect. The issue isn't that subprocess fails to set PWD, it's that PWD is in the metadata, inherited from the environment, and is re-exported, overwriting the actual accurate one in the shell environment with the old one from the metadata. So, ensure that PWD in the metadata is not exported. We can ditch this when the environment handling is reworked (e.g. poky's commit to do so). Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-13Ensure that the invalid UI error goes to stderrChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-13build: set PWD in the subprocess preexec hookChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-13Move the runq task start/failed messages to the UIChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-13bitbake/runqueue.py: Factor task skipping code into a functionRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-13bitbake/runqueue.py: Create RunQueueExecute and RunQueueExecuteTasks ↵Richard Purdie
classes, further splitting up runqueue Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-13bitbake: Split Runqueue into two classes, a data processor and the execution ↵Richard Purdie
part Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-13Silence python 2.7 nested context manager warningChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-10Rename command events, adjust compareRevisionsChris Larson
- Moved the logic for comparing revisions from cooker into command - Removed 'Cooker' from the event names - Renamed the 'ExitCode' event into CommandExit, and changed CommandFailed to be a subclass of CommandExit Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-10Rework the persist_data APIChris Larson
Rather than having to run .addDomain() and then .getValue(domain, key), .setValue(domain, key), etc, now it just works as mappings. As an example: setValue(domain, key) -> persist[domain][key] = value It also arranges things so we can construct objects of this type using any arbitrary filename/path for the sqlite3 database, rather than being so tightly bound to the metadata. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-10build: don't create ${B} when the 'dirs' flag is unsetChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-10event: use cPickle for eventsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-10utils: fix 'lock' variable referenceChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-10bb.event: fix MsgBase ref in fire_class_handlersChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-10Kill the uncaught exception handlerChris Larson
We now wrap the main() in a try/except, ensuring that both the main portion of bin/bitbake and the UI raising an exception will be shown to the user. For the server and workers, we can ensure in the server itself that exceptions are handled correctly. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-10build: kill stdout in python functionsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-10build: send logging messages to the log file for python functionsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-10Revert "bitbake/git.py: Make sure different branches can have different ↵Chris Larson
revisions without triggering build count increases" Per Martin Jansa, this breaks compatibility. We can revisit in the future, likely during the fetcher rewrite. This reverts commit f3292fa11723c748ef1b4270384abf6d586a822e.
2010-12-09build: fix remnant access of logfile in exec_func_pythonChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-09utils: fix calls to close() in the lock/unlock functionsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-09build: use a contextmanager for locksChris Larson
Also don't bother passing logfile to exec_func_python, at least until we start adding the logfile as a file handler to the bitbake logger. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-09build: use bb.process instead of os.systemChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-09process: add subprocess-based bitsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-09Rename the ui 'init' method to 'main'Chris Larson
As these may run the UI in a blocking fashion and then return the exit code, 'init' was an inappropriate name, and 'main' is more appropriate. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-08cooker: use re match, not search in re_match_stringsChris Larson
We want to match the requested pattern at the beginning of the string, otherwise things behave in an unintuitive manner wrt ASSUME_PROVIDED (e.g. ASSUME_PROVIDED += "gtk+" will also assume foo-gtk+ is provided), and the user can always use '.*gtk+' to get the old behavior. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-08taskdata: use 'any' in re_match_stringsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-08bitbake/data_smart: Refactor _append/_prepend code to remove duplicationRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-08bitbake/data_smart: Fix append/prepend/override ordering issueRichard Purdie
Where a variable name consisted of an append/prepend combined with an override and there was also an append/prepend to the variable, the override could be lost if the override was not in OVERRIDES. For example: FOO = "A" FOO_append = "B" FOO_append_virtclass-native = "C" could result in "AB" even though virtclass-native was in OVERRIDES. With this patch applied, the result is "ABC" as would be expected. The problem was the deletion of the _append/_prepend flag was happening if *any* append/prepend was procesed, the result should really be that it should contain any unprocessed append/prepend. Kevin Tian deserves credit for looking into this and working out the problem here. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-08bitbake/goggle: interaction tweaksJoshua Lock
Set the goggle window to a more sane default size (640x480) and hook up the close button. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/depexp: Factor ProgressBar into a separate class in crumbs/Joshua Lock
ProgressBar will be useful in other UI elements so make it it's own class. Make ProgressBar a subclass of gtk.Dialog, rather than gtk.Window, so that we can suggest the window manager parent the ProgressBar to the widget passed at as parent. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/crumbs: add optional pbar parameter to RunningBuild.handle_event()Joshua Lock
Defaults to None, but if set will pass the ParseProgress sofar and total to pbar's update() method. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/goggle: add a ProgressBar for parse progressJoshua Lock
Construct a ProgressBar and pass it to the RunningBuild.handle_event() so that goggle users are notified of metadata parsing progress. UI's with status make users less nervous Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/xmlrpc: Modify xmlrpc server to work with Python 2.7Joshua Lock
Python 2.7's library changes some of xmlrpclib's internal implementation such that interacting with a proxy to BitBakes SimpleXMLRPCServer would cause BitBake to crash. The issue was traced to changes in the xmlrpclib.Transport implementation and Python bug #8194 (http://bugs.python.org/issue8194). This patch introduces a workaround by create a subclass of xmlrpclib.Transport, which overrides the offending methods with the Python 2.6.6 implementation copy and pasted from the Python 2.6.6 xmlrpclib, and using this BBTransport implementation for both xmlrpclib.Server objects we create. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/goggle: automatically show most recently added messageJoshua Lock
It seems likely that the user would want to view the most recently emitted messages so this patch sets the message dislay treeview to scroll to any newly added rows. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/crumbs: fix the event name determinationJoshua Lock
Due to some recent change *somewhere* we need to explicitly look at the name attribute on the instances class, rather than the name attribute of the instance. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/crumbs: do the test for ignored messages soonerJoshua Lock
Move the test for ignored messages to the start of the message handling loop to avoid doing work for messages which are only going to be ignored. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/crumbs: Fix crumbs UI for bitbake event class name changesJoshua Lock
Some of the events we where trying to look for have had their class names changed, fix these references. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/cooker: fix idle command processing in serversJoshua Lock
idle command processing in each of the servers does not handle an explicit None return value, which means the goggle UI ends up repeatedly adding "Tasks Summary:" rows to the list. This patch modifies BBCooker.buildTargets.buildTargetsIdle to return False when BuildCompleted is fired, as is done in BBCooker.buildFile.buildFileIdle. It may be that the correct way to fix this is to change the idle command processing in the servers. Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-08cooker: add shutdown/stop methodsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-08cooker: merge cookerState and cookerActionChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-07cooker: use a pool, abort on first parse errorChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-06knotty: use enumerate for task waitingChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-06knotty: shift non-interactive progress into a classChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-06Merged the following poky fetcher fixes:Chris Larson
- bitbake/fetch: Allow checking of a single url at a time (massive sstate speed improvement) - bitbake/fetch: Fix handling of mirrors when checking for url validity - bitbake/fetch: When fetchers return errors, ensure any partial download is cleared - bitbake/fetch: Make URL checking slightly less verbose (distracting with the sstate code) - bitbake/fetch/git: Ensure fullclone repositories are fully fetched - bitbake/fetcher: Deal with a ton of different bugs - bitbake/fetch/git.py: Fix git fetcher to correctly use mirror tarballs - bitbake/fetch/__init__.py: Abstract mirror variable handling and enhance to accept \n delimitation in variables - bitbake/fetch: fix logic to prevent fetches when the file already exists - bitbake/fetch: ensure the go() method completes when not using premirrors - Export ALL_PROXY for bitbake commands - bitbake: Add proxy variables to standard export list - bitbake/fetch/git: fix try_premirror() definition .Method takes 4 parameters. - bitbake/fetch: fix by moving try_premirror() to the right place - bitbake/fetch: add try_premirror method and special case git fetcher - fetch: fix setting of localpath in SRC_URI parameters - bitbake/fetch: ensure the mirrored repository is updated as required - bitbake/git: define a forcefetch method - bitbake/fetch: Respect forcefetch even when pulling from a mirror - bitbake/git.py: Make sure different branches can have different revisions without triggering build count increases - bitbake/git.py: Allow tracking of branches in SRC_URI without cloning for use with fullclone - bitbake/git.py: Make sure a full clone checkout always updates Signed-off-by: Chris Larson <chris_larson@mentor.com>