bitbake.git
8 years agoHob: fixed issue about 'select a base image' combo not sensitive
Liming An [Thu, 14 Jun 2012 12:22:26 +0000 (20:22 +0800)]
Hob: fixed issue about 'select a base image' combo not sensitive

The combo view is not sensitive, after select recipes come back.
so fixed this issue.

[YOCTO #2500]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: fixed an issue about no 'set_page' function in hob failed page show
Liming An [Thu, 14 Jun 2012 12:22:25 +0000 (20:22 +0800)]
Hob: fixed an issue about no 'set_page' function in hob failed page show

Due in mistake deletion in previous patches, if building failed, will report
the error of no 'set_page', so add that function.

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage-writer: tweak some strings
Kang Kai [Thu, 14 Jun 2012 10:10:58 +0000 (18:10 +0800)]
image-writer: tweak some strings

Tweak some strings in accord with the script name 'image writer', and
remove extra noun 'button'.

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoui/crumbs/hig.py: simplify subprocess call
Kang Kai [Thu, 14 Jun 2012 10:10:57 +0000 (18:10 +0800)]
ui/crumbs/hig.py: simplify subprocess call

According to Darren's suggestion, subprocess.call() will wait until the
subprocess complete. So simplify the code, use subprocess.call() to wait
command complete.

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoui/crumbs/hig.py: tweak strings
Kang Kai [Thu, 14 Jun 2012 10:10:56 +0000 (18:10 +0800)]
ui/crumbs/hig.py: tweak strings

Add comments for DeployImageDialog 'standalone' part of codes to make it
easy to read.
And tweak some strings.

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agohob2: create a standalone deploy image tool
Kang Kai [Wed, 6 Jun 2012 09:52:28 +0000 (17:52 +0800)]
hob2: create a standalone deploy image tool

[Yocto 2388]

Create a deploy image tool using the existing dialog including
DeployImageDialog and ImageSelectionDialog.

This tool writes bootable images to USB devices, and it can be run
directly without hob.

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agohob2: update DeployImageDialog for seperated tool
Kang Kai [Wed, 6 Jun 2012 09:52:27 +0000 (17:52 +0800)]
hob2: update DeployImageDialog for seperated tool

Part of [Yocto 2388]

Update class DeployImageDialog to get ready for a standalone deploy
image tool. The standalone tool can be run directly without hob, and
add a button to select image file. So adjust the layout of
DeployImageDialog.

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoui/crumbs/hig.py: check deploy process return value
Kang Kai [Wed, 6 Jun 2012 09:52:26 +0000 (17:52 +0800)]
ui/crumbs/hig.py: check deploy process return value

Update function response_cb of DeployImageDialog to get deploy process
return value. According the return value tell user that deploy image
successfully or not.

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoui/crumbs/hig.py: remove extra spaces
Kang Kai [Wed, 6 Jun 2012 09:52:25 +0000 (17:52 +0800)]
ui/crumbs/hig.py: remove extra spaces

Remove extra spaces at the end of line or blank line.

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoui/crumbs/hig.py: fix run time error
Kang Kai [Wed, 6 Jun 2012 09:52:24 +0000 (17:52 +0800)]
ui/crumbs/hig.py: fix run time error

Commit 094742bed2fc01d55f572da946fcfa7a48521401 re-implement the
function popen_read(). If there is no USB device, it crashes with
"ExecutionError: Execution of 'ls /dev/disk/by-id/usb*' failed with exit
code 2:"

Replace popen_read() way with glob module to get the USB devices.

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoui/crumbs/utils.py: import module bb
Kang Kai [Wed, 6 Jun 2012 09:52:23 +0000 (17:52 +0800)]
ui/crumbs/utils.py: import module bb

When I try to call function which_terminal() of utils.py directly,
it complains NameError: global name 'bb' is not defined

So import module bb

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: fixed the index issue when set actived item for base image combo
Liming An [Mon, 4 Jun 2012 10:52:14 +0000 (18:52 +0800)]
Hob: fixed the index issue when set actived item for base image combo

The combo item index dosn't be increased as the insert a dummy item, when
execute the upadate base image combo operation.

[YOCTO #2500]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: Change 'run image' work flow and image detail screen as ui design
Liming An [Mon, 4 Jun 2012 10:52:13 +0000 (18:52 +0800)]
Hob: Change 'run image' work flow and image detail screen as ui design

Added the qemu_image_kernel selection view box to image detail screen GUI, and
changed the 'run image' button clicked work flow.

[YOCTO #2155]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: Interpret some special characters for label markup
Shane Wang [Sat, 2 Jun 2012 04:54:38 +0000 (12:54 +0800)]
Hob: Interpret some special characters for label markup

Interpret some special characters for label markup, such as &, <, >, etc.
Otherwise, the message dialog can't show them, and worsely, it makes the
whole message blank.

[Yocto #2492]

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: add versions for compatibility check between Hob and templates
Shane Wang [Sat, 2 Jun 2012 04:54:37 +0000 (12:54 +0800)]
Hob: add versions for compatibility check between Hob and templates

If a user uses a very old version of Hob and does some work,
later on he/she upgrade to the latest version of Hob, because
Hob may change the settings (add more config option into the Adv.
Settings dialog or remove some), then the old templates are not
loadable and workable for the new Hob.

Even though the user hasn't save any template before, the Hob could
remember the settings between Hob sessions as a default template,
(Remember we have a bug to ask Hob remember between sessions?),
the new Hob will also load the default template.

By adding versions, we can easily to fix the issue. If the versions
don't match, Hob will remove the old default template first and
initiate a new build, which has very very little impact on the user.
(Just can't remember from the previous session after the user upgrades
to a new and incompatible Hob)

[Yocto #2492]

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: lower the limitation for PyGTK
Shane Wang [Sat, 2 Jun 2012 04:54:36 +0000 (12:54 +0800)]
Hob: lower the limitation for PyGTK

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: fixed a definition not match issue when click choose directflb in package page
Liming An [Fri, 1 Jun 2012 10:40:59 +0000 (18:40 +0800)]
Hob: fixed a definition not match issue when click choose directflb in package page

[YOCTO #2526]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: fix entry of recipe page can't be edited in case after clicked clear button
Liming An [Fri, 1 Jun 2012 10:40:58 +0000 (18:40 +0800)]
Hob: fix entry of recipe page can't be edited in case after clicked clear button

cancel some inviable code and fixed this issue

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: clear the repeated function get_kernel_file_name
Liming An [Fri, 1 Jun 2012 10:40:57 +0000 (18:40 +0800)]
Hob: clear the repeated function get_kernel_file_name

there are a repeated function in builder.py and imagedetailspage.py,
so combine them to one.

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: include varflags in checksums
Paul Eggleton [Wed, 30 May 2012 16:17:18 +0000 (17:17 +0100)]
bitbake: include varflags in checksums

Add a dependency to each variable on a filtered list of its varflags.
This is intended to catch things such as SRC_URI checksums, varflags
controlling extra functionality from classes (e.g. the recently updated
update-alternatives class in OE-Core), etc. and ensure their values
influence the sstate checksums.

There is an exclusion list which needs to be set via bitbake.conf
(BB_SIGNATURE_EXCLUDE_FLAGS), if this is not set then the functionality
is disabled. The existing vardepsexclude mechanism can also be used to
exclude undesired varflags, but they must be fully specified, e.g.:

do_patch[vardepsexclude] += "do_patch[someflag]"

Implements [YOCTO #2517].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/bb/fetch2: ignore remote URIs when doing file checksums
Paul Eggleton [Wed, 30 May 2012 16:17:17 +0000 (17:17 +0100)]
lib/bb/fetch2: ignore remote URIs when doing file checksums

Skip evaluating remote URIs when doing local file checksums, because we
don't need to process them and doing so will trigger a parse failure if
SRCREV is not fully specified. Whilst this is just delaying a check
until runtime (when do_fetch runs for the recipe) we're only validating
this here accidentally and if we did wish to check it during parsing it
ought to be done explicitly.

Fixes [YOCTO #2512]

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocooker: report recipe being parsed when ExpansionError occurs
Paul Eggleton [Wed, 30 May 2012 16:17:16 +0000 (17:17 +0100)]
cooker: report recipe being parsed when ExpansionError occurs

When an ExpansionError occurs during parsing it is useful to know which
recipe was being parsed when it occurred.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocooker: fix UnboundLocalError when exception occurs during parsing
Paul Eggleton [Wed, 30 May 2012 16:17:15 +0000 (17:17 +0100)]
cooker: fix UnboundLocalError when exception occurs during parsing

Fix a recent regression where we see the following additional error
after an error occurs during parsing:

ERROR: Command execution failed: Traceback (most recent call last):
  File "/home/paul/poky/poky/bitbake/lib/bb/command.py", line 84, in runAsyncCommand
    self.cooker.updateCache()
  File "/home/paul/poky/poky/bitbake/lib/bb/cooker.py", line 1202, in updateCache
    if not self.parser.parse_next():
  File "/home/paul/poky/poky/bitbake/lib/bb/cooker.py", line 1672, in parse_next
    self.virtuals += len(result)
UnboundLocalError: local variable 'result' referenced before assignment

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/bb/data_smart.py: don't report variable in ExpansionError if not set
Paul Eggleton [Wed, 30 May 2012 16:17:14 +0000 (17:17 +0100)]
lib/bb/data_smart.py: don't report variable in ExpansionError if not set

If the variable name is not specified then don't confuse the error message
by starting off with "Failure expanding variable None...".

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agohob: handle sanity check failures as a separate event
Paul Eggleton [Mon, 28 May 2012 17:10:39 +0000 (18:10 +0100)]
hob: handle sanity check failures as a separate event

In order to show a friendlier error message that does not bury the
actual sanity error in our typical preamble about disabling sanity
checks, use a separate event to indicate that sanity checks failed.

This change is intended to work together with the related change to
sanity.bbclass in OE-Core.

Fixes [YOCTO #2336].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: add the 'build new' be as the primary action for 'Image detail' page
Liming An [Wed, 30 May 2012 12:01:11 +0000 (20:01 +0800)]
Hob: add the 'build new' be as the primary action for 'Image detail' page

As ui design, we should set at least one primary action for 'My Image' and
'Image detail' screen as the differnt selected image. if no 'run image' or
no 'save as template' or no 'deploy image' we should set 'build new image'

[YOCTO #2326]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: Fixed a compatible issue for indicator icon view
Liming An [Wed, 30 May 2012 12:01:10 +0000 (20:01 +0800)]
Hob: Fixed a compatible issue for indicator icon view

Because some screen not support the alpha visual channel, so the function
'screen.get_rgba_colormap()' will return None, it's a compatible issue, so
change it by another way.

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHOB: 'str' object has no attribute 'close'
Robert Yang [Wed, 30 May 2012 10:19:08 +0000 (18:19 +0800)]
HOB: 'str' object has no attribute 'close'

For builddetailspage.py:
  The "f" was a stream in the past, it is a string now, so it doesn't
  need f.close(), and change its name to "branch".

  And we don't need the "2>&1" since bb.process.run() can handle it, it
  will raise exception when error occurs, we should handle the exception
  ourselves if we want to ignore the error.

For hig.py:
  Use bb.process.Popen() since it doesn't need the return value. If we
  use bb.process.run(), the parent process will wait for the child process
  to terminate to get the result.

[YOCTO #2511]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agohob2: set beginning folders for FileChooserDialog
Kang Kai [Wed, 30 May 2012 08:13:47 +0000 (16:13 +0800)]
hob2: set beginning folders for FileChooserDialog

Set begining folders FileChooserDialog for the select images and
some local directory configurations. That may make user feel more
convenient.

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocooker.py: terminate the Parser processes
Kang Kai [Wed, 23 May 2012 09:40:19 +0000 (17:40 +0800)]
cooker.py: terminate the Parser processes

[Yocto 2142]

Force to exit HOB when hob is parsing recipes, the bitbake doesn't stop.
It hangs on function BitBakeServerConnection::terminate in file
server/process.py:
    else:
        self.procserver.join()
It is waiting for the children process quit.

In stage of parse recipes BBCooker spawns Parser processes as many as
cpu numbers. When quit the Parser processes they make their internal
Queue to call cancel_join_thread() to avoid block but don't work at
this time.
So force to terminate the Parser processes.

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/bb/fetch2: fix comments for verify_checksum
Paul Eggleton [Thu, 24 May 2012 15:47:55 +0000 (16:47 +0100)]
lib/bb/fetch2: fix comments for verify_checksum

This function no longer returns a value, it raises errors instead, so
update the comments to reflect this.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/exceptions: Handle reports from the field of exception code failures
Richard Purdie [Thu, 24 May 2012 13:23:44 +0000 (14:23 +0100)]
bitbake/exceptions: Handle reports from the field of exception code failures

Despite using python 2.6, there have been reports of issues where
bitbake is printing tracebacks with errors in the exception handling
code. This was masking the real error.

Since we need to do whatever we can to give the user good feedback about
errors, detect the tuple instead of namedtuple case and don't fault
in the exception handler but just give up trying to traceback any further.

In the reported cases, this gives a message the user can then understand.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/utils.py: Ensure utils.which() returns full paths
Richard Purdie [Thu, 24 May 2012 12:57:16 +0000 (13:57 +0100)]
bitbake/utils.py: Ensure utils.which() returns full paths

If the path passed to which contains empty elements, it will search
the current working directory for the file which is correct baheviour.

Various pieces of code assume the path returned is a full path though.
This commit ensures we don't return relative paths.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/cooker: Ensure matchFile returns full pathnames
Richard Purdie [Thu, 24 May 2012 12:56:34 +0000 (13:56 +0100)]
bitbake/cooker: Ensure matchFile returns full pathnames

We should always be passing full pathnames around within bitbake. If
a file was referenced as a relative path to the current working
directory, it might not get passed through the abspath call and
hence the cwd would not get added as a prefix.

This change adds a second pass at ensuring we only return absolute paths.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob:fixed the issue of primary button is not an 'orange hob button'
Liming An [Thu, 24 May 2012 11:07:10 +0000 (19:07 +0800)]
Hob:fixed the issue of primary button is not an 'orange hob button'

In image detail page, the primary button should be an 'orange hob
button', there has a primary button is not, so change it.

[YOCTO #2326]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoBBHandler: Tweak some data store access methods to the preferred syntax
Richard Purdie [Thu, 24 May 2012 10:03:33 +0000 (11:03 +0100)]
BBHandler: Tweak some data store access methods to the preferred syntax

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: Adjust the progress bar and set 100% only when all is done.
Shane Wang [Wed, 23 May 2012 15:19:44 +0000 (23:19 +0800)]
Hob: Adjust the progress bar and set 100% only when all is done.

After parsing recipes, Hob will populate recipes and packages, which is probably
time exhaused. So, this patch is to adjust the progress bar and ensure 100% is
set if and only if all populations are done.

The patch also fixes "weird 18 second delay when parsing recipes" on build appliance.
Because Hob is doing something, but the progress bar shows 100% and wait there.

[Yocto #2341]

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild.py: Add support for log and run filename changes
Mark Hatle [Wed, 23 May 2012 15:45:12 +0000 (10:45 -0500)]
build.py: Add support for log and run filename changes

The format of the log file and run file are now selectable
using BB_LOGFMT and BB_RUNFMT, respectively.

The following values may be used:

{task} - task name
{taskfunc} - task.func or func, if task==func
{func} - function name, only available in BB_RUNFMT
{pid} - pid

The log/run files may be placed into a subdirectory that
is relative to T.

Default BB_LOGFMT is: log.{task}.{pid}
Default BB_RUNFMT is: run.{func}.{pid}

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild.py: Add additional debug messages
Mark Hatle [Wed, 23 May 2012 15:45:11 +0000 (10:45 -0500)]
build.py: Add additional debug messages

We now add a debug message when entering and exiting a python or
shell function.  This makes it easier to inspect a log and figure
out the run order from the logs.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild.py: Cleanup exec_func_shell
Mark Hatle [Wed, 23 May 2012 15:45:10 +0000 (10:45 -0500)]
build.py: Cleanup exec_func_shell

exec_func_python and exec_func_shell are similar, but variable
usage has diverged sync the two up.  Since exec_func_python is first
use that as the guide for the later exec_func_shell variable naming.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild.py: Add a log to capture task execution order
Mark Hatle [Wed, 23 May 2012 15:45:09 +0000 (10:45 -0500)]
build.py: Add a log to capture task execution order

The new log.task_order contains an ordered list of the tasks as they
were executed in any given recipe.  The format of the lines is
<task> <pid>: <log file>

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoreplace os.popen with subprocess.Popen
Robert Yang [Sun, 20 May 2012 12:36:06 +0000 (20:36 +0800)]
replace os.popen with subprocess.Popen

Replace os.popen with subprocess.Popen since the older function would
fail (more or less) silently if the executed program cannot be found

There is a bb.process.run() which will invoke the Popen to run command,
use it for simplify the code.

For the:
p4file = os.popen("%s%s files %s" % (p4cmd, p4opt, depot))
...
for file in p4file:
    list = file.split()

in bitbake/lib/bb/fetch2/perforce.py, it should be an error in the past,
since it didn't use readline() to read the pipe, but directly used the
split() for the pipe. Use the bb.process.run would fix the problem since
bb.process.run will return strings.

More info:
http://docs.python.org/library/subprocess.html#subprocess-replacements

[YOCTO #2075]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoreplace os.system with subprocess.call
Robert Yang [Sun, 20 May 2012 12:36:05 +0000 (20:36 +0800)]
replace os.system with subprocess.call

Replace os.system with subprocess.call since the older function would
fail (more or less) silently if the executed program cannot be found

More info:
http://docs.python.org/library/subprocess.html#subprocess-replacements

[YOCTO #2075]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: support $BITBAKE_UI environment
Enrico Scholz [Sun, 20 May 2012 15:19:11 +0000 (17:19 +0200)]
bitbake: support $BITBAKE_UI environment

Patch adds support for a $BITBAKE_UI environment variable which allows
to configure the preferred user interface. Although an '-u' option
(which will override the environment variable) exists already, it was
required to specify this option on every invocation of bitbake.

Because user interface is instanciated very early in the program it is
not possible to use bitbake.conf for setting up a default.  An
environment variable (which acts in a similar category like $PAGER or
$EDITOR) is a simple way for configuring the default.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: implement checksums for local files in SRC_URI
Paul Eggleton [Tue, 22 May 2012 23:23:32 +0000 (00:23 +0100)]
bitbake: implement checksums for local files in SRC_URI

Gathers a list of paths to have checksums calculated at parse time, and
processes these when calculating task hashes. Checksums are cached with
the file's current mtime. Thus, changing any local file in SRC_URI will
now cause the do_fetch taskhash to change, thus forcing a rebuild.

This change adds very roughly about an 8% increase in parse time (a few
seconds) and maybe a few seconds during runqueue generation, so a fairly
moderate performance hit.

Note that since paths are resolved at parse time, this will not force
a rebuild when files are introduced which would cause that resolved path
to be different - for example, where a machine-specific version of a file
was added without otherwise changing the recipe. This will need to be
handled in a future update.

Code to hook this into the signature generator was courtesy of
Richard Purdie <richard.purdie@linuxfoundation.org>.

Implements [YOCTO #2044].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: refactor out codeparser cache into a separate class
Paul Eggleton [Tue, 22 May 2012 23:23:31 +0000 (00:23 +0100)]
bitbake: refactor out codeparser cache into a separate class

We want to be able to reuse most this functionality for the file
checksum cache.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: fixed the issue about the 'run image' page should have the primary bug
Liming An [Mon, 21 May 2012 14:41:24 +0000 (22:41 +0800)]
Hob: fixed the issue about the 'run image' page should have the primary bug

issues: when build a image for atom-pc, the output does not include live
image, and 'Save as template' should become the primary action on the screen

[YOCTO 2326]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: fixed the line width of base image description view
Liming An [Mon, 21 May 2012 14:41:23 +0000 (22:41 +0800)]
Hob: fixed the line width of base image description view

As ui design, adjusted the line width for each base image description

[YOCTO 2310]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: fixed the issue about bug 'running image' workflow and related view
Liming An [Mon, 21 May 2012 14:41:22 +0000 (22:41 +0800)]
Hob: fixed the issue about bug 'running image' workflow and related view

[YOCTO #2155]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: change the build failure scenario as ui design
Liming An [Mon, 21 May 2012 14:41:21 +0000 (22:41 +0800)]
Hob: change the build failure scenario as ui design

change the top bar display in build 'issue' page

[YOCTO #2183]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: add '--select a machine--' and '--select a base image--' to GUI
Liming An [Mon, 21 May 2012 14:41:20 +0000 (22:41 +0800)]
Hob: add '--select a machine--' and '--select a base image--' to GUI

[YOCTO #2175]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofetch2: quote/unquote url paths
Christopher Larson [Mon, 21 May 2012 23:34:49 +0000 (16:34 -0700)]
fetch2: quote/unquote url paths

This ensures we can handle things like %-encoded characters in the path
portion of urls.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: Get image name internally when updating the image description
Dongxiao Xu [Tue, 22 May 2012 03:08:35 +0000 (11:08 +0800)]
Hob: Get image name internally when updating the image description

The image name shouldn't be passed from outside caller, since the image
name may not in the combobox list. Getting the name from
update_image_desc() internally.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: Add filter for images listed in image combo
Dongxiao Xu [Tue, 22 May 2012 03:08:34 +0000 (11:08 +0800)]
Hob: Add filter for images listed in image combo

Define BBUI_IMAGE_WHITE_PATTERN variable to indicate which image is
allowed to be displayed in image combobox.

Define BBUI_IMAGE_BLACK_PATTERN variable to indicate which image is NOT
allowed to be displayed in image combobox.

This fixes [YOCTO #1581]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: reimplement the proxy page
Shane Wang [Tue, 22 May 2012 11:33:23 +0000 (19:33 +0800)]
Hob: reimplement the proxy page

This patch is to reimplement the proxy page in the "Advanced Settings" dialog
per the new design in https://bugzilla.yoctoproject.org/attachment.cgi?id=442
and https://bugzilla.yoctoproject.org/attachment.cgi?id=443.

[Yocto #2247]

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofetch2: Also exclude urls containing wildcards from checksumming for now
Richard Purdie [Tue, 22 May 2012 11:18:11 +0000 (12:18 +0100)]
fetch2: Also exclude urls containing wildcards from checksumming for now

Without this change, bitbake will try and checksum a wildcard which
will lead to fetch failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobb/fetch2/__init__.py: Don't try to compute checksums for directories
Andrei Gherzan [Sun, 20 May 2012 17:16:35 +0000 (20:16 +0300)]
bb/fetch2/__init__.py: Don't try to compute checksums for directories

In this way we avoid failing the build while trying to fetch local
directories.

[YOCTO #2475]

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agohob: update required pygtk to 2.22.0 and gtk+ to 2.20.0
Joshua Lock [Fri, 13 Apr 2012 23:24:10 +0000 (16:24 -0700)]
hob: update required pygtk to 2.22.0 and gtk+ to 2.20.0

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/bb/ui/crumbs/[package|recipe]selectionpage: include button
Joshua Lock [Fri, 13 Apr 2012 17:48:11 +0000 (17:48 +0000)]
lib/bb/ui/crumbs/[package|recipe]selectionpage: include button

The indication of the included packages/recipes in the top right of the
GUI, per design, is a button which switches the Notebook to the included
tab.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/bb/ui/crumbs/imageconfiguration: fix combo boxes drop-down width
Joshua Lock [Thu, 12 Apr 2012 19:58:11 +0000 (19:58 +0000)]
lib/bb/ui/crumbs/imageconfiguration: fix combo boxes drop-down width

The width of the combo boxes drop down should match the combo box
itself.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/bb/ui/crumbs/hobwidget: use light text in HobIndicator
Joshua Lock [Thu, 12 Apr 2012 19:45:29 +0000 (19:45 +0000)]
lib/bb/ui/crumbs/hobwidget: use light text in HobIndicator

Dark text on a dark background is difficult to read. Further the design
document uses white text.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/bb/ui/crumbs/: replace custom HobNotebook
Joshua Lock [Thu, 12 Apr 2012 19:43:12 +0000 (19:43 +0000)]
lib/bb/ui/crumbs/: replace custom HobNotebook

The custom HobNotebook widget was implemented to address perceived
deficiencies in the gtk.Notebook API.

Recent inspection reveals that the API is capable of all that Hob
requires of it and therefore maintaining a custom class to provide
similar functionality does not make sense.

Addresses [YOCTO #2276]

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob:add function about clicked a row to load image file for 'my images' page
Liming An [Mon, 14 May 2012 12:51:50 +0000 (20:51 +0800)]
Hob:add function about clicked a row to load image file for 'my images' page

[YOCTO #2238]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: Apply a line length to consistantly display image descriptions
Liming An [Mon, 14 May 2012 12:51:48 +0000 (20:51 +0800)]
Hob: Apply a line length to consistantly display image descriptions

[YOCTO #2310]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoknotty2: return exit code
Enrico Scholz [Sat, 19 May 2012 09:59:53 +0000 (11:59 +0200)]
knotty2: return exit code

'bitbake -u knotty2' never failed which was caused by main() not
propagating the exit code.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/fetch: Spell out which fetcher backends support and recommend checksums
Richard Purdie [Tue, 15 May 2012 19:49:36 +0000 (19:49 +0000)]
bitbake/fetch: Spell out which fetcher backends support and recommend checksums

There were some hardcoded behaviours in the system for which backends
support checksums verses which backends recommend them verses which
don't recommend them.

This moves the functionality into specific fetchers and then makes the
general code generic. This cleans up the codebase and fixes some corner
cases such as trying to checksum directories returned by the git fetcher.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/fetch: If checksums are available, check them for any file, local or remote
Richard Purdie [Sun, 13 May 2012 12:31:01 +0000 (12:31 +0000)]
bitbake/fetch: If checksums are available, check them for any file, local or remote

Currently, checksums are only checked for remote files. This changes
the check to apply to any file we have checksum data for. A mismatch
against a file is fatal but in the local case, no warnings are shown
about missing checksums.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/fetch2: Improve visibility of checksum warnings when fetching from mirrors
Richard Purdie [Sun, 13 May 2012 12:00:45 +0000 (12:00 +0000)]
bitbake/fetch2: Improve visibility of checksum warnings when fetching from mirrors

When fetching from mirrors, checksum errors would get buried in the
logs. This raises their profile so a warning is logged on the console
when fetcher checksum issues are encountered, even if other attempts
are made to get the file (which may or may not have the same issue).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/fetch2: Improve stamp creation in mirror code
Richard Purdie [Sun, 13 May 2012 07:40:42 +0000 (07:40 +0000)]
bitbake/fetch2: Improve stamp creation in mirror code

Under certain contitions such as local file:// mirrors of all files,
bitbake might not check checksums. This is not desirable and we should
always check the checksum where possible.

This only exception to this is the git mirror tarball case where the
checksum is unknown but we need to create the .done stamp for other
reasons. This patch preserves thta functionality but in a more specific
section of code where this doesn't interfere in normal checksums.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/fetch2: Remove hardcoded file removal and use clean method
Richard Purdie [Sun, 13 May 2012 07:38:13 +0000 (07:38 +0000)]
bitbake/fetch2: Remove hardcoded file removal and use clean method

Under certain circumstances, bitbake could remove files which were
outside its control since it unconditionally removes ud.localpath.
In the file:// case this can point at external paths.

This patch converts it to use the clean() method which will remove
files when its safe to do so but not in the file:// case since the
file:// handler has an empty clean method. This means bitbake no
longer removes files outside its control and is generally much safer.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosetup.py: fix path for bitbake-selftest
Martin Jansa [Sat, 12 May 2012 06:57:47 +0000 (08:57 +0200)]
setup.py: fix path for bitbake-selftest

* currently fails with:
  running build_scripts
  creating build/scripts-2.7
  copying and adjusting bin/bitbake -> build/scripts-2.7
  copying and adjusting bin/bitbake-layers -> build/scripts-2.7
  copying and adjusting bin/bitbake-diffsigs -> build/scripts-2.7
  copying and adjusting bin/bitbake-prserv -> build/scripts-2.7
  error: file '/tmp/tmpfs/portage/dev-embedded/bitbake-9999/work/bitbake-9999/bitbake-selftest' does not exist

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/bb/siggen.py: ensure dumped signatures have group R/W
Joshua Lock [Sat, 12 May 2012 01:21:51 +0000 (18:21 -0700)]
lib/bb/siggen.py: ensure dumped signatures have group R/W

We anticipate signatures being shared amongst peers in a group so ensure
they have rw-rw-r-- permissions to facilitate this.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/bb/siggen: use open() rather than the file constructor
Joshua Lock [Sat, 12 May 2012 00:58:57 +0000 (17:58 -0700)]
lib/bb/siggen: use open() rather than the file constructor

The Python documentation states:
 "When opening a file, it’s preferable to use open() instead of invoking
the file constructor directly." [1]

Further in Python 3 direct use of the file constructor is no longer
possible.

1. http://docs.python.org/library/functions.html#open

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/tests: Add test of the git fetcher
Richard Purdie [Fri, 11 May 2012 17:16:01 +0000 (18:16 +0100)]
bitbake/tests: Add test of the git fetcher

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/fetch2/git: Set a default for the GITDIR variable
Richard Purdie [Fri, 11 May 2012 17:15:16 +0000 (18:15 +0100)]
bitbake/fetch2/git: Set a default for the GITDIR variable

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/fetch2/git: Don't set the branch name to None, that makes no sense
Richard Purdie [Fri, 11 May 2012 17:14:40 +0000 (18:14 +0100)]
bitbake/fetch2/git: Don't set the branch name to None, that makes no sense

With floating revisions and no specified branch, the fetcher could fail
with some obtuse errors. This was due to the branch name being set to None
which makes no sense. This patch reworks some conditions to avoid this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/runqueue: Drop check_stamp_fn, it's obsolete and should not be used
Richard Purdie [Thu, 10 May 2012 08:23:11 +0000 (09:23 +0100)]
bitbake/runqueue: Drop check_stamp_fn, it's obsolete and should not be used

This function was used by old code such as packaged staging but is thankfully
obsolete now and replaced with better mechanisms. Its time to remove it and
the horrible internal only variables associated with it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/runqueue: Drop check_stamps function, it is obsolete and unused
Richard Purdie [Thu, 10 May 2012 08:22:22 +0000 (09:22 +0100)]
bitbake/runqueue: Drop check_stamps function, it is obsolete and unused

This was originally used to check the consistency of the stamps in one function
call. This turns out to be inefficient, unnecessary and if it were necessary,
check_stamp_task() could be called in a loop. The function has been unmodified
for a while and likely contains bugs. Its best simply removed.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/runqueue: Fix 'full' stamp checking to be more efficient and cache results
Richard Purdie [Thu, 10 May 2012 08:21:41 +0000 (09:21 +0100)]
bitbake/runqueue: Fix 'full' stamp checking to be more efficient and cache results

This should fix issues where bitbake would seemingly lock up when checking
certain configurations of stampfiles.

The cache is kept within the runqueue since that feels like the right
place to associate this cache data.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqueue: drop unnecessary keys() in runqueue_process_waitpid
Christopher Larson [Wed, 9 May 2012 23:35:48 +0000 (18:35 -0500)]
runqueue: drop unnecessary keys() in runqueue_process_waitpid

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqueue: handle task exit due to signal/stop
Christopher Larson [Wed, 9 May 2012 23:32:20 +0000 (18:32 -0500)]
runqueue: handle task exit due to signal/stop

- for a normal exit, use WEXITSTATUS, rather than manually shifting
- for exit via signal, set the exit code to 128+N, per shell convention
- if a process was stopped, return and don't handle it, as the process can yet
  be continued

This should fix the case where bitbake says a task failed with an exit code of
0 (we assumed failure based on the overall status, but didn't pass all the
information along to task_fail).

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: change the workflow about click 'Run Image' to run directly after builded a...
Liming An [Tue, 8 May 2012 11:48:08 +0000 (19:48 +0800)]
Hob: change the workflow about click 'Run Image' to run directly after builded a qemu image

[YOCTO #2155]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: add group number show and 'bold' visible effect for Package view
Liming An [Tue, 8 May 2012 11:48:07 +0000 (19:48 +0800)]
Hob: add group number show and 'bold' visible effect for Package view

as ui design, add number of packages for each group, and make the
text font to 'bold' when row be selected

[YOCTO #2195]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: add original url show function with the tooltip hyperlink for user
Liming An [Tue, 8 May 2012 11:48:06 +0000 (19:48 +0800)]
Hob: add original url show function with the tooltip hyperlink for user

When case about No browser, such as running in 'Build Appliance', user can't open
the hyper link, so add this work around for user. (Checking the browser is avaiable
or not is hard by different system and browser type)

[YOCTO #2340]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: change the refresh icon speed to make it view clear
Liming An [Tue, 8 May 2012 11:48:05 +0000 (19:48 +0800)]
Hob: change the refresh icon speed to make it view clear

Because the arrow icon refresh so fast as the go backward by illusion, so adjust it slow.

[YOCTO #2335]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: Clear the building status if command failed
Dongxiao Xu [Mon, 7 May 2012 06:08:35 +0000 (14:08 +0800)]
Hob: Clear the building status if command failed

We may meet certain command failure during build time, for example,
out of memory. In this case, we need to clear the "building" status.

This fixes [YOCTO #2371]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/tests/fetch: Add simple http fetcher tests
Richard Purdie [Fri, 4 May 2012 17:28:21 +0000 (18:28 +0100)]
bitbake/tests/fetch: Add simple http fetcher tests

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/fetch2/wget: Add fallback/default wget commands
Richard Purdie [Fri, 4 May 2012 17:27:31 +0000 (18:27 +0100)]
bitbake/fetch2/wget: Add fallback/default wget commands

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/fetch2/wget: Remove unneeded function indirection and reindent
Richard Purdie [Fri, 4 May 2012 17:26:40 +0000 (18:26 +0100)]
bitbake/fetch2/wget: Remove unneeded function indirection and reindent

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/fetch2/wget: Remove unnecessary use of OVERRIDES
Richard Purdie [Fri, 4 May 2012 17:26:00 +0000 (18:26 +0100)]
bitbake/fetch2/wget: Remove unnecessary use of OVERRIDES

This allows some simplifications of the function and is slightly faster.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/fetch2: When unpacking, only use PATH variable if its set
Richard Purdie [Fri, 4 May 2012 17:25:13 +0000 (18:25 +0100)]
bitbake/fetch2: When unpacking, only use PATH variable if its set

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/fetch2: Remove WORKDIR reference, should use passed parameter
Richard Purdie [Fri, 4 May 2012 17:24:32 +0000 (18:24 +0100)]
bitbake/fetch2: Remove WORKDIR reference, should use passed parameter

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/tests: Add missing __init__.py file
Richard Purdie [Fri, 4 May 2012 16:42:28 +0000 (17:42 +0100)]
bitbake/tests: Add missing __init__.py file

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: Add start of bitbake regression/self testing
Richard Purdie [Fri, 4 May 2012 15:18:55 +0000 (16:18 +0100)]
bitbake: Add start of bitbake regression/self testing

This adds some basic unit testing for the codeparser and data store code. Many of
the actual test cases were taken from work by Chris Larson's OE-Signatures work but with
changes to adapt to the current bitbake APIs we need to test.

I also imported CoW tests written by Holger Freyther from the original bitbake-test
codebase: http://svn.berlios.de/wsvn/bitbake/trunk/bitbake-tests/tests/ and
some tests from the doctests that were removed in commit:
http://git.openembedded.org/bitbake/commit?id=3a11c2807972bbbddffde2fa67fc380d159da467

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/utils: Convert vercmp_string() to use vercmp internally
Richard Purdie [Fri, 4 May 2012 14:03:33 +0000 (15:03 +0100)]
bitbake/utils: Convert vercmp_string() to use vercmp internally

Having two different version comparision algorithms in bitbake has never seemed
like a sensible idea. Worryingly, they also return different results to each other.

The vercmp_string API is relatively unused with no users in OE-Core or BitBake
itself for example. This patch converts it to use vercmp internalls, bringing
consitency to the comparisions which is easy now we have other recently added
functions. Yes, this changes behaviour but in this case I'd prefer we were
consistent than having two different comparisions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/fetch2: Fix spelling error in network access error message
Jeff Polk [Fri, 4 May 2012 14:05:15 +0000 (08:05 -0600)]
bitbake/fetch2: Fix spelling error in network access error message

Signed-off-by: Jeff Polk <jeff.polk@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofetch2/git: Allow file:// URLs without checking for network access
Jeff Polk [Fri, 4 May 2012 14:05:14 +0000 (08:05 -0600)]
fetch2/git: Allow file:// URLs without checking for network access

Don't check for network access before grabbing the the current head,
cloning, or updating a clone when the protocol is 'file'.

Signed-off-by: Jeff Polk <jeff.polk@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 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>
8 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>
8 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>