]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 years agoHob: clear the building state after a successful build, as a failed build does
Shane Wang [Thu, 29 Mar 2012 12:54:50 +0000 (20:54 +0800)] 
Hob: clear the building state after a successful build, as a failed build does

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: Replace "local.conf" in error message
Dongxiao Xu [Thu, 29 Mar 2012 12:01:20 +0000 (20:01 +0800)] 
Hob: Replace "local.conf" in error message

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: Fix the setting hash calculation
Dongxiao Xu [Thu, 29 Mar 2012 12:01:19 +0000 (20:01 +0800)] 
Hob: Fix the setting hash calculation

Sometimes even setting are not changed, the hash values differs due to
variable order issue. This commit fixes the issue.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: Change the format to store image_fstype variable
Dongxiao Xu [Thu, 29 Mar 2012 12:01:18 +0000 (20:01 +0800)] 
Hob: Change the format to store image_fstype variable

Use string format to store image_fstype instead of a list.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: Remember user settings when reparse config
Dongxiao Xu [Thu, 29 Mar 2012 12:01:16 +0000 (20:01 +0800)] 
Hob: Remember user settings when reparse config

When config reparse is issued (e.x, adding a layer), we will firstly
remember the past user settings by setting them to bitbake server,
and then do the reparse.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: Update configuration after parsing
Dongxiao Xu [Thu, 29 Mar 2012 12:01:15 +0000 (20:01 +0800)] 
Hob: Update configuration after parsing

We need to update the parameters stored in Hob side after
configuration is parsed.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: Inherit image_types.bbclass in set_user_config()
Dongxiao Xu [Thu, 29 Mar 2012 12:01:14 +0000 (20:01 +0800)] 
Hob: Inherit image_types.bbclass in set_user_config()

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: Improve for init a new build
Dongxiao Xu [Thu, 29 Mar 2012 12:01:12 +0000 (20:01 +0800)] 
Hob: Improve for init a new build

After a successful build, user can initiate a new build by clicking
"Build a new image" button. The previous solution is simply switch to
the first screen and unset MACHINE. This commit will try to re-init
everything for the new build.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agocommand.py: Move triggerEvent to command async class
Dongxiao Xu [Thu, 29 Mar 2012 12:01:11 +0000 (20:01 +0800)] 
command.py: Move triggerEvent to command async class

The parameters in triggerEvent function is an event object, and it may
cost some time to pass this object through pipe, causing the pipe's
poll() function timeout. Change it to async mode.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: Improve the matching for runnable machine type
Dongxiao Xu [Thu, 29 Mar 2012 12:01:10 +0000 (20:01 +0800)] 
Hob: Improve the matching for runnable machine type

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: Define a variable to store the image name and toolchain
Dongxiao Xu [Thu, 29 Mar 2012 12:01:09 +0000 (20:01 +0800)] 
Hob: Define a variable to store the image name and toolchain

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: Fix adding duplicated meta-hob layer
Dongxiao Xu [Thu, 29 Mar 2012 12:01:08 +0000 (20:01 +0800)] 
Hob: Fix adding duplicated meta-hob layer

While adding meta-hob layer, we need to detect whether it already
exists in current layers.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: Remove un-used signal and functions
Dongxiao Xu [Thu, 29 Mar 2012 12:01:07 +0000 (20:01 +0800)] 
Hob: Remove un-used signal and functions

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agolib/bb/ui/crumbs/hig: fix layers_changed test
Joshua Lock [Wed, 28 Mar 2012 19:15:02 +0000 (12:15 -0700)] 
lib/bb/ui/crumbs/hig: fix layers_changed test

Because we sort the treeview to list specific layers at the top, and
therefore implicitly change the sorting of the underlying model, we can't
be certain that the original layer list will equal the new layer list
despite the included layers being the same.

To ensure we can do a simple equality test to determine whether the layers
have been modified first sort the lists to ensure we're comparing based on
contents alone.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agolib/bb/ui/crumbs: hob progress bar should not be red when user stops build
Joshua Lock [Wed, 28 Mar 2012 00:02:27 +0000 (17:02 -0700)] 
lib/bb/ui/crumbs: hob progress bar should not be red when user stops build

If the user explicitly stops the build telling them the build failed is a
misnomer.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agolib/bb/ui/crumbs/builder: allow user to cancel Layer selection dialogue
Joshua Lock [Tue, 27 Mar 2012 21:45:33 +0000 (14:45 -0700)] 
lib/bb/ui/crumbs/builder: allow user to cancel Layer selection dialogue

