summaryrefslogtreecommitdiffstats
path: root/bitbake
AgeCommit message (Collapse)Author
2014-02-17bitbake: build: fix handling of task override for tasks with underscores in ↵Paul Eggleton
their names Tasks whose names contain underscores (such as do_populate_sdk in OE) when converted to a task override do not function properly. If we replace underscores with hyphens we can still have a working override for these tasks. (Bitbake rev: cf90bd6b2a0ab7dce922bffb500d6a2ff2ff10e2) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-17bitbake: parse: make vars_from_file return None for non-recipesPaul Eggleton
It doesn't really make sense to set PN from .conf files, for example. More concretely, this avoids the config hash changing unnecessarily within Hob due to PN effectively changing (since bblayers.conf is parsed first and then .hob.conf). (Bitbake rev: 22e03ef7ac9bb6b7245250347ae9c10c19f1d74e) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-15bitbake: runqueue: Fix silly variable overlapRichard Purdie
A previous commit of mine used the target variable for two different uses resulting in a lot more sstate being installed than is needed. Fix the variable to use two different names and unbreak the setscene behaviour. (Bitbake rev: f975ca2cf728561bd6317ed8f76303598546113a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-13bitbake: runqueue: Ensure we do run 'masked' setscene tasks if specified as ↵Richard Purdie
targets If you specify multiple targets on bitbake's commandline and some of them are setscene tasks which are "masked" by other tasks they may not get run. For example <image>:do_rootfs <kernel>:do_populate_sysroot the rootfs tasks "masks" the populate_sysroot task so bitbake would currently decide not to run it. In this case, we do really want it to be run. The fix is not to skip anything which has been given as an explict target. (Bitbake rev: 0753899d1e855795cc18671357609a86f169b379) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-11bitbake: user-manual-metadata.xml: Edits to the "Sharing Functionality" section.Scott Rifenbark
Applied some review edits from Paul to the section. (Bitbake rev: 56321b18808f5ed932543d907b9ebcfbf4420233) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-11bitbake: user-manual-metadata.xml: Edits to "Conditional Syntax (Overrides)"Scott Rifenbark
Re-wrote this section to use clearer more described examples. (Bitbake rev: 6eea23c4783c591c2d2c7f0b2a98e7a0cc8aa3c3) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-11bitbake: user-manual-metadata.xml: Edits to "Defining Pure Python Functions"Scott Rifenbark
Made a review edit here to the section per Paul Eggleton. (Bitbake rev: 3b6ab095862367bc0101b995b002f62e7968ccf3) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-11bitbake: user-manual-metadata.xml: Edits through syntax sectionScott Rifenbark
I made some general improvements in the "Overview" and "Basic Syntax" sections. Additionally, I added a blank section for "Variable Flags" that will eventually hold general information on this concept. Finally, come review edits to the "Defining Pure Python Functions" section per Paul Eggleton. (Bitbake rev: 665d655f436f1a353f5fe467c5d97588f7b121c5) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-11bitbake: user-manual-intro.xml: General edits to Introduction chapter.Scott Rifenbark
I performed a general edit to this chapter. Some significant changes include changing the chapter's title to "Overview" when it was titled "BitBake User Manual", doing some consolidation of text to eliminate a couple sections that described methods to obtain a copy of BitBake, and various improvements as needed. (Bitbake rev: f635c4b36af79b8572095083a392fb58c11198c9) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-11bitbake: user-manual-metadata.xml: Added "Checksums (Signatures)" section.Scott Rifenbark
Added this section to the end of the Metadata chapter. (Bitbake rev: b653c58284cafd0b79991520543ca6239705d36b) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-11bitbake: user-manual-ref-variables.xml: Review edits to several variables in ↵Scott Rifenbark
glossary. ASSUME_PROVIDED BBCLASSEXTEND SRC_URI PACKAGES_DYNAMIC BB_NUMBER_THREADS BB_DANGLINGAPPENDS_WARNONLY (Bitbake rev: 8e586ccee6d5e78070d28cda67058578e1fe91d7) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-11bitbake: user-manual-ref-variables.xml: Added 11 new variables to glossary.Scott Rifenbark
SRCREV_FORMAT BUILDNAME BB_ENV_WHITELIST BB_PRESERVE_ENV BB_ENV_EXTRAWHITE BB_ORIGENV BB_TASKHASH BITBAKE_UI BBDUBUG BB_DEFAULT_TASK BBINCLUDED (Bitbake rev: 0e3106bfdebfa255b2db08a8a4585516d8bebe20) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-11bitbake: user-manual-ref-variables.xml: Edits to FILESPATH.Scott Rifenbark
(Bitbake rev: 64bdd3ba6fe90ed6e0338ad053c8117db0acfe2e) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-11bitbake: user-manual-ref-variables.xml: Added 6 new variables to glossary:Scott Rifenbark
MULTI_PROVIDER_WHITELIST CACHE PERSISTENT_DIR FETCHCMD FILE FILESDIR (Bitbake rev: 4aa8c2f93cc126778f7e99229d99b398d603fcac) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-11bitbake: user-manual-ref-variables.xml: Edits to PREFERRED_PROVIDER.Scott Rifenbark
(Bitbake rev: 9232cca08ec3f099475ad8dfc10e4fa3c2b39366) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-11bitbake: user-manual-ref-variables.xml: Added PREFERRED_PROVIDERS to glossary.Scott Rifenbark
(Bitbake rev: 86cacad8129502088011ebb622dd4d3d3663d39e) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-11bitbake: user-manual-ref-variables.xml: Added FAKEROOT* variables to glossary.Scott Rifenbark
FAKEROOT FAKEROOTCMD FAKEROOTBASEENV FAKEROOTDIRS FAKEROOTENV FAKEROOTNOENV (Bitbake rev: 8480db0fa7d0363741e7075bb8169a9c1b6a71dd) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-11bitbake: user-manual-ref-variables.xml: Added BB* variables to glossary.Scott Rifenbark
BB_STRICT_CHECKSUM BB_WORKERCONTEXT BB_SIGNATURE_EXCLUDE_FLAGS BB_HASHBASE_WHITELIST BB_INVALIDCONF BB_LOGFMT BB_RUNFMT BB_RUNTASK BB_HASHBASE_WHITELIST BB_STAMP_POLICY BB_STAMP_WHITELIST BB_SCHEDULER BB_SCHEDULERS BB_SETSCENE_DEPVALID BB_SETSCENE_VERIFY_FUNCTION BB_SIGNATURE_HANDLER BB_SRCREV_POLICY BB_VERBOSE_LOGS (Bitbake rev: f02be6ca79fccc3c7bfbbadeef0c98242f661524) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-11bitbake: runqueue: Fix setscene hard dependency problemsRichard Purdie
Commit c54e738e2b5dc0d8e6fd8e93b284ed96e7a83051 added in the idea of hard dependencies such as the case a setscene has a hard dependency on pseudo-native and that dependency wasn't available from sstate for some reason. Unfortunately the implementation was a bit too enthusiastic, causing rebuilds of things when it wasn't necessary. A test case was: bitbake quilt-native bitbake quilt-native -c clean bitbake <some-image> and then you'd watch quilt-native get rebuilt for no good reason. The clue to the problem is in the for loop where it never depends on the item being iterated over. The fix is to include the exact list of hard dependencies rather than guessing. With these changes, the use case above works, the one in the original commit also works. This patch also adds in or cleans up various pieces of logging to allow issues like this to be more easily debugged in future. (Bitbake rev: 81bd475585ff1b44b390036b1eca0feae7c149eb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-09bitbake: bitbake: build.py: create separate function for shell trap creation ↵Laurentiu Palcu
code Currently, the shell trap code was created in exec_func_shell(). Split the function so that we can create the code separately. Also, some whitespaces were automatically deleted by my editor. Since this is not necessarily a bad thing, leave these changes too. (Bitbake rev: c712e622d20c61a07c9c172b60e9dc6beae14197) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-04bitbake: data: Account for pre/postfunc functions when calculating dependenciesRichard Purdie
pre/postfuncs were not being added to checksums. This meant that when reconfiguration occurred, tasks were not always being rerun when they should. This include sstate functions as well as systemd's do_install function in the OE metadata. With the addition of postfuncs, its possible a shell task can have a python pre/postfunc so we have to guard against this when generating shell output in emit_func. (Bitbake rev: b84d010144de687667cf855ddcb41c9b863c236e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-31bitbake: runqueue: Fix race against tasks sharing stamp filesRichard Purdie
Shared work directories work by assuming bitbake will not run more than one task with a specific stamp name. Recent runqueue optimisations accidentally broke this meaning there could be races. This fixes the code. (Bitbake rev: b1628b1a260ddf43fc9985535b1ddcfcebbb1e5b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-28bitbake: user-manual: Fix issue with previous revertRichard Purdie
(Bitbake rev: 2d052690d46506ba3f4180ad5cdfa835ce85e59a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-28bitbake: Revert "usermanual: Updated CC License to version 3.0"Richard Purdie
This reverts commit 0546bc19557de9263b448ceb1707884543d2de56. This change was not discussed with the copyright holders so the license needs to remain at version 2.5. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-28bitbake: siggen.py: fix the SignatureGenerator()Robert Yang
If we set: BB_SIGNATURE_HANDLER = "noop" Then we would get the following errors: [snip] File "runqueue.py", line 876, in RunQueue._start_worker(fakeroot=False, rqexec=None): "fakerootnoenv" : self.rqdata.dataCache.fakerootnoenv, > "hashes" : bb.parse.siggen.taskhash, "hash_deps" : bb.parse.siggen.runtaskdeps, AttributeError: 'SignatureGenerator' object has no attribute 'taskhash' [snip] This patch fixes the problem. [YOCTO #5741] (Bitbake rev: 2bfcb751891cf3b4050e996b3c8e28678c3a8bf4) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-28bitbake: runqueue: Simplify pointless len() usageRichard Purdie
(Bitbake rev: 1f2bdd1b99075babe8dba91478cfc5d3501676cb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-28bitbake: hob: No need for enable_proxy and same_proxy in conf fileIrina Patru
Hob doesn't read these variable from file and bitbake doesn't use them, so they shouldn't be set in conf file. (Bitbake rev: a8c9df86b96e27dc49028c2da42034d13988960c) Signed-off-by: Irina Patru <irina.patru@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-28bitbake: hob: Don't always save proxy values in conf fileIrina Patru
If enable_proxy is not activated, Hob should not save the proxy values in the conf file when user hits save button. [ HOB #5308 ] (Bitbake rev: fbe0851221ecfcefea5bdd4b629a05ed4f5ac189) Signed-off-by: Irina Patru <irina.patru@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-28bitbake: hob: don't display interruptions as failsIrina Patru
When Hob receives a bb.command.CommandFailed event, it should check if it's a log kind of information. "Forced shutdown" and "Stopped build" are messages that show when a build is not complete, but Hob considered them error. [HOB #5609] (Bitbake rev: ea1939f7ec8d8a71ce16a60c251c2413d7d91eb3) Signed-off-by: Irina Patru <irina.patru@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-28bitbake: hob: unsetting busy cursor after hitting Stop buttonIrina Patru
The busy cursor would never change after pressing Stop button. It should be set after the possible return inside machine_combo_changed_cb() method. (Bitbake rev: d440d3ad4b2d99bc20e06d2d5f5e76d07864dff3) Signed-off-by: Irina Patru <irina.patru@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-28bitbake: bitbake: hob: check if parser has attribute 'shutdown'Irina Patru
It must be checked first if parser has the attribute 'shutdown' when user hits Stop button and the forceshutdown state is given. [HOB #5579] (Bitbake rev: 46943b442ea4fa778f70590b6dcce483595efaf8) Signed-off-by: Irina Patru <irina.patru@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-28bitbake: hob: change error_msg for CommandFailed eventIrina Patru
When a bb.command.CommandFailed event is received by Hob, the error message is stored inside event.error. This information tells exactly why bitbake failed, so Hob should display it instead of the current composed message. (Bitbake rev: 24543ff6b45771712d624541ae35738d7d98f33c) Signed-off-by: Irina Patru <irina.patru@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-28bitbake: cooker: Add option of specifying indvidual tasks for targetsRichard Purdie
Currently its near enough impossible to tell bitbake to run target X, task Y and target A, task B. We could hack various parts of the API around but it would mean incompatibilities. An alternative is to accept the syntax "<target>:do_<task>" as a target name. The default task would be used where the task is unspecified. This has the advantage that its neat/clean code and works from all current APIs including the commandline. (Bitbake rev: 55f6bee3114e582333a1784caeddb197b9163d02) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-27bitbake: user-manual-ref-variables.xml: Added 10 new variables to the glossary.Scott Rifenbark
Fixes [YOCTO #5472] 1. ASSUME_PROVIDED 2. BB_CURRENTTASK 3. BB_FETCH_PREMIRRORONLY 4. BB_FILENAME 5. BB_NICE_LEVEL 6. BB_HASHCONFIG_WHITELIST 7. BB_TASK_NICE_LEVEL 8. BB_NO_NETWORK 9. BB_NUMBER_PARSE_THREADS 10. STAMPCLEAN (Bitbake rev: 72a01a54c4786a7a82ae8b86b8e2beedd07f7f21) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-27bitbake: user-manual-ref-variables.xml: Fixed references to "Build Directory".Scott Rifenbark
I made sure that these are lower-cased. Also, removed the tags for cross-referencing into the term section of the YP Development Manual. (Bitbake rev: f9e3de2bb3e73204ef35d102ff26ee7393056ede) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-27bitbake: user-manual-ref-variables.xml: Editing pass.Scott Rifenbark
Corrected grammar and applied active voice where possible. Also removed several cross-reference tags to the YP manual set. (Bitbake rev: 17cbad436c97e904a04596237022e84853b10a21) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-27bitbake: template/titlepage.templates.xml: Suppress Title Text.Scott Rifenbark
I commented out two blocks of code that are responsible for getting the book's title to format onto the title page. Commenting the code out suppresses the title from the PDF version's title page yet retains the title text for the HTML tab space of the browser. The reason this is necessary is because the BitBake User Manual uses an image file for the title. Thus, it is not necessary to print the title again. (Bitbake rev: d7f15880c5423d91fd786e291f3e062545342184) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-27bitbake: user-manual-customization.xsl: Updated param list to passScott Rifenbark
I added five parameters here to match the build process used for the YP manual set. (Bitbake rev: f95994be26986098c2603ef6d4cb10f06422b790) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-27bitbake: user-manual-metadata.xml: Renamed section tagScott Rifenbark
There were two section tags that used the same id name "classes". One was in the intro chapter and one was in the metadata chapter. This was causing an exception in the PDF creation process and breaking it. I renamed the tag in the metadata chapter "metadata-classes". (Bitbake rev: d5f405586f7c50c602241519d32d02b1c7b1f345) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-27bitbake: user-manual-ref-variavbles.xml: Added new glossary chapter.Scott Rifenbark
Added a scrubbed copy of the YP ref-manual glossary. The content was scrubbed to contain BB variables only. Removed broken cross-references, made sure the PDF file built. (Bitbake rev: aae6bcb7fb6e056eb7b1027a8054f6ea5f8ab2b2) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-27bitbake: user-manual-bitbakecommand: Various edits/cleanupsRichard Purdie
(Bitbake rev: f079e0886b1b191d84621057f9752cc32bfabb44) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-27bitbake: user-manual-bitbakecommand: Standardise on section tags, not exampleRichard Purdie
(Bitbake rev: c85a035608b7c862d964f45bb1b767fde072a1de) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-27bitbake: user-manual-bitbakecommand: Replace screen tags with literallayoutRichard Purdie
(Bitbake rev: 4fffe48ab607fd0d2f884186006ee168874b8414) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-27bitbake: user-manual-bitbakecommand: Reform whitespaceRichard Purdie
(Bitbake rev: f1a6d7029e7adc147655809dca71782a143c5ac5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-27bitbake: user-manual-bitbakecommand: Update help text output with that from ↵Richard Purdie
bitbake master (Bitbake rev: bd1da5001c03cba17a4c61cfb854ab394c50e732) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-27bitbake: user-manual-fetching: Editing pass over the manual chapterRichard Purdie
(Bitbake rev: b0fc79e6405b7070a42cfda035e87edc832f8334) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-27bitbake: user-manual-fetching: Change varname/emphasis tags to filenameRichard Purdie
(Bitbake rev: 3b04c18212f3f0c22a1167dc6f62210e54ed2002) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-27bitbake: user-manual-fetching: Change screen -> literallayoutRichard Purdie
(Bitbake rev: e0474be77c954cac3bb9b403d6c854ff447cc02d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-27bitbake: user-manual-fetching: Change the file whitespaceRichard Purdie
(Bitbake rev: 7e32068d1ab4e1f342f70a8338bb8a51fc783da9) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-27bitbake: user-manual-metadata: Clean up task documentationRichard Purdie
(Bitbake rev: 55158ce6c5435544a62a60c0055724619bafde27) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>