]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
11 years agowget: Drop usage of old style *COMMAND variables
Richard Purdie [Fri, 28 Feb 2014 17:56:04 +0000 (17:56 +0000)] 
wget: Drop usage of old style *COMMAND variables

These variables were dropped from OE-Core some time ago, drop their
usage from the fetcher as well.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch/svk: Drop usage of old style *COMMAND variable and MKTEMPDIRCMD
Richard Purdie [Fri, 28 Feb 2014 17:24:24 +0000 (17:24 +0000)] 
fetch/svk: Drop usage of old style *COMMAND variable and MKTEMPDIRCMD

Clean up some horrible old code and drop usage of the old style *COMMAND
variable and MKTEMPDIRCMD whilst in here. This means we don't need to touch
OVERRIDES either.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch/perforce: Drop usage of old style *COMMAND variable and MKTEMPDIRCMD
Richard Purdie [Fri, 28 Feb 2014 17:23:45 +0000 (17:23 +0000)] 
fetch/perforce: Drop usage of old style *COMMAND variable and MKTEMPDIRCMD

Clean up some horrible old code and drop usage of the old style *COMMAND
variable and MKTEMPDIRCMD whilst in here. This means we don't need to touch
OVERRIDES either.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch/git: Separate out an ls-remote function
Richard Purdie [Fri, 28 Feb 2014 17:22:54 +0000 (17:22 +0000)] 
fetch/git: Separate out an ls-remote function

There is other code which can want to run ls-remote style commands with
different parameters so split out the function.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotests: add test for gitsm fetcher
Paul Eggleton [Mon, 24 Feb 2014 18:50:05 +0000 (18:50 +0000)] 
tests: add test for gitsm fetcher

Use a newly created "git-submodule-test" repo on git.yoctoproject.org
which currently contains one submodule (the bitbake repository).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotests: add missing import
Paul Eggleton [Mon, 24 Feb 2014 18:50:04 +0000 (18:50 +0000)] 
tests: add missing import

This was found when trying to run the data tests individually.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake-selftest: enable specifying tests to run on command line
Paul Eggleton [Mon, 24 Feb 2014 18:50:03 +0000 (18:50 +0000)] 
bitbake-selftest: enable specifying tests to run on command line

If you are just trying to fix one test at a time, it can be useful to be
able to specify an individual test(s) rather than running them all:

 bitbake-selftest bb.tests.codeparser bb.tests.cow

You can even specify the test class or function to run, e.g.:

 bitbake-selftest bb.tests.fetch.URITest
 bitbake-selftest bb.tests.fetch.FetcherNetworkTest.test_fetch

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch2: fix fetching git submodules with git 1.7.9.x or older
Paul Eggleton [Mon, 24 Feb 2014 18:50:02 +0000 (18:50 +0000)] 
fetch2: fix fetching git submodules with git 1.7.9.x or older

Git versions older than 1.7.10 put absolute paths in configuration files
for the submodule repositories, leading to errors when the repository
checkout is moved. We move the repository as a matter of course in the
gitsm fetcher; the failure occurs in do_unpack). Change the absolute
paths to be relative during processing to fix this.

(At the time of writing, Ubuntu 12.04.4 LTS ships Git version 1.7.9.5,
hence the desire to fix this rather than just mandating a newer Git
version.)

Fixes [YOCTO #5525].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agohob: append bbfiles to bblayers.conf instead of local.conf
Cristiana Voicu [Tue, 25 Feb 2014 13:30:12 +0000 (15:30 +0200)] 
hob: append bbfiles to bblayers.conf instead of local.conf

[YOCTO #5118]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agohob: remove the code that adds hob layer to bblayers
Cristiana Voicu [Tue, 25 Feb 2014 13:30:11 +0000 (15:30 +0200)] 
hob: remove the code that adds hob layer to bblayers

[YOCTO #5118]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agohob: create a base hob image used to create custom images
Cristiana Voicu [Tue, 25 Feb 2014 13:30:10 +0000 (15:30 +0200)] 
hob: create a base hob image used to create custom images

In order to remove hob-image.bb from meta-hob, a hob-image.bb should
be created somewhere in the build directory. I've saved it in build/recipes/images
directory, and moved the templates to recipes/images/custom (here are those
templates saved by the user).
The image is created when hob starts. Also it appends to BBFILES the directory
where it is created.

Removed images directory from meta-hob.

[YOCTO #5118]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobuild: filter out expanded empty strings for lockfiles flag
Stefan Stanacar [Thu, 27 Feb 2014 15:42:07 +0000 (17:42 +0200)] 
build: filter out expanded empty strings for lockfiles flag

If we have something similar to:

    LOCKFILES = "${TMPDIR}/my.lock"
    LOCKFILES_qemuall = ""

    do_task[lockfiles] += "${LOCKFILES}"

when expanded, lockfiles will be empty for qemu, resulting in

     File "/home/stefans/yocto/poky/bitbake/lib/bb/utils.py", line 630, in mkdirhier
raise e
    OSError: [Errno 2] No such file or directory: ''

This should filter out the empty expansions.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agohob: replace the use of hob-toolchain with populate_sdk task
Cristiana Voicu [Tue, 25 Feb 2014 07:15:31 +0000 (09:15 +0200)] 
hob: replace the use of hob-toolchain with populate_sdk task

Now bitbake has an API to run individual task for targets.
Hob can use this to build the sdk, instead of using the hob-
toolchain.

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch2: Fix mirror repo tarball creation
Richard Purdie [Mon, 24 Feb 2014 12:57:38 +0000 (12:57 +0000)] 
fetch2: Fix mirror repo tarball creation

A typo was meaning that the mirror creation method wasn't being called
when it should have been. Fix the type to fix mirror tarball creation.

[YOCTO #5284]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorunqueue: Catch ValueError from pickle.loads
Martin Jansa [Sun, 23 Feb 2014 10:02:18 +0000 (11:02 +0100)] 
runqueue: Catch ValueError from pickle.loads

* exception like this keeps spinning quite quickly generating GBs of logs
  better to kill it asap and show invalid pickle

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoast: Fix support for anonymous methods in wildcard .bbappend files
Jacob Kroon [Sat, 22 Feb 2014 16:52:29 +0000 (17:52 +0100)] 
ast: Fix support for anonymous methods in wildcard .bbappend files

When using wildcard .bbappend files with anonymous methods in them,
bitbake/python fails to parse the generated code since the '%' is encoded
in the generated method name.

Fix this by including '%' in the convert-to-underscore list during
method name mangling.

While we're at it, move the method name mangling translation table
to a class variable, as suggested by Chris Larson.

[YOCTO #5864]

Signed-off-by: Jacob Kroon <jacob.kroon@mikrodidakt.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotoaster: implement package summary page
David Reyna [Fri, 7 Feb 2014 05:21:58 +0000 (21:21 -0800)] 
toaster: implement package summary page

Implement the updated design for the package summay page, with pop-up
boxes for the layer commit ids, column filtering, and column sorting
support.

[YOCTO #4318]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
11 years agotoaster: implement recipe summary page
David Reyna [Fri, 7 Feb 2014 05:06:27 +0000 (21:06 -0800)] 
toaster: implement recipe summary page

Implement the updated design for the recipe summay page, with pop-up
boxes for the dependecies and layer commit ids, column filtering, and
column sorting support.

[YOCTO #4294]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
11 years agotoaster: Make popovers mutually exclusive
Belen Barros Pena [Thu, 6 Feb 2014 00:24:58 +0000 (00:24 +0000)] 
toaster: Make popovers mutually exclusive

Table popovers should be mutually exclusive (only one
of them should be open at any given time), and should
close when you click outside their area. But this is not
the default popover behaviour in Bootstrap, so some
additional javascript is needed.

The code in main.js taking care of this in the design
prototype was quite ugly and didn't get on well with
certain browsers. I have replaced it with a better
solution (although still not ideal).

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: Make popovers scrollable
Belen Barros Pena [Thu, 6 Feb 2014 00:20:41 +0000 (00:20 +0000)] 
toaster: Make popovers scrollable

Some recipes and packages have a lot of dependencies.
To stop their popovers from taking over the full
height of the screen, I have given them a maximum
height and made their content scrollable in
default.css

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
11 years agotoaster: Make all targets links to the build dashboard
Belen Barros Pena [Wed, 5 Feb 2014 18:22:34 +0000 (18:22 +0000)] 
toaster: Make all targets links to the build dashboard

Change the build.html template to remove the conditional check
that added links to the build dashboard only to those targets
that are image recipes.

All targets should be links to their corresponding build
dashboard.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
11 years agotoaster: Select a radio button by default in Filter Dialog
Ravi Chintakunta [Thu, 6 Feb 2014 03:54:46 +0000 (22:54 -0500)] 
toaster: Select a radio button by default in Filter Dialog

If none of the filter options in the filter dialog are active,
then select the first radio button.

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
11 years agotoaster: Fix for task_color tag
Belen Barros Pena [Fri, 31 Jan 2014 07:08:40 +0000 (07:08 +0000)] 
toaster: Fix for task_color tag

This patch changes the task_color tag in
projecttags.py to make sure it adds the error
class to the rows corresponding to failed tasks
in the tasks table.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
11 years agotoaster: Apply error style to cell links
Belen Barros Pena [Fri, 31 Jan 2014 07:02:32 +0000 (07:02 +0000)] 
toaster: Apply error style to cell links

This patch changes default.css so that any anchor
tag inside a table cell with the error class applied
inherits the class styles. This ensures that the
failed tasks listed in the builds table look red
like the failed tasks in the tasks table.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
11 years agotoaster: Make "Edit columns" multiselect
Belen Barros [Tue, 4 Feb 2014 15:23:10 +0000 (15:23 +0000)] 
toaster: Make "Edit columns" multiselect

Twitter Boostrap elements with the dropdown-menu class
close by default once a selection is performed. Such
behaviour is not appropriate for our "Edit columns" menu,
since users might want to check / uncheck several
columns.

This patch adds a call to the stopPropagation() jQuery
function to main.js to stop the "Edit columns" menu
from closing every time you change a checkbox.

Signed-off-by: Belen Barros <belen.barros.pena@intel.com>
11 years agotoaster: fix javascript for table filters
Alexandru DAMIAN [Tue, 4 Feb 2014 17:38:17 +0000 (17:38 +0000)] 
toaster: fix javascript for table filters

This patch adds javascript link for resetting page filters
in the tool tip "Show all" button.

Also fixes a JS bug for when the cookie is not set yet.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: Add clear filter button to filter tooltips
Belen Barros [Mon, 3 Feb 2014 15:35:47 +0000 (15:35 +0000)] 
toaster: Add clear filter button to filter tooltips

This patch modifies the basetable_top.html template to add
the 'Show all' button to the applied filter tooltip. It also
adds a delay in the tooltip dismissal in main.js to allow
users to click the button comfortably.

The patch does not add the functionality to the button (when
you click on it nothing happens). Someone else will need
to add that in.

Signed-off-by: Belen Barros <belen.barros.pena@intel.com>
11 years agotoaster: Clean up main.js
Belen Barros [Mon, 27 Jan 2014 14:05:54 +0000 (14:05 +0000)] 
toaster: Clean up main.js

Clean up main.js to leave only what is being
used in the design prototype.

Initialise the Bootstrap tooltips for any anchor tag inside
a table heading with the btn-primary class applied. This
effectively styles the title attribute of the applied
filters to look like all other Toaster tooltips.

Signed-off-by: Belen Barros <belen.barros.pena@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: Clean up default.css
Belen Barros [Mon, 3 Feb 2014 11:27:02 +0000 (11:27 +0000)] 
toaster: Clean up default.css

Getting rid of all unused css declarations, grouping
and annotating to make the file more readable.

Signed-off-by: Belen Barros <belen.barros.pena@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: Implementation of package detail views
Dave Lerner [Thu, 23 Jan 2014 17:47:41 +0000 (11:47 -0600)] 
toaster: Implementation of package detail views

Adds new package detail views.  The views are based on
specifications found in attachments to:
    https://bugzilla.yoctoproject.org/show_bug.cgi?id=4328
specifically:
    design-1.5.1-package-details.pdf, and
    design-1.1.1-included-package-details.

This patch includes a redefinition of constant numbers for
task dependency tasks. This is needed in order to achieve
sorting criteria from the design.

This change invalidates currently dependency information for
currently existing builds, as it breaks compatibility.

[YOCTO #4328]

Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: Added sorting to other columns in All tasks table
Ravi Chintakunta [Sat, 25 Jan 2014 23:27:35 +0000 (18:27 -0500)] 
toaster: Added sorting to other columns in All tasks table

Added sorting to recipe, time, cpu, disk i/o and log columns of
all tasks table

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: Fix builds view filter options to match changes in filter dialog
Ravi Chintakunta [Wed, 22 Jan 2014 02:43:33 +0000 (21:43 -0500)] 
toaster: Fix builds view filter options to match changes in filter dialog

Filter dialog uses an array of tuples for filter options.Fixed the builds view
by changing the filter options from a dictionary to a list of tuples.

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
11 years agotoaster: Filter Dialog fix to display filter options as radio buttons
Ravi Chintakunta [Fri, 17 Jan 2014 21:27:29 +0000 (16:27 -0500)] 
toaster: Filter Dialog fix to display filter options as radio buttons

- Filter options are displayed as radio buttons in the filter dialog.
- To preserve the order of the filter options, the options are passed
as tuples inside a list, instead of key/value pairs of a dictionary. Changed
the filter dialog code to use the tuple

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
11 years agotoaster: Removed unused 'disabled' css class in Filter dialog
Ravi Chintakunta [Sat, 25 Jan 2014 23:52:53 +0000 (18:52 -0500)] 
toaster: Removed unused 'disabled' css class in Filter dialog

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
11 years agobuild: fix handling of task override for tasks with underscores in their names
Paul Eggleton [Mon, 17 Feb 2014 14:07:41 +0000 (14:07 +0000)] 
build: fix handling of task override for tasks with underscores in 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.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoparse: make vars_from_file return None for non-recipes
Paul Eggleton [Mon, 17 Feb 2014 14:07:40 +0000 (14:07 +0000)] 
parse: make vars_from_file return None for non-recipes

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).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorunqueue: Fix silly variable overlap
Richard Purdie [Sat, 15 Feb 2014 13:49:38 +0000 (13:49 +0000)] 
runqueue: Fix silly variable overlap

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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorunqueue: Ensure we do run 'masked' setscene tasks if specified as targets
Richard Purdie [Thu, 13 Feb 2014 15:01:25 +0000 (15:01 +0000)] 
runqueue: Ensure we do run 'masked' setscene tasks if specified as 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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata.xml: Edits to the "Sharing Functionality" section.
Scott Rifenbark [Tue, 4 Feb 2014 19:36:11 +0000 (13:36 -0600)] 
user-manual-metadata.xml: Edits to the "Sharing Functionality" section.

Applied some review edits from Paul to the section.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-metadata.xml: Edits to "Conditional Syntax (Overrides)"
Scott Rifenbark [Mon, 3 Feb 2014 22:55:51 +0000 (16:55 -0600)] 
user-manual-metadata.xml: Edits to "Conditional Syntax (Overrides)"

Re-wrote this section to use clearer more described examples.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-metadata.xml: Edits to "Defining Pure Python Functions"
Scott Rifenbark [Mon, 3 Feb 2014 18:07:43 +0000 (12:07 -0600)] 
user-manual-metadata.xml: Edits to "Defining Pure Python Functions"

Made a review edit here to the section per Paul Eggleton.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-metadata.xml: Edits through syntax section
Scott Rifenbark [Mon, 3 Feb 2014 17:51:04 +0000 (11:51 -0600)] 
user-manual-metadata.xml: Edits through syntax section

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.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-intro.xml: General edits to Introduction chapter.
Scott Rifenbark [Mon, 3 Feb 2014 13:29:54 +0000 (07:29 -0600)] 
user-manual-intro.xml: General edits to Introduction chapter.

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.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-metadata.xml: Added "Checksums (Signatures)" section.
Scott Rifenbark [Wed, 29 Jan 2014 18:06:15 +0000 (12:06 -0600)] 
user-manual-metadata.xml: Added "Checksums (Signatures)" section.

Added this section to the end of the Metadata chapter.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-ref-variables.xml: Review edits to several variables in glossary.
Scott Rifenbark [Mon, 27 Jan 2014 15:01:21 +0000 (09:01 -0600)] 
user-manual-ref-variables.xml: Review edits to several variables in glossary.

ASSUME_PROVIDED
BBCLASSEXTEND
SRC_URI
PACKAGES_DYNAMIC
BB_NUMBER_THREADS
BB_DANGLINGAPPENDS_WARNONLY

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-ref-variables.xml: Added 11 new variables to glossary.
Scott Rifenbark [Fri, 24 Jan 2014 21:44:24 +0000 (15:44 -0600)] 
user-manual-ref-variables.xml: Added 11 new variables to glossary.

SRCREV_FORMAT
BUILDNAME
BB_ENV_WHITELIST
BB_PRESERVE_ENV
BB_ENV_EXTRAWHITE
BB_ORIGENV
BB_TASKHASH
BITBAKE_UI
BBDUBUG
BB_DEFAULT_TASK
BBINCLUDED

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-ref-variables.xml: Edits to FILESPATH.
Scott Rifenbark [Fri, 24 Jan 2014 21:10:13 +0000 (15:10 -0600)] 
user-manual-ref-variables.xml: Edits to FILESPATH.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-ref-variables.xml: Added 6 new variables to glossary:
Scott Rifenbark [Fri, 24 Jan 2014 15:50:29 +0000 (09:50 -0600)] 
user-manual-ref-variables.xml: Added 6 new variables to glossary:

MULTI_PROVIDER_WHITELIST
CACHE
PERSISTENT_DIR
FETCHCMD
FILE
FILESDIR

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-ref-variables.xml: Edits to PREFERRED_PROVIDER.
Scott Rifenbark [Fri, 24 Jan 2014 15:01:36 +0000 (09:01 -0600)] 
user-manual-ref-variables.xml: Edits to PREFERRED_PROVIDER.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-ref-variables.xml: Added PREFERRED_PROVIDERS to glossary.
Scott Rifenbark [Fri, 24 Jan 2014 14:59:25 +0000 (08:59 -0600)] 
user-manual-ref-variables.xml: Added PREFERRED_PROVIDERS to glossary.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-ref-variables.xml: Added FAKEROOT* variables to glossary.
Scott Rifenbark [Fri, 24 Jan 2014 13:36:15 +0000 (07:36 -0600)] 
user-manual-ref-variables.xml: Added FAKEROOT* variables to glossary.

FAKEROOT
FAKEROOTCMD
FAKEROOTBASEENV
FAKEROOTDIRS
FAKEROOTENV
FAKEROOTNOENV

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-ref-variables.xml: Added BB* variables to glossary.
Scott Rifenbark [Thu, 23 Jan 2014 15:59:53 +0000 (09:59 -0600)] 
user-manual-ref-variables.xml: Added BB* variables to glossary.

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

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agorunqueue: Fix setscene hard dependency problems
Richard Purdie [Mon, 10 Feb 2014 22:50:28 +0000 (22:50 +0000)] 
runqueue: Fix setscene hard dependency problems

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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: build.py: create separate function for shell trap creation code
Laurentiu Palcu [Mon, 3 Feb 2014 11:33:07 +0000 (13:33 +0200)] 
bitbake: build.py: create separate function for shell trap creation 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.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodata: Account for pre/postfunc functions when calculating dependencies
Richard Purdie [Mon, 3 Feb 2014 16:09:32 +0000 (16:09 +0000)] 
data: Account for pre/postfunc functions when calculating dependencies

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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorunqueue: Fix race against tasks sharing stamp files
Richard Purdie [Fri, 31 Jan 2014 11:17:34 +0000 (11:17 +0000)] 
runqueue: Fix race against tasks sharing stamp files

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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual: Fix issue with previous revert
Richard Purdie [Tue, 28 Jan 2014 15:29:26 +0000 (15:29 +0000)] 
user-manual: Fix issue with previous revert

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoRevert "usermanual: Updated CC License to version 3.0"
Richard Purdie [Tue, 28 Jan 2014 14:26:08 +0000 (14:26 +0000)] 
Revert "usermanual: Updated CC License to version 3.0"

This reverts commit 0546bc19557de9263b448ceb1707884543d2de56.

This change was not discussed with the copyright holders so the license
needs to remain at version 2.5.

11 years agosiggen.py: fix the SignatureGenerator()
Robert Yang [Mon, 20 Jan 2014 11:44:53 +0000 (19:44 +0800)] 
siggen.py: fix the SignatureGenerator()

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]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorunqueue: Simplify pointless len() usage
Richard Purdie [Mon, 27 Jan 2014 21:47:27 +0000 (21:47 +0000)] 
runqueue: Simplify pointless len() usage

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agohob: No need for enable_proxy and same_proxy in conf file
Irina Patru [Thu, 23 Jan 2014 09:49:43 +0000 (11:49 +0200)] 
hob: No need for enable_proxy and same_proxy in conf file

Hob doesn't read these variable from file and bitbake doesn't use them,
so they shouldn't be set in conf file.

Signed-off-by: Irina Patru <irina.patru@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agohob: Don't always save proxy values in conf file
Irina Patru [Thu, 23 Jan 2014 09:49:42 +0000 (11:49 +0200)] 
hob: Don't always save proxy values in conf file

If enable_proxy is not activated, Hob should not save the proxy values
in the conf file when user hits save button.

[ HOB #5308 ]

Signed-off-by: Irina Patru <irina.patru@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agohob: don't display interruptions as fails
Irina Patru [Tue, 21 Jan 2014 15:59:38 +0000 (17:59 +0200)] 
hob: don't display interruptions as fails

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]

Signed-off-by: Irina Patru <irina.patru@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agohob: unsetting busy cursor after hitting Stop button
Irina Patru [Tue, 21 Jan 2014 15:59:37 +0000 (17:59 +0200)] 
hob: unsetting busy cursor after hitting Stop button

The busy cursor would never change after pressing Stop button.
It should be set after the possible return inside machine_combo_changed_cb()
method.

Signed-off-by: Irina Patru <irina.patru@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: hob: check if parser has attribute 'shutdown'
Irina Patru [Tue, 21 Jan 2014 15:59:36 +0000 (17:59 +0200)] 
bitbake: hob: check if parser has attribute 'shutdown'

It must be checked first if parser has the attribute 'shutdown' when
user hits Stop button and the forceshutdown state is given.

[HOB #5579]

Signed-off-by: Irina Patru <irina.patru@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agohob: change error_msg for CommandFailed event
Irina Patru [Tue, 21 Jan 2014 15:59:35 +0000 (17:59 +0200)] 
hob: change error_msg for CommandFailed event

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.

Signed-off-by: Irina Patru <irina.patru@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocooker: Add option of specifying indvidual tasks for targets
Richard Purdie [Mon, 27 Jan 2014 14:37:04 +0000 (14:37 +0000)] 
cooker: Add option of specifying indvidual tasks for targets

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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-ref-variables.xml: Added 10 new variables to the glossary.
Scott Rifenbark [Wed, 22 Jan 2014 14:25:28 +0000 (08:25 -0600)] 
user-manual-ref-variables.xml: Added 10 new variables to the glossary.

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

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-ref-variables.xml: Fixed references to "Build Directory".
Scott Rifenbark [Tue, 21 Jan 2014 23:25:41 +0000 (17:25 -0600)] 
user-manual-ref-variables.xml: Fixed references to "Build Directory".

I made sure that these are lower-cased.  Also, removed the tags
for cross-referencing into the term section of the YP Development
Manual.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-ref-variables.xml: Editing pass.
Scott Rifenbark [Tue, 21 Jan 2014 23:20:55 +0000 (17:20 -0600)] 
user-manual-ref-variables.xml: Editing pass.

Corrected grammar and applied active voice where possible.
Also removed several cross-reference tags to the YP manual set.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agotemplate/titlepage.templates.xml: Suppress Title Text.
Scott Rifenbark [Mon, 20 Jan 2014 23:47:02 +0000 (17:47 -0600)] 
template/titlepage.templates.xml: Suppress Title Text.

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.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-customization.xsl: Updated param list to pass
Scott Rifenbark [Mon, 20 Jan 2014 22:35:25 +0000 (16:35 -0600)] 
user-manual-customization.xsl: Updated param list to pass

I added five parameters here to match the build process used
for the YP manual set.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-metadata.xml: Renamed section tag
Scott Rifenbark [Mon, 20 Jan 2014 21:13:18 +0000 (15:13 -0600)] 
user-manual-metadata.xml: Renamed section tag

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".

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-ref-variavbles.xml: Added new glossary chapter.
Scott Rifenbark [Mon, 20 Jan 2014 19:09:43 +0000 (13:09 -0600)] 
user-manual-ref-variavbles.xml: Added new glossary chapter.

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.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-bitbakecommand: Various edits/cleanups
Richard Purdie [Sat, 18 Jan 2014 16:25:25 +0000 (16:25 +0000)] 
user-manual-bitbakecommand: Various edits/cleanups

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-bitbakecommand: Standardise on section tags, not example
Richard Purdie [Sat, 18 Jan 2014 16:22:01 +0000 (16:22 +0000)] 
user-manual-bitbakecommand: Standardise on section tags, not example

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-bitbakecommand: Replace screen tags with literallayout
Richard Purdie [Sat, 18 Jan 2014 16:14:52 +0000 (16:14 +0000)] 
user-manual-bitbakecommand: Replace screen tags with literallayout

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-bitbakecommand: Reform whitespace
Richard Purdie [Sat, 18 Jan 2014 16:05:00 +0000 (16:05 +0000)] 
user-manual-bitbakecommand: Reform whitespace

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-bitbakecommand: Update help text output with that from bitbake master
Richard Purdie [Sat, 18 Jan 2014 15:33:30 +0000 (15:33 +0000)] 
user-manual-bitbakecommand: Update help text output with that from bitbake master

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-fetching: Editing pass over the manual chapter
Richard Purdie [Sat, 18 Jan 2014 15:24:18 +0000 (15:24 +0000)] 
user-manual-fetching: Editing pass over the manual chapter

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-fetching: Change varname/emphasis tags to filename
Richard Purdie [Sat, 18 Jan 2014 15:21:33 +0000 (15:21 +0000)] 
user-manual-fetching: Change varname/emphasis tags to filename

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-fetching: Change screen -> literallayout
Richard Purdie [Sat, 18 Jan 2014 15:13:13 +0000 (15:13 +0000)] 
user-manual-fetching: Change screen -> literallayout

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-fetching: Change the file whitespace
Richard Purdie [Sat, 18 Jan 2014 15:07:32 +0000 (15:07 +0000)] 
user-manual-fetching: Change the file whitespace

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Clean up task documentation
Richard Purdie [Sat, 18 Jan 2014 14:34:14 +0000 (14:34 +0000)] 
user-manual-metadata: Clean up task documentation

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Clean up task flag section
Richard Purdie [Sat, 18 Jan 2014 14:33:33 +0000 (14:33 +0000)] 
user-manual-metadata: Clean up task flag section

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Expand parsing process docuemtnation
Richard Purdie [Sat, 18 Jan 2014 14:32:51 +0000 (14:32 +0000)] 
user-manual-metadata: Expand parsing process docuemtnation

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Add section about layers
Richard Purdie [Sat, 18 Jan 2014 14:30:45 +0000 (14:30 +0000)] 
user-manual-metadata: Add section about layers

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Add section about INHERIT
Richard Purdie [Sat, 18 Jan 2014 14:29:16 +0000 (14:29 +0000)] 
user-manual-metadata: Add section about INHERIT

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Add section about running tasks and the environment
Richard Purdie [Sat, 18 Jan 2014 14:27:30 +0000 (14:27 +0000)] 
user-manual-metadata: Add section about running tasks and the environment

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Rework section about shell/python functions
Richard Purdie [Sat, 18 Jan 2014 14:26:07 +0000 (14:26 +0000)] 
user-manual-metadata: Rework section about shell/python functions

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Add section about data store operations
Richard Purdie [Sat, 18 Jan 2014 14:24:13 +0000 (14:24 +0000)] 
user-manual-metadata: Add section about data store operations

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Add lists of common events
Richard Purdie [Sat, 18 Jan 2014 14:22:41 +0000 (14:22 +0000)] 
user-manual-metadata: Add lists of common events

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Editing pass over the manual chapter
Richard Purdie [Sat, 18 Jan 2014 14:02:18 +0000 (14:02 +0000)] 
user-manual-metadata: Editing pass over the manual chapter

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Use filename tags instead of literal and varname tags
Richard Purdie [Sat, 18 Jan 2014 13:20:36 +0000 (13:20 +0000)] 
user-manual-metadata: Use filename tags instead of literal and varname tags

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Replace screen tags with literallayout tags
Richard Purdie [Sat, 18 Jan 2014 13:14:30 +0000 (13:14 +0000)] 
user-manual-metadata: Replace screen tags with literallayout tags

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Update whitespace (no content changes)
Richard Purdie [Sat, 18 Jan 2014 11:34:47 +0000 (11:34 +0000)] 
user-manual-metadata: Update whitespace (no content changes)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Reorder sections to more logical order
Richard Purdie [Fri, 17 Jan 2014 16:35:32 +0000 (16:35 +0000)] 
user-manual-metadata: Reorder sections to more logical order

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Add section ids for most sections
Richard Purdie [Fri, 17 Jan 2014 16:22:42 +0000 (16:22 +0000)] 
user-manual-metadata: Add section ids for most sections

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-hello.xml: Added new chapter for "Hello World Example"
Scott Rifenbark [Tue, 14 Jan 2014 13:27:59 +0000 (07:27 -0600)] 
user-manual-hello.xml: Added new chapter for "Hello World Example"

This file was evidently a "working" file and not included in the
manual at the point Bill left off.  The wmat branch, however, had
a load of commits dedicated to this file.  Rather than attempt to
replay them all one-by-one, I simply copied the file from the
wmat branch and hand-inserted the changes to make it equal to what
was there.  Note also that I re-formatted the file to have the
same formatting standards I use in the YP manuals.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual.xml: Cleanup on the title page.
Scott Rifenbark [Tue, 14 Jan 2014 00:04:41 +0000 (18:04 -0600)] 
user-manual.xml: Cleanup on the title page.

1. Added commented out manual revision history.
2. Cleaned up the author stuff.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>