Because layer changes may take some time allow the user to cancel out of
the dialogue and prevent Hob from applying any of the changes made.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agolib/bb/ui/crumbs/hobwidget: change text sizes in HobImageButton
Joshua Lock [Tue, 27 Mar 2012 20:59:13 +0000 (13:59 -0700)] 
lib/bb/ui/crumbs/hobwidget: change text sizes in HobImageButton

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agolib/bb/ui/crumbs/imageconfigurationpage: add extra space between widgets
Joshua Lock [Tue, 27 Mar 2012 20:58:44 +0000 (13:58 -0700)] 
lib/bb/ui/crumbs/imageconfigurationpage: add extra space between widgets

Add space between the target machine combo and the 'Layers' button.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agolib/bb/ui/crumbs/hobwidget: add padding to HobImageButton
Joshua Lock [Tue, 27 Mar 2012 20:57:01 +0000 (13:57 -0700)] 
lib/bb/ui/crumbs/hobwidget: add padding to HobImageButton

Add more padding between the icon and the text

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: change some words in settings dialog to make them consistent
Shane Wang [Wed, 28 Mar 2012 16:34:05 +0000 (00:34 +0800)] 
Hob: change some words in settings dialog to make them consistent

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: change some words on recipes screen and package screen to make them consistent
Shane Wang [Wed, 28 Mar 2012 16:29:13 +0000 (00:29 +0800)] 
Hob: change some words on recipes screen and package screen to make them consistent

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: change some words on image configuration screen to make them consistent
Shane Wang [Wed, 28 Mar 2012 16:22:18 +0000 (00:22 +0800)] 
Hob: change some words on image configuration screen to make them consistent

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: change some words for build configurations on build details screen
Shane Wang [Wed, 28 Mar 2012 16:17:10 +0000 (00:17 +0800)] 
Hob: change some words for build configurations on build details screen

This patch is to change some words of variables to make them consistent with the GUI.

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: add Templates and Settings on image details screen
Shane Wang [Wed, 28 Mar 2012 16:10:30 +0000 (00:10 +0800)] 
Hob: add Templates and Settings on image details screen

This patch is to add Templates and Settings tool buttons on the image
details screen, which makes things easier and simplier.

In order to fulfill that, the code splits the functions
show_load_template_dialog() and show_adv_settings_dialog() in builder.py
because they will possibly be called from different screens later.

[Yocto #2163]

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: Set one of deployable images or runnable images as the default toggled item
Shane Wang [Mon, 26 Mar 2012 11:29:15 +0000 (19:29 +0800)] 
Hob: Set one of deployable images or runnable images as the default toggled item

With this patch, even though there are a lot of images built out, a default image
which is either deployable or runnable is toggled by default. So, for users, one
more action to select an image before running qemu or deploying is not needed any more.

Note: If there are more than one runnable or deployable images (such as ext2, ext3,
jffs2 and btrfs), only the first image is toggled by default for run-qemu or
deployment. If the user wants to run or deploy others, he/she needs to toggle them
manually.

[Yocto #2155]

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoui/knotty: Add a footer to the build output for interactive terminals as knotty2 UI
Richard Purdie [Sat, 26 Nov 2011 13:37:52 +0000 (13:37 +0000)] 
ui/knotty: Add a footer to the build output for interactive terminals as knotty2 UI

On terminals which support it, add summary information to the end of the
build output about the number of tasks currently running and how many tasks
we've run so far.

This provides a summary at a glace of what the current state of the build is
and what the build is currently doing which is lacking in the current UI.

Also disable echo of characters on stdin since this corrupts the disable,
particularly Crtl+C.

The "waiting for X tasks" code can be merged into this code too since
that is only useful on interactive terminals and this improves the
readability of that output too.

Improvements since v0:

* The tasks are ordered in execution order.
* The display is only updated when the list of tasks changes or there
  is output above the footer.
* Running task x oy y and package messages are supressed from the console

This UI can be accessed with "bitbake -u knotty2".

(From Poky rev: e38b4569648f2916c4370871c79e6a6090eb8bc1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agouihelper: Keep track of pids in execution order
Richard Purdie [Thu, 29 Mar 2012 18:38:47 +0000 (19:38 +0100)] 
uihelper: Keep track of pids in execution order

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agobb.build: use relative log links, not absolute
Christopher Larson [Tue, 27 Mar 2012 19:07:23 +0000 (14:07 -0500)] 
bb.build: use relative log links, not absolute

Using symlinks to absolute paths isn't gaining us anything, and can cause
problems in situations such as automated build systems when they try to
resolve the link, depending on the mechanism used to pull the build artifacts
(e.g. nfs).

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: allow users to setup the proxies
Shane Wang [Thu, 22 Mar 2012 06:20:03 +0000 (14:20 +0800)] 
Hob: allow users to setup the proxies

This patch is to read the proxy variables such as all_proxy, http_proxy, https_proxy, ftp_proxy, GIT_PROXY_HOST, GIT_PROXY_PORT, CVS_PROXY_HOST, and CVS_PROXY_PORT from the bitbake server, show them on the Settings dialog for users to change and set proxies for the build.

(From Poky rev: bbef66e4005def54d70d3720ec131fa7edc22e2a)

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: fixed some not compatible places for make runningbuild.py can be reused by anoth...
Liming An [Tue, 27 Mar 2012 15:15:45 +0000 (23:15 +0800)] 
Hob: fixed some not compatible places for make runningbuild.py can be reused by another application

The runningbuild.py has been shared by different applications, not only hob, so fixed the some not compatibled codes

(From Poky rev: 99fa7388500fa97fe4629456daa50bb5637e51e6)

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: change the implementation way about get config info for building log
Liming An [Mon, 26 Mar 2012 06:04:20 +0000 (14:04 +0800)] 
Hob: change the implementation way about get config info for building log

Make the building log config information to get from the bitbake parameters directly, and then cancel the old way of filting the building log on running

[YOCTO #2144]

(From Poky rev: b52025a0fe2ca65e4d8549b1b90f5813b0c2e39f)

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: use hob icon checker to check the gtk icon for make the icon constaintly
Liming An [Fri, 23 Mar 2012 16:04:52 +0000 (00:04 +0800)] 
Hob: use hob icon checker to check the gtk icon for make the icon constaintly

Because we have hob icon, so need to make some gtk icon to transfer to hob icon. so use hob icon checker to fixed the gtk icon

[YOCTO #2108]

(From Poky rev: d1d84e5529e0d0752fdcd8d3458ed7595d373115)

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: change the recipe pasing error dialog icon from 'dialog-info' to 'dialog-error'
Liming An [Fri, 23 Mar 2012 15:58:00 +0000 (23:58 +0800)] 
Hob: change the recipe pasing error dialog icon from 'dialog-info' to 'dialog-error'

[YOCTO #2109]

(From Poky rev: 1fbd6eefc68ec38875968b8513739b732da412b8)

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: fixed visually differentiate warnings and errors icon in building log
Liming An [Fri, 23 Mar 2012 15:32:17 +0000 (23:32 +0800)] 
Hob: fixed visually differentiate warnings and errors icon in building log

fixed the bug of 'error' and 'warning' icon is not constaintly with hob ui design

[YOCTO #2097]

(From Poky rev: 5b4f379b5341222e2678043f078b3d33c0556a86)

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoHob: add refresh icon as ui request in building log
Liming An [Fri, 23 Mar 2012 14:29:46 +0000 (22:29 +0800)] 
Hob: add refresh icon as ui request in building log

add a refresh icon to indicator the running task, for avoid add more heavy to bitbake building process, increased the timer interval counter, and decreased the refresh icon render size.

(From Poky rev: cf76d2cef0905a442e61769560173b2e6a58fb62)

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agolib/bb/ui/crumbs/imagedetails: use secondary button style for 'View files'
Joshua Lock [Tue, 27 Mar 2012 03:17:17 +0000 (20:17 -0700)] 
lib/bb/ui/crumbs/imagedetails: use secondary button style for 'View files'

Use HobAltButton, rather than gtk.LinkButton, for the 'View files'
button.

Use xdg-open to display the folders contents.

(From Poky rev: 22955b47ac485e0d069ddd8301a11658d76bcfee)

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agolib/bb/ui/crumbs/imageconfigurationpage: ensure widgets stay positioned
Joshua Lock [Mon, 26 Mar 2012 21:32:12 +0000 (14:32 -0700)] 
lib/bb/ui/crumbs/imageconfigurationpage: ensure widgets stay positioned

Tweak the table layout and insert some dummy widgets when the buttons
aren't drawn such that when the buttons do get drawn the existing widgets
don't all jump up.

(From Poky rev: 9edd833e7e36aea6a7350a36a5aad0ef300959c4)

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agolib/bb/ui/crumbs: tweak build status display
Joshua Lock [Mon, 26 Mar 2012 20:13:18 +0000 (13:13 -0700)] 
lib/bb/ui/crumbs: tweak build status display

Use two lines to display the active task and recipe, per visual design.

(From Poky rev: ea61503fc439e033b341bb7a50bac77c5e88834e)

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>