aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/build.py
AgeCommit message (Collapse)Author
2010-04-20Don't try to expand non-string valuesChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-11Apply some 2to3 transforms that don't cause issues in 2.6Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-10Switch some references to moved functionsChris 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-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-01-27build.py: No need for this gross hack now (from Poky)Richard Purdie
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>
2009-11-03Improve anonymous python function handling sp functions use the methodpool ↵Richard Purdie
and are no longer concatenated Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
2009-10-23build.py: Make sure the logfile exists before checking its size. Previously ↵Richard Purdie
this broke upon recursive calls. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-10-17build.py: Optimisation to remove zero sized log files (from Poky)Richard Purdie
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
2008-12-06build.py: Add better debug to exec_func_python when python function ↵Richard Purdie
execution fails from Poky)
2008-05-21build.py: Make sure expandKeys has been called on the data dictonary before ↵Richard Purdie
running tasks fixing various strange issues (from poky). Correctly add a task override in the form task-TASKNAME which whilst a change in behaviour shouldn't matter since the original approach didn't work at all
2008-03-15build.py: Fix incorrect variables (thanks pH5)Richard Purdie
2008-03-13build.py: Fix incorrect variable nameRichard Purdie
2008-02-28build.py: Fix task variable expansion issueRichard Purdie
2008-02-26Remove digraph and switch to new stamp checking code.Richard Purdie
2008-02-24build.py: Remove uneeded mkdirhiercallRichard Purdie
2008-02-24build.py: Convert exec_task to use getVarFlagsRichard Purdie
2007-12-01Add selfstamp and lockfiles flagsRichard Purdie
2007-09-05build.py: Add support for cleaning directories before a task in the form: ↵Richard Purdie
do_taskname[cleandirs] = 'dir'
2007-08-18build.py: Add _message to TaskBase, add gross hack to logfile name ↵Richard Purdie
generation to make things work for now
2007-08-17BBHandler.py/build.py: Rework add_task to be more efficient (6% speedup, 7% ↵Richard Purdie
number of function calls reduction)
2007-08-16build.py: Expand data to addtaskRichard Purdie
2007-08-15build.py: Add back python function output through a new mechanism to emulate ↵Richard Purdie
old behaviour (for now)
2007-07-28Remove ununsed module referencesRichard Purdie
2007-04-03build.py: Expand dependency flag dataRichard Purdie
2007-03-20build.py: Remove BBINCLUDELOGS for now since its breaking things. It will ↵Richard Purdie
return in the tty UI handler eventually
2007-03-20build.py: Use a try/finally to make sure logs get redirected after function ↵Richard Purdie
execution even if an exception occurs
2007-03-19build.py: Treat python functions the same as shell functions with respect to ↵Richard Purdie
logging
2007-01-10trunk/bitbake/lib/bb/build.py: Put LC_ALL=C on os.system callHolger Hans Peter Freyther
For our french and strange friends place LC_ALL=C in all task calls. This should give us english log messages
2007-01-07Make -f (force) flag handling work properlyRichard Purdie
2007-01-07build.py: Add del_stamp function to remove existing stamps (factoring common ↵Richard Purdie
functionality into a shared function).
2007-01-07build.py: Merge stamp_is_current and stamp_is_current_cache into one ↵Richard Purdie
function. This needs rethinking eventually.
2007-01-04moved 'here comes the log' message back to proper placeMarcin Juszkiewicz
2007-01-04build.by: Added option to limit amount of log lines displayed - close #97Marcin Juszkiewicz
- option is named BBINCLUDELOGS_LINES and is integer - if option is set then logs are passed via 'tail' command
2007-01-04drop shebangs from lib/bb scriptsMarcin Juszkiewicz
- those scripts are not called by hand by bitbake users and most of package linting tools (lintian/Debian, rpmlint/Fedora) complain about not executable scripts. - if someone want to run them by hand then he will be able to do it with calling 'python SCRIPT'
2006-12-08Add proper GPLv2 headers to all BitBake filesHolger Hans Peter Freyther
BitBake trunk is now GPLv2 only, no mix of MIT,FreeBSD License is left. Update GPL headers to point to the correct address of the FSF Update the list of authors. Uli Luckas, Seb Frankengul and Tim Amsell contributed to the sourcecode as well
2006-09-10build.py: Really fix debug_level references causing excessive debug output ↵Richard Purdie
(s/general/default - thanks for spotting koen)
2006-09-10build.py: Fix debug_level references causing excessive debug outputRichard Purdie
2006-09-09build.py: Add interactive flag for tasks to optionally disable console ↵Richard Purdie
redirection. Default to maintain backwards compatibility
2006-09-09Complete conversion to use bb.msgRichard Purdie
2006-08-20bitbake/lib/bb/build.py:Richard Purdie
- Add flag to disable exec_task dependency execution
2006-08-16Remove a debug statement that crept inRichard Purdie
2006-08-13trunk/bitbake/lib/bb/build.py:Richard Purdie
* Add version of stamp_is_current that works with cached data * Tweak mkstamp to work over broken? NFS filesystems (simply opening the file for write access wasn't enough to change the file's timestamp) * Have add_task create _task_deps variable containing various task flags for cache use
2006-07-08bitbake/lib/bb/__init__.py:Richard Purdie
bitbake/lib/bb/build.py: bitbake/lib/bb/utils.py: bitbake/lib/bb/shell.py: bitbake/lib/bb/providers.py: bitbake/lib/bb/msg.py: bitbake/bin/bitbake: bitbake/bin/bitdoc: bitbake/classes/base.bbclass: Start an overhaul of the message handling in bitbake: - Introduce a new msg module to replace the existing simple calls. - The msg module adds the conncept of message domains so ultimately we can select which kinds of debug messages we want to see (it uses an Enum class for this) - Add a warn logging level for things the user should really pay attention to as note is a little overloaded at present - Start converting to use the new fuctions
2006-07-08lib/bb/build.py: fix for 1017, try to change back to the prevdirHolger Hans Peter Freyther
In the case of rm_work.bbclass we might have deleted the directory where we come from. Do not fail to avoid the issues described in #1017
2006-07-08bitbake/lib/bb/build.py:Richard Purdie
- Remove some stale inactive code
2006-03-07bitbake/lib/bb/utils.py:Holger Hans Peter Freyther
Create a work in progress version for better_execute. With advanced error reporting facilities. bitbake/lib/bb/build.py: Use better_execute bitbake/parse/parse_py/BBHandler.py: Use better_execute instead of exex
2006-02-26bitbake/parser,build,utils:Holger Hans Peter Freyther
We compile strings into code. In case of erros the traceback is not useful at all. It doesn't print the function name, accurate line number etc. Introduce a better_compile method that excepts the Error and prints the surrounding lines of code. We make use of it on the parsing level and execution level of python methods.