bitbake.git
5 years agofetch2: fix unpack of .xz files 1.16-dream
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>
(cherry picked from commit 2cd2d0a48e12ab4358fb967eaf7a56c17993f48d)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Conflicts:
lib/bb/fetch2/__init__.py

7 years agoUpdate version to 1.15.2 (correspdoning to Yocto 1.2 release) 1.15.2
Richard Purdie [Tue, 1 May 2012 15:07:50 +0000 (16:07 +0100)]
Update version to 1.15.2 (correspdoning to Yocto 1.2 release)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Issue sanity check after parse is completed
Dongxiao Xu [Tue, 24 Apr 2012 08:16:12 +0000 (16:16 +0800)]
Hob: Issue sanity check after parse is completed

In original scheme, sanity check is part of the parsing process. If a
sanity check fails, it means the parsing is failed and values in Hob
GUI may not correct.

With this commit, Hob will actively issue sanity_check() after the
parsing is completed.

This fixes [YOCTO #2361]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Add proxy setting into setting's md5
Dongxiao Xu [Tue, 24 Apr 2012 08:16:11 +0000 (16:16 +0800)]
Hob: Add proxy setting into setting's md5

If user changed the proxy setting, we will reparse configuration because
it may need sanity check.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoevent.py: Add SanityCheck and SanityCheckPassed events
Dongxiao Xu [Tue, 24 Apr 2012 08:16:10 +0000 (16:16 +0800)]
event.py: Add SanityCheck and SanityCheckPassed events

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agohob: enable sanity checks after launch
Joshua Lock [Mon, 23 Apr 2012 21:35:44 +0000 (14:35 -0700)]
hob: enable sanity checks after launch

To ensure the users configuration is sanity tested enable the sanity
checks after the GUI has started but before any parsing is done.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolib/bb/ui/crumbs/recipeselectionpage: fix type availabel->available
Joshua Lock [Tue, 17 Apr 2012 15:19:05 +0000 (08:19 -0700)]
lib/bb/ui/crumbs/recipeselectionpage: fix type availabel->available

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake-layers: hide deprecation warnings
Paul Eggleton [Mon, 16 Apr 2012 22:31:58 +0000 (23:31 +0100)]
bitbake-layers: hide deprecation warnings

There are a number of DeprecationWarnings within BitBake code which
bitbake itself filters out; bitbake-layers was not doing this, resulting
in a stream of warnings printed out when used with Python < 2.7 (these
warnings default to disabled on version 2.7 and above.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agohoblistmodel.py: description for selfcreated image
Beth Flanagan [Mon, 16 Apr 2012 23:13:08 +0000 (16:13 -0700)]
hoblistmodel.py: description for selfcreated image

The current description is empty. This adds a default
description for hob's dummy_image.

Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Set the "stop" button insensitive before hide it
Dongxiao Xu [Tue, 17 Apr 2012 08:21:39 +0000 (16:21 +0800)]
Hob: Set the "stop" button insensitive before hide it

If user stops a build, we need to firstly set the button insensitive and
then hide it. This ensures the button's init status is "insensitive" in
next build.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Enlarge the upper value of image size
Dongxiao Xu [Tue, 17 Apr 2012 08:21:38 +0000 (16:21 +0800)]
Hob: Enlarge the upper value of image size

Originally the upper value for image size and extra size is 1024M, which
is relatively small. Enlarge it to 64GB.

Besides, fix tooltip for toolchain build.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodata_smart: Improve the calculation of config hash
Dongxiao Xu [Tue, 17 Apr 2012 08:21:37 +0000 (16:21 +0800)]
data_smart: Improve the calculation of config hash

For config hash, we put the keys in structure of "set()", which is not
order sensitive. Therefore when calculating the md5 value for config
hash, we need to identify the order of the keys.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: fixed a little view issue about package selection page
Liming An [Mon, 16 Apr 2012 10:09:48 +0000 (18:09 +0800)]
Hob: fixed a little view issue about package selection page

In package selection page, treeview cell data callback function not cover the 'else' case, so parent item will render the pervious value.

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: add the parent window to 'binb' popup window for managing it
Liming An [Mon, 16 Apr 2012 08:53:28 +0000 (16:53 +0800)]
Hob: add the parent window to 'binb' popup window for managing it

The 'binb' popup window should be "set transient for" the main application
window which they were spawned from.

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: fixed the issue that the notebook overlay-scrollbar is overlapped
Liming An [Mon, 16 Apr 2012 08:53:27 +0000 (16:53 +0800)]
Hob: fixed the issue that the notebook overlay-scrollbar is overlapped

In those systems which had use gtk overlay-scrollbar feature,such as
Ubuntu 11.10, we have the issue with the multiple overlaped scrollbar in
'Recipe View' notebook or 'Package View' notebook, this patch is going to
fix it.

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Fix contents in imagedetailsscreen
Dongxiao Xu [Mon, 16 Apr 2012 07:51:43 +0000 (15:51 +0800)]
Hob: Fix contents in imagedetailsscreen

This commit fixes the contents in imagedetailsscreen, which lacks some
kind of image types, e.x., iso and hddimg.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: add exception handling
Shane Wang [Sun, 15 Apr 2012 16:09:25 +0000 (00:09 +0800)]
Hob: add exception handling

Create a wrapper with exception handling to call self.server.runCommand() safely.
Again, add exception handling to load_template() and save_template()

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Simplify the init process
Dongxiao Xu [Sun, 15 Apr 2012 07:26:38 +0000 (15:26 +0800)]
Hob: Simplify the init process

This commit merges some functionalities together and avoid unnecessary
signal handling. This can help to speed up the Hob startup.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Handle NoProvider event in runningbuild module
Dongxiao Xu [Sun, 15 Apr 2012 07:26:37 +0000 (15:26 +0800)]
Hob: Handle NoProvider event in runningbuild module

If NoProvider event is received, we will handle it in runningbuild
module and send notification to Hob instance, avoiding stepping into the
final page with no image built out.

This fixes [YOCTO #2249]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: reset user recipe selection and package selection after settings are changed
Shane Wang [Sat, 14 Apr 2012 18:58:59 +0000 (02:58 +0800)]
Hob: reset user recipe selection and package selection after settings are changed

Reset user recipe list and package list after the user changes the settings and
triggers recipe reparsing.

This is to continue to fix the bug [Yocto #2255]

[Yocto #2255]

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: remember layers and settings between Hob sessions
Shane Wang [Sat, 14 Apr 2012 18:58:58 +0000 (02:58 +0800)]
Hob: remember layers and settings between Hob sessions

This patch is to remember layers and settings between Hob sessions, which
includes:
 - Put some variables for the build details screen from Configuration to
   Parameters because they are not actually for build but for show
 - We create a dummy Configuration instance and a dummy Parameters instance
   in __init__ of builder
 - The two instances will be assigned the real values by
   update_configuration_parameters() after parsing (in the event callback)
 - When it is the first time to launch Hob in a build directory, nothing is
   remembered since everything is fresh.
 - The feature is implemented with templates, and based on the hook for Hob.
 - When the user changes the layers or the settings, a default template file
   is saved into ".hob/".
 - Later on, the layers and the settings are remembered by loading the default
   template automatically.

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Use BB_DEFAULT_TASK as build task instead of hardcoded "build"
Dongxiao Xu [Thu, 12 Apr 2012 17:14:14 +0000 (01:14 +0800)]
Hob: Use BB_DEFAULT_TASK as build task instead of hardcoded "build"

Originally we use hardcoded "build" as the default task. This commit
fixes it by using BB_DEFAULT_TASK.

This fixes [YOCTO #2283]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
7 years agoHob: Build selected image if not customized
Dongxiao Xu [Thu, 12 Apr 2012 17:04:50 +0000 (01:04 +0800)]
Hob: Build selected image if not customized

If user selected a base image and didn't customize it, Hob will still
build the selected image instead of hob-image.

This fixes [YOCTO #2253]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
7 years agoHob: Save the original image name into template
Dongxiao Xu [Fri, 13 Apr 2012 13:51:36 +0000 (21:51 +0800)]
Hob: Save the original image name into template

Previously we use the template file name as the image name. This commit
changes to use the original selected image into template file.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
7 years agoHob: A minor fix on tooltip
Richard Purdie [Thu, 12 Apr 2012 09:30:27 +0000 (17:30 +0800)]
Hob: A minor fix on tooltip

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
7 years agoHob: Added required packages for toolchain.
Lianhao Lu [Fri, 13 Apr 2012 08:37:18 +0000 (16:37 +0800)]
Hob: Added required packages for toolchain.

Added the requried packages task-core-standalone-sdk-target(-dbg) for
building toolchain.

Fixed bug [YOCTO #2274]

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobb.utils: Modifed vercmp() to meet Debian rules.
Lianhao Lu [Thu, 12 Apr 2012 09:28:01 +0000 (17:28 +0800)]
bb.utils: Modifed vercmp() to meet Debian rules.

The version compare function vercmp() was not exatcly conforming to
Debian rules, e.g. it reported 'r1' > 'r1.1' but the Debian rules says
'r1' < 'r1.1'; it didn't support the "~" either.

Modified the vercmp() to meet Debian rules, so that it's compatible to
the rules used in opkg.

This part of the buf fixing of [YOCTO #2233].

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: forbid users to exit Hob directly when Hob is busy
Shane Wang [Thu, 12 Apr 2012 14:22:44 +0000 (22:22 +0800)]
Hob: forbid users to exit Hob directly when Hob is busy

When Hob is busy with generating data, exiting Hob is not allowed.
That should be reasonable because at that time the mouse cursor is not a pointer.
If users want to exit, they can click "Stop" first and then do exit.

That is also a walkaround for [Yocto #2142]

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Implement Hob config parse hook
Dongxiao Xu [Thu, 12 Apr 2012 15:46:26 +0000 (23:46 +0800)]
Hob: Implement Hob config parse hook

To make Hob's specific variable settings take effect, we add a Hob
config hook at the end of parsing for each configuration file, and in
the hook function, Hob will set its own variables to the data store.

This fixes:
[YOCTO #2210]
[YOCTO #2254]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoConfHandler.py: Add a hook for config parsing
Richard Purdie [Fri, 13 Apr 2012 10:51:17 +0000 (11:51 +0100)]
ConfHandler.py: Add a hook for config parsing

To make the UI settings take effect, we need to hook at the end of each
config file parsing and set UI specific values.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
7 years agoHob: fix the missing functions
Shane Wang [Thu, 12 Apr 2012 14:22:43 +0000 (22:22 +0800)]
Hob: fix the missing functions

The patch is to correct 7e5d41ab223b73c1c7b2cf7e4dd13289a2dc2e8b
(Bitbake rev: b6e68019494044305ab28492a517d1eafea851c3) to fix the
missing functions.

[Yocto #2281]

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackageselectionpage: add missing method
Joshua Lock [Thu, 12 Apr 2012 01:54:17 +0000 (18:54 -0700)]
packageselectionpage: add missing method

This is just a copy of the same method from the recipeselectionpage so
that we can actually run hob again.

Fixes [YOCTO #2281]

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobuilder: fix missing \ for if continuation
Saul Wold [Thu, 12 Apr 2012 02:02:15 +0000 (19:02 -0700)]
builder: fix missing \ for if continuation

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agohig/builder: use the new which_terminal() function
Saul Wold [Wed, 11 Apr 2012 00:57:15 +0000 (17:57 -0700)]
hig/builder: use the new which_terminal() function

Also adjusted the cmdline ordering to work correctly
with both xterm and vte.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoui/crumbs/utils.py: new file for choosing terminals
Saul Wold [Wed, 11 Apr 2012 00:57:08 +0000 (17:57 -0700)]
ui/crumbs/utils.py: new file for choosing terminals

Adding this simple version of a terminal selector for use
hob since it's needed. Moving forward in the 1.3 release
the existing code in meta/lib/oe/termnial.py will be migrated
to core bitbake code and this will use that code.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob:Fixed some incorrect values of Build configuration tab
Liming An [Mon, 9 Apr 2012 14:13:51 +0000 (22:13 +0800)]
Hob:Fixed some incorrect values of Build configuration tab

Because some variables not be updated when building started, so add them
to the updating function of configuration class, and add reset function of
configurate treeview of building detail page

[YOCTO #2244]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: show those appliable buttons on the image details page only
Shane Wang [Mon, 9 Apr 2012 14:13:50 +0000 (22:13 +0800)]
Hob: show those appliable buttons on the image details page only

We don't use "grayed out" but use "show/hide" for those appliable buttons
in the image details page.

[Yocto #2143]

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: forget selected_recipes and selected_packages after users change the machine
Shane Wang [Mon, 9 Apr 2012 14:13:49 +0000 (22:13 +0800)]
Hob: forget selected_recipes and selected_packages after users change the machine

The patch is to fix [Yocto #2255]. Now the logic is:

- If users change the machine, the image combo is empty for users to select.
- If users load the template, the image combo should set the value of
  selected_image specified in the template.
- After loading a template, if users change the machine, the selected_image
  specified in the template should be removed from the image combo because
  it is probably invalid for a new machine.
- If users customize the recipe/package list, and change the settings which
  causes reparsing, selected_recipes and selected_packages should be remembered.
- If users add more layers, selected_recipes and selected_packages should be
  remembered.

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: add tooltips into image details screen
Shane Wang [Mon, 9 Apr 2012 14:13:48 +0000 (22:13 +0800)]
Hob: add tooltips into image details screen

[Yocto #2243]

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: tooltip change for "Build image" button
Shane Wang [Mon, 9 Apr 2012 14:13:47 +0000 (22:13 +0800)]
Hob: tooltip change for "Build image" button

[Yocto #2242]

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: clean up and reword stop_parse()
Shane Wang [Mon, 9 Apr 2012 14:13:46 +0000 (22:13 +0800)]
Hob: clean up and reword stop_parse()

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: clean up generate_configuration()
Shane Wang [Mon, 9 Apr 2012 14:13:45 +0000 (22:13 +0800)]
Hob: clean up generate_configuration()

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: clean up cancel_build()
Shane Wang [Mon, 9 Apr 2012 14:13:44 +0000 (22:13 +0800)]
Hob: clean up cancel_build()

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: clean up request_package_info_async()
Shane Wang [Mon, 9 Apr 2012 14:13:43 +0000 (22:13 +0800)]
Hob: clean up request_package_info_async()

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: clean up and unify get_parameters() to be get_parameters_sync()
Shane Wang [Mon, 9 Apr 2012 14:13:42 +0000 (22:13 +0800)]
Hob: clean up and unify get_parameters() to be get_parameters_sync()

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: clean up to call clear_busy() in hobeventhandler.py
Shane Wang [Mon, 9 Apr 2012 14:13:41 +0000 (22:13 +0800)]
Hob: clean up to call clear_busy() in hobeventhandler.py

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: clean up and unify the steps for IMAGE_GENERATING to call generate_image_async()
Shane Wang [Mon, 9 Apr 2012 14:13:40 +0000 (22:13 +0800)]
Hob: clean up and unify the steps for IMAGE_GENERATING to call generate_image_async()

For the steps in IMAGE_GENERATING, the patch consolidates them into
generate_image_async() to call.

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: clean up and unify the steps for PACKAGE_GENERATING and FAST_IMAGE_GENERATING...
Shane Wang [Mon, 9 Apr 2012 14:13:39 +0000 (22:13 +0800)]
Hob: clean up and unify the steps for PACKAGE_GENERATING and FAST_IMAGE_GENERATING to call generate_packages_async() and fast_generate_image_async()

For the steps in PACKAGE_GENERATING, the patch consolidates them into
generate_packages_async() to call.

For the steps in FAST_IMAGE_GENERATING, the patch also consolidates them
into fast_generate_image_async() to call.

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: clean up and unify the steps for RCPPKGINFO_POPULATING to call populate_recipe_p...
Shane Wang [Mon, 9 Apr 2012 14:13:38 +0000 (22:13 +0800)]
Hob: clean up and unify the steps for RCPPKGINFO_POPULATING to call populate_recipe_package_info_async()

For the steps in RCPPKGINFO_POPULATING, This patch consolidates them into
populate_recipe_package_info_async() to call.

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: clean up and unify the steps for CONFIG_UPDATE to call update_config_async()
Shane Wang [Mon, 9 Apr 2012 14:13:37 +0000 (22:13 +0800)]
Hob: clean up and unify the steps for CONFIG_UPDATE to call update_config_async()

For the steps in CONFIG_UPDATE, the patch consolidates them into
update_config_async() to call.
consequently remove CONFIG_UPDATE since MACHINE_SELECTION covers it.

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: clean up and unify the steps for new build to call initiate_new_build_async()
Shane Wang [Mon, 9 Apr 2012 14:13:36 +0000 (22:13 +0800)]
Hob: clean up and unify the steps for new build to call initiate_new_build_async()

initiate_new_build() (changed the function name into initiate_new_build_async()
to indicate it is an async function) or the similar sub-functions are called at
different places.

This patch is unify to call initiate_new_build_async().

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: correct indent
Shane Wang [Mon, 9 Apr 2012 14:13:35 +0000 (22:13 +0800)]
Hob: correct indent

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Add the tooltips for recipe view page as request
Liming An [Mon, 9 Apr 2012 14:13:34 +0000 (22:13 +0800)]
Hob: Add the tooltips for recipe view page as request

[YOCTO #2229]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: add fadeout display effection for package view include page
Liming An [Mon, 9 Apr 2012 14:13:33 +0000 (22:13 +0800)]
Hob: add fadeout display effection for package view include page

[YOCTO #2100]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: add fadeout display effection for recipe view include page
Liming An [Mon, 9 Apr 2012 14:13:32 +0000 (22:13 +0800)]
Hob: add fadeout display effection for recipe view include page

As UI request, in recipes selection page, if user exclude a item,
the related depends recipes will be excluded together,so the view
clearly to add it.

[YOCTO #2100]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Add an extra 50M space if zypper is selected
Dongxiao Xu [Mon, 9 Apr 2012 08:42:02 +0000 (16:42 +0800)]
Hob: Add an extra 50M space if zypper is selected

If zypper is selected, RPM packaging will add extra 50M free space to
the final image. We need to reflect it in package selection page.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Fix tooltips in Settings dialog
Dongxiao Xu [Mon, 9 Apr 2012 08:42:01 +0000 (16:42 +0800)]
Hob: Fix tooltips in Settings dialog

This fixes [YOCTO #2229]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Fix tooltips in image configuration page
Dongxiao Xu [Mon, 9 Apr 2012 08:42:00 +0000 (16:42 +0800)]
Hob: Fix tooltips in image configuration page

This fixes [YOCTO #2228]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Fix the pattern patch for image name
Dongxiao Xu [Mon, 9 Apr 2012 08:41:59 +0000 (16:41 +0800)]
Hob: Fix the pattern patch for image name

Sometimes, users may open an image that is not built by Hob, therefore
its image name is not started with "hob-image-". This commit sets a
looser rule for runnable image matching.

This fixes [YOCTO #2240]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Change base image to "Create your own image" if customized
Dongxiao Xu [Mon, 9 Apr 2012 08:41:57 +0000 (16:41 +0800)]
Hob: Change base image to "Create your own image" if customized

Once user did customization to his base image, we change the base image
to be "Create your own image" to avoid some issues caused by the
relationship between base image and its default recipes and packages.

This fixes [YOCTO #2211]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoselectionpage: show persistent tooltips on click
Joshua Lock [Thu, 5 Apr 2012 22:32:28 +0000 (15:32 -0700)]
selectionpage: show persistent tooltips on click

Requiring a double click to show the tooltips isn't very intuitive, add
a callback to show the persistent tooltips on button release.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
7 years agolib/bb/ui/crumbs/[recipe|package]selectionpage: fixed width Included col
Joshua Lock [Fri, 6 Apr 2012 23:02:22 +0000 (16:02 -0700)]
lib/bb/ui/crumbs/[recipe|package]selectionpage: fixed width Included col

Set the expand property on all columns other than the 'Included' column
so that the included column remains at the max size set.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
7 years agolib/bb/ui/crumbs/recipeselectionpage: include 'Group' in 'Included' view
Joshua Lock [Thu, 5 Apr 2012 23:37:23 +0000 (16:37 -0700)]
lib/bb/ui/crumbs/recipeselectionpage: include 'Group' in 'Included' view

The 'Included' tab of the notebook should show the 'Group' a recipe
belongs to, per the design.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
7 years agolib/bb/ui/crumbs: only display one 'Brought in by' item in Hob trees
Joshua Lock [Thu, 5 Apr 2012 21:39:50 +0000 (14:39 -0700)]
lib/bb/ui/crumbs: only display one 'Brought in by' item in Hob trees

The design calls for a single 'Brought in by' item to be shown in the
tree views with any extra items to be shown in the tooltip.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
7 years agohob: update required versions of (py)gtk et al
Joshua Lock [Thu, 5 Apr 2012 17:56:43 +0000 (10:56 -0700)]
hob: update required versions of (py)gtk et al

With the previous two changes we now work on Gtk+ 2.18 and PyGtk 2.16

Signed-off-by: Joshua Lock <josh@linux.intel.com>
7 years agolib/bb/ui/crumbs/hobwidget: replace new API
Joshua Lock [Thu, 5 Apr 2012 17:17:57 +0000 (10:17 -0700)]
lib/bb/ui/crumbs/hobwidget: replace new API

The gtk.Widget.get_sensitive() convenience method is only available
in Gtk+ 2.22 or later, instead use the sensitive property of the
gobject to determine whether the widget is sensitive or not.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
7 years agolib/bb/ui/crumbs/persistenttooltip: replace 2.22 API
Joshua Lock [Wed, 4 Apr 2012 23:07:45 +0000 (16:07 -0700)]
lib/bb/ui/crumbs/persistenttooltip: replace 2.22 API

CentOS 6.x doesn't ship with new enough pygtk for this API.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
7 years agodiskspace monitor: assign a default value when only of the interval is set
Robert Yang [Thu, 5 Apr 2012 12:58:57 +0000 (20:58 +0800)]
diskspace monitor: assign a default value when only of the interval is set

Assign a default value to the other one when either disk space interval
or amount of inodes interval value is set for example:

BB_DISKMON_WARNINTERVAL = "50M,"
or
BB_DISKMON_WARNINTERVAL = ",5K"

The diskspace monitor would not enable in the past, that seemed
unreasonable, assign a default value to the other one currently, so the
monitor will be enabled, and will warn both of diskspace and free
amount of inode if they have been set in BB_DISKMON_DIRS.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoFix typo in user manual: "incarantion" -> "incarnation"
Robert P. J. Day [Sun, 1 Apr 2012 17:42:14 +0000 (13:42 -0400)]
Fix typo in user manual: "incarantion" -> "incarnation"

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: a minor fix on pmake
Shane Wang [Mon, 2 Apr 2012 08:29:20 +0000 (16:29 +0800)]
Hob: a minor fix on pmake

params["pmake"] should be in the format "-j int".
When loading/saving "PARALLEL_MAKE" into templates, configuration.pmake will be
converted into "-j int", as "PACKAGE_CLASSES" and "BBLAYERS" do.

For "PACKAGE_CLASSES" and "BBLAYERS", params["pclass"] and params["layer"] are
also strings rather than the types of configuration.curr_package_format and
configuration.layers.

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: a minor fix on image_fstypes
Shane Wang [Mon, 2 Apr 2012 08:29:19 +0000 (16:29 +0800)]
Hob: a minor fix on image_fstypes

image_fstypes in the configuration has been changed into a string rather than
a list. Here we correct it in __init__() of class Configuration. At other places,
image_fstypes are all strings.

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: avoid the empty white space appearing on top of the gtk.ComboBox
Shane Wang [Mon, 2 Apr 2012 08:29:18 +0000 (16:29 +0800)]
Hob: avoid the empty white space appearing on top of the gtk.ComboBox

Avoid the empty white space appearing on top of the machine selection combo
box and the image selection combo box in the "Image configuration" screen

[Yocto #2166]

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: unify _size_to_string() and _string_to_size()
Shane Wang [Mon, 2 Apr 2012 08:29:17 +0000 (16:29 +0800)]
Hob: unify _size_to_string() and _string_to_size()

We call intsize_to_string (and string_to_intsize) in 3 different places.
We unify the implementations into one place.

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: handle exceptions when loading templates
Shane Wang [Mon, 2 Apr 2012 08:29:16 +0000 (16:29 +0800)]
Hob: handle exceptions when loading templates

Handle exceptions during type conversion to integers.

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: handle exceptions in get_parameters() from the bitbake
Shane Wang [Mon, 2 Apr 2012 08:29:15 +0000 (16:29 +0800)]
Hob: handle exceptions in get_parameters() from the bitbake

Handle exceptions during type conversion into integers.

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Check "dummy" image while update_image_combo
Dongxiao Xu [Sun, 1 Apr 2012 12:14:16 +0000 (20:14 +0800)]
Hob: Check "dummy" image while update_image_combo

We also need to check if the selected image is "Create your own image"
and set it as active.

Besides, to avoid the impact of set_active(), we need to move the
connect signal in the end of the update_image_combo() function.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Remove the recipe/task type for multilib
Dongxiao Xu [Sun, 1 Apr 2012 12:14:14 +0000 (20:14 +0800)]
Hob: Remove the recipe/task type for multilib

We will not display multilib recipes and tasks in separate tabs,
therefore remove the specific types.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolib/bb/ui/hob: exit cleanly if the required pygtk version isn't available
Joshua Lock [Wed, 4 Apr 2012 00:35:41 +0000 (17:35 -0700)]
lib/bb/ui/hob: exit cleanly if the required pygtk version isn't available

Hob uses API from pygtk 2.22, therefore check to see whether this
version is available and exit cleanly if not.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: reset issue indication and build status before build starts on build details...
Shane Wang [Mon, 2 Apr 2012 15:22:40 +0000 (23:22 +0800)]
Hob: reset issue indication and build status before build starts on build details screen

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: remove grab_default() for deploy button
Shane Wang [Mon, 2 Apr 2012 15:22:39 +0000 (23:22 +0800)]
Hob: remove grab_default() for deploy button

When the deploy button is disabled since there is no deployable image,
the console will show the warning message:

WARNING: /home/yocto-build5/poky-contrib/bitbake/lib/bb/ui/crumbs/imagedetailspage.py:333:
GtkWarning: /build/buildd/gtk+2.0-2.22.0/gtk/gtkwidget.c:5684: widget not within a GtkWindow
  self.deploy_button.grab_default()

This patch is to remove the warning message.

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: add the "info" indication icon for "information" in the dialogs.
Shane Wang [Mon, 2 Apr 2012 15:22:37 +0000 (23:22 +0800)]
Hob: add the "info" indication icon for "information" in the dialogs.

Previously we reused the info display file which is for indication of tooltips.
But it is too small, when it is shown on the dialog as the dialog indication icon,
it becomes unclear after being stretched out. So, we replace it with a larger
icon.

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: fix IMAGE_INSTALL setting while save template
Dongxiao Xu [Sun, 1 Apr 2012 12:14:18 +0000 (20:14 +0800)]
Hob: fix IMAGE_INSTALL setting while save template

If save every selected package into IMAGE_INSTALL field, and then build
the saved bb file by bitbake command line, it will report errors since
some packages could not be found since they are dynamically generated.
With this commit, Hob will only save those packages into the
IMAGE_INSTALL variable which are brought in by user.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Fix toolchain build
Dongxiao Xu [Sun, 1 Apr 2012 12:14:15 +0000 (20:14 +0800)]
Hob: Fix toolchain build

Originally we added -dev and -dbg postfixes to our selected packages as
toolchain packages. However, some package names are modified in recipes,
so we could not rely on its base name. The new approach is to detect if
a package is selected, then include those packages under the same recipe
endswith "-dev" and "-dbg".

This fixes [YOCTO #2185]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Set stop button sensitive after task started
Dongxiao Xu [Sun, 1 Apr 2012 12:14:13 +0000 (20:14 +0800)]
Hob: Set stop button sensitive after task started

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Remove duplication for certain bitbake variables
Dongxiao Xu [Sun, 1 Apr 2012 12:14:12 +0000 (20:14 +0800)]
Hob: Remove duplication for certain bitbake variables

Sometimes, certain variables have duplicated values inside, for example,
IMAGE_FSTYPES = "tar.bz2 ext3 tar.bz2 ext3"

We need to remove the redundancy for those values.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Remove some calling of initiate_new_build()
Dongxiao Xu [Sun, 1 Apr 2012 12:14:11 +0000 (20:14 +0800)]
Hob: Remove some calling of initiate_new_build()

initiate_new_build() function is in async mode and could not be called
before another async function.

Also we could not initialize the build if user simply change a setting,
therefore remove this function.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Update the cache when setting changed
Dongxiao Xu [Sun, 1 Apr 2012 12:14:10 +0000 (20:14 +0800)]
Hob: Update the cache when setting changed

If values in advanced is changed, we also need to reparse the cache to
get the latest value.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Fix MACHINE setting
Dongxiao Xu [Sun, 1 Apr 2012 12:14:09 +0000 (20:14 +0800)]
Hob: Fix MACHINE setting

Define the empty curr_mach to be "" instead of None.
Fix the judgement for ' if self.curr_mach == "" ' to be
' if self.curr_mach '.
Also set machine to bitbake server when "MACHINE" is not empty.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: In building log page, fixed the issue about 'endpath' not clear when next to...
Liming An [Fri, 30 Mar 2012 09:12:42 +0000 (17:12 +0800)]
Hob: In building log page, fixed the issue about 'endpath' not clear when next to start build

Fixed the issue about the building log scrollbar can not auto scroll to page end sometimes

[YOCTO #2098]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agorunqueue: wait and deal with those <defunct> sub-processes as soon as they are os...
Shane Wang [Fri, 30 Mar 2012 09:12:41 +0000 (17:12 +0800)]
runqueue: wait and deal with those <defunct> sub-processes as soon as they are os.killed() when "Force stop"

When "Force stop" is performed during the build stage, after os.kill() kills the build sub-processes, there are many <defunct> python processes in the system. In Hob, when the user initiates a new build, os.waitpid() in runqueue_process_waitpid() will be called, and the pids of those <defunct> processes will be returned as result[0], then self.build_pids[result[0]] will throw KeyError exception because now for the new build self.build_pids is empty.

This patch is to address the above issue to collect the results and handle the sub-processes as soon as they are killed.

[Yocto #2186]

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolib/bb/ui/crumbs/hoblistmodel: fix sorting of RecipeListModel
Joshua Lock [Thu, 29 Mar 2012 21:31:30 +0000 (14:31 -0700)]
lib/bb/ui/crumbs/hoblistmodel: fix sorting of RecipeListModel

Sort in ascending order on the recipe name (A-Z) and unset the default sort
function so that there's no third (unsorted) state.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
7 years agolib/bb/ui/crumbs/hobpages: change title from HOB to Hob
Joshua Lock [Wed, 28 Mar 2012 23:32:59 +0000 (16:32 -0700)]
lib/bb/ui/crumbs/hobpages: change title from HOB to Hob

Signed-off-by: Joshua Lock <josh@linux.intel.com>
7 years agoHob: tweak font sizes and layout
Joshua Lock [Wed, 28 Mar 2012 23:32:28 +0000 (16:32 -0700)]
Hob: tweak font sizes and layout

Switch to proportional font sizes and tweak padding and layout based on
feedback from design team.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
7 years agoknotty: Add back getTasks() call to ensure we don't repeat messges
Richard Purdie [Thu, 29 Mar 2012 20:38:25 +0000 (21:38 +0100)]
knotty: Add back getTasks() call to ensure we don't repeat messges

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: in build details page, change error icon to denied icon
Liming An [Thu, 29 Mar 2012 12:54:57 +0000 (20:54 +0800)]
Hob: in build details page, change error icon to denied icon

For make icongraphy consistently to change the original gtk-icon to hob-icon

[YOCTO #2108]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: fixed the 'error' icon source picture and adjusted corresponding showed icon...
Liming An [Thu, 29 Mar 2012 12:54:56 +0000 (20:54 +0800)]
Hob: fixed the 'error' icon source picture and adjusted corresponding showed icon size

The error source picture is not right, so fixed it and adjusted its size.

[YOCTO #2097]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: some color style changes to make HobTabBar more close to visual design
Shane Wang [Thu, 29 Mar 2012 12:54:55 +0000 (20:54 +0800)]
Hob: some color style changes to make HobTabBar more close to visual design

The change includes:
 - remove the colors which are not used
 - change the background of indicators to deep red
 - change the color style of the texts on HobTabBar, i.e., the tab text and the indicator background are gray when the tab is the current tab; the tab text is white and the indicator background is deep red when the tab is not the current tab.

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: make ORANGE to be the same as the color on the dialog
Shane Wang [Thu, 29 Mar 2012 12:54:53 +0000 (20:54 +0800)]
Hob: make ORANGE to be the same as the color on the dialog

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Change "Just bake" to "Build image" as required
Shane Wang [Thu, 29 Mar 2012 12:54:52 +0000 (20:54 +0800)]
Hob: Change "Just bake" to "Build image" as required

[Yocto #2160]

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoHob: Change icon to error because parsing error is an error
Shane Wang [Thu, 29 Mar 2012 12:54:51 +0000 (20:54 +0800)]
Hob: Change icon to error because parsing error is an error

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>