]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
12 years agofetch2: Export upper and lower case environment variables
Darren Hart [Tue, 5 Feb 2013 22:52:44 +0000 (14:52 -0800)] 
fetch2: Export upper and lower case environment variables

Applications are inconsistent in their use of upper and lower case proxy
variables. Curl, for example, specifies NO_PROXY (not no_proxy) in the
man page (changed in 2009 [1]). Avoid proxy issues by ensuring both the
upper and lower case versions of each proxy variable is available in the
environment for the fetcher commands.

Add FTPS_PROXY and ftps_proxy to the list as well.

1. http://curl.haxx.se/mail/tracker-2009-04/0012.html

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocooker/utils: Drop custom 'interactive' variables list and store environment in BB_OR...
Richard Purdie [Tue, 5 Feb 2013 16:02:03 +0000 (16:02 +0000)] 
cooker/utils: Drop custom 'interactive' variables list and store environment in BB_ORIGENV instead

Maintining hardcoded lists of user environmental variables is hacky,
replace these with the savedenv datastore. Allow access to that
through the BB_ORIGENV variable.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocompat/utils: Add copy of python multiprocessing pool for pre 2.7.3 issues
Richard Purdie [Wed, 6 Feb 2013 00:28:08 +0000 (00:28 +0000)] 
compat/utils: Add copy of python multiprocessing pool for pre 2.7.3 issues

python 2.7 shows hangs with issues in its pool implmenetation. Rather than
try and hack around these, add a copy of the working pool implementation
to the compat module from 2.7.3.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: fetch2: Print the complete SRCREV variable name when INVALID
Darren Hart [Tue, 5 Feb 2013 10:31:37 +0000 (02:31 -0800)] 
bitbake: fetch2: Print the complete SRCREV variable name when INVALID

If a particular SRCREV (say for a particular branch) is missing, the
fetcher will currently just report an obtuse error about the "SRCREV"
being invalid. If there is more information is to be had (say from name,
i.e. branch, and pn) then display that as well.

The new error looks something like this:

ERROR: ExpansionError during parsing /home/dvhart/source/poky/meta/recipes-kernel/linux/linux-yocto_3.4.bb: Failure expanding variable do_patch: ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure for URL: 'git://otcgit.jf.intel.com/dvhart/linux-yocto-minnow-3.4.git;protocol=git;nocheckout=1;branch=standard/minnow,meta,emgd-1.14;name=machine,meta,emgd'. Please set SRCREV_emgd_pn-linux-yocto to a valid value

Note the variable listed as invalid is
"SRCREV_emgd_pn-linux-yocto", making it explicit what is wrong.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: bitbake-devel@lists.openembedded.org
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosetup.py: Set the 'url' in setup.py to the OE BitBake page.
Bill Traynor [Thu, 31 Jan 2013 17:01:32 +0000 (12:01 -0500)] 
setup.py: Set the 'url' in setup.py to the OE BitBake page.

Removed the old berlios BitBake project page and inserted
the BitBake page from the OE project:
http://www.openembedded.org/wiki/BitBake

Signed-off-by: Bill Traynor <wmat@alphatroop.com>
12 years agobitbake-layers: print the recipe's depends that crosses a layer boundary
Robert Yang [Fri, 25 Jan 2013 08:35:10 +0000 (16:35 +0800)] 
bitbake-layers: print the recipe's depends that crosses a layer boundary

Figure out the dependency between recipes that crosses a layer boundary

* Introduction:
  - For the .bb file, we need check the following depends:
    > Check the DEPENDS, RDEPENDS and inherits according to the
      cooker_data.
    > The cooker_data doesn't have the info about "require/include xxx",
      so we need check them manually.

  - For the .bbclass, .inc and .conf file, we can't get their file
    depends from the cooker_data, we need check them manually.

* Usage:
  $ bitbake-layer show-cross-depends

  I don't like the name "show-cross-depends", figure-out-cross-depends
  might be better, but most of the commands are "show-xxx" for bitbake-layers.

* Output: (snipped)
/work/poky/meta/recipes-support/libusb/libusb-compat_0.1.4.bb inherits /work/poky/meta-yocto/classes/poky-sanity.bbclass
/work/poky/meta-intel/meta-cedartrail/recipes-cdv-media/images/core-image-cdv-media.bb requires /work/poky/meta/recipes-sato/images/core-image-sato.bb
/work/poky/meta-yocto/recipes-core/tiny-init/tiny-init.bb RDEPENDS /work/poky/meta/recipes-core/busybox/busybox_1.20.2.bb
/work/poky/meta-intel/common/recipes-bsp/amt/lms_7.1.20.bb DEPENDS /work/poky/meta/recipes-devtools/autoconf/autoconf_2.69.bb
/work/poky/meta/classes/distrodata.bbclass includes /work/poky/meta-yocto/conf/distro/include/package_regex.inc
/work/poky/meta-intel/meta-sys940x/conf/machine/sys940x.conf requires /work/poky/meta/conf/machine/include/tune-atom.inc

[YOCTO #3387]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agossh.py: add example SRC_URI
Martin Jansa [Mon, 28 Jan 2013 15:56:42 +0000 (16:56 +0100)] 
ssh.py: add example SRC_URI

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agossh.py: throw ParameterError when someone tries ssh://foo; protocol=git
Martin Jansa [Mon, 28 Jan 2013 15:56:41 +0000 (16:56 +0100)] 
ssh.py: throw ParameterError when someone tries ssh://foo; protocol=git

* taken from SFTP fetcher:
  http://patchwork.openembedded.org/patch/43027/

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agossh: fix fetcher
Martin Jansa [Mon, 28 Jan 2013 15:56:40 +0000 (16:56 +0100)] 
ssh: fix fetcher

* set localpath in urldata_init
  otherwise localpath and basename were None, when fetcher was trying to
  define .lock and .done paths
  basepath = d.expand("${DL_DIR}/%s" % os.path.basename(self.localpath or self.basename))
* remove "host" from localpath
  .done and .lock files are always using just basename, so if someone
  has 2 recipes with:
  SRC_URI = "ssh://foo/file.txt"
  SRC_URI = "ssh://bar/file.txt"
  then there will be only one file.txt.done in downloads anyway (and
  only first file.txt from first server will be returned on do_fetch

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: eliminate the "by recipe" grouping in the packages table
Cristiana Voicu [Thu, 31 Jan 2013 11:50:16 +0000 (13:50 +0200)] 
hob: eliminate the "by recipe" grouping in the packages table

We have agreed to change how we show the packages. Now they are not grouped by
recipe. Until now, it was implemented using  TreeStore and I've changed it to
extend a ListStore. I have modified all the function in according to this.

[YOCTO #2180]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: Use a GtkTreeView to present and configure the sstate mirrors
Cristiana Voicu [Mon, 28 Jan 2013 13:33:39 +0000 (15:33 +0200)] 
hob: Use a GtkTreeView to present and configure the sstate mirrors

After some discussions about the design of the Shared State Settings tab in Hob,
we have decided that using a GtkTreeView to present and configure the sstate
mirrors is probably the best solution.

[YOCTO #3569]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agotinfoil: support other fds, enable color support
Christopher Larson [Sat, 26 Jan 2013 00:56:30 +0000 (17:56 -0700)] 
tinfoil: support other fds, enable color support

Rather than only handling sys.stdout, also support any arbitrary file object,
and enable color for the formatter if that file is a tty.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: small fixes to parsing warnings dialog
Cristiana Voicu [Fri, 25 Jan 2013 15:05:26 +0000 (17:05 +0200)] 
hob: small fixes to parsing warnings dialog

Set the labels selectable; reset the warnings list when another machine is selected;
changed a label name

[YOCTO #3215]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake & hob: implement functions to assure consistency for configuration files
Cristiana Voicu [Fri, 25 Jan 2013 14:10:12 +0000 (16:10 +0200)] 
bitbake & hob: implement functions to assure consistency for configuration files

Added a new command in bitbake to save a variable in a file; added a function
in cooker which is called by this command.

Added new command in bitbake to enable/disable data tracking.

The function saveConfigurationVar from cooker.py saves a variable in the file that
is received by argument. It checks all the operations made on that variable, using the history.
If it's the first time when it does some changes on a variable,it comments the lines where
an operation is made on it, and it sets it in a line to the end of file. If it's not
the first time(it has a comment before), it replaces the line.

Made some changes in hob to save the variables from bblayers.conf and local.conf
using the bitbake command.

[YOCTO #2934]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocache.py: Drop support for BROKEN variable
Richard Purdie [Mon, 28 Jan 2013 14:48:09 +0000 (14:48 +0000)] 
cache.py: Drop support for BROKEN variable

All it now does is function in a similar way to EXCLUDE_FROM_WORLD and
since we have a better named variable for this, lets just drop the
usage of BROKEN at the bitbake level.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobuild.py: Dump out performance data of individual tasks
Richard Purdie [Fri, 10 Jun 2011 16:22:54 +0000 (16:22 +0000)] 
build.py: Dump out performance data of individual tasks

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoutils.py: Add function for processing profile output
Richard Purdie [Mon, 28 Jan 2013 14:40:04 +0000 (14:40 +0000)] 
utils.py: Add function for processing profile output

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake-diffigs: Don't pull in tinfoil unless we really need/plan to use it
Richard Purdie [Fri, 25 Jan 2013 12:54:49 +0000 (12:54 +0000)] 
bitbake-diffigs: Don't pull in tinfoil unless we really need/plan to use it

This means we can run in parallel with other bitbake processed we're not in
task mode.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake-layers: fix get_file_layer
Robert Yang [Fri, 25 Jan 2013 08:35:09 +0000 (16:35 +0800)] 
bitbake-layers: fix get_file_layer

The get_file_layer can't handle the nested layer correctly, e.g.:

meta-intel/conf/layer.conf
meta-intel/meta-cedartrail/conf/layer.conf

They are two layers, the file:
meta-intel/common/recipes-bsp/amt/lms_7.1.20.bb
belongs to meta-intel's layer, but the get_file_layer() may return
meta-cedartrail accordig to BBLAYERS' order, since it uses:

for layerdir in self.bblayers:
    if regex.match(os.path.join(layerdir, 'test')):
        return self.get_layer_name(layerdir)

which doesn't care the filename, re-match the filename would fix the
problem.

[YOCTO #3387]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocache.py: remove the duplicated self.file_depends
Robert Yang [Fri, 25 Jan 2013 08:34:13 +0000 (16:34 +0800)] 
cache.py: remove the duplicated self.file_depends

There are two "self.file_depends =" lines in cache.py::CoreRecipeInfo:

class CoreRecipeInfo(RecipeInfoCommon):
    __slots__ = ()

    cachefile = "bb_cache.dat"

    def __init__(self, filename, metadata):
        self.file_depends = metadata.getVar('__depends', False)
    [snip]
        self.file_depends = metadata.getVar('__depends', False)

They are duplicated, remove the last one.

[YOCTO #3795]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: hob do not use .hob dir for variables from local.conf and bblayers.conf
Cristiana Voicu [Wed, 23 Jan 2013 12:13:44 +0000 (14:13 +0200)] 
hob: hob do not use .hob dir for variables from local.conf and bblayers.conf

If .hob exists, hob takes the variable from there. Change to not override anymore
the variables which comes from bblayers.conf and local.conf

[YOCTO #2934]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoprserv: use only PRSERV_HOST
Constantin Musca [Wed, 23 Jan 2013 14:54:03 +0000 (16:54 +0200)] 
prserv: use only PRSERV_HOST

- remove PRSERV_PORT variable
- use 'hostname:port' as PRSERV_HOST format
- use 'localhost:0' for enabling the local PRServer

[YOCTO #3744]

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocrumbs: Add file lost from previous commit
Richard Purdie [Tue, 22 Jan 2013 15:37:56 +0000 (15:37 +0000)] 
crumbs: Add file lost from previous commit

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: combo box updated correctly
Cristiana Voicu [Tue, 15 Jan 2013 14:50:39 +0000 (16:50 +0200)] 
hob: combo box updated correctly

The 'select a base image' option is no longer displayed once
an image is selected

[YOCTO #3671]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopersist_data: add get_by_pattern method to API
Constantin Musca [Tue, 22 Jan 2013 09:37:57 +0000 (11:37 +0200)] 
persist_data: add get_by_pattern method to API

- one can use get_by_pattern to get a list of values associated
with keys that match the specified pattern

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoparse_py: add ~ to config_regexp
Constantin Musca [Tue, 22 Jan 2013 09:37:27 +0000 (11:37 +0200)] 
parse_py: add ~ to config_regexp

- enable the '~' character in bitbake variables

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: Hob should display warnings generated during parsing
Cristiana Voicu [Mon, 21 Jan 2013 14:40:07 +0000 (16:40 +0200)] 
hob: Hob should display warnings generated during parsing

-now Hob catches the warnings generated during parsing, and after the parsing
is completed, if there are any warnings, it shows a bar that contains a message
with how many warnings has encountered, and a button "View warnings"
-when "View warnings" button is clicked, Hob shows a dialog with the warnings;
if there more than 1 warning, you can use "Previous" and "Next" button to see them

[YOCTO #3215]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: progress bar changed to busy cursor when you open log file
Cristiana Voicu [Mon, 21 Jan 2013 14:50:40 +0000 (16:50 +0200)] 
hob: progress bar changed to busy cursor when you open log file

-the first implementation for this bug used a progress bar, that is shown
during open file process; it revelead that the progress bar stops earlier
-now I have implemented using gtk.show_uri() method, that shows itself a
busy cursor when it opens a file;
-deleted the code for the first implementation

[YOCTO #2997]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoBBHandler/ConfHandler: Merge fix for multiline comments
Richard Purdie [Mon, 21 Jan 2013 11:00:52 +0000 (11:00 +0000)] 
BBHandler/ConfHandler: Merge fix for multiline comments

This was meant to be squashed into the previous commit for multiline comment
handling. It fixes the case the commented multiline is followed by an empty
line which was resulting in a traceback instead of a sane error message.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: BBHandler/ConfHandler: Improve multiline comment handling
Richard Purdie [Fri, 14 Dec 2012 13:53:32 +0000 (13:53 +0000)] 
bitbake: BBHandler/ConfHandler: Improve multiline comment handling

Faced with an expression like:

 # Some comment \
 FOO = "bar"

what should bitbake do? Technically, the \ character means its multiline and
currently the code treats this as a continuation of the comment. This can
surprise some people and is not intuitive.

This patch makes bitbake simply error and asks the user to be clearer
about what they mean.

(Bitbake rev: 589d31ce41e019ee6a7cb6527d67bc76c0b6382a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: Fix GTK+ and PyGtk version check error message to be more clear
Jessica Zhang [Thu, 3 Jan 2013 23:32:05 +0000 (15:32 -0800)] 
hob: Fix GTK+ and PyGtk version check error message to be more clear

Improve the error message the user sees if the versions are incorrect.

[YOCTO #3637]

Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohg.py: Fixed fetch failure that occurs when SRCREV is a tag.
Jon Szymaniak [Mon, 17 Dec 2012 14:22:51 +0000 (09:22 -0500)] 
hg.py: Fixed fetch failure that occurs when SRCREV is a tag.

Removed "-r REV" from hg clone invocation to fetch the entire repo,
rather than just the subset at the specified revision. This will ensure
that the specified tag exists for successive commands (e.g., the update
built on line 149.)

Signed-off-by: Jon Szymaniak <jon.szymaniak@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agofetch2: Sort file checksums by value, not path
Tyler Hall [Wed, 19 Dec 2012 23:26:50 +0000 (18:26 -0500)] 
fetch2: Sort file checksums by value, not path

Changing the path to a file could change the task hash even if the file
still has the same checksum. This occurs when the task depends on
multiple files and the sort order of their paths changes. Usually the
sorting is consistent because layers tend to have the same relative
paths, but this should take care of other configuations.

The problem arose when using a .bbappend to add files to a recipe in
another layer. If the layer is located alongside the other layers and
their parent directory is moved, the hash does not change. However,
moving the .bbappend layer outside of the common directory can change
the path sort order and the task hash.

Signed-off-by: Tyler Hall <tylerwhall@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobase.bbclass: Fix bitbake example class usage
Richard Purdie [Fri, 18 Jan 2013 12:39:28 +0000 (12:39 +0000)] 
base.bbclass: Fix bitbake example class usage

Patch from Andrew Stubbs <ams@codesourcery.com> to fix listtasks and showdata
functions to output data correctly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: data_smart.py and friends: Track variable history
Peter Seebach [Fri, 18 Jan 2013 11:47:34 +0000 (11:47 +0000)] 
bitbake: data_smart.py and friends: Track variable history

This patch adds tracking of the history of variable assignments.
The changes are predominantly localized to data_smart.py and
parse/ast.py. cooker.py and data.py are altered to display the
recorded data, and turn tracking on for the bitbake -e case.
The data.py update_data() function warns DataSmart.finalize()
to report the caller one further back up the tree.

In general, d.setVar() does what it used to do. Optionally,
arguments describing an operation may be appended; if none
are present, the operation is implicitly ignored. If it's
not ignored, it will attempt to infer missing information
(name of variable, value assigned, file and line) by examining
the traceback. This slightly elaborate process eliminates a
category of problems in which the 'var' member of the keyword
arguments dict is set, and a positional argument corresponding
to 'var' is also set. It also makes calling much simpler for
the common cases.

The resulting output gives you a pretty good picture of what
values got set, and how they got set.

RP Modifications:

a) Split from IncludeHistory to separate VariableHistory
b) Add dedicated copy function instead of deepcopy
c) Use COW for variables dict
d) Remove 'value' loginfo value and just use 'details'
e) Desensitise code for calling order (set 'op' before/after
   infer_caller_details was error prone)
f) Fix bug where ?= "" wasn't shown correctly
g) Log more set operations as some variables mysteriously acquired
   values previously
h) Standardise infer_caller_details to be triggered from .record()
   where at all possible to reduce overhead in non-enabled cases
i) Rename variable parameter names to match inference code
j) Add VariableHistory emit() function to match IncludeHistory
k) Fix handling of appendVar, prependVar and matching flag ops
l) Use ignored=True to stop logging further events where appropriate

Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: data_smart.py and friends: Track file inclusions for bitbake -e
Peter Seebach [Fri, 18 Jan 2013 11:45:22 +0000 (11:45 +0000)] 
bitbake: data_smart.py and friends: Track file inclusions for bitbake -e

This code adds inclusion history to bitbake -e output, showing
which files were included, in what order. This doesn't completely
resolve timing questions, because it doesn't show you which lines
of a file were processed before or after a given include, but it
does let you figure out what the path was by which a particular
file ended up in your build at all.

How it works: data_smart acquires a .history member, which is an
IncludeHistory; this represents the inclusion of a file and all its
inclusions, recursively. It provides methods for including files,
for finishing inclusion (done as an __exit__), and for
dumping the whole tree.

The parser is modified to run includes inside a with() to push
and pop the include filename.

RP Modifications:

a) Split Include and Variable tracking
b) Replace deepcopy usage with dedicated copy function
c) Simplify some variable and usage

Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoBBHandler/data: Standardise some setVar access formats
Richard Purdie [Fri, 18 Jan 2013 11:46:30 +0000 (11:46 +0000)] 
BBHandler/data: Standardise some setVar access formats

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohig.py: refactor into individual components
Bogdan Marinescu [Thu, 10 Jan 2013 11:08:02 +0000 (13:08 +0200)] 
hig.py: refactor into individual components

Since hig.py was becoming too large (which impacted maintenance and
operations like git merges) it was split into individual files for
the classes that were implemented in hig.py. hig is now a Python
package (lib/bb/ui/crumbs/hig/). The patch was tested by
building core-image-basic/qemux86 in Hob and accessing the various
UI elements implemented in hig. Note that the patch does not change
the functionality of Hob in any way, it's just a code refactoring
that should make life a bit easier for Hob developers.

[YOCTO #3200]

Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobuild.py: Fix traceback when there are no dependencies
Richard Purdie [Mon, 7 Jan 2013 17:35:39 +0000 (17:35 +0000)] 
build.py: Fix traceback when there are no dependencies

A recipe with no dependencies results in a traceback (e.g. all in
ASSUME_PROVIDED). This shouldn't happen and this patch fixes it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agofetch2: remove localcount and use AUTOINC instead
Constantin Musca [Wed, 5 Dec 2012 08:58:26 +0000 (10:58 +0200)] 
fetch2: remove localcount and use AUTOINC instead

- do not use the BB_URI_LOCALCOUNT database for computing revision
incremental numbers anymore
- sortable_revision now generates "AUTOINC+${latest_rev}"
- use one incrementing value rather than several
- PV becomes 0.1+gitAUTOINC+deadbeefdecafbad_decafbaddeadbeef
- remove all localcount code and simplify the fetcher
- this patch addresses the following proposal:
http://lists.linuxtogo.org/pipermail/bitbake-devel/2012-November/003878.html

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agodata: Ensure emit_func honours vardeps flag
Richard Purdie [Fri, 14 Dec 2012 16:25:52 +0000 (16:25 +0000)] 
data: Ensure emit_func honours vardeps flag

Currently, calling a shell function using exec_func may result in
dependent functions being missing, if the shell parser can't detect
the dependency, even if it was specified with the vardeps flag.

This patch ensures the function looks at the flag and considers it
when deciding which other functions need to be output.

[YOCTO #3561]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: use base image only if it was set
Cristiana Voicu [Fri, 14 Dec 2012 15:35:47 +0000 (17:35 +0200)] 
hob: use base image only if it was set

As it is, when you create a new image from scratch, hob gives an error.
This is because of the patch for #2601.

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob/bitbake: custom image is now using the base image
Cristiana Voicu [Wed, 12 Dec 2012 11:51:51 +0000 (13:51 +0200)] 
hob/bitbake: custom image is now using the base image

Till now, a custom image made in Hob was using only the packages from
the base image. Now it is using everything declared in the base image.
Also next to hob-image.bb, it creates another .bb file which is used
in building process. Those images are ignored by git.

[YOCTO #2601]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoknotty: use bb.error instead of print
Mihai Lindner [Thu, 13 Dec 2012 10:55:25 +0000 (12:55 +0200)] 
knotty: use bb.error instead of print

Change to use bb.error instead of print, or maybe that was desired (?)
Also remove a tab, while in the neighborhood.

Signed-off-by: Mihai Lindner <mihaix.lindner@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agogit.py: A bit of tidying up regarding grammar and supported protocols.
Robert P. J. Day [Thu, 13 Dec 2012 16:06:29 +0000 (11:06 -0500)] 
git.py: A bit of tidying up regarding grammar and supported protocols.

Doc cleanup, no functional change.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake.vim: detect *.bbappend files in ftdetect automatically
Eren Türkay [Wed, 12 Dec 2012 20:35:50 +0000 (22:35 +0200)] 
bitbake.vim: detect *.bbappend files in ftdetect automatically

Currently, *.bb and *.bbclass files are automatically highlighted and
detected as a bitbake file. Since *.bbappend files are also bitbake
files, vim plugin should automatically detect and highlight it as well.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agodata_smart/BBHandler: Fix SkipParse exception handling
Richard Purdie [Fri, 14 Dec 2012 12:33:01 +0000 (12:33 +0000)] 
data_smart/BBHandler: Fix SkipParse exception handling

If SkipParse is raised from something which isn't anonymous python, it wasn't
being handled correctly. This improves the handling for example from within inline
python.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobin/bitbake, bb/__init__: Move BBDEBUG handling to bin/bitbake
Richard Purdie [Fri, 14 Dec 2012 12:30:27 +0000 (12:30 +0000)] 
bin/bitbake, bb/__init__: Move BBDEBUG handling to bin/bitbake

The method this older code was accessing doesn't exist. A library shouldn't
be changing behaviour based on the environment anyway when sepcific function
calls exist to correctly setup the logging. Fix the crash if BBDEBUG was used
by moving the code to bin/bitbake.

[YOCTO #3319]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocommand: Fix getCmdLineAction bugs
Richard Purdie [Fri, 14 Dec 2012 12:27:33 +0000 (12:27 +0000)] 
command: Fix getCmdLineAction bugs

Executing "bitbake" doesn't get a sane message since the None return value
wasn't being handled correctly. Also fix msg -> cmd_action['msg'] as
otherwise an invalid variable is accessed which then crashes the server
due to the previous bug.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocommand: Add missing import traceback
Richard Purdie [Fri, 14 Dec 2012 12:26:19 +0000 (12:26 +0000)] 
command: Add missing import traceback

Without this, if an exception occurs the server will silently crash
with no feedback to the user about why (since traceback isn't imported).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoBBhandler/data: Fix __inherit_cache duplication
Richard Purdie [Tue, 11 Dec 2012 00:02:50 +0000 (00:02 +0000)] 
BBhandler/data: Fix __inherit_cache duplication

The inherits cache contains duplicate entries, some with the full patch, some
just starting classes/xxx. This is a waste of parse time and potentially
error prone. This patch fixes various pieces of code so the absolute paths are
always preferred and work correctly. The inherits_class function did not work
with full paths so the patch fixes this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoBBHandler/ast: Simplify/fix EXPORT_FUNCTIONS usage
Richard Purdie [Tue, 11 Dec 2012 00:01:56 +0000 (00:01 +0000)] 
BBHandler/ast: Simplify/fix EXPORT_FUNCTIONS usage

The current usage of EXPORT_FUNCTIONS is rather problematic since a class
list (classes) is passed into the ast statement and cached as it was
when first parsed. This class list may be different in other cases but
is locked once in the cache.

Worse, the construction of classes can be broken by exceptions during parsing
at the wrong moments since the state of the parser is not always reset
correctly. This can lead to leakage of other classes into the classes list.

The current EXPORT_FUNCTIONS implementation looks at the last two currently
inherited classes and sets up an indirect function call view the second last
class inherited, e.g.:

 do_configure calls gnomebase_do_configure
 gnomebase_do_configure calls autotools_do_configure

This intermediary doesn't seem to serve a useful purpose.

This patch therefore makes builds deterministic and fixes various cache problems
and indirection by removing the intermediaries and simply performing
directly mapping for the cases where its needed.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoRevert "BBHandler: Ensure parser state engine is correctly reset for new parsing"
Richard Purdie [Fri, 7 Dec 2012 18:08:42 +0000 (18:08 +0000)] 
Revert "BBHandler: Ensure parser state engine is correctly reset for new parsing"

This reverts commit 3dc5e896a97154914cee6c47900e3bb2a2627cdb.

12 years agoBBHandler: Ensure parser state engine is correctly reset for new parsing
Richard Purdie [Fri, 7 Dec 2012 13:10:51 +0000 (13:10 +0000)] 
BBHandler: Ensure parser state engine is correctly reset for new parsing

The classes variable in particular could be in an odd state if parsing of a
previous recipe had abruptly ended.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoxmlrpc: Unbreak the transport by adding a missing logfile name
Richard Purdie [Tue, 4 Dec 2012 17:02:37 +0000 (17:02 +0000)] 
xmlrpc: Unbreak the transport by adding a missing logfile name

I appreciate a fixed value is suboptimal but this is better than not
working at all!

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agouievent: Fix an init race
Richard Purdie [Tue, 4 Dec 2012 16:58:08 +0000 (16:58 +0000)] 
uievent: Fix an init race

There is a race where the registerEventHandler() server call may happen in
a different thread to the main UI, causing the main UI to see
httplib.CannotSendRequest exceptions.

This moves the call into the main thread, removing the init race and fixing
errors I was seeing with the xmlrpc backend.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: modified how the existence of a variable is checked
Cristiana Voicu [Mon, 3 Dec 2012 09:01:19 +0000 (11:01 +0200)] 
hob: modified how the existence of a variable is checked

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agodata_smart: Improve get_hash to account for overrides and key expansion
Richard Purdie [Thu, 29 Nov 2012 10:29:06 +0000 (10:29 +0000)] 
data_smart: Improve get_hash to account for overrides and key expansion

An issue was uncovered where changing:

IMAGE_INSTALL_append = "X"

to

IMAGE_INSTALL_append = "X Y"

in local.conf would not get noticed by bitbake. The issue is that
the configuration hash doesn't account for overrides or key expansion.

This patch improves get_hash to account for these. This means the hash
does account for changes like the above.

[YOCTO #3503]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobuild.py: Preserve sigdata files in the stamps directory
Richard Purdie [Wed, 28 Nov 2012 19:39:23 +0000 (19:39 +0000)] 
build.py: Preserve sigdata files in the stamps directory

Leaving the sigdata files around can aid debugging and doesn't harm
anything. This is the easiest way to allow this to happen.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobuild/siggen.py: Avoid removing too many stamps when cleaning
Richard Purdie [Wed, 28 Nov 2012 13:34:33 +0000 (13:34 +0000)] 
build/siggen.py: Avoid removing too many stamps when cleaning

The "*" part of the mask is to ensure we clean both any stamp, and any
setscene varient. It turns out we would also trample other tasks,
e.g. do_package_write could trample do_package_write_rpm. do_package also
tramples do_package_write_* but this is less of an issue since the other
tasks depend on it.

Rather than use the wildcard, we can just use a list instead.

[YOCTO #3484]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: when BBLAYERS_NON_REMOVABLE is not set hob shows an error
Cristiana Voicu [Tue, 27 Nov 2012 14:41:31 +0000 (16:41 +0200)] 
hob: when BBLAYERS_NON_REMOVABLE is not set hob shows an error

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agofetch2/wget: Fix for mixed-up wget commands
Cristian Iorga [Mon, 26 Nov 2012 17:54:22 +0000 (19:54 +0200)] 
fetch2/wget: Fix for mixed-up wget commands

wget commands for check and resume were
mixed-up, leading to the following issues:

1. long running "NOTE: Preparing runqueue"
reason: objects were downloaded, not spidered on the mirror
2. Failing network test in Build Appliance, because wget 1.14
(in use in BA) will fail if a file already exists.
During the network connectivity test, index.php file was
actually downloaded, not spidered (checked for existence on
yoctoproject.org website), leading to wget failure.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agofetch2/local: Fix bug introduced by expression ambiguity
Richard Purdie [Mon, 26 Nov 2012 20:54:30 +0000 (20:54 +0000)] 
fetch2/local: Fix bug introduced by expression ambiguity

The last changes introduced an error in some of the logic. Add brackets
to clarify the meaning of the expression and fix certain build failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: make some layers non removable
Cristiana Voicu [Mon, 26 Nov 2012 07:42:36 +0000 (09:42 +0200)] 
hob: make some layers non removable

- there are some layers which cannot be removed; so ,I have used
a new variable called BBLAYERS_NON_REMOVABLE located in bblayers.conf,
which contains those layers which cannot be deleted
- "meta-hob" layer is added to this variable in hob code, like it's
added to BBLAYERS var

[YOCTO #3176]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoUpdate version to 1.17.0
Richard Purdie [Mon, 26 Nov 2012 09:55:32 +0000 (09:55 +0000)] 
Update version to 1.17.0

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agofetch2: Avoid using FILESDIR in unpack
Richard Purdie [Thu, 22 Nov 2012 21:41:21 +0000 (21:41 +0000)] 
fetch2: Avoid using FILESDIR in unpack

Currently there is code which uses FILESDIR in unpack to ensure
parent directories are created, leading to differing behaviour depending on
which search path is used to locate the directory.

This change standardises the code and takes the data from the fetcher in
question meaning we can standardise the code and deprecate FILESDIR.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agofetch2/local: Improve handling of wildcard matches
Richard Purdie [Thu, 22 Nov 2012 21:40:18 +0000 (21:40 +0000)] 
fetch2/local: Improve handling of wildcard matches

Currently wildcard matches end up working by FILESDIR being defined
in the metadata to a default of "." in FILESPATH which is hacky at best.

This patch adds the behaviour into the fetcher so its at least slightly
more explicit.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoknotty/msg: Avoid usage of curses initscr/endwin to avoid terminal corruption
Richard Purdie [Sun, 25 Nov 2012 21:17:41 +0000 (21:17 +0000)] 
knotty/msg: Avoid usage of curses initscr/endwin to avoid terminal corruption

Using curses initscr/endwin causes screen corruption if for example you
suspend bitbake and resume it. This changes the code to use a less
invasive approach to determining colour availability on the terminal.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob/builder: Don't rerun sanity checks
Constantin Musca [Tue, 20 Nov 2012 08:09:18 +0000 (10:09 +0200)] 
hob/builder: Don't rerun sanity checks

Run the sanity check only once

[YOCTO #3377]

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: showing when build fails because out of disk space
Cristiana Voicu [Tue, 20 Nov 2012 12:37:46 +0000 (14:37 +0200)] 
hob: showing when build fails because out of disk space

-to enable this in hob, first you have to enable this in bitbake using
BB_DISKMON_DIRS and/or BB_DISKMON_WARNINTERVAL vars
-created "restart the build" action on the build_fail_top_bar

[YOCTO #3357]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoserver/process.py: Change timeout error handling
Richard Purdie [Wed, 21 Nov 2012 09:15:34 +0000 (09:15 +0000)] 
server/process.py: Change timeout error handling

In normal usage, we never hit the timeout issue. If we do, it becomes obvious
that the current error handling is not good enough. The request may have made it
to the server and the answer will get queued. This means the next command may get
the return value from the previous command with suitably puzzling results.

Without rewriting large sections of code, its not possible to avoid this problem.
It is better to increase the timeout to several seconds giving the server a chance
to respond and if it does timeout, hard exit since recovery is not possible with the
code base today.

I'd be happy to see the structure of this code improved but this quick fix at least
stops corrupted builds from happening which has to be a good thing.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoknotty: Colorize knotty interactive console output
Seth Bollinger [Fri, 16 Nov 2012 01:29:40 +0000 (19:29 -0600)] 
knotty: Colorize knotty interactive console output

Add bold color output to log level name and standard color output to log msg
when bitbake is run from an iteractive console.  Color output is only
enabled
if the terminal supports color.

Used Jason Wessel's recommendation for transparency on verbose, note and
plain.

Signed-off-by: Seth Bollinger <seth.boll@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: warnings during the build should be displayed in the Issues tab
Cristiana Voicu [Tue, 13 Nov 2012 14:48:46 +0000 (16:48 +0200)] 
hob: warnings during the build should be displayed in the Issues tab

Any issues encountered during the build (fatal or not) is displayed
in the Issues tab, and the total number of issues is changed.

[YOCTO #3376]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agorunqueue: Allow partial setscene task coverage
Richard Purdie [Fri, 16 Nov 2012 15:30:52 +0000 (15:30 +0000)] 
runqueue: Allow partial setscene task coverage

When the setscene code was originally written it was thought that we'd
allow "partial" coverage. For example, if we just want to build the target
"bash:do_populate_sysroot" and its available from sstate, it makes no sense
to install gcc-cross's sstate package as its simply not needed.

Due to various other issues in the codebase, this functionality was
disabled/removed to allow the setscene code and sstate to stabilise and allow
us to concentrate on other problems.

The time has now come to enable "partial" coverage. There are two major changes
in this patch:

a) Creation of an unskippable list. This lists direct dependencies of
   build targets and hence things that cannot be skipped.

b) Addition of a handler which looks at a given setscene target and what depends
   on it and then decides whether its necessary.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoparse/cache/cooker: Preserve order in the file inclusion list
Richard Purdie [Mon, 19 Nov 2012 15:01:20 +0000 (15:01 +0000)] 
parse/cache/cooker: Preserve order in the file inclusion list

The data returned by get_file_depends() may me used in contexts like
checksums where order is important. The current usage of sets means
that some of the checksums can change in circumstances they should not.

This patch changes to use lists, thereby removing the problem.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoknotty: kill duplicated import of 'time'
Christopher Larson [Tue, 13 Nov 2012 19:12:50 +0000 (12:12 -0700)] 
knotty: kill duplicated import of 'time'

The duplicated import could result in an UnboundLocalError.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoprint clear message for "bitbake -e ASSUME_PROVIDED"
Robert Yang [Tue, 6 Nov 2012 12:18:42 +0000 (20:18 +0800)] 
print clear message for "bitbake -e ASSUME_PROVIDED"

"bitbake -e ASSUME_PROVIDED" should fail, but the error message wasn't
clear enough in the past:

$ bitbake -e bzip2-native
[snip]
ERROR: Command execution failed: Traceback (most recent call last):
  File "/buildarea/lyang1/poky/bitbake/lib/bb/command.py", line 94, in
runAsyncCommand
    commandmethod(self.cmds_async, self, options)
  File "/buildarea/lyang1/poky/bitbake/lib/bb/command.py", line 323, in
showEnvironmentTarget
    command.cooker.showEnvironment(None, pkg)
  File "/buildarea/lyang1/poky/bitbake/lib/bb/cooker.py", line 325, in
showEnvironment
    fnid = taskdata.build_targets[targetid][0]
KeyError: 0
[snip]

With this patch, the massage will be:
[snip]
ERROR: bzip2-native is in ASSUME_PROVIDED
ERROR: Command execution failed: Exited with 1

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

[YOCTO #3392]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: hob was freezing because it doesn't receives well the log file
Cristiana Voicu [Thu, 8 Nov 2012 13:03:42 +0000 (15:03 +0200)] 
hob: hob was freezing because it doesn't receives well the log file

-after pressing "build image" button, hob was freezing because it didn't
receive well the log file

[YOCTO #3398]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agocommand: add error to return of runCommand
Christopher Larson [Mon, 29 Oct 2012 20:01:23 +0000 (13:01 -0700)] 
command: add error to return of runCommand

Currently, command.py can return an error message from runCommand, due to
being unable to run the command, yet few of our UIs (just hob) can handle it
today. This can result in seeing a TypeError with traceback in certain rare
circumstances.

To resolve this, we need a clean way to get errors back from runCommand,
without having to isinstance() the return value. This implements such a thing
by making runCommand also return an error (or None if no error occurred).

As runCommand now has a method of returning errors, we can also alter the
getCmdLineAction bits such that the returned value is just the action, not an
additional message. If a sync command wants to return an error, it raises
CommandError(message), and the message will be passed to the caller
appropriately.

Example Usage:

    result, error = server.runCommand(...)
    if error:
        log.error('Unable to run command: %s' % error)
        return 1

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agohob: providing details about process state through porgress bar
Cristiana Voicu [Wed, 31 Oct 2012 13:31:07 +0000 (15:31 +0200)] 
hob: providing details about process state through porgress bar

-small changes to the text of the progress bar when parsing recipes

[YOCTO #3282]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agobitbake/server: Remove dead console log code
Richard Purdie [Tue, 30 Oct 2012 17:20:55 +0000 (17:20 +0000)] 
bitbake/server: Remove dead console log code

This code is dead and doesn't do anything so lets remove it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agocooker.py: Don't dump the environment into the console log file
Richard Purdie [Tue, 30 Oct 2012 17:18:32 +0000 (17:18 +0000)] 
cooker.py: Don't dump the environment into the console log file

Dumping the environment data into the console log files directory is
invariably not what the user wants or expects and leads to confusion
when looking at the log directory.

This change forces the logs to be disabled by default when using
the -e option.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agouihelper: Set update flag when start event encountered
Richard Purdie [Tue, 30 Oct 2012 16:42:27 +0000 (16:42 +0000)] 
uihelper: Set update flag when start event encountered

Its a minor correctness detail but the update flag should be set
when Start events are encountered.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoknotty: Ensure last tasks are disaplyed correctly in the footer
Richard Purdie [Tue, 30 Oct 2012 16:39:47 +0000 (16:39 +0000)] 
knotty: Ensure last tasks are disaplyed correctly in the footer

There was an issue where the last tasks run by bitbake would not
correctly get displayed in the knotty footer. This was due to the
total count including active tasks. This change ensures the footer
is displayed if the are any running tasks.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agohob: reordering the layers in the Hob Layers dialog
Cristiana Voicu [Fri, 26 Oct 2012 13:54:47 +0000 (16:54 +0300)] 
hob: reordering the layers in the Hob Layers dialog

-since the order of the layers can potentially impact
the build outcome, users should be able to reorder
the layers within the layers dialog;
-used TreeView Drag and Drop

[YOCTO #3270]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agohob/hig: Hob doesn't save properly proxy settings
Cristian Iorga [Fri, 26 Oct 2012 09:24:19 +0000 (12:24 +0300)] 
hob/hig: Hob doesn't save properly proxy settings

User introduced proxy settings were not saved
when a proxy details input dialog was opened.
The proxy settings were lost upon return, and
restored from the previously stored one.

Also:
Code cleanup:
details_cb() function duplicate definition
removed

Fixes [YOCTO #3240]

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agohob: during recipe parsing, progress bar text provides details about the process...
Cristiana Voicu [Thu, 25 Oct 2012 13:43:44 +0000 (16:43 +0300)] 
hob: during recipe parsing, progress bar text provides details about the process state

- indicating on progress bar that hob has gone from parsing
recipes to "Generating dependency tree"; this will provide
some visibility of what has caused the "stop" button state
to change

[YOCTO #3282]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agohob: add a progress indicator when you select 'view log'
Cristiana Voicu [Thu, 25 Oct 2012 10:36:23 +0000 (13:36 +0300)] 
hob: add a progress indicator when you select 'view log'

- created a new file named "hobthreads.py", defining a thread
for opening the log file in a subprocess using subprocess module;
in the future I think we will add some other threads here, to
implement some other performance issues
- on "builddetailspage", "packageselectionpage" and "imagedetailspage"
I have changed the manner for opening the log file; it uses the thread
to open the file, and on main thread it creates a dialog to show a
progress bar, which pulses till the file is open
- this was added because when the log file is big, it takes time to
be opened; on the dialog you can use "Cancel" button to terminate the
process initiated to open the file

[YOCTO #2997]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agobitbake: hob/builder: Hob crashes because of bad init
Cristian Iorga [Thu, 25 Oct 2012 15:37:30 +0000 (18:37 +0300)] 
bitbake: hob/builder: Hob crashes because of bad init

Image selection is not properly initialized to none,
and it used before having a chance to have a value.
Due to dynamic nature of Python, variable is used before
it exists, in this case. This causes a crash.
Bug introduced during the fix of [YOCTO #3228]

Fixes [YOCTO #3334]

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agohob/settings: add a scroll bar for the box with mirrors
Cristiana Voicu [Thu, 18 Oct 2012 09:09:51 +0000 (12:09 +0300)] 
hob/settings: add a scroll bar for the box with mirrors

- added a scroll bar in the shared state tab from settings
- added a signal on it, so when you add a new mirror, it will
auto-scroll to the end of the list

[YOCTO #3229]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agobitbake: hob/builder: Image selection is remembered while changing adv settings
Cristian Iorga [Wed, 17 Oct 2012 14:24:06 +0000 (17:24 +0300)] 
bitbake: hob/builder: Image selection is remembered while changing adv settings

Image selection is remembered correctly even after
advanced settings have been changed.
Selected image was reset even when it was not the case.

Fixes [YOCTO #3228]

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agohob/builddetailspage: set "Log" page as default
Cristiana Voicu [Wed, 17 Oct 2012 08:25:47 +0000 (11:25 +0300)] 
hob/builddetailspage: set "Log" page as default

- when you do a build you should see "Log" page, not
"Build configuration" page

[YOCTO #2569]

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agohob/imageconfigurationpage: progress bar shows when recipe parsing is stopped
Cristiana Voicu [Tue, 16 Oct 2012 11:23:27 +0000 (14:23 +0300)] 
hob/imageconfigurationpage: progress bar shows when recipe parsing is stopped

-when the recipe parsing process is stopped, the progress bar shows
"Stopping recipe parsing"

[YOCTO #3259]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agobitbake: hob/hobwidget: "Brought in by" column is now displayed correctly
Cristian Iorga [Tue, 16 Oct 2012 08:52:38 +0000 (11:52 +0300)] 
bitbake: hob/hobwidget: "Brought in by" column is now displayed correctly

In "Edit Recipes" and "Edit packages" pages, the "Brought in by"
column is displayed correctly, with the right number of additional
packages and a proper title.

Fixes [YOCTO #2195].

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agohob: stop build without percentage shown
Andrei Dinu [Fri, 12 Oct 2012 14:51:30 +0000 (17:51 +0300)] 
hob: stop build without percentage shown

added a method in progressbar.py that doesn't update the
percentage in the progress bar shown in hob.

the call of the method is done in builder.py.

Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agohob: change behavior for "cancel" button from the Recipe selection page
Cristiana Voicu [Fri, 12 Oct 2012 12:29:46 +0000 (15:29 +0300)] 
hob: change behavior for "cancel" button from the Recipe selection page

-when returned to the Image configuration page, after canceling on the
Recipe selection page, the image selected previously is now shown corectly

[YOCTO #3205}
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agohob: image size displayed wrong size in edit packages screen
Andrei Dinu [Fri, 12 Oct 2012 09:06:23 +0000 (12:06 +0300)] 
hob: image size displayed wrong size in edit packages screen

    size_str = '%.1f' % (size*1.0/(1024*1024)) + ' MB'
    from /bitbake/lib/bb/ui/crumbs/hobpages.py file transformed
    the size in MB. In our file it was again multiplied by 1024
    instead of doing a division by 1024, which brought a faulty size on
    the edit packages screen.

Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoevent/hob: Add a button for network tests in the proxy settings
Bogdan Marinescu [Thu, 11 Oct 2012 11:45:07 +0000 (14:45 +0300)] 
event/hob: Add a button for network tests in the proxy settings

This patch allows the user to check the network connectivity in
the "Proxy" page ("Settings" dialog) by adding a button which provides
this functionality. It also disables retrigerring sanity checks if the
proxy values are changed, since now the proxy checks are explicit.
Note that this patch depends on a patch in oe-core
("sanity.bbclass: trigger network tests explicitly"). It will
not work properly if the patch in oe-core is not merged.

[YOCTO #3026]

Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agohob-toolchain: task-core-standalone-sdk-target renamed to packagegroup-core-standalon...
Andrei Dinu [Tue, 9 Oct 2012 13:23:26 +0000 (16:23 +0300)] 
hob-toolchain: task-core-standalone-sdk-target renamed to packagegroup-core-standalone-sdk-target

This change also applies to task-core-standalone-sdk-target-dbg and resolves
build failures caused by the missing packages.

Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agohob/imageconfigurationpage: a 'hob-image' appears listed in the base image combo box
Cristiana Voicu [Mon, 8 Oct 2012 10:05:06 +0000 (13:05 +0300)] 
hob/imageconfigurationpage: a 'hob-image' appears listed in the base image combo box

-remove this image from image combo box

[YOCTO #3230]

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>