]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
12 years agobuild.py: create symlink for run.do_xxx scripts
Nicolas Dechesne [Fri, 16 Aug 2013 09:20:59 +0000 (11:20 +0200)] 
build.py: create symlink for run.do_xxx scripts

The 'courtesy' symlink for log.do_xxx are quite useful when debugging, so
with this commit, we now get similar 'courtesy' symlink for run.do_xxx
scripts.

We only create symlink for tasks, not individual functions.

The symlink is create right before the actual runfile is created, indeed
we cannot create the symlink right after running the task since a failure
or execption can happen, in which case the symlink wouldn't be created,
and symlink are particularely useful when the task failed!

Another option would be create the symlink after the runfile is created,
and before the script is executed, but that means we need to duplicate the
code in case of Shell vs Python task.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: changes to image combo box from image configuration page
Cristiana Voicu [Tue, 20 Aug 2013 13:30:22 +0000 (16:30 +0300)] 
hob: changes to image combo box from image configuration page

In some cases when a new machine is selected, the image combo
shows the same option. Fixed this issue, because the image
combo box should be reseted.

Fix the counter for the options in the combobox. This bug
was introduced by the templates functionality. The combo box had some
last changes, and I forgot about this counter.

[YOCTO #4858 & #5000]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopropertydialog.py : Scrollable windows for long tooltips
Andrei Dinu [Wed, 15 May 2013 09:59:26 +0000 (09:59 +0000)] 
propertydialog.py : Scrollable windows for long tooltips

In some cases, the length of the description and the brought
in by field was too big. That led to the size of the property
dialog exceeding Hob's size. For long tooltips we use
scrollable windows now.

[HOB #4321]

Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobuild.py: Provide useful diagnostics when exiting.
Peter Seebach [Wed, 10 Oct 2012 22:11:54 +0000 (17:11 -0500)] 
build.py: Provide useful diagnostics when exiting.

Running scripts with 'set -e' produces silent failures with no
diagnostic. Add an exit handler which produces diagnostics, including
details of what was running if the shell seems to be bash.

Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob/retrieveimagedialog: change labels
Cristiana Voicu [Fri, 16 Aug 2013 08:48:00 +0000 (11:48 +0300)] 
hob/retrieveimagedialog: change labels

Some labels needed to be changed in order to respect the convention.

[YOCTO #4999]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agotaskdata: report close matches with NoProvider errors
Paul Eggleton [Fri, 9 Aug 2013 13:52:05 +0000 (13:52 +0000)] 
taskdata: report close matches with NoProvider errors

Assuming there is no known reason why an item is not provided, show
close matches on the assumption that it might have been a typo or
other mistake.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agorunqueue: report close matches for an invalid task name
Paul Eggleton [Fri, 9 Aug 2013 13:51:22 +0000 (13:51 +0000)] 
runqueue: report close matches for an invalid task name

Help to pick up mistakes such as "bitbake -c cleanstate xyz" (instead
of "bitbake -c cleansstate xyz".)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: Add missing file from previous commit
Richard Purdie [Mon, 12 Aug 2013 09:22:40 +0000 (10:22 +0100)] 
hob: Add missing file from previous commit

This should have been part of 'hob: implement the "retrieve image dialog" +
changes to image combo box' but got lost in the merge process. This adds
the missing file.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agodepexp: fix typo in variable name
Ross Burton [Mon, 5 Aug 2013 15:39:47 +0000 (15:39 +0000)] 
depexp: fix typo in variable name

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agodepexp: insert data instead of append/set, for speed
Ross Burton [Mon, 5 Aug 2013 15:22:11 +0000 (15:22 +0000)] 
depexp: insert data instead of append/set, for speed

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agodepexp: make parse() a member function
Ross Burton [Mon, 5 Aug 2013 15:16:32 +0000 (15:16 +0000)] 
depexp: make parse() a member function

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob/imageconfigurationpage: changes to image combobox
Cristiana Voicu [Thu, 25 Jul 2013 08:25:29 +0000 (08:25 +0000)] 
hob/imageconfigurationpage: changes to image combobox

Place the "Create your own image recipe" field to the
end of the image recipes list.

[YOCTO #4193]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob/imagedetailspage: add tooltip for save image recipe button
Cristiana Voicu [Thu, 25 Jul 2013 08:24:47 +0000 (08:24 +0000)] 
hob/imagedetailspage: add tooltip for save image recipe button

[YOCTO #4193]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: set focus on entry name when the name is not correct
Cristiana Voicu [Tue, 16 Jul 2013 14:17:10 +0000 (14:17 +0000)] 
hob: set focus on entry name when the name is not correct

[YOCTO #4193]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocooker: save packages in IMAGE_INSTALL instead of PACKAGE_INSTALL
Cristiana Voicu [Tue, 16 Jul 2013 13:35:22 +0000 (13:35 +0000)] 
cooker: save packages in IMAGE_INSTALL instead of PACKAGE_INSTALL

Hob retrieves the list of recipes and packages using the IMAGE_INSTALL
variable, so a custom image should be saved using this variable.
Changed how the image is saved in a bb file

[YOCTO #4193]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: implement the "retrieve image dialog" + changes to image combo box
Cristiana Voicu [Tue, 16 Jul 2013 13:33:21 +0000 (13:33 +0000)] 
hob: implement the "retrieve image dialog" + changes to image combo box

Tha changes related to the image combo box are related to the
action done in the retrieveImageDialog. When the user wants to select
a customize image, but then he cancels the action, the combo box is set to
--select a base image--.
If the user selects an image using the new dialog, a new item with its name
is added to the combo box list and then it is activated.

[YOCTO #4193]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: retrieve file name of an image
Cristiana Voicu [Thu, 25 Jul 2013 11:37:51 +0000 (11:37 +0000)] 
hob: retrieve file name of an image

The entire file name (with the path) is needed to know
if the image is located in the "build" directory or it comes
from layers. According to this information, the image is placed
differently in the combobox.

[YOCTO #4193]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: changes to image combo box
Cristiana Voicu [Thu, 25 Jul 2013 07:50:33 +0000 (07:50 +0000)] 
hob: changes to image combo box

Added an item for the custom images.
Added a separator in the combo box.

[YOCTO #4193]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob/bitbake: when an image is saved, it should require an image from layers
Cristiana Voicu [Thu, 25 Jul 2013 07:45:28 +0000 (07:45 +0000)] 
hob/bitbake: when an image is saved, it should require an image from layers

Saving an image that requires another image will cause issues when
the second on is removed. So, we have agreed to "require" only the images
from layers.
The functionality is implemented in bitbake, in order to be more abstract,
and it is used by Hob when an image recipe is saved.

[YOCTO #4193]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: the saved image should be editable
Cristiana Voicu [Tue, 16 Jul 2013 13:25:52 +0000 (13:25 +0000)] 
hob: the saved image should be editable

Also, the image can be saved when the a name is filled.

[YOCTO #4193]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: change the name and description for the saveimagedialog
Cristiana Voicu [Thu, 25 Jul 2013 07:40:49 +0000 (07:40 +0000)] 
hob: change the name and description for the saveimagedialog

The image name and description should be saved for a future
save.

[YOCTO #4193]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob & bitbake: append a value to a variable from hob throught bitbake
Cristiana Voicu [Mon, 29 Jul 2013 11:44:58 +0000 (11:44 +0000)] 
hob & bitbake: append a value to a variable from hob throught bitbake

It was necessary to append ${TOPDIR}/recipes/images to BBFILES.
Implemented the mechanism to append a value to a variable: a command and
the method in cooker.

[YOCTO #4193]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: make changes in order to permit from UI to edit an image after saving it
Cristiana Voicu [Thu, 25 Jul 2013 07:37:34 +0000 (07:37 +0000)] 
hob: make changes in order to permit from UI to edit an image after saving it

Added the image name to the list model, in order to show the image name as
the user named it.

[YOCTO #4193]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob/bitbake: save the description of a custom image
Cristiana Voicu [Mon, 29 Jul 2013 10:02:24 +0000 (10:02 +0000)] 
hob/bitbake: save the description of a custom image

When an new image is saved, the dialog for this action has
a field for the description. Changed how an image is saved, by
appending the DESCRIPTION variable at the end of the .bb file.

[YOCTO #4193]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob/bitbake: create a template (a .bb file) from hob through bitbake
Cristiana Voicu [Mon, 29 Jul 2013 09:55:06 +0000 (09:55 +0000)] 
hob/bitbake: create a template (a .bb file) from hob through bitbake

Modified generateNewImage function from cooker, in order to be used to
save a template in Hob.
Created a command to ensure that some dirs are created. The templates
(recipes) will be saved in {TOPDIR}/recipes/images folder.
Called these methods from Hob.

[YOCTO #4193]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: create save image dialog used to save a template
Cristiana Voicu [Thu, 25 Jul 2013 07:25:38 +0000 (07:25 +0000)] 
hob: create save image dialog used to save a template

Implemented a new dialog used by Hob. This dialog was desinged
in order to permit to save only in a particular directory.
Also, it has a field where the user can type a description
for the image.
Implemented in the handler a method to retrieve the topdir variable,
because the changes will be saved in {topdir}/recipes/images directory.

[YOCTO #4193]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: labelling changes in Hob
Cristiana Voicu [Thu, 25 Jul 2013 07:21:06 +0000 (07:21 +0000)] 
hob: labelling changes in Hob

When the design document for templates in Hob was created, we've noticed
that some labels need to change.

[YOCTO #4193]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob/packageslist: change image size label to estimated image size
Cristiana Voicu [Tue, 30 Jul 2013 12:00:08 +0000 (12:00 +0000)] 
hob/packageslist: change image size label to estimated image size

On the "Edit packages list" page, the image size may be computed before
building. We didn't find another way to give a more accurate size, so
we have agreed to inform the user that this an estimated size.

[YOCTO #4388]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob/advancedsettings: change toolchain labels to sdk labels
Cristiana Voicu [Fri, 2 Aug 2013 14:57:55 +0000 (14:57 +0000)] 
hob/advancedsettings: change toolchain labels to sdk labels

In order to be easier for the user to understand, we have changed the
toolchain labels to sdk.

[YOCTO #3808]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake-worker: import needed signal module
Valentin Popa [Tue, 30 Jul 2013 08:27:28 +0000 (08:27 +0000)] 
bitbake-worker: import needed signal module

bitbake-worker makes use of the signal module
but it doesn't import it. This patch fixes the issue.

[YOCTO #4750]

Signed-off-by: Valentin Popa <valentin.popa@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agofetch2: fix unpack of .xz files
André Draszik [Tue, 30 Jul 2013 12:56:22 +0000 (12:56 +0000)] 
fetch2: fix unpack of .xz files

If a file ends with .xz, it currently gets overwritten during unpack:
The decompress command for .xz files is:
  'xz -dc %s > %s' % (file, efile)
and as efile == file, we end up overwriting file (the source).

Fix this by adding .xz to the list of suffixes that that need to
be removed from a file name for an extract command, leaving the
bare file name. Now, for a given file foo.xz,
file == foo.xz and efile == foo, similar to how .gz .bz2 and .Z
files are treated.

Signed-off-by: André Draszik <andre.draszik@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: runqueue: add warning if invalidating invalid task
Petter Mabäcker [Wed, 24 Jul 2013 10:31:04 +0000 (10:31 +0000)] 
bitbake: runqueue: add warning if invalidating invalid task

Add a warning if 'bitbake -C' is executed with a task that does not
exist.

Fixes [YOCTO #4877]

Signed-off-by: Petter Mabäcker <petter@technux.se>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: sstatemirror is standard also for file://.* regex
Cristiana Voicu [Mon, 22 Jul 2013 10:54:11 +0000 (10:54 +0000)] 
hob: sstatemirror is standard also for file://.* regex

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: changed the split of SSTATE_MIRRORS variable
Cristiana Voicu [Mon, 22 Jul 2013 10:54:10 +0000 (10:54 +0000)] 
hob: changed the split of SSTATE_MIRRORS variable

Until now the split made searching the string "file://", but
this is not ok when SSTATE_VARIABLE has the following form:
SSTATE_MIRRORS ?= "\
     file://.* http://someserver.tld/share/sstate/PATH \n \
     file://.* file:///some/local/dir/sstate/PATH"

In the documentation I've found that \n is the list separator.

[YOCTO #4857]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoproviders.py: print a debug message for dynamic pacakge
Robert Yang [Fri, 19 Jul 2013 03:07:51 +0000 (03:07 +0000)] 
providers.py: print a debug message for dynamic pacakge

We can't know the dynamic pacakge's name exactly, there might be a
problem, for example, when we use:

IMAGE_INSTALL_append += "ncurses-lib12344"

The ncurses-lib12344 matches ncurses' dynamic packages pattern:

PACKAGES_DYNAMIC = "^${PN}-lib.*"

so there is no errors before the rootfs creation though there is no
ncurses-lib12344.

We can warn this, but I think that we'd better not since there are many
dynamic packages, or there would be too many warnings, for example, the
perl and kernel modules, maybe we can print a debug message for it.

[YOCTO #4798]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoHOB:Proper handle of SIGINT
Valentin Popa [Wed, 3 Jul 2013 11:31:44 +0000 (11:31 +0000)] 
HOB:Proper handle of SIGINT

Modal dialogs doesn't run on the main loop so they cannot
catch any signal from the terminal. This patch makes sure
the dialogs are destroyed when a SIGINT is sent to HOB.

[YOCTO #3329]

Signed-off-by: Valentin Popa <valentin.popa@intel.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: save button from settings called a nonexisting method
Cristiana Voicu [Mon, 1 Jul 2013 08:09:52 +0000 (08:09 +0000)] 
hob: save button from settings called a nonexisting method

The method was removed when the process for saving configuration
in Hob was changed. Replace the call with the right function.

[YOCTO #4793]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocookerdata: Improve message if BBPATH is unset and bblayers.conf not found
Richard Purdie [Fri, 28 Jun 2013 09:32:56 +0000 (10:32 +0100)] 
cookerdata: Improve message if BBPATH is unset and bblayers.conf not found

If BBPATH isn't set and bblayers.conf isn't found, improve the message
shown to the user to help their understanding of what the problem might
be.

[YOCTO #3271]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
A

12 years agobitbake: python funcname can not include special character @
Li Wang [Tue, 25 Jun 2013 06:31:14 +0000 (14:31 +0800)] 
bitbake: python funcname can not include special character @

[YOCTO #4772]

When path:file change to python function, it maybe include '@' character.
So, add the special character to change to '_' for avoid error.

Signed-off-by: Li Wang <li.wang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: adding a new comment should be placed on a new line
Cristiana Voicu [Tue, 25 Jun 2013 13:03:25 +0000 (16:03 +0300)] 
bitbake: adding a new comment should be placed on a new line

In this case, the comment is appended to the end of the file.
Some text editors, do not place  a '\n' to the end of the file
after saving it.

[YOCTO #4636]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agodata_smart: Fix bug with overrides and weak default values
Richard Purdie [Fri, 21 Jun 2013 11:31:32 +0000 (11:31 +0000)] 
data_smart: Fix bug with overrides and weak default values

(aka pay the cookie monster for weak defaults)

If you have code like:

MYVAR = "a"
MYVAR_override ??= "b"

then MYVAR will get the value "a" even when override is in OVERRIDES. The
reason is that the value of ??= is set as a flag not a value and the cookie
monster isn't paid.

The fix is to ensure appropriate payment is made for a defaultval varflag
matching the usual setVar case.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agodata_smart: Ensure variable flags are accounted for in config data hash
Richard Purdie [Thu, 20 Jun 2013 20:53:14 +0000 (21:53 +0100)] 
data_smart: Ensure variable flags are accounted for in config data hash

Currently if the flags set against a variable in the base data store
change, it doesn't automatically trigger a reparse when it really
should. For example with the blacklist class setting:

PNBLACKLIST[qemu] = "bar"
PNBLACKLIST[bash] = "foo"

will not trigger a reparse if only one entry is changed and a
blacklisted recipe can still be built.

I did consider using BB_SIGNATURE_EXCLUDE_FLAGS in here however it
doesn't make sense, we want to trigger a reparse when any of the
flags change too (which is different to the sstate signatures which
we wouldn't want to change in those cases).

[YOCTO #4627]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: save variables in conf/ directory
Cristiana Voicu [Thu, 20 Jun 2013 14:21:17 +0000 (17:21 +0300)] 
hob: save variables in conf/ directory

Until now the variables were saved in bitbake configuration,
now they are saved in configuration files, in order to be read by
bitbake-worker. This helps to assure the consistency for the rest
of the variables.

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: replace the init cooker with reset in order to keep the history
Cristiana Voicu [Thu, 20 Jun 2013 14:21:16 +0000 (17:21 +0300)] 
hob: replace the init cooker with reset in order to keep the history

When the cooker initialization is called, the variables history is lost.
It need a reset, in order to load the configuration files.
Also, concatenated the value for INHERIT variable.

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: call the initConfiguration when reparsing
Cristiana Voicu [Thu, 20 Jun 2013 14:21:15 +0000 (17:21 +0300)] 
bitbake: call the initConfiguration when reparsing

As it is implemented now, when parsing the configuration files is
needed, it also needs an initialization.
Also, implemented a function to create an extra configuration files
which can be used as postfile/prefiles when parsing.

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocooker: Ensure configuration matches variable tracking state
Richard Purdie [Thu, 20 Jun 2013 13:07:18 +0000 (13:07 +0000)] 
cooker: Ensure configuration matches variable tracking state

When we reset, the current tracking value may change unexpectedly. This
patch ensures that the default value is preserved over a datastore reset.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobuild.py: Cleanup data store references
Richard Purdie [Thu, 20 Jun 2013 13:00:59 +0000 (13:00 +0000)] 
build.py: Cleanup data store references

Clean up a number of old style accesses to the datastore.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: remove the function for reparse because it does nothing
Cristiana Voicu [Wed, 19 Jun 2013 14:23:28 +0000 (17:23 +0300)] 
bitbake: remove the function for reparse because it does nothing

The command for reparse does nothing, so I have managed to remove it,
because it can be misleading. When a reparse is needed, it can be used
the parse function.

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoCorrect a typo
Peter Kjellerstedt [Thu, 20 Jun 2013 09:35:49 +0000 (11:35 +0200)] 
Correct a typo

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoAllow checksums to be used for files retrieved using SFTP
Peter Kjellerstedt [Thu, 20 Jun 2013 09:35:48 +0000 (11:35 +0200)] 
Allow checksums to be used for files retrieved using SFTP

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: check if imageconfiguration page has the attribute 'warnings_bar'
Cristiana Voicu [Thu, 20 Jun 2013 11:16:01 +0000 (14:16 +0300)] 
hob: check if imageconfiguration page has the attribute 'warnings_bar'

[YOCTO #4571]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake & hob: modify some commands and call them from hob
Cristiana Voicu [Thu, 20 Jun 2013 10:19:42 +0000 (13:19 +0300)] 
bitbake & hob: modify some commands and call them from hob

This patch adds a new command to create an extra configuration
file, in order to create it from Hob.
Also, it calls the enable/disable data tracking when needed.
Modified the prefiles and postfiles variables because the cooker
expects some lists.

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: remove the rest of the old template functionality
Cristiana Voicu [Thu, 20 Jun 2013 10:19:41 +0000 (13:19 +0300)] 
hob: remove the rest of the old template functionality

Until now, some configuration settings was saved in a hob specific
directory. From now on, it will be saved in conf directory through bitbake.

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agofetch2: Enhance error message for BB_NO_NETWORK
Richard Purdie [Wed, 19 Jun 2013 13:06:08 +0000 (14:06 +0100)] 
fetch2: Enhance error message for BB_NO_NETWORK

BB_NO_NETWORK can be set by bitbake internally by the use of
BB_FETCH_PREMIRRORONLY so update the error message to give users a
hint about this.

[YOCTO #3222]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agorunqueue/build: Add recideptask flag
Richard Purdie [Wed, 19 Jun 2013 13:03:39 +0000 (14:03 +0100)] 
runqueue/build: Add recideptask flag

Currently, tasks like fetchall are slightly broken since if a recipe
has specific [depends] which occur after do_fetch and add items not listed
in DEPENDS and RDEPENDS, they are not caught by recrdeptask. We've gone
around in circles on this issue (e.g
http://git.yoctoproject.org/cgit.cgi/poky/commit/bitbake/lib/bb/runqueue.py?id=5fa6036d49ed7befe6ad50ec95c61a50aec48195
) and in many cases the behaviour of recrdepends is correct but tasks like
fetchall need the other behaviour.

To address this we add a recideptask flag which can be used in conjuction
with the recrdeptask flag to specify which task to to the inspection upon.
This means entries like do_rootfs[depends] which have do_fetch tasks are
caught and run.

I'm not 100% happy with needing another flag but I don't see any rational
way to get the correct behaviour in all cases without it.

[YOCTO #4597]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: read BBSERVER environement for remote server
Alexandru DAMIAN [Mon, 17 Jun 2013 11:11:53 +0000 (12:11 +0100)] 
bitbake: read BBSERVER environement for remote server

This change allows bitbake to connect to a remote server
by reading the BBSERVER environment variable and effecting
the config. Basically a shortcut to the command line parameters.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoknotty, bitbake: add option to terminate a remote server
Alexandru DAMIAN [Mon, 17 Jun 2013 11:11:52 +0000 (12:11 +0100)] 
knotty, bitbake: add option to terminate a remote server

I add an option to terminate a remote server gracefully
as not to need a kill command.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoknotty, xmlrpc: add observer-only mode
Alexandru DAMIAN [Mon, 17 Jun 2013 11:11:51 +0000 (12:11 +0100)] 
knotty, xmlrpc: add observer-only mode

I add an observer only mode for the knotty UI and
the XMLRPC server that will allow the UI to register
a callback with a server in order to receive events.

The observer-UI is able to send read-only commands to the
server, and also is able to register as an event handler.

Read-only commands are the commands that do not change
the state of the server and have been marked as such in
the command module.

The observer can switch to a full client if it calls addClient
at any time, and the server has no other client running.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoutils: Fix multiprocessing pool reference
Richard Purdie [Fri, 14 Jun 2013 21:00:29 +0000 (22:00 +0100)] 
utils: Fix multiprocessing pool reference

Interestingly the previous version comparision was broken and we were always using
the compatibility code, masking this bug. Oops.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocompat/server/utils: Jettison pre python 2.7.3 workarounds
Richard Purdie [Fri, 14 Jun 2013 16:22:51 +0000 (16:22 +0000)] 
compat/server/utils: Jettison pre python 2.7.3 workarounds

Now we've moved to require python 2.7.3, we can jettison the compatibility
workarounds/hacks for older python versions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agorunqueue: Improve handling of failing setscene tasks with hard dependencies
Richard Purdie [Fri, 14 Jun 2013 16:03:45 +0000 (16:03 +0000)] 
runqueue: Improve handling of failing setscene tasks with hard dependencies

If a setscene task has a hard dependency on a task like pseudo-native, its
expected that the setscene task will not run unless the dependency is met.

This adds code to ensure that is the case, otherwise a bug would show up
with a usecase like:

bitbake gnome-common
bitbake pseudo-native -c cleansstate
bitbake gnome-common -c clean
bitbake gnome-common

With the double wrapper script environment, we'd not see issues like
this as it would be masked. The problem theoretically affects code like
useradd too as well as anything using a sstate postinstall.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoxmlrpc: removes the event servers controller
Alexandru DAMIAN [Fri, 7 Jun 2013 16:03:06 +0000 (17:03 +0100)] 
xmlrpc: removes the event servers controller

XMLRPC API ran a XMLRPC server at port+2 in order
to provide endpoints to register an event server
in which to dump the events.

This is no longer used, so we remove it.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: Add event mask flag support
Bogdan Marinescu [Fri, 31 May 2013 14:19:14 +0000 (14:19 +0000)] 
bitbake: Add event mask flag support

Add a flag to event handlers which lists the events a given handler wishes to
process. By default event handlers recieve all events but this means
we can stop running code in many cases if we know it doesn't want the event.

This is part of the fix for YOCTO #3812, but implements filtering only
for class event handlers; the other part (events filter for UIs) will be
the subject of a different patch.

Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: Update version to 1.19.1
Richard Purdie [Fri, 7 Jun 2013 17:14:10 +0000 (18:14 +0100)] 
bitbake: Update version to 1.19.1

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: Bump minimum python version to 2.7.3
Richard Purdie [Fri, 7 Jun 2013 17:14:46 +0000 (18:14 +0100)] 
bitbake: Bump minimum python version to 2.7.3

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoprserv: Adapt autostart to bitbake-worker
Richard Purdie [Fri, 7 Jun 2013 17:13:04 +0000 (18:13 +0100)] 
prserv: Adapt autostart to bitbake-worker

With the change to bitbake-worker we need to ensure the workers know
how to contact the PR service, the magic 0 port and singleton is
no longer enough.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agorunqueue: Spawn a separate worker for fakeroot tasks
Richard Purdie [Fri, 7 Jun 2013 17:13:04 +0000 (18:13 +0100)] 
runqueue: Spawn a separate worker for fakeroot tasks

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agorunqueue: Abstract the start and teardown worker functions
Richard Purdie [Fri, 7 Jun 2013 17:12:30 +0000 (18:12 +0100)] 
runqueue: Abstract the start and teardown worker functions

We're going to need a fakeroot/pseudo version of the worker so
abstract the code to start the worker process.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agorunqueue: Move the bitbake-worker execution to a higher level
Richard Purdie [Fri, 7 Jun 2013 17:11:49 +0000 (18:11 +0100)] 
runqueue: Move the bitbake-worker execution to a higher level

The worker was being executed by each execution queue so would get
constructed twice for each build. This is wasteful so move execution
to the main runqueue so we only have to start the worker once.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agorunqueue: Split runqueue to use bitbake-worker
Richard Purdie [Fri, 7 Jun 2013 17:11:09 +0000 (18:11 +0100)] 
runqueue: Split runqueue to use bitbake-worker

This is a pretty fundamental change to the way bitbake operates. It
splits out the task execution part of runqueue into a completely
separately exec'd process called bitbake-worker.

This means that the separate process has to build its own datastore and
that configuration needs to be passed from the cooker over to the
bitbake worker process.

Known issues:

* Hob is broken with this patch since it writes to the configuration
  and that configuration isn't preserved in bitbake-worker.
* We create a worker for setscene, then a new worker for the main task
  execution. This is wasteful but shouldn't be hard to fix.
* We probably send too much data over to bitbake-worker, need to
  see if we can streamline it.

These are issues which will be followed up in subsequent patches.

This patch sets the groundwork for the removal of the double bitbake
execution for psuedo which will be in a follow on patch.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agofetch2: Fix AUTOINC handling
Richard Purdie [Fri, 7 Jun 2013 17:10:36 +0000 (18:10 +0100)] 
fetch2: Fix AUTOINC handling

AUTOINC was meant to appear once at the start of the version string.
The list of names may not be sorted meaning it could get inserted in
the middle. This patch simplifies the code and ensures it appears at
the start.

Include cache version bump to ensure the cache picks up these changes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake-layers: fix for move of data object to cooker
Paul Eggleton [Sun, 9 Jun 2013 10:15:35 +0000 (11:15 +0100)] 
bitbake-layers: fix for move of data object to cooker

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agotinfoil: fix for move of data attribute to cooker
Paul Eggleton [Sun, 9 Jun 2013 10:15:34 +0000 (11:15 +0100)] 
tinfoil: fix for move of data attribute to cooker

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolib/bb/cache.py: invalidate cache when file checksum entry no longer exists
Paul Eggleton [Tue, 4 Jun 2013 08:59:37 +0000 (09:59 +0100)] 
lib/bb/cache.py: invalidate cache when file checksum entry no longer exists

Go through the cached list of file checksums and check if any of the
files no longer exist; if any are missing then invalidate the cached
recipe, which will force it to be reparsed and thus force the list of
files to be collected again. This prevents a warning when moving a file
to a different location that is still picked up by the recipe, e.g.
moving a file from a "files" subdirectory to one named with the recipe
name (${BPN}).

Fixes [YOCTO #4474].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocooker: Split data from configuration
Richard Purdie [Thu, 30 May 2013 12:26:58 +0000 (12:26 +0000)] 
cooker: Split data from configuration

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years ago.gitignore: add vim tag and swp files
Alexandru DAMIAN [Fri, 31 May 2013 10:50:49 +0000 (11:50 +0100)] 
.gitignore: add vim tag and swp files

Modify gitignore as to include popular editor's temporary
files, and lookup tags file.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: Improve remote server handling
Alexandru DAMIAN [Fri, 31 May 2013 11:06:48 +0000 (12:06 +0100)] 
bitbake: Improve remote server handling

Two fixes in bitbake related to running remote servers -
* can now specify correctly the bind port
* the information in print conforms to common server infrastructure

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoxmlrpc: Allow server to remain memory resident
Alexandru DAMIAN [Fri, 31 May 2013 11:06:47 +0000 (12:06 +0100)] 
xmlrpc: Allow server to remain memory resident

This patch enables the XMLRPC server to remain
resident in memory after a task is run, and to accept
a new controlling client. To check the server after
task completion, do

lsof bitbake.lock

in the build directory. Kill the server with kill.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake server: create common server infrastructure
Alexandru DAMIAN [Fri, 31 May 2013 11:06:46 +0000 (12:06 +0100)] 
bitbake server: create common server infrastructure

In an attempt to minimize code duplication, create
clear interfaces, and maximize code reuse through OOP,
bb.server adds base classes for the BitBakeServer,
BitBakeServerConnection and actual server implementations
instructed in particular server types.

These classes document the minimum interfaces that the
derived classes must implement, and provide boilerplate code.

Changes to None, Process and XMLRPC servers as to use
the common server infrastructure.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoAdded distroy signal to information dialogs
Andrei Dinu [Wed, 29 May 2013 08:42:22 +0000 (11:42 +0300)] 
Added distroy signal to information dialogs

Added distroy signal to information dialogs
so that when pressing the close button,
the dialog would close.

[HOB #4568]

Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolib/bb/cache.py: Change debugging note to a debug message
Mark Hatle [Wed, 29 May 2013 04:01:18 +0000 (23:01 -0500)] 
lib/bb/cache.py: Change debugging note to a debug message

Some apparently debugging was left in in a previous commit.  This caused
bitbake to return a list of bbappends when things changed from the cache.

Make this a proper debug message.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoprserv: Unbreak after bb.server changes
Richard Purdie [Thu, 30 May 2013 17:05:14 +0000 (17:05 +0000)] 
prserv: Unbreak after bb.server changes

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocookerdata: Fix tinfoil by adding missinge extra_caches default
Richard Purdie [Thu, 30 May 2013 12:37:12 +0000 (12:37 +0000)] 
cookerdata: Fix tinfoil by adding missinge extra_caches default

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: xmlrpc remote server
Alexandru DAMIAN [Tue, 28 May 2013 16:52:02 +0000 (16:52 +0000)] 
bitbake: xmlrpc remote server

Added code in XMLRPC server that creates a stub local server
for a client-only connection and is able to connect to
a remote server, and receive events from the remote server.

Added the option to start a client with a remote server in
bitbake.

Original code by Bogdan Marinescu <bogdan.a.marinescu@intel.com>

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: xmlrpc transport has identification token
Alexandru DAMIAN [Tue, 28 May 2013 13:55:09 +0000 (13:55 +0000)] 
bitbake: xmlrpc transport has identification token

In order to be able to identify different clients over a
stateless XMLRPC connection, we add a custom header named
Bitbake-token, which identifies each client.

We refactor the rest of the code to use the new transport.

Based on a patch by Bogdan Marinescu <bogdan.a.marinescu@intel.com>

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: move start server code in a separate function
Alexandru DAMIAN [Tue, 28 May 2013 13:32:48 +0000 (13:32 +0000)] 
bitbake: move start server code in a separate function

This is a code sanitization targeted at making further
server-related changes easier (launch a server
separately or creating a mockup-server) to do.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: move extra cache collection out of cooker
Alexandru DAMIAN [Tue, 28 May 2013 12:49:55 +0000 (12:49 +0000)] 
bitbake: move extra cache collection out of cooker

The collection of the extra caching data should not
be performed by the cooker, but supplied to it.
This patch will also streamline the code for launching servers
without a UI attached.

Based on a patch by Bogdan Marinescu <bogdan.a.marinescu@intel.com>

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: retrieve the entire ui module in launcher
Alexandru DAMIAN [Tue, 28 May 2013 12:31:45 +0000 (12:31 +0000)] 
bitbake: retrieve the entire ui module in launcher

Slight change in bitbake as to retrieve the entire UI module
for further processing instead of just the main function.

Based on a patch by Bogdan Marinescu <bogdan.a.marinescu@intel.com>

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agofetch2: Fix missing function call
Richard Purdie [Thu, 30 May 2013 08:50:41 +0000 (09:50 +0100)] 
fetch2: Fix missing function call

Fix the issue:

File: '/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/build-appliance/build/bitbake/lib/bb/fetch2/__init__.py', lineno: 813, function: try_mirror_url
     0809:    except bb.fetch2.BBFetchException as e:
     0810:        if isinstance(e, ChecksumError):
     0811:            logger.warn("Mirror checksum failure for url %s (original url: %s)\nCleaning and trying again." % (newuri, origud.url))
     0812:            logger.warn(str(e))
 *** 0813:            self.rename_bad_checksum(ud, e.checksum)
     0814:        elif isinstance(e, NoChecksumError):
     0815:            raise
     0816:        else:
     0817:            logger.debug(1, "Mirror fetch failure for url %s (original url: %s)" % (newuri, origud.url))
Exception: NameError: global name 'self' is not defined

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoserver/bitbake: Remove launchUI method
Richard Purdie [Tue, 28 May 2013 13:32:53 +0000 (14:32 +0100)] 
server/bitbake: Remove launchUI method

With the removal of the none server type, we can remove the launchUI
method and simplify the code slightly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoserver: Remove none server
Richard Purdie [Tue, 28 May 2013 13:28:30 +0000 (14:28 +0100)] 
server: Remove none server

The process server backend has been serving well as the default for a long
time now and the UI model is much better thought out that it used to be. With
the move to make bitbake a memory resident process, the none server is now
looking rather pointless and complicates the code needlessly. Lets therefore
now remove it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocooker/cookerdata: Fix up event handling for hob
Richard Purdie [Fri, 24 May 2013 12:54:59 +0000 (12:54 +0000)] 
cooker/cookerdata: Fix up event handling for hob

The init function call was clobbering data hob relies on injecting, fix
this so the data injected by hob isn't overwritten.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobuild: Avoid empty promises
Richard Purdie [Fri, 24 May 2013 10:28:38 +0000 (11:28 +0100)] 
build: Avoid empty promises

The "see xxx for further information" is misleading since it is just
the same information. Clarify just to mention the that this is the location
of the logfile without any empty promise.

[YOCTO #4343]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake-layers: fix show-appends and flatten for recent cooker changes
Paul Eggleton [Fri, 24 May 2013 10:12:50 +0000 (11:12 +0100)] 
bitbake-layers: fix show-appends and flatten for recent cooker changes

Fixes the show-appends and flatten subcommands for recent refactoring in
cooker.

[YOCTO #4536]
[YOCTO #4535]

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocooker/cookerdata: Improve configuration object handling
Richard Purdie [Fri, 24 May 2013 09:27:25 +0000 (09:27 +0000)] 
cooker/cookerdata: Improve configuration object handling

Originally it seemed like a good idea to keep the parameters around. Having
seen this in real life use, its incorrect, we should pull all the data we need
into the cooker's configuguration and then use this to build the datastore.

Being able to just build the datastore from the parameters seemed like a good
idea but having a dummy cooker configuration object is now looking like
the better option.

This also fixes failures in hob since the parseFiles command can call
into cooker directly now and reset the configuration prefiles and postfiles
at will, rather than the indirect calls before which were breaking the datastore
(e.g. BBPATH wasn't set).

The cleanup this allows in tinfoil illustrates how this change makes more sense.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agofetch2: Fix missing assignment
Richard Purdie [Thu, 23 May 2013 10:51:04 +0000 (11:51 +0100)] 
fetch2: Fix missing assignment

The assignment to True was missing from the code, well spotted Saul!

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocooker/cookerdata/event: Improve class handlers management
Richard Purdie [Thu, 23 May 2013 09:50:30 +0000 (10:50 +0100)] 
cooker/cookerdata/event: Improve class handlers management

Similarly to the execution context changes, establish better lifetime
management API of the class event handlers.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocooker/cookerdata/utils: Improve context management
Richard Purdie [Thu, 23 May 2013 09:49:57 +0000 (10:49 +0100)] 
cooker/cookerdata/utils: Improve context management

The current execution context management for bitbake is ugly and the
use of a global variable is nasty. Fixing that is hard, however we
can improve things to start to establish an API for accessing
and changing that context.

This patch also adds in an explicit reset of the context when we reparse
the configuration data which starts to improve the lifecycle of the data
in setups like hob.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoevent: Drop Handled/NotHandled status return values
Richard Purdie [Thu, 23 May 2013 09:49:06 +0000 (10:49 +0100)] 
event: Drop Handled/NotHandled status return values

These have long since been deprecated, lets remove them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocooker.py: Remove global scope class event handlers
Richard Purdie [Thu, 23 May 2013 09:48:26 +0000 (10:48 +0100)] 
cooker.py: Remove global scope class event handlers

Its confusing when an event handler in for example a bbclass receives
events for a recipe which doesn't use the class. This is due to the
class event handlers having confusing scope. Worse, the issue is not
deterministic and the events a handler will see depends on the parse
order.

To avoid these issues, remove the class event handler global scope
and only have class handlers recieve events for recipes using the
class.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>