scm/bb/tizen-distro.git
10 years agobitbake: toaster: update database schema
Alexandru DAMIAN [Thu, 6 Mar 2014 18:22:38 +0000 (18:22 +0000)]
bitbake: toaster: update database schema

This is a schema update to account for

* relaxing constraints in Target_Image_File table
* modifying permission filed to string value
* adding license_manifest_path field
* adding image_size field

(Bitbake rev: f8488845ee9670e16a63c331dd2e97fdb314929c)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses: Add gummiboot class
Stefan Stanacar [Thu, 6 Mar 2014 17:59:07 +0000 (19:59 +0200)]
classes: Add gummiboot class

Adds a gummiboot class similar to grub-efi class and makes the necessary
changes so it can be used for live/hddimg images as well.

One can set EFI_PROVIDER = "gummiboot" in local.conf to use gummiboot instead of grub-efi.
Gummiboot requires some kernel options that are not enabled by default, so one has to build
with KERNEL_FEATURES_append = " cfg/efi-ext".

The install scripts have been updated too, keeping the old behaviour around,
but accounting for the new boot loader config files (if they exist).
It can be argued that the installer and bootimg are a bit wierd and not necessarily correct,
but I wanted to have the exact same behviour with gummiboot.
With the default EFI_PROVIDER = "grub-efi" nothing changes, everthing should be just as before.

I've tested live boot, install and normal boot on:
    - FRI2
    - genericx86-64 on NUC
with:
  EFI_PROVIDER = "gummiboot"
  KERNEL_FEATURES_append = " cfg/efi-ext"
in local.conf.

(From OE-Core rev: b457e40fc69cc6503dc566f16495f03606e5333b)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobootimg/grub-efi.bbclass: allow using a different class for EFI images
Stefan Stanacar [Thu, 6 Mar 2014 17:57:25 +0000 (19:57 +0200)]
bootimg/grub-efi.bbclass: allow using a different class for EFI images

Abstract away some names so one can select using EFI_PROVIDER a different
class than grub-efi for populating live images, basically allowing the use
of a different bootloader than grub-efi.

(From OE-Core rev: 14e5de3b8f4d5902d0ac683ff45fb878e88b40ef)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorecipes-bsp: Add gummiboot recipe
Stefan Stanacar [Fri, 21 Feb 2014 10:17:35 +0000 (12:17 +0200)]
recipes-bsp: Add gummiboot recipe

gummiboot is a simple UEFI boot manager.

Recipe imported from meta-intel with these changes:
 - drop PR and update configure options
 - upgraded to latest version

A couple of notes:
 - If you wish you can install the gummiboot package on the target and
use 'gummiboot install' to add the payload to the ESP (see gummiboot --help,
just make sure the ESP partition has the boot flag on as gummiboot won't accept it
otherwise). However the point of this recipe is to be used by bootimg.bbclass and
generate images with gummiboot instead of grub-efi.
 - You need a kernel which has CONFIG_EFI_STUB=y at least
 - The default linux-yocto kernel config does not enable that, easiest way
to enable is to build with KERNEL_FEATURES_append = " cfg/efi-ext" in local.conf

(From OE-Core rev: 8f95d0598c31fff76e2a58fecb6c96197121a044)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorecipes-bsp: add gnu-efi recipe
Stefan Stanacar [Sun, 9 Mar 2014 13:22:15 +0000 (15:22 +0200)]
recipes-bsp: add gnu-efi recipe

gnu-efi is required by gummiboot.
Imported from meta-intel, PR dropped, no new version available.

(From OE-Core rev: fdb65c569db2b55023f9d1d72959e4e7d187a1d8)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agomtd-utils: Update version to include fixes after 1.5.0
Lauren Post [Fri, 7 Mar 2014 21:52:43 +0000 (15:52 -0600)]
mtd-utils: Update version to include fixes after 1.5.0

This includes fixes on master branch not in the 1.5.0 release

(From OE-Core rev: 51a2478b5542b2a1315c98d3f807535b9f0c46d2)

Signed-off-by: Lauren Post <lauren.post@freescale.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoe2fsprogs: fix cross compilation problem
Chen Qi [Wed, 5 Mar 2014 05:14:32 +0000 (13:14 +0800)]
e2fsprogs: fix cross compilation problem

When compiling e2fsprogs for qemumips64, we got compilation errors.
The root cause is that parse-types.sh script would fail for mips64.

However, the type size checking in parse-types.sh doesn't make much
sense in case of cross compilation. This is because that the typedef
statements in asm_types.h are for the target machine while the generated
binary in parse-types.sh script is executed on build machine.

This patch fixes such problem.

(From OE-Core rev: 45877518e2d277c63d5a561408fbfcd4cb5a2a76)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years ago.templateconf: New file for customized template defaults
Gary Thomas [Mon, 24 Feb 2014 17:11:49 +0000 (17:11 +0000)]
.templateconf: New file for customized template defaults

This file will allow easy customization of the build tools,
in particular the default setting of TEMPLATECONF, which
should reduce the need to fiddle with scripts in the future.

(From meta-yocto rev: 75ba1055872b74735c674cca2e8d54c2d4a545a0)

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoscripts/oe-setup-builddir: Keep track of TEMPLATECONF setting
Gary Thomas [Mon, 24 Feb 2014 17:11:48 +0000 (17:11 +0000)]
scripts/oe-setup-builddir: Keep track of TEMPLATECONF setting

Keeping track of the TEMPLATECONF variable in the build
tree will let this script produce the same output when
listing 'conf-notes.txt' every time the script is run,
regardless of whether or not TEMPLATECONF has been
provided by the user.

Note that the default value for TEMPLATECONF now comes from
an easily customizable file $OEROOT/.templateconf

(From OE-Core rev: 4474357faf2cbca250e99630d749776fbc80d44b)

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooe-init-build-env: Improve script sourcing detection.
Gary Thomas [Mon, 24 Feb 2014 17:11:47 +0000 (17:11 +0000)]
oe-init-build-env: Improve script sourcing detection.

This script is only useful when sourced into a shell.
These changes improve the detection of this operation,
no matter how the script is referenced.

(From OE-Core rev: cac863e958a0c8fe0f8a84dc194273c699f0c40f)

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/utils/qemurunner: search for login string in the entire boot log
Stefan Stanacar [Fri, 7 Mar 2014 14:20:07 +0000 (14:20 +0000)]
oeqa/utils/qemurunner: search for login string in the entire boot log

If some service is to spammy we might miss the login, so search
in the entire log instead of just the last few lines.
Use qemu in regex too (to avoid a login string from some service).

(From OE-Core rev: 1117d25fdfabbf1afdc7030e05efc6a32df871e3)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/targetcontrol: fix loading a controller using a class name
Stefan Stanacar [Fri, 7 Mar 2014 11:34:05 +0000 (11:34 +0000)]
oeqa/targetcontrol: fix loading a controller using a class name

This was wrong and if one would do TEST_TARGET = "SimpleRemoteTarget"
instead of TEST_TARGET = "simpleremote" it would complain
that there is no such controller when there is.

(From OE-Core rev: 47d2049d13ab71e0310e9eedaf307d6c3e530b44)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/targetcontrol: allow a custom port for SimpleRemoteTarget
Stefan Stanacar [Fri, 7 Mar 2014 11:08:30 +0000 (11:08 +0000)]
oeqa/targetcontrol: allow a custom port for SimpleRemoteTarget

We had the ability to use a custom port for the ssh connection,
but we weren't using it.

(From OE-Core rev: c1f2a3c41969df0b7f08cf314b2cb7c9a6030092)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodiffutils: enable ptest support
Chong Lu [Fri, 7 Mar 2014 09:27:22 +0000 (09:27 +0000)]
diffutils: enable ptest support

Install diffutils test suite and run it as ptest.

(From OE-Core rev: 14cc60db64975ad7cb8ae7d50e0233e9d59713df)

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoxf86-video-intel: add recipe for 2.99.910, remove the git one
Laurentiu Palcu [Fri, 7 Mar 2014 14:33:05 +0000 (14:33 +0000)]
xf86-video-intel: add recipe for 2.99.910, remove the git one

Intel graphics stack releases >= 2013Q3 need
xf86-video-intel >= 2.99.902. However, keep the stable release around
too, in case people need it.

The git recipe is not really used. Remove, since it has missing
PACKAGECONFIG, license checksums and so on.

(From OE-Core rev: f707b6d81d2548e1bc8effdf267d1e40cc2cb806)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/sstate: don't overwrite buildhistory vardepsexclude
Paul Eggleton [Mon, 10 Mar 2014 11:50:22 +0000 (11:50 +0000)]
classes/sstate: don't overwrite buildhistory vardepsexclude

This was stomping over the value added in buildhistory.bbclass, leading
to task signatures *still* changing when buildhistory was added to
INHERIT.

Fixes [YOCTO #5897].

(From OE-Core rev: f7a0aa412a921a41d301be072cedcda2662ffbd7)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodmidecode: add powerpc to compatible host
Wenzong Fan [Fri, 7 Mar 2014 09:14:47 +0000 (09:14 +0000)]
dmidecode: add powerpc to compatible host

(From OE-Core rev: e69d9eaf4f81bfcf5b5aa73dd29784548f1fa166)

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibsdl: bump PR
Martin Jansa [Wed, 5 Mar 2014 19:19:45 +0000 (19:19 +0000)]
libsdl: bump PR

* another PRINC removed

(From OE-Core rev: 85db931054caa4dfb7bfca596558dcff4de286fc)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel-yocto: replace '=' with '+='
Ming Liu [Sun, 9 Mar 2014 10:05:52 +0000 (10:05 +0000)]
kernel-yocto: replace '=' with '+='

The dependency to CCACHE_DIR was moved to ccache.bbclass in
commit 2acf8da4f13c175ea818b9514677b7059de1e3e2:
[ ccache: Separate out into its own class ]

then the '=' should be replaced by '+=', otherwise, it will overwrite
the original ${CCACHE_DIR} in dirs.

Signen-off-by: Ming Liu <ming.liu@windriver.com>
(From OE-Core rev: e8b90254747651670031e6b2b8a702732124ecac)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoptest: Don't enable ptest for nativesdk and cross-canadian packages
Tudor Florea [Mon, 10 Mar 2014 11:51:26 +0000 (11:51 +0000)]
ptest: Don't enable ptest for nativesdk and cross-canadian packages

The ptest is useful in context of deployment to the target hence
we don't need ptest for nativesdk and cross-canadian packages

(From OE-Core rev: c0c96df9f6d571b6d1e26013822375942003e3b9)

Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoeglibc: Fix build for FSL ppc/fpu
Khem Raj [Mon, 10 Mar 2014 15:51:37 +0000 (15:51 +0000)]
eglibc: Fix build for FSL ppc/fpu

The patch needs to adapt to upstream changes
should fix errors on e500mc+ based SOCs

This should fix [YOCTO #5871]

(From OE-Core rev: 6235cc3ccf98dce15ffe3313cf4e6cdf9c922bce)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoltp: Don't link against libfl
Chong Lu [Tue, 11 Mar 2014 07:23:04 +0000 (15:23 +0800)]
ltp: Don't link against libfl

We have already defined yywrap function in scan.l file. After this, we no
longer need to link against libfl.
Since we are using --as-needed by default in linker, which means we end
up with errors like

libfl.so: undefined reference to `yylex'

(From OE-Core rev: db8b59b4ffee73c6e80029083793531d7fd408c4)

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage_deb: Map TARGET_ARCH x86_64 to DPKG_ARCH amd64
Ricardo Ribalda Delgado [Tue, 11 Mar 2014 10:07:35 +0000 (11:07 +0100)]
package_deb: Map TARGET_ARCH x86_64 to DPKG_ARCH amd64

Without this patch packages are generated as x86_64. Which cannot be
installed by default.

root@qt5022:~# dpkg -i alsa-utils_1.0.27.2-r0_x86-64.deb
dpkg: error processing alsa-utils_1.0.27.2-r0_x86-64.deb (--install):
 package architecture (x86-64) does not match system (amd64)
Errors were encountered while processing:
 alsa-utils_1.0.27.2-r0_x86-64.deb

(From OE-Core rev: a08eacc6d821d6946b23a99bca5abf785875b1cf)

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/utils/qemurunner: use the right kill call so we don't send SIGTERM to bitbake...
Stefan Stanacar [Tue, 11 Mar 2014 12:11:08 +0000 (14:11 +0200)]
oeqa/utils/qemurunner: use the right kill call so we don't send SIGTERM to bitbake-worker

After recent bitbake-worker changes [1] this was killing the bitbake-worker,
which isn't what we want and kill(-pid) was the wrong call anyway.

runqemu.pid is the right PGID as the process was started with preexec_fn=setpgrp
(so no need to do os.getpgid(self.runqemu.pid))

[1] http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=15688798520896690561824b2fdc227c8a365c82

(From OE-Core rev: f4bf21b40ec6fa07c4a7bb450e3cfae12128dc2c)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: runqueue: Use SIGCHLD instead of polling waitpid
Richard Purdie [Mon, 10 Mar 2014 00:59:53 +0000 (17:59 -0700)]
bitbake: runqueue: Use SIGCHLD instead of polling waitpid

Instead of a significant number of calls to waitpid, register a SIGCHLD
handler instead.

(Bitbake rev: 76029d08ad56a0a264ff9738a0336971a455b7f5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: server/process: Optimise latency when finishing idle functions
Richard Purdie [Mon, 10 Mar 2014 00:59:10 +0000 (17:59 -0700)]
bitbake: server/process: Optimise latency when finishing idle functions

When idle functions finish, its likely we have some other work
to do, so don't sleep in the select call but instead, skip it.
This removes small amounts of latency in common commands.

(Bitbake rev: 069d6538f83b607cb46c6fe21bf6c596e8b99242)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: server/process: Drop unnecessary exit delay
Richard Purdie [Mon, 10 Mar 2014 00:58:36 +0000 (17:58 -0700)]
bitbake: server/process: Drop unnecessary exit delay

When the server exits, we no longer appear to need this delay. This
is likely due to improvements in the various exit codepaths. There
is therefore no longer any point in taking the latency hit.

(Bitbake rev: 8e75ee29ae07e13f23525c5c6045fbf6cdbe7675)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: server/process: Use a pipe for quit events instead of Event()
Richard Purdie [Mon, 10 Mar 2014 00:58:02 +0000 (17:58 -0700)]
bitbake: server/process: Use a pipe for quit events instead of Event()

Its not possible to notice the change of status of an Event() in
the select call we sleep in. It would be possible in python 3.3 but
for now use a pipe instead. This removes small latency when bitbake
commands finish since the system doesn't sit in the select call.

(Debugging these kind of issues is apparent by setting a long sleep
for the select call)

(Bitbake rev: def28239b0f0d5f1cf13214b263114a5328538b7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: knotty: Remove latency when exiting
Richard Purdie [Mon, 10 Mar 2014 00:57:11 +0000 (17:57 -0700)]
bitbake: knotty: Remove latency when exiting

There is no point in waiting 0.25s for when we should be processing
the shutdown. This simply reordering removes latency from the
bitbake command.

(Bitbake rev: f147b41bcaf9d05b5ba3a70100f1ca799979aee7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: knotty: Add missing continue statement for runQueueExitWait event
Richard Purdie [Mon, 10 Mar 2014 00:56:18 +0000 (17:56 -0700)]
bitbake: knotty: Add missing continue statement for runQueueExitWait event

The continue statement was missing for this event and the event was then
listed in the "known safe to ignore list". Clean this up.

(Bitbake rev: c4ee342300bf905e6e3bef581c61b86289461536)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: providers/runqueue/taskdata: Optimise logger.debug calls
Richard Purdie [Mon, 10 Mar 2014 00:55:45 +0000 (17:55 -0700)]
bitbake: providers/runqueue/taskdata: Optimise logger.debug calls

A run of "bitbake bash -c unpack" when the task has already been
completed resulted in about 9000 calls to logger.debug(). With this
patch which comments out some noisy/less usefull logging and moves
other logging calls outside loops, this number is reduced to 1000
calls. This results in cleaner logs and gives a small but
measurable 0.15s speedup. The log size dropped from 900kb to 160kb.

(Bitbake rev: d2677f084fe1d8846db77d89ef5e6ffb18dc171a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: cooker: Handle SIGTERM more gracefully
Richard Purdie [Sun, 9 Mar 2014 17:05:54 +0000 (10:05 -0700)]
bitbake: cooker: Handle SIGTERM more gracefully

If the cooker receives a SIGTERM it currently hangs using 100% CPU,

This patch adds in an intercept for the event and puts the cooker into
shutdown mode allowing it to exit cleanly/safely and avoiding the hang.

(Bitbake rev: 00c22434123739b0819b31d7b1d353901a3e12da)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: server/process: Deal more gracefully with SIGTERM
Richard Purdie [Sun, 9 Mar 2014 17:04:41 +0000 (10:04 -0700)]
bitbake: server/process: Deal more gracefully with SIGTERM

Currently a SIGTERM to the UI process causes the UI simply to lock up.

By setting an exit flag, the waitEvent can raise a SIGINT, allowing the
UI to break out the event loop and exit. Currently this is results in a
traceback but that is more desirable than a hanging process.

(Bitbake rev: 0d12041eceeae6bba2034b04913bb13abd67bd15)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: server/process: Use the setFeatures command on the server instead of a manger
Richard Purdie [Sun, 9 Mar 2014 17:02:50 +0000 (10:02 -0700)]
bitbake: server/process: Use the setFeatures command on the server instead of a manger

The use of a manager in the process server causes some issues since it remains
around for the lifetime of the server even though its only used during
initialisation and the system doesn't respond well to SIGTERM events
to the extra process (and two threads) the implementation involves.

Switching to a dedicated command simplifies the server process structure.

(Bitbake rev: 74532a7cf8ccea8b85f1cda5d5bc23d2f3c72a08)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: cooker/command: Add setFeatures command
Richard Purdie [Sun, 9 Mar 2014 17:02:08 +0000 (10:02 -0700)]
bitbake: cooker/command: Add setFeatures command

Add a command to allow backends to set particular 'features' on the
cooker (server).

(Bitbake rev: f547d6ec6cfd677d71fa96dd3c69823c00dc6c69)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: runqueue.py: Gracefully handle a missing worker process
Richard Purdie [Sun, 9 Mar 2014 17:01:19 +0000 (10:01 -0700)]
bitbake: runqueue.py: Gracefully handle a missing worker process

If the worker has already gone missing (e.g. SIGTERM), we should
gracefully handle the write failures at exit time rather than throwing
ugly tracebacks.

(Bitbake rev: 1b1672e1ceff17fc4ff8eb7aa46f59fce3593873)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: runqueue.py: Handle worker disappearing gracefully
Richard Purdie [Sun, 9 Mar 2014 17:00:17 +0000 (10:00 -0700)]
bitbake: runqueue.py: Handle worker disappearing gracefully

If the worker (or fakeworker) process disappears for some reason, the
system doesn't currently even notice. To fix this, we call waitpid
periodically, looking for exit events of our children. If these
occur, we can gracefully shutdown the server.

(Bitbake rev: ee28ddadaa7ef91e4d4b7d22fc267382aaad6d01)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: bitbake-worker: Gracefully handle SIGTERM
Richard Purdie [Sun, 9 Mar 2014 16:59:19 +0000 (09:59 -0700)]
bitbake: bitbake-worker: Gracefully handle SIGTERM

Currently if bitbake-worker handles a SIGTERM, it leaves the child
processes to complete or hang. It shouldn't do this so hook the SIGTERM
event and gracefully shutdown any children.

(Bitbake rev: 551406f3f9ee94de09d2da6e16fea054c6dbfdb7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: knotty: Deal with exceptions not resetting terminal configuration
Richard Purdie [Sun, 9 Mar 2014 16:58:01 +0000 (09:58 -0700)]
bitbake: knotty: Deal with exceptions not resetting terminal configuration

When an exception occurred, the terminal parameters (such as echo)
may not be reset correctly. This change ensures they do get
atexit time in all cases, avoiding the terminal corruption issues
that could sometimes occur.

(Bitbake rev: e1d89166f2dfe46412ff9a5610dd57b0cef74fe3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual: Review edits applied throughout from Paul Eggleton.
Scott Rifenbark [Fri, 7 Mar 2014 18:41:08 +0000 (12:41 -0600)]
bitbake: user-manual: Review edits applied throughout from Paul Eggleton.

Applied review edits from Paul Eggleton spanning the entire book.
Small areas affected in all chapters except the "Hello World"
Appendix.

Noteworthy changes in the variables chapter where I added two new
variables: BBINCLUDELOGS_LINES and BB_CONSOLELOG.

(Bitbake rev: 2d4b09be70c6df0c1605f7e291149c682999cf50)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual: Review edits applied from Paul Eggleton.
Scott Rifenbark [Thu, 6 Mar 2014 15:48:37 +0000 (09:48 -0600)]
bitbake: user-manual: Review edits applied from Paul Eggleton.

Review of the entire manual by Paul.  I have implemented his
suggestions throughout.

(Bitbake rev: 5cd310d1df194cd171691a4bcfb98024e2bc66b8)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual: removed SVK references - all types.
Scott Rifenbark [Tue, 4 Mar 2014 20:10:36 +0000 (14:10 -0600)]
bitbake: user-manual: removed SVK references - all types.

(Bitbake rev: fbbd4cd54753a5d91b5c342d60d007bd2b172570)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-ref-variables.xml: Edits to BB_GENERATE_MIRROR_TARBALLS variable
Scott Rifenbark [Tue, 4 Mar 2014 20:05:45 +0000 (14:05 -0600)]
bitbake: user-manual-ref-variables.xml: Edits to BB_GENERATE_MIRROR_TARBALLS variable

Added some clarification around who would like to set this
variable and why.

(Bitbake rev: 97acce37528ed11165e37996c7076de46c349b0a)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-metadata.xml: Added BB_ORIGENV example.
Scott Rifenbark [Tue, 4 Mar 2014 20:03:01 +0000 (14:03 -0600)]
bitbake: user-manual-metadata.xml: Added BB_ORIGENV example.

(Bitbake rev: d4328e2df355252870c3bf01031538a77795cedb)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-metadata.xml: Grammar fix.
Scott Rifenbark [Tue, 4 Mar 2014 19:58:37 +0000 (13:58 -0600)]
bitbake: user-manual-metadata.xml: Grammar fix.

(Bitbake rev: 71e314b86957ecc01d77262d0a000f6f31db2bcc)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-execution.xml: Review edits for "Execution" chapter.
Scott Rifenbark [Tue, 4 Mar 2014 17:52:01 +0000 (11:52 -0600)]
bitbake: user-manual-execution.xml: Review edits for "Execution" chapter.

Applied various changes from Richard Purdie's review of the
"Execution" chapter.

(Bitbake rev: 714c0e93bc2d1ae6227991a1c6e4c88504c1870c)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual: Review edits from Richard (second draft)
Scott Rifenbark [Tue, 25 Feb 2014 23:56:24 +0000 (17:56 -0600)]
bitbake: user-manual: Review edits from Richard (second draft)

Applied the comprehensive set of review comments from Richard
Purdie.  All files affected.  One major point here was that the
"BitBake Command" chapter was eliminated.  This information was
folded into various areas of the book.  Consequently, the bits
including the file for make had to be updated.

(Bitbake rev: 8ec38c6b456a92a0e0b9b04c2793a5b148be5027)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual: Added "Hello World" Appendix.
Scott Rifenbark [Wed, 19 Feb 2014 22:15:38 +0000 (16:15 -0600)]
bitbake: user-manual: Added "Hello World" Appendix.

I took Bill's chapter and made it into an appendix.  I did some
re-writing to make it not so much like a getting-started feel,
although it still leans way that way for an appendix.  The content
is not complete.

Had to add in a line to the user-manual.xml file so that the
new appendix would be part of the book.

Had to use a different form of the command in the
user-manual-cusomization.xsl file in order to not through a bunch
of errors for an unrecognized parameter value.  I commented out
the existing one.

(Bitbake rev: 80e9306c288ca2ab42585f99fb0f396253cb8253)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-fetching.xml: Re-write of the Fetching chapter.
Scott Rifenbark [Tue, 18 Feb 2014 23:43:15 +0000 (17:43 -0600)]
bitbake: user-manual-fetching.xml: Re-write of the Fetching chapter.

Based on a Richard Purdie re-write.

(Bitbake rev: fad9a6258f8c04bbe0168e46898dd27b86c39ee0)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-metadata.xml: Title change, sections lifted.
Scott Rifenbark [Tue, 18 Feb 2014 20:50:13 +0000 (14:50 -0600)]
bitbake: user-manual-metadata.xml: Title change, sections lifted.

Changed the title of the chapter to "Syntax and Operators".  It
was called "Metadata".

Removed the bulk the "Checksums (Signatures)" section and the
placeholder for "Setscene".  These are now in the "Execution"
chapter.

Created a more appropriate overview blurb to start the chapter.

(Bitbake rev: f955171d8468ed987f92146d39f52d9af4a03dbb)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-fetching.xml: Removed a link.
Scott Rifenbark [Tue, 18 Feb 2014 20:48:46 +0000 (14:48 -0600)]
bitbake: user-manual-fetching.xml: Removed a link.

The link no longer applied as it was linking to a removed
section from the "Execution" chapter.

(Bitbake rev: de1c316a3f5f382c66b58ad2539b4fadb0f000db)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-execution.xml: Review edits applied.
Scott Rifenbark [Tue, 18 Feb 2014 20:46:13 +0000 (14:46 -0600)]
bitbake: user-manual-execution.xml: Review edits applied.

Significant review changes implemented from Richard Purdie.

* Eliminated the lifted text from the "Closer Look" chapter
  of the YP ref-manual.

* Added the "BitBake" chapter in from the YP ref-manual.

* Significant re-writes and suggestions throughout the
  entire chapter.

(Bitbake rev: 4a740385a4720e040af3d329d9c7cc77b03e7f46)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-intro.xml: Review edits to Introduction chapter.
Scott Rifenbark [Tue, 18 Feb 2014 13:49:12 +0000 (07:49 -0600)]
bitbake: user-manual-intro.xml: Review edits to Introduction chapter.

Applied review edits to the introduction chapter as suggested
by Richard Purdie.

(Bitbake rev: c6c912cf875766036b91af785f257f64ff07146c)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-execution.xml: Draft of "Execution" chapter
Scott Rifenbark [Fri, 14 Feb 2014 19:55:42 +0000 (13:55 -0600)]
bitbake: user-manual-execution.xml: Draft of "Execution" chapter

This is a rough draft of the chapter.  Major sections are in
place.  We need to scrub content now.

Seems like the discussion of BBFILES fit better in this
execution flow chapter.  So, I moved it above the parsing
section.

(Bitbake rev: 6c4c6fb689b88dbefe63f0062b78d8403fb80d41)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-intro.xml: Added sections
Scott Rifenbark [Fri, 14 Feb 2014 19:55:03 +0000 (13:55 -0600)]
bitbake: user-manual-intro.xml: Added sections

Added the append files and layer subsections.

(Bitbake rev: 38c3ead4ac8036ac88e83a938aa4ce484d4a6a84)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-bitbakecommand.xml: Added anchor tag for the chapter.
Scott Rifenbark [Fri, 14 Feb 2014 13:46:01 +0000 (07:46 -0600)]
bitbake: user-manual-bitbakecommand.xml: Added anchor tag for the chapter.

(Bitbake rev: 5aa6679aa8b5b6b8bf4b43cabde04072498ccea4)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-fetching.xml: Re-write of "File Download Support" chapter.
Scott Rifenbark [Wed, 12 Feb 2014 02:00:02 +0000 (20:00 -0600)]
bitbake: user-manual-fetching.xml: Re-write of "File Download Support" chapter.

Basic re-write to clean up text and flow.

(Bitbake rev: 0f82dc4c22ce015bef87fd5aae0b6fa3e429016e)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual: Added new chapter to cover BB execution.
Scott Rifenbark [Tue, 11 Feb 2014 19:45:54 +0000 (13:45 -0600)]
bitbake: user-manual: Added new chapter to cover BB execution.

This commit added need files, cleaned up bogus links, and
adjusted the build file, which is user-manual.xml.

The new chapter file is "user-manual-execution.xml". The file
has base text from the bitbake section from the "Closer Look"
chapter of the YP ref-manual.  This means that I had to initially
include some figures from that book for now.  I am not including
them as part of this commit though as they will likely get renamed.
I made sure that all links were removed that were specific to the
YP ref-manual.

Another change was in the user-manual.xml file to include
the new chapter as part of the build.

Another block of text for the new chapter was the "Running a Task"
section from the user-manual-metadata.xml file.  Consequently, that
section was deleted from the "Metafile" chapter.

Another block of text for the new chapter was the "Parsing
and Execution" section from the user-manual-metadata.xml file.
Consequently, that section was deleted from the "Metafile chapter.

(Bitbake rev: f3b21d1fb711f9625d2ac92d4f4fe0f269242bd7)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-intro.xml: Added an introduction to the manual.
Scott Rifenbark [Tue, 11 Feb 2014 13:21:58 +0000 (07:21 -0600)]
bitbake: user-manual-intro.xml: Added an introduction to the manual.

Describes purpose and qualifies some stuff.

(Bitbake rev: b9704a367cccd85931fa4fb779d273a27361d503)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-ref-variables.xml: Added a note qualifying the variables.
Scott Rifenbark [Tue, 11 Feb 2014 13:11:07 +0000 (07:11 -0600)]
bitbake: user-manual-ref-variables.xml: Added a note qualifying the variables.

The note provides some information in general about the variables
that are part of the glossary.

(Bitbake rev: 8bcc6d1f1ef4e647ad6153ed7a9e0bd5bc62cf0b)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-metadata.xml: WIP - Some edits in the checksum area.
Scott Rifenbark [Tue, 11 Feb 2014 13:02:14 +0000 (07:02 -0600)]
bitbake: user-manual-metadata.xml: WIP - Some edits in the checksum area.

(Bitbake rev: f74045d9ac88aece1d6f8d6a95389d01971ffdac)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-metadata.xml: Rewrite "Accessing Datastore Variables Using Python"
Scott Rifenbark [Tue, 11 Feb 2014 02:25:53 +0000 (20:25 -0600)]
bitbake: user-manual-metadata.xml: Rewrite "Accessing Datastore Variables Using Python"

Rewrote this section.  Used a table instead of the funky list
that was there.  I still need to format it some.

Also fixed up the term "datastore".  It should not be "data store"

(Bitbake rev: ee23839596102ccd58e028c10471438f2eb37feb)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-metadata.xml: Re-write the "Dependencies" section.
Scott Rifenbark [Mon, 10 Feb 2014 22:18:47 +0000 (16:18 -0600)]
bitbake: user-manual-metadata.xml: Re-write the "Dependencies" section.

General edits and dumping of the useless "Overview" section.

(Bitbake rev: b11ad97b9334a86b2f3b10bdf5597910854475bd)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-metadata.xml: Re-write of "Variants - Class Extension Mechanism...
Scott Rifenbark [Mon, 10 Feb 2014 18:31:56 +0000 (12:31 -0600)]
bitbake: user-manual-metadata.xml: Re-write of "Variants - Class Extension Mechanism" section.

Some general rewrites here.

(Bitbake rev: 7149ab6f6e936c19d681f05aa64b123c10f2f3da)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-ref-variables.xml: Added BBVERSIONS variable.
Scott Rifenbark [Mon, 10 Feb 2014 18:31:21 +0000 (12:31 -0600)]
bitbake: user-manual-ref-variables.xml: Added BBVERSIONS variable.

(Bitbake rev: 0ee8e8db8475903754d519c5e6d7ec8e52ba9c85)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-metadata.xml: Re-write of "Events" section.
Scott Rifenbark [Mon, 10 Feb 2014 14:11:58 +0000 (08:11 -0600)]
bitbake: user-manual-metadata.xml: Re-write of "Events" section.

General cleanup of the text.

(Bitbake rev: 112dd4279826dc7587e1b8acb4a107374b5bd0fd)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-metadata.xml: General cleanup to "Parsing and Execution"
Scott Rifenbark [Fri, 7 Feb 2014 23:31:43 +0000 (17:31 -0600)]
bitbake: user-manual-metadata.xml: General cleanup to "Parsing and Execution"

I went through and created links for variables we reference that
are in the glossary.  I also re-wrote much of the text to just
clean it up.

(Bitbake rev: dd9a4422d387da45f6de945eb4944c2a06bc98a0)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-metadata.xml: Edits to "Variable Flags" section
Scott Rifenbark [Fri, 7 Feb 2014 20:39:47 +0000 (14:39 -0600)]
bitbake: user-manual-metadata.xml: Edits to "Variable Flags" section

Worked through this section with Richard providing an interactive
review.  The changes are after the review.  There was also a
small edit to the "Tasks" section.

(Bitbake rev: cba57f8d900d7c3ed8da9fcab0697e3047476325)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-metadata.xml: Rewrite of the "Tasks" section.
Scott Rifenbark [Wed, 5 Feb 2014 22:31:46 +0000 (16:31 -0600)]
bitbake: user-manual-metadata.xml: Rewrite of the "Tasks" section.

I cleaned up this section with some general improvements.

I also broke this up into a couple sub-sections where it seemed
to logically fall.  Also, stole some metadata concept from the
next section ("Running Tasks") that really should be lumped under
"Tasks".

(Bitbake rev: 9673acda2239807e31f4fcda1574b3e5e2d013a6)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-metadata.xml: Rewrite of the "Functions" section.
Scott Rifenbark [Wed, 5 Feb 2014 22:29:54 +0000 (16:29 -0600)]
bitbake: user-manual-metadata.xml: Rewrite of the "Functions" section.

Re-organized this around the 3 types of functions that we seem
to be show-casing here.  The original organization was not very
good.

(Bitbake rev: 77ef63e5c4a9ea633a1be0f9f90366e0ecf555fa)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-ref-variables.xml: Edits to SRC_URI.
Scott Rifenbark [Wed, 5 Feb 2014 14:15:37 +0000 (08:15 -0600)]
bitbake: user-manual-ref-variables.xml: Edits to SRC_URI.

(Bitbake rev: b8472f81387f8b8110cd560d61a4563d53d26859)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-ref-variables.xml: Edits to BBCLASSEXTEND.
Scott Rifenbark [Wed, 5 Feb 2014 14:06:59 +0000 (08:06 -0600)]
bitbake: user-manual-ref-variables.xml: Edits to BBCLASSEXTEND.

(Bitbake rev: bc2a13ba86a5e01b457209b72608403e6aa12003)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-metadata.xml: Edits to "Sharing Functionality"
Scott Rifenbark [Tue, 4 Feb 2014 19:36:11 +0000 (13:36 -0600)]
bitbake: user-manual-metadata.xml: Edits to "Sharing Functionality"

Applied some review edits from Paul to the section.

(Bitbake rev: f4dc71a3ff2c7f2ca6093b751883a1244f8d3847)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-metadata.xml: Add bare bones of a scheduler section
Richard Purdie [Mon, 10 Mar 2014 01:48:14 +0000 (18:48 -0700)]
bitbake: user-manual-metadata.xml: Add bare bones of a scheduler section

(Bitbake rev: cf0ccb26cc7af9f29704bb4c7ada6bf8ef5b0ee6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-metadata.xml: Add details about general variables used by BitBake
Richard Purdie [Mon, 10 Mar 2014 01:47:48 +0000 (18:47 -0700)]
bitbake: user-manual-metadata.xml: Add details about general variables used by BitBake

(Bitbake rev: 7e78785a53e259225b632c161a70d82fe66eb672)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-metadata.xml: Add details about environment variables used by...
Richard Purdie [Mon, 10 Mar 2014 01:47:30 +0000 (18:47 -0700)]
bitbake: user-manual-metadata.xml: Add details about environment variables used by BitBake

(Bitbake rev: 91d3e60a48d2269adfd0084eb6f1bcdb211dbce1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toasterui: fix task identification
Alexandru DAMIAN [Wed, 5 Mar 2014 14:59:55 +0000 (14:59 +0000)]
bitbake: toasterui: fix task identification

This patch adds extra checks when selecting and writing
task and recipe objects to the database.

The patch fixes several issues where tasks may have been
misidentified between virtual-native and target tasks,
or spurious task objects may have been created.

(Bitbake rev: a6e597e690b3c6c6fa2af6db8cd871c02fc80421)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: fix issues in the build table
Alexandru DAMIAN [Fri, 21 Feb 2014 15:23:52 +0000 (15:23 +0000)]
bitbake: toaster: fix issues in the build table

This patches fixes minor issues in the sorting functionality
of the build table.

[YOCTO #5455]

(Bitbake rev: 47196039bd8bac2eddb1c19ad4fc2e285dc23ee3)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toasterui: fix status update on failed sstate tasks
Alexandru DAMIAN [Fri, 21 Feb 2014 11:59:38 +0000 (11:59 +0000)]
bitbake: toasterui: fix status update on failed sstate tasks

This patch fixes a logical error when updating task information
based on the corresponding sstate task state.

(Bitbake rev: 777458a20a7f686881e525a4d81b286c486ead6a)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: update database schema
Alexandru DAMIAN [Thu, 20 Feb 2014 12:47:55 +0000 (12:47 +0000)]
bitbake: toaster: update database schema

This patch updates the database schema to resolve a
number of issues discovered while implementing the
UI interface.

We do not expect that all the data will come in valid
at this point.

[YOCTO #5453]
[YOCTO #5833]
[YOCTO #5836]
[YOCTO #5811]
[YOCTO #5812]
[YOCTO #5820]

(Bitbake rev: f8ad96d10a095e21fd2ce424c45e17f54642fb54)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: Move long content toggle to main.js
Belen Barros Pena [Wed, 19 Feb 2014 21:08:15 +0000 (21:08 +0000)]
bitbake: toaster: Move long content toggle to main.js

I have move all javascript needed for toggling very long
values for bitbake variables to main.js. I have changed the
names of the classes involved to make them more generic,
since I hope we'll be able to reuse them in other parts
of the Toaster interface.

.full-variable is now .full
.full-variable-hide is now full-hide
.full-variable-show is now full-show

I have also removed all the inline scripting in base.html, since
it is no longer needed.

(Bitbake rev: 73828f047385ced160c7900cad24535aa8d325cd)

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: implement the configuration pagedreyna/configure-detail-view
David Reyna [Fri, 28 Feb 2014 13:55:46 +0000 (05:55 -0800)]
bitbake: toaster: implement the configuration pagedreyna/configure-detail-view

Update the configuration page with the file list pop-up, implement the file and description filters.

[YOCTO #4259]

(Bitbake rev: 54a767809960b66b2fe2d3bc46aa9c7e040c4ae3)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: View detailed information about a task
Ravi Chintakunta [Tue, 18 Feb 2014 04:30:41 +0000 (23:30 -0500)]
bitbake: toaster: View detailed information about a task

Information about a task is displayed depending on it's execution
status and outcome status.

Edited to iterate through all possible entries for related setscene
tasks.

[YOCTO #4282]

(Bitbake rev: 62f502b1237d4060df6be1ee4f4865db5fa39a6a)

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: Bug fix in reload page with parameters
Ravi Chintakunta [Tue, 18 Feb 2014 04:26:10 +0000 (23:26 -0500)]
bitbake: toaster: Bug fix in reload page with parameters

Fix the bug in reload_params function that was failing when
the page URL did not have any parameters.

(Bitbake rev: 8cba40daf521d1740687f9a030f8472f980a4563)

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: Fix breadcrumb date format in detail pages
Belen Barros Pena [Wed, 19 Feb 2014 10:57:56 +0000 (10:57 +0000)]
bitbake: toaster: Fix breadcrumb date format in detail pages

The template basebuilddetailpage.html had the completed
on date in the breadcrumb set to naturaltime. Changed to
d/m/y H:i to match the date format in the basebuildpage.html
template, so that breadcrumbs display the same date format across
all pages.

(Bitbake rev: 188c12901c9573285956cded76f27a0d6330c82e)

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: Sort packages and dependencies in recipe.html
Belen Barros Pena [Wed, 19 Feb 2014 10:35:27 +0000 (10:35 +0000)]
bitbake: toaster: Sort packages and dependencies in recipe.html

The tables in the Packages, Build dependencies and
Reverse build dependencies tabs in the recipe details
pages (template recipe.html) should be sorted by package
name and recipe name respectively.

This change adds the sorting.

(Bitbake rev: ff6c448c7b5bc7bf4fe75e15e66c4e02f07f7618)

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: Change popover headings in recipes table
Belen Barros Pena [Wed, 19 Feb 2014 09:54:47 +0000 (09:54 +0000)]
bitbake: toaster: Change popover headings in recipes table

In the recipes table, dependencies and reverse dependencies
are shown inside a popover. The popover headings did not
match the table headings, so changed to "dependencies" and
"reverse dependencies" as per the design spec.

(Bitbake rev: 05f19e5cd8cca48e6e52f4b3ea1cd25d2ba4ac1c)

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: Change help text for Section
Belen Barros Pena [Wed, 19 Feb 2014 09:45:24 +0000 (09:45 +0000)]
bitbake: toaster: Change help text for Section

The help text for the Section information in the
recipes table and the recipe details page said
"packages" instead of recipes, and it said there
were 5 possible values for the SECTION variable
(which is not true).

Changed to "The section in which recipes should
be categorised"

(Bitbake rev: 984273e07126674c674ad8b400418117ae087860)

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: Hide the applied filter tooltip on click
Belen Barros Pena [Wed, 19 Feb 2014 09:32:23 +0000 (09:32 +0000)]
bitbake: toaster: Hide the applied filter tooltip on click

When you apply a filter, we show you a tooltip on hover
that tells you which filter you have applied and allows you
to clear it quickly. That tooltip does not disappear
straight away if you click on the filter button: it hangs
in there because the tooltip has a delay specified on
hide. The effect is quite annoying.

This change to main.js makes sure the tooltip disappears when
you click the filter button.

(Bitbake rev: 5928d2f3cba4524966a34d8c845a04627b9b310b)

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: Add .muted class to disabled checkboxes
Belen Barros Pena [Wed, 19 Feb 2014 00:38:28 +0000 (00:38 +0000)]
bitbake: toaster: Add .muted class to disabled checkboxes

In the edit columns menu, the checkboxes for the columns in the
minimum table are disabled. To better communicate visually
the disabled state, this change applies the .muted class
to the labels of those checkboxes.

(Bitbake rev: 125a3da654ac7742a93ac93f4f23336ecd251a61)

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: Set the right styles for definition lists
Belen Barros Pena [Tue, 18 Feb 2014 14:29:26 +0000 (14:29 +0000)]
bitbake: toaster: Set the right styles for definition lists

In the task details page, our labels are quite long and
the default width of the dt elements in the .dl-horizontal
class is too small. Changing the width to 200px, and the
left margin of the dd element to 220px.

Changing the bootstrap.min.css file is not ideal (ok, is
a pretty bad hack), but it is the only way to keep the
nice responsive styles for those definition lists.

(Bitbake rev: 1e655eb121173b4441a9a4e9005fe8c1f235dfbb)

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: Set correct string for missed sstate attempts
Belen Barros Pena [Tue, 18 Feb 2014 12:08:40 +0000 (12:08 +0000)]
bitbake: toaster: Set correct string for missed sstate attempts

Replace 'Missed' with 'File not in cache'in models.py

(Bitbake rev: cb76a1d39ce36a36dc398a0422bcfac1c72f9c2b)

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: Remove inline styles in h1
Belen Barros Pena [Thu, 6 Feb 2014 18:57:56 +0000 (18:57 +0000)]
bitbake: toaster: Remove inline styles in h1

The templates bpackage.html, recipes.html and build.html included
an inline style declaration in the div containing the h1
tag to add a top margin of 40px. The extra top margin
is unnecessary in bpackage.html and recipes.html, but nicely
separates the Recent builds and All builds sections in build.html.

The changes remove the inline style declaration and create
a .top-air class in default.css to include the extra top margin
when needed, i.e. in the build.html template.

(Bitbake rev: 2841f0740024a8351606452a5f803b9b7f70c783)

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: extend Tasks to include Time, Disk IO, and CPU Usage
David Reyna [Fri, 14 Feb 2014 22:58:20 +0000 (14:58 -0800)]
bitbake: toaster: extend Tasks to include Time, Disk IO, and CPU Usage

Update the All Tasks page to also cover the Time, Disk I/O, and
CPU Usage pages. Add filter count header support, and fix minor column
enablements.

[YOCTO #4387]

(Bitbake rev: 7e78836ebbddf0240094fd79a18cb057d6c4f322)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toasterui: add asserts on expected values
Alexandru DAMIAN [Wed, 19 Feb 2014 17:26:18 +0000 (17:26 +0000)]
bitbake: toasterui: add asserts on expected values

We add assert statements that validate expectations of
correct values and context when the data collection code is running.

These checks will help pinpointing unexpected data or
call flows, reducing debugging time.

Also contains a couple of very small fixes discovered through
these checks, including a virtual:native conflict with
regular tasks.

[YOCTO #5553]

(Bitbake rev: e2fbd5c6fa6b53514e2cb23d42aa639020d8a475)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toasterui: task data structure in toasterui
Alexandru DAMIAN [Tue, 18 Feb 2014 18:41:47 +0000 (18:41 +0000)]
bitbake: toasterui: task data structure in toasterui

We update the structure used to hold interm task data,
before it is written to the database, to lower the changes
of key collision.

This will also lead to a cleaner data structure and easier
inspection.

(Bitbake rev: 49cb9f543526a161bc4c097f94422ea08b491ef9)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: bb/ui: store_dependency_information optimization
Marius Avram [Tue, 18 Feb 2014 14:39:24 +0000 (16:39 +0200)]
bitbake: bb/ui: store_dependency_information optimization

This optimization is in support of the bug #5485. The function called
at the beginning of every build: store_dependency_information was taking
approximately 20sec and it was delaying the arrival of events from the
event queue. The change minimizes the calls to _save_a_task(),
reducing the time to half.

(Bitbake rev: b86fd2be40303d886fdb9ad3009355584d285acc)

Signed-off-by: Marius Avram <marius.avram@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: array-assignment fix from Chome
Alexandru DAMIAN [Mon, 10 Feb 2014 14:24:48 +0000 (14:24 +0000)]
bitbake: toaster: array-assignment fix from Chome

Apparently the JS engine in Chrome can't handle assignments to an array,
so I'm patching this up by using an intermediate array to hold the
values.

(Bitbake rev: 47f5fde1bd8cf2e6f7e5c4ec2534a2f9599c4ea2)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: mark dependency packages
Alexandru DAMIAN [Mon, 10 Feb 2014 14:26:12 +0000 (14:26 +0000)]
bitbake: toaster: mark dependency packages

We need to mark the package entries that are
created solely for dependency tracking purposes.

In order to avoid altering the database schema,
we mark the dependency targets with size = -1, since
this is not a valid size anyway and makes for easy
filtering.

[YOCTO #5803]

(Bitbake rev: d11ed273dd6c520b16e9ccfe79476f340006a55d)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toasterui: adding new task outcome empty
Alexandru DAMIAN [Thu, 13 Feb 2014 13:12:39 +0000 (13:12 +0000)]
bitbake: toasterui: adding new task outcome empty

In order to separate tasks with invalid states from the
no exec tasks, we add a new value OUTCOME_EMPTY for the tasks.

OUTCOME_EMPTY has the same value as OUTCOME_NA as to maintain
compatibility with already existing builds. New value for
OUTCOME_NA can be used to detect tasks with invalid states, i.e.
it should never appear after finishing a build.

Fixing noexec tasks outcomes.

[YOCTO #5763]

(Bitbake rev: 475643ad78796835bf2e731b9d0fa5794ec80dd1)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>