aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/shell.py
AgeCommit message (Collapse)Author
2010-12-18shell: removeChris Larson
bb.shell is unused and incompatible with current bitbake. We can resurrect it in a more functional form when we add the text input to the goggle and ncurses UIs. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-11-21cooker: stop loading the cache for -bChris Larson
Previously, the cache was actually being loaded from disk twice whenever using -b or -e -b. This also moves the bb_cache instance into the CookerParser, as it's not needed by the cooker itself at all. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-09-09Simplify build exception handlingChris Larson
- Drop EventException - Use FuncFailed as the primary function failure exception, using TaskFailed for the event (leaving it up to the process running exec_{func,task} to display the more detailed information available in the exception). - Switch InvalidTask to an exception rather than an event, as that's a critical issue. - Reduce the number of messages shown to the user when a task fails -- they don't need to be told it fails 12 times. Work remains in this area though. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-06-21Apply some 2to3 refactoringsChris Larson
2010-06-20Fix syntax error in shell.pyChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-09Apply the 2to3 print function transformChris 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-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>
2009-10-01shell: Add install commandSøren Holm
Add an install command similiar to the other existing commands. Signed-off-by: Holger Hans Peter Freyther <zecke@selfish.org>
2009-06-19Merge the BBCLASSEXTEND code from Poky. This allows once recipe to provide ↵Richard Purdie
mutliple targets (e.g. -native and -sdk) and has been discussed on the OE mailing list
2009-05-11data.py: Make sure allowed variables inherited from the environment are ↵Richard Purdie
exported again (from Poky) shell.py: When running a stage task in bbshell, run populate_staging, not the stage task (from Poky)
2008-12-06shell.py: Catch up with core changesRichard Purdie
2008-12-06Pass around the tasks to execute rather than using magic variables. Also use ↵Richard Purdie
the empty_environment() function to clear the environment
2008-02-26shell.py: Update to use cooker.buildFile()Richard Purdie
2008-01-06shell.py: Fix shell data updating problems (#1880)Richard Purdie
2008-01-06Fix shell showdata command (#3259)Richard Purdie
2007-03-05shell.py: Fix syntax warning reported by pH5Richard Purdie
2007-03-04runqueue.py: Improve initialization instead of repeating parametersRichard Purdie
2007-03-04shell.py: Remove build_cache_fail references since this no longer works as ↵Richard Purdie
intended
2007-01-07shell.py: Fix up force flag handling for directly named filesRichard Purdie
2007-01-07runqueue.py: Pass cooker to prepare_runqueue (for now)Richard Purdie
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-11-30shell.py: Fix typo (thanks to pH5 for spotting)Richard Purdie
2006-11-18runqueue.py: Change failed tasks handling so all failed tasks are reported, ↵Richard Purdie
not just the first. Also add signal handling so Ctrl+C only interrupts the main tasks upon the first keypress, the second keypress sends SIGTERM to all children
2006-11-12taskdata.py: Improve abort flag handling, fixing several bugsRichard Purdie
2006-11-04shell.py: Add support for the abort flagRichard Purdie
2006-10-03cache.py: Stop passing cooker around as its no longer neededRichard Purdie
2006-09-11* shell: fix 'which' commandMichael 'Mickey' Lauer
* shell: use 'rebuild' task for implementing rebuild
2006-09-11bitbake/lib/bb/shell.py:Richard Purdie
bitbake/bin/bitbake: Split collect_bbfiles into collect_bbfiles and parse_bbfiles Allow -b option to accept an expression which uniquely identifies a .bb file instead of requiring a full path Disable BBFILES support within .bb files (it was already non-functional)
2006-09-10lib/bb/shell.py - Use taskData and runQueue directlyRichard Purdie
lib/bb/runqueue.py - Add fn to TaskFailure bin/bitbake - Remove now uneeded buildProvider
2006-09-09Turn BBParsingStatus into CacheData and move to cache.pyRichard Purdie
2006-08-20bitbake/lib/bb/taskdata.py:Richard Purdie
bitbake/lib/bb/__init__.py: bitbake/lib/bb/shell.py: bitbake/lib/bb/runqueue.py: bitbake/lib/bb/msg.py: bitbake/MANIFEST: bitbake/bin/bitbake: Major rewrite and modularisation of the dependecy code. The code in bin/bitbake is replaced by the taskdata and runqueue modules. The code is designed to support multiple threads (although the initial threading algothirm is simplistic). The new code is aimed to be maintainable and debuggable (once msy.py is finished).
2006-07-11switch pastebin provider to http://rafb.net/pasteMichael 'Mickey' Lauer
patch courtesy Zwelch
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-08bitbake/lib/bb/providers.py:Richard Purdie
bitbake/lib/bb/__init__.py: bitbake/lib/bb/shell.py: bitbake/bin/bitbake: * Move providers functions into their own file. The arguments are horrible at present but we have to start somewhere with the cleanup and refactoring.
2006-05-27 bitbake/lib/bb/shell.py:Holger Hans Peter Freyther
-Rename last trace of pastebin.com to oe.pastebin.com (which was in a comment any way)
2006-05-06bitbake/lib/bb/shell.py:Holger Hans Peter Freyther
No need to use imp on bin/bitbake
2006-05-03bitbake/lib/bb/shell.py:Holger Hans Peter Freyther
-Make it work, mickeyl please remove old code ;)
2006-04-21shell: reparsing no longer checks whether it came from cache or notMichael 'Mickey' Lauer
shell: use our private pastebin: oe.pastebin.com
2006-04-16bitbake/lib/bb/cache.py:Richard Purdie
bitbake/lib/bb/shell.py: bitbake/bin/bitbake: * Remove a useless return value from loadDataFull bitbake/ChangeLog: * Update the changelog with recent changes
2006-04-16lib/bb/shell.py:Holger Hans Peter Freyther
-Make it work...
2006-04-15bitbake/lib/bb/data.py:Richard Purdie
bitbake/lib/bb/__init__.py: bitbake/lib/bb/data_smart.py: bitbake/lib/bb/cache.py: bitbake/lib/bb/shell.py: bitbake/bin/bitbake: * Major cache refactoring. Change the cache to store only the data bitbake needs for dependency calculations instead of all the metadata. * Separate the cache code into its own file. * Update the rest of the code to work with the cache changes. * Temporarily break the shell's poke command.
2006-01-12bitbake/lib/bb/shell.py:Holger Hans Peter Freyther
-Patch by ph5 to call the build method with the right amount of parameters.
2005-09-08parser: add function to update the mtime for one file, courtesy Justin PatrinMichael 'Mickey' Lauer
parser: move import bb and import os out of the commands (import in a function that's called often has a performance penalty) lib: increase revision shell: add 'reparse' and 'fileReparse' commands, courtesy Justin Patrin
2005-07-07Shell:Michael 'Mickey' Lauer
- remove '...' in output for "SHELL: Building <a number of providees>" - don't continue if building a number of providees and one fails
2005-07-06Shell:Michael 'Mickey' Lauer
- experimental support for glob expression (wildcards) in command 'build' - add new command 'match <providers|files> <globexpr>' to see what matches against the expression
2005-07-06Shell:Michael 'Mickey' Lauer
- use shlex to parse command lines as a special service to hrw: Now you can say 'setvar FOO "this is a test"' :) - use a command queue in the main loop to unify offline (from startup file) and online processing - add some changes for 1.3.2. Could anyone fill in changes for 1.3.1 ?
2005-07-06Shell: grab a deepcopy from the initial cooker data to reuseMichael 'Mickey' Lauer
it in file**** commands. Otherwise we would pollute cooker.configuration.data (i.e. do_configure_append() appending multiple times). This fixes BitBake bug #133