scm/bb/tizen-distro.git
10 years agobitbake: toaster: Change placeholder attribute in variables table
Belen Barros Pena [Sat, 15 Mar 2014 13:41:58 +0000 (13:41 +0000)]
bitbake: toaster: Change placeholder attribute in variables table

Set placeholder attribute for the search input field in
the variables table to "Search BitBake variables" as per
the design specification.

[YOCTO #5998]

(Bitbake rev: a18ae43e0ffa25df50ae6908270bb6b2304022a8)

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoaster.bbclass: update buildstats event data
Alexandru DAMIAN [Mon, 24 Mar 2014 18:28:22 +0000 (18:28 +0000)]
toaster.bbclass: update buildstats event data

We add the PN to the buildstats event data in order to
proper select database task when multiple similar tasks
are executed for the same recipe file.

(From OE-Core rev: 43d717df16312a8f0333aff6b8b037b4b9d51bf3)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoEnable yasm in gstreamer1.0-libav by default
Carlos Rafael Giani [Tue, 25 Mar 2014 12:43:06 +0000 (13:43 +0100)]
Enable yasm in gstreamer1.0-libav by default

Since yasm has been moved to OE-core, there is no reason for not enabling
yasm by default anymore. It improves performance of gstreamer1.0-libav
considerably.

(From OE-Core rev: ec734f0cccba2659334498235851c93ce8abef2b)

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopiglit: ship files with correct permissions
Valentin Popa [Tue, 25 Mar 2014 12:06:08 +0000 (14:06 +0200)]
piglit: ship files with correct permissions

Adress the warning
| warning: group pulse does not exist - using root

Piglit files from framework/ generated_tests/ tests/
and templates/ belong to xuser/pulse.
Don't keep the permissions while shipping the files,
they should be root/root.

[YOCTO #6028]

(From OE-Core rev: 226c47ff001a881c991c33674449a495132edd58)

Signed-off-by: Valentin Popa <valentin.popa@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobind: remove nslookup from FILES
Robert Yang [Tue, 25 Mar 2014 11:00:12 +0000 (19:00 +0800)]
bind: remove nslookup from FILES

The nslookup had been disabled from 2010 (or earlier), but it still in
FILES_${PN}-utils, we need remove it.

(From OE-Core rev: 3bf1f39d918a428246df774c8d306bcfe40ddbdd)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobind: fix no bind-utils package
Robert Yang [Tue, 25 Mar 2014 11:00:11 +0000 (19:00 +0800)]
bind: fix no bind-utils package

Fix the typo:
PACKAGES_preprend -> PACKAGES_prepend

(From OE-Core rev: 1cb1e5487be04da3af649026e9b66642f3d3ce30)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobinutils: Add fixes for binutils issue 16428
Richard Purdie [Tue, 25 Mar 2014 10:29:26 +0000 (10:29 +0000)]
binutils: Add fixes for binutils issue 16428

"ld:i386 crashes with -static -fPIE -pie"
https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/1266492

This adds in two upstream binutils fixes to avoid the internal error
triggered by the combination of -static with -pie on x86 builds. This
triggers a backtrace which then triggers a bug in glibc where the process
ends up hanging on some systems with broken libcs.

We can't fix the libc but we can stop the internal error and hence
avoid the hanging builds.

(From OE-Core rev: e949f9a8fc337bd768c7e8a3fd082775a94e0ad4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoperl-native: fix path in Config.sh for sstate
Robert Yang [Tue, 25 Mar 2014 08:34:15 +0000 (16:34 +0800)]
perl-native: fix path in Config.sh for sstate

We need fix the path in *.pm, *.pod, *.h, *.pl and *.sh as we have done
for target perl.

[YOCTO #6035]

(From OE-Core rev: 731a8735de53db870c476a675bb0dd9ddf5dcec8)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotcl: fix path in Config.sh for sstate
Robert Yang [Tue, 25 Mar 2014 08:34:14 +0000 (16:34 +0800)]
tcl: fix path in Config.sh for sstate

We need fix the path in tclConfig.sh, tdbcConfig.sh and itclConfig.sh
for sstate, otherwise there would be build failures when use the sstate
across different builds.

e.g., when building expect:
[snip]
tmp/sysroots/qemuarma9/usr/include/tcl8.6
checking for Tcl private include files... configure: error: Cannot find private header tclInt.h in
/path/to/another/build/tmp/sysroots/qemuarma9/usr/include/tcl8.6.1
Configure failed.
[snip]

[YOCTO #6035]

(From OE-Core rev: cd83e4a30311e4399c6c634fe06ec835a95a1c17)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: runqueue: Fix sceneQueueEvent to use the correct hashes
Richard Purdie [Tue, 25 Mar 2014 14:13:50 +0000 (14:13 +0000)]
bitbake: runqueue: Fix sceneQueueEvent to use the correct hashes

The runqueue should be using the "realtask" ID to lookup the task
hash, not the "task" ID. This patch resolves corruption issues where
incorrect task hashes were displayed within toaster.

(Bitbake rev: 84be1a27f89d1bf63c21f06d831df0a66a5db860)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: hob: fix set_extra_setting function
Marius Avram [Tue, 25 Mar 2014 13:02:35 +0000 (15:02 +0200)]
bitbake: hob: fix set_extra_setting function

The function is used to save additional variables in the configuration file
when the user adds a new (key, value) pair from the Settings->Others. There
was a problem though when the function was trying to retrieve an older
instance of EXTRA_SETTINGS from the configuration file. Sometimes its value
was returned as a dictionary and sometimes a string, which caused a crash when
calling ast.literal_eval(). The reason of the problem must be a change in
bitbake's parsing system. The changes will fix this issues.

While analysing this problem I discovered that the variables were not saved
properly in the configuration file after consecutive changes to Settings->Others
because of the way saveConfigurationVar() from cooker.py works. This patch
will also solve this issue.

[YOCTO #5989]

(Bitbake rev: bdbcd8866104c315fc9da631407d4280433dbfde)

Signed-off-by: Marius Avram <marius.avram@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: cooker: delVar in removeConfigurationVar
Marius Avram [Tue, 25 Mar 2014 13:02:10 +0000 (15:02 +0200)]
bitbake: cooker: delVar in removeConfigurationVar

When a variable was removed from a configuration file it was not
removed from memory. This also had the effect of not allowing
to set a new value for the same variable with saveConfigurationVar.

(Bitbake rev: 30cd1fab6633aaf50ef53eefccc6d69d598eb293)

Signed-off-by: Marius Avram <marius.avram@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-metadata.xml: Added varflag for vardepvalueexclude.
Scott Rifenbark [Thu, 20 Mar 2014 19:23:53 +0000 (13:23 -0600)]
bitbake: user-manual-metadata.xml: Added varflag for vardepvalueexclude.

Fixes [YOCTO #5897]

Added several new varflags to the existing list in the
"Variable Flags" section.  The key one being the
"vardepvalueexclude" flag.

(Bitbake rev: 01a07dabb0d0c6a7f8c3c048396cfdf9d756b032)

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 "Basic Variable Setting"
Scott Rifenbark [Thu, 20 Mar 2014 10:59:29 +0000 (04:59 -0600)]
bitbake: user-manual-metadata.xml: Edits to "Basic Variable Setting"

Fixes [YOCTO #5507]

I applied some edits from Richard's review to the fix for
handling variable setting.  Moved the new section I created into
the existing "Basic Variable Setting" section.

(Bitbake rev: 0d63589abfa6b353f3b456a9a91de4dd98eb3965)

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: Sections to handle variable setting added.
Scott Rifenbark [Thu, 20 Mar 2014 10:35:43 +0000 (04:35 -0600)]
bitbake: user-manual-metadata.xml: Sections to handle variable setting added.

Fixes [YOCTO #5507]

I provided further explanation in the "Basic Variable Setting"
section to note that trailing and leading blanks are not stripped
from a value when set (e.g. VARIABLE = " value").

I added a new section "Null and Blank Setting" explaning that setting
a variable to "" and " " are two different things.

(Bitbake rev: 96d0b38577476a3576487f1fa9a4b6c9dff5d3ed)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: Makefile: Added publish tag so the book can be published.
Scott Rifenbark [Thu, 13 Mar 2014 17:20:04 +0000 (11:20 -0600)]
bitbake: Makefile: Added publish tag so the book can be published.

(Bitbake rev: a895f76836c867822f5be33546e51b285e7016e0)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: replace package dependency tag w/ view queries
Alexandru DAMIAN [Mon, 24 Mar 2014 15:08:04 +0000 (15:08 +0000)]
bitbake: toaster: replace package dependency tag w/ view queries

This patch moves the queries for package dependencies from the
project tags to the views. This is done to bring the code inline
with the Django philosophy of making all data queries in views.py

This change has no performance implication.

(Bitbake rev: 9dd53bd4355148916a89cf672b6c5db5f6b1ae35)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: clean exit on bb server shutdown
Alexandru DAMIAN [Thu, 9 Jan 2014 15:11:59 +0000 (15:11 +0000)]
bitbake: toaster: clean exit on bb server shutdown

This patch adds the capability to have the Toaster UI
detect when the Bitbake server exited and cleanly
trigger a clean shutdown of the system through the toaster
starting script.

(Bitbake rev: a9cfa3eacfc99550e1ad3f8bb61b2a0bc9b44332)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toasterui: save missed sstate tasks
Alexandru DAMIAN [Mon, 17 Feb 2014 17:33:27 +0000 (17:33 +0000)]
bitbake: toasterui: save missed sstate tasks

We save the missed sstate tasks as tasks that executed
but have the sstate_result set to "SSTATE_MISSED", signaling
that the attempt to find an sstate file failed.

(Bitbake rev: 6f22e02614adcc642fe011e5e31ca4936d1cb19d)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: select recipe based on PN name
Alexandru DAMIAN [Wed, 19 Mar 2014 17:39:25 +0000 (17:39 +0000)]
bitbake: toaster: select recipe based on PN name

When saving task stats, if there were multiple tasks executed
based on the same recipe file, we might have saved the stats
to the wrong task by selecting another recipe.

This patch takes the PN into account to properly select
the file stats.

A check is also made to make sure we don't fail saving
data due to interrupted builds.

(Bitbake rev: e855031410daf2b99a6ca40b70956fe67c96f71c)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: Remove circular dependecies from packages/recipes
Irina Patru [Wed, 19 Mar 2014 12:24:47 +0000 (14:24 +0200)]
bitbake: toaster: Remove circular dependecies from packages/recipes

The RelatedManager for Package_Dependency and Recipe_Dependency is changed
so that circular dependacies are hidden in the UI, but will still remain in
the database.

[YOCTO #5655]

(Bitbake rev: 77e6cc952e73dec4a6e5149e52f87000709d2152)

Signed-off-by: Irina Patru <irina.patru@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: combine ready functions
Amit Kumar Chaudhary [Wed, 19 Mar 2014 11:21:40 +0000 (16:51 +0530)]
bitbake: toaster: combine ready functions

Merge the code into single ready function.

[YOCTO #4283]

(Bitbake rev: 16e6fc6e0492f4ebd5f18bd236478b6f9f778a1e)

Signed-off-by: Amit Kumar Chaudhary <amit@floatingpondtech.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: add search by section to all recipe page
David Reyna [Wed, 19 Mar 2014 04:18:28 +0000 (21:18 -0700)]
bitbake: toaster: add search by section to all recipe page

Add the 'section' to the searchable columns list for the recipe model.

[YOCTO #5993]

(Bitbake rev: 560569d0e1e5de694bc19d09bdf98890af54a6d6)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: bitbake toaster: check the file_name with the content of the IMAGE_FSTYPES...
Cristiana Voicu [Tue, 18 Mar 2014 16:27:17 +0000 (18:27 +0200)]
bitbake: bitbake toaster: check the file_name with the content of the IMAGE_FSTYPES variable

File_name information of Target_image_file is being collected for a
.rootfs.manifest file. We would like not to collect this. The solution is
to cross check the information gathered for file_name with the content
of the IMAGE_FSTYPES variable. If any of the file_name entries does not
match the content of IMAGE_FSTYPES, we do not store it.

[YOCTO #5189]

(Bitbake rev: 017771ed0508b247edaf875789260906f44381f4)

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: apply filter only on selected attributes
Marius Avram [Tue, 18 Mar 2014 14:48:37 +0000 (16:48 +0200)]
bitbake: toaster: apply filter only on selected attributes

This fixes the filter from the main page: 'All builds' applied to the
table header. Once one is selected, the filter button for that respective
column will receive a title attribute which will show additional options
when you hover over it. Until now the additional option was active for
all filters buttons not only for the one selected. This also caused
malformed output in the case of the buttons which weren't among the
selected filter.

[YOCTO #5929]

(Bitbake rev: 50e7f8f3bcfdd5b3e1b7778bfaaa93a563aba45d)

Signed-off-by: Marius Avram <marius.avram@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: Change "0 found" to "No found"
Belen Barros Pena [Sat, 15 Mar 2014 01:00:29 +0000 (01:00 +0000)]
bitbake: toaster: Change "0 found" to "No found"

Change the string in the h1 when search returns no results
from "0 things found" to "None things found". The change
applies to the BitBake variables, tasks, recipes, packages
built, time, CPU and disk I/O tables.

[YOCTO #5981]

(Bitbake rev: 8d71bd39947dd909d02c8d33847e5852c9f20f19)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: Update local configuration counter
Belen Barros Pena [Sat, 15 Mar 2014 00:21:51 +0000 (00:21 +0000)]
bitbake: toaster: Update local configuration counter

The counter for the local configuration filter in the
variables table was counting only variables set by
local.conf. Updating to add in variables set by
bblayers.conf

(Bitbake rev: 0047dd486c23707dd0fd7f9a2ae485b987d0b3e3)

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 help text to filters
Belen Barros Pena [Sat, 15 Mar 2014 00:13:06 +0000 (00:13 +0000)]
bitbake: toaster: Add help text to filters

The 'Set in file' and 'Description' filters in the configuration page,
and the 'Outcome' and 'Cache attempt' filters in the tasks page should
include a help tooltip with some explanation about what they do.
This change adds the tooltips.

(Bitbake rev: 7793de593121da9761e4584331b68bf684112300)

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: Fix alignment issue in searchform
Belen Barros Pena [Wed, 19 Feb 2014 23:43:50 +0000 (23:43 +0000)]
bitbake: toaster: Fix alignment issue in searchform

The search form in basetable_top.html had a small alignment
issue between the search text field and the search button.
This change aligns the elements correctly.

Whitespace fix by Alex Damian.

(Bitbake rev: 54ec8dfe779bc20d5aaeeeeb768da8412e5dfd0f)

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: fix package size 1st sort order
Dave Lerner [Tue, 18 Mar 2014 14:24:43 +0000 (09:24 -0500)]
bitbake: toaster: fix package size 1st sort order

[YOCTO #5914]

On the pages with tables listing packages with a size column, change the
first click sort order on the size column so that packages are sorted in
decreasing order instead of increasing order.  It is more likely that
the user sorts this page data by size because the user is interested in
those packages consuming the most disk space.

(Bitbake rev: 3d69f5cdf154df83e7a487e1b609bb8f7b5b6df2)

Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: Change objectname 'packages' to 'packages built'
Belen Barros Pena [Fri, 14 Mar 2014 23:19:07 +0000 (23:19 +0000)]
bitbake: toaster: Change objectname 'packages' to 'packages built'

This will set the placeholder attribute of the search input
field in bpackage.html to the required "Search packages
built".

[YOCTO #5977]

(Bitbake rev: 841a086822a3fa740b5651938aee6a42eba58409)

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: reset default filter for configvar page on new searches
David Reyna [Sat, 15 Mar 2014 22:10:27 +0000 (15:10 -0700)]
bitbake: toaster: reset default filter for configvar page on new searches

The configvar page has a default filter by design. However, new search terms
should override and clear that filter, for consistency across the interface.

[YOCTO #5961]

(Bitbake rev: b80c578d9330a45e9c2502701de2ebb6307b1caf)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: warn new filter replaces existing filter
David Reyna [Fri, 14 Mar 2014 07:26:32 +0000 (00:26 -0700)]
bitbake: toaster: warn new filter replaces existing filter

If the user pop-ups a filter dialog when another filter is already
active, warn the user that the new filter would replace the
previous filter.

[YOCTO #5960]

(Bitbake rev: 6be58123fcdb0ff20de2a88315e1e3012effd1d3)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: Revert "added file types to the Outputs column in the build page"
Alexandru DAMIAN [Thu, 20 Mar 2014 11:44:19 +0000 (11:44 +0000)]
bitbake: toaster: Revert "added file types to the Outputs column in the build page"

This reverts commit d40ac966b22e1fa1956d8f2fe37fd55fa670e88f.

Sloppy review on my part let the original patch in, when it should've
been rejected because the filter tags should have no knowledge of the
object system.

(Bitbake rev: 7e59b6b1cb44de00c512facece5ede96375a411f)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotune-ppce6500: Fixes a typo in tune config file for e6500.
Valentin Cobelea [Thu, 20 Mar 2014 14:36:43 +0000 (15:36 +0100)]
tune-ppce6500: Fixes a typo in tune config file for e6500.

This patch fixes a typo in the tune config file for ppc64 e6500
where the cpu type is a wrong one.

(From OE-Core rev: 168d57f594f559d8f0cb5a9298055b62ff192f27)

Signed-off-by: Valentin Cobelea <valentin.cobelea@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoglib-2.0-native: Fix DEPENDS
Richard Purdie [Mon, 24 Mar 2014 13:58:01 +0000 (13:58 +0000)]
glib-2.0-native: Fix DEPENDS

Address the error

| checking for ZLIB... no
| checking for inflate in -lz... no
| configure: error: *** Working zlib library and headers not found ***

by ensuring zlib-native is in DEPENDS.

[YOCTO #5773]

(From OE-Core rev: f7fd641c13543f0df412fe0ff01238734ddbbaff)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/binconfig: fix indentation in python function
Paul Eggleton [Mon, 24 Mar 2014 15:18:52 +0000 (15:18 +0000)]
classes/binconfig: fix indentation in python function

If we don't fix this, the recently added dependency from
do_populate_sysroot on functions in SYSROOT_PREPROCESS_FUNCS in
staging.bbclass triggers warnings that the get_binconfig_mangle
function contains tabs for all recipes that inherit binconfig.

Related to fix for [YOCTO #5852].

(From OE-Core rev: a30a204270ee5b91d9c0904d3c3dda34bdb9ce1c)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/staging: ensure do_populate_sysroot re-execs on changes to sysroot preprocess...
Paul Eggleton [Mon, 24 Mar 2014 15:18:51 +0000 (15:18 +0000)]
classes/staging: ensure do_populate_sysroot re-execs on changes to sysroot preprocessing funcs

Without this dependency, changes to functions added to
SYSROOT_PREPROCESS_FUNCS do not change do_populate_sysroot's signature
and thus don't cause it to re-execute.

Fixes [YOCTO #5852].

(From OE-Core rev: 9950a88906bd701d0892b3ed222717ff78a93921)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuildstats: use TaskBase time for elapsed time
Marius Avram [Mon, 17 Mar 2014 15:04:10 +0000 (15:04 +0000)]
buildstats: use TaskBase time for elapsed time

To avoid any further inconsistencies between buildstats and buildinfohelper
from toaster, buildstats will measure task duration using the time field
from within the TaskBase events: TaskStarted and TaskSucceeded/TaskFailed.

(From OE-Core rev: 406acd647a288694c2f776a9faa1f5607f3e8e7a)

Signed-off-by: Marius Avram <marius.avram@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agostaging: Save out provider information into the sysroot
Richard Purdie [Thu, 20 Mar 2014 11:39:20 +0000 (11:39 +0000)]
staging: Save out provider information into the sysroot

This patch saves out provider information into the sysroot for all providers
except those in MULTI_PROVIDER_WHITELIST. This means that we will start seeing
warnings when two providers for the same thing are installed into the sysroot.

In the future those warnings can be turned into errors.

Partially addresses [YOCTO #4102]

(From OE-Core rev: 9e696b9d32e33ba37dc09ff312328e540fc25de2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoarchiver.bbclass: emit patch series files for original src
Robert Yang [Mon, 24 Mar 2014 05:39:27 +0000 (13:39 +0800)]
archiver.bbclass: emit patch series files for original src

Emit patch series files for original src so that the user knows how to
apply the patch orderly.

[YOCTO #5113]

(From OE-Core rev: 053631bc3cf7c7c2d090decaa3b5e5690963e64a)

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoarchiver.bbclass: make it can filter the license
Robert Yang [Mon, 24 Mar 2014 05:39:26 +0000 (13:39 +0800)]
archiver.bbclass: make it can filter the license

* Filter the license (default: no), the recipe whose license in
  COPYLEFT_LICENSE_INCLUDE will be included, and in
  COPYLEFT_LICENSE_EXCLUDE will be excluded.

* The user can set the recipe type that would be archived (native,
  target, and so on), deafult to all.

The copyleft_filter.bbclass is come from copyleft_compliance.bbclass,
which is used by both copyleft_compliance.bbclass and archiver.bbclass.

[YOCTO #5740]

(From OE-Core rev: 0e798d5cbcf585535e19633828dc540a282261fc)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogtk-engines: move engine schemas to a dedicated package
Ross Burton [Fri, 21 Mar 2014 18:21:59 +0000 (18:21 +0000)]
gtk-engines: move engine schemas to a dedicated package

The GTK+ engine schemas are not insignicant in size but also mostly useless.
Put them in a sub-package instead of PN so they only get installed when
explicitly required.

(From OE-Core rev: 312ca574e62cb0ac5fdad4943d7ff9d457caf8e3)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogtk-engines: don't inherit gtk-icon-cache
Ross Burton [Fri, 21 Mar 2014 18:21:58 +0000 (18:21 +0000)]
gtk-engines: don't inherit gtk-icon-cache

This was accidently left in and can be removed.

(From OE-Core rev: 90b1f4d23a0714df3e2802dd5549fbf449d3356b)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoutil-linux: build setpriv requires libcap-ng
Robert Yang [Mon, 24 Mar 2014 09:24:17 +0000 (05:24 -0400)]
util-linux: build setpriv requires libcap-ng

There might a failure when build util-linux with the meta-selinux layer:

[snip]
sys-utils/setpriv.c:21:20: fatal error: cap-ng.h: No such file or directory
 #include <cap-ng.h>
                    ^
compilation terminated.
[snip]

Use PACKAGECONFIG to fix the problem.

[YOCTO #6026]

(From OE-Core rev: 8a6b1ae336a41292ee314c04d93c2c355c772762)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoconnman: upgrade to 1.22
Jonathan Liu [Mon, 24 Mar 2014 00:23:02 +0000 (11:23 +1100)]
connman: upgrade to 1.22

Highlights:
- If VPN is split routed and not the default service, then allow
  DNS queries also to be sent to VPN DNS server.
- Session API fixes
- Memory leak fixes
- Crash fixes
- NTP kiss-of-death packet support
- Support for full USB gadget networking. Now USB gadget network can
  be used without tethering.

(From OE-Core rev: 61842ca57520b184be5111b7fedf72a5d58d6bbc)

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibsoup-2.4: fix compiling failed while mips-gcc optimization enabled
Hongxu Jia [Mon, 24 Mar 2014 08:38:35 +0000 (16:38 +0800)]
libsoup-2.4: fix compiling failed while mips-gcc optimization enabled

There was an error about mips-gcc optimization while compiling
libsoup-2.4 2.45.3 with DEBUG_OPTIMIZATION enabled.

The test code of libsoup-2.4 2.45.3 triggered gcc assert which located
in gcc/dwarf2out.c:20810:
...
20806       gcc_assert (prev
20807                   && (CALL_P (prev)
20808                       || (NONJUMP_INSN_P (prev)
20809                           && GET_CODE (PATTERN (prev)) == SEQUENCE
20810                           && CALL_P (XVECEXP (PATTERN (prev), 0, 0)))));
...

The issue test code is the C function 'do_qvalue_tests' located in
tests/header-parsing.c.

The 2.45.92 have refactored the test code and this issue has been fixed.
So backport the fix to 2.45.3.

[YOCTO #5512]
(From OE-Core rev: ed592ccfff286faa421a6d73115ed0e03f185895)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoacl: fix the order of expected output of getfacl
Chong Lu [Mon, 24 Mar 2014 08:12:47 +0000 (16:12 +0800)]
acl: fix the order of expected output of getfacl

The result of getfacl is sorted by user id.
In Centos or RHEL, bin user id is 1 and daemon user id is 2.
But in our image, bin user id is 2 and daemon user id is 1.
The patch fixes this issue to make ptest pass.

(From OE-Core rev: a5180e942c9315d280580773e72fe67f27629a3c)

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: hob: output filenames based on initial recipe name
Marius Avram [Tue, 18 Mar 2014 12:17:06 +0000 (14:17 +0200)]
bitbake: hob: output filenames based on initial recipe name

If a recipe for an image was edited from the hob interface the name
of the files outputed in the <build_dir>/tmp/deploy/images/${MACHINE}/ and the
temporary recipes from <build_dir>/recipes/images/ contained only the
generic name "hob-image". From now on both the temporary recipes and
the output from the deploy/ directory will contain the name of the base
recipe appended by the "-edited" suffix, in the case when a base image recipe was
edited. The base recipe can be a standard recipe (e.g core-image-minimal) or
a custom created and saved by the user.

For example, if core-image-minimal is edited the deploy/ directory will contain
core-image-minimal-edited-20140318-140428-qemux86.ext3 and the recipes/images/
directory will contain the recipe core-image-minimal-edited-20140318-140428.bb.

[YOCTO #5002]

(Bitbake rev: f34575809677dc52e1071a3ae3daebe92819cec0)

Signed-off-by: Marius Avram <marius.avram@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: fetch2.URI: Set username/password should not change the other
Olof Johansson [Mon, 20 Jan 2014 11:03:24 +0000 (12:03 +0100)]
bitbake: fetch2.URI: Set username/password should not change the other

When setting the username after already having set the password, the password
was unexpectedly reset. This change fixes this issue and introduces unit tests
to make sure it doesn't happen again.

(Bitbake rev: 25faef3a047f9c7564089463d7c96f6910b640cb)

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: fetch2.URI: Support URIs with both query strings and params
Olof Johansson [Mon, 20 Jan 2014 11:03:23 +0000 (12:03 +0100)]
bitbake: fetch2.URI: Support URIs with both query strings and params

There is a case in meta-intel where a SRC_URI contains both a query string and
URI parameter:

 https://edc.intel.com/Download.aspx?id=6190;downloadfilename=LIN_IEMGD_1_14_GOLD_2443.tgz

Python's urlparse thought the URI parameters were part of the query parameter
value, but in the bitbake context this is obviously not the case. As bitbake's
usage isn't really RFC compliant, we have to extract and remove the URI parameters
*before* urlparse sees the URI.

(Bitbake rev: c2f27ae4271985b48f957747b6ea372c8699cb49)

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: fetch2.URI: add support for query parameters
Olof Johansson [Mon, 20 Jan 2014 11:03:22 +0000 (12:03 +0100)]
bitbake: fetch2.URI: add support for query parameters

This change introduces the .query property of the URI class. It is a
read/write dict of the parameters supplied in the query string of the
URI. E.g.:

  http://example.com/?foo=bar => .query = {'foo': 'bar'}

(Bitbake rev: 1cb2b3c458c8c5521591d2c8f2e0058143fc77bb)

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: tests.fetch: Remove debug assert
Olof Johansson [Mon, 20 Jan 2014 11:03:21 +0000 (12:03 +0100)]
bitbake: tests.fetch: Remove debug assert

(Bitbake rev: f112660bca0ed8be061055b1e388deeb2d1980a7)

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: fetch2.URI: Coerce urlparse to use netloc for all schemes
Olof Johansson [Mon, 20 Jan 2014 11:03:20 +0000 (12:03 +0100)]
bitbake: fetch2.URI: Coerce urlparse to use netloc for all schemes

(Bitbake rev: 4d502578f022bcf772780550c047b8c09ba01443)

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobusybox: disable fsck.minix and mkfs.minix
Jonathan Liu [Sun, 23 Mar 2014 04:35:53 +0000 (15:35 +1100)]
busybox: disable fsck.minix and mkfs.minix

The MINIX and MINIX 2 filesystems are not really used anymore.

(From OE-Core rev: 4a47c943a76e79af82d47d8fa83c6687e0d915a0)

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/image: ignore modules.* changing during multilib image construction
Paul Eggleton [Fri, 21 Mar 2014 18:02:39 +0000 (18:02 +0000)]
classes/image: ignore modules.* changing during multilib image construction

Since we now run depmod when building images (as the postinst that does
this is now on kernel-base instead of kernel-image) it is possible to
have module file differences between the two halves of the multilib image,
and the code that checks for such differences detects this and fails.
Whitelist this file to avoid the failure.

Specifically, modules.alias, modules.dep and modules.symbol can differ
along with their .bin counterparts.

Related to fix for [YOCTO #5392].

(From OE-Core rev: 0a315804bf991664c0948e3024b8e8b9e9085808)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/kernel: move module postinst commands to kernel-base
Paul Eggleton [Fri, 21 Mar 2014 18:02:38 +0000 (18:02 +0000)]
classes/kernel: move module postinst commands to kernel-base

Since kernel-base is the package that contains the files that depmod
needs to run, we should be running depmod from the kernel-base
postinstall rather than kernel-image.

Fixes [YOCTO #5392].

(From OE-Core rev: f7d2cb383281ec8dfa90950ba04d87dd29ffc676)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogtk-engines: removed gnome inheritance
Ross Burton [Fri, 21 Mar 2014 00:25:07 +0000 (00:25 +0000)]
gtk-engines: removed gnome inheritance

Remove gconf class (via gnome) to fix WARN-QA message regarding
--disable-install-schemas option.  Add missing intltool-native build dependency
that previously came through gnome.bbclass.

(From OE-Core rev: ef2ba0a17a4fbd0e0c43c144f43d1d40de23697e)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/image: disable pam nullok_secure with debug-tweaks
Paul Eggleton [Fri, 21 Mar 2014 16:31:31 +0000 (16:31 +0000)]
classes/image: disable pam nullok_secure with debug-tweaks

If you want passwordless logins to work with pam enabled, then you can't
have "nullok_secure" enabled on pam_unix entries. Add some
postprocessing to change these to "nullok" when debug-tweaks is in
IMAGE_FEATURES, in order to make passwordless logins with PAM work
again.

Fixes [YOCTO #5973].

(From OE-Core rev: a973fe10305c7d080d5c017ddd9b2bd860221659)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoarchiver.bbclass: move a few code to copyleft_compliance.bbclass
Robert Yang [Mon, 13 Jan 2014 11:06:00 +0000 (19:06 +0800)]
archiver.bbclass: move a few code to copyleft_compliance.bbclass

Move the code which is only used by copyleft_compliance.bbclass from
archiver.bbclassc, and remove the "inherit archiver" from
copyleft_compliance.bbclass.

The archiver.bbclass is used for archiving various types of sources, but
the copyleft_compliance.bbclass is used for analysing the license, they
don't have much relationships.

[YOCTO #4986]
[YOCTO #5113]

(From OE-Core rev: 578830fe2ff279ea620916ea711b80dc1b29a275)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage_rpm.bbclass: archive the source to srpm package
Robert Yang [Mon, 13 Jan 2014 10:46:43 +0000 (18:46 +0800)]
package_rpm.bbclass: archive the source to srpm package

The archiver.bbclass will put the sources to ARCHIVER_OUTDIR according
to configuration, then the rpmbuild -bs will create the srpm.

[YOCTO #4986]
[YOCTO #5113]

(From OE-Core rev: f9ba047afb8780c8bd7cb1ba45470d30abf92e92)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoarchiver.bbclass: refactor it
Robert Yang [Sun, 5 Jan 2014 14:58:09 +0000 (22:58 +0800)]
archiver.bbclass: refactor it

The archiver didn't work, and there were a few problems, for example:
1) There was no src_dir.org (or orig), but the diff command still use it
2) There were a few duplicated code
3) It didn't archive the source for the native or gcc
4) The work flow is not very well
5) The "subprocess.call('fakeroot cp xxxx'" should be removed
6) And others ...

So that we have to refactor it, the benefits are:
1) Fix the problems and make it work well.
2) Reduce more than 300 lines
3) Make it easy to use.

Hre are the explanation about the bbclass:
This bbclass is used for creating archive for:
1) original (or unpacked) source: ARCHIVER_MODE[src] = "original"
2) patched source: ARCHIVER_MODE[src] = "patched" (default)
3) configured source: ARCHIVER_MODE[src] = "configured"
4) The patches between do_unpack and do_patch:
   ARCHIVER_MODE[diff] = "1"
   And you can set the one that you'd like to exclude from the diff:
   ARCHIVER_MODE[diff-exclude] ?= ".pc autom4te.cache patches"
5) The environment data, similar to 'bitbake -e recipe':
   ARCHIVER_MODE[dumpdata] = "1"
6) The recipe (.bb and .inc): ARCHIVER_MODE[recipe] = "1"

All of the above can be packed into a .src.rpm package: (when PACKAGES
!= "")
ARCHIVER_MODE[srpm] = "1"

[YOCTO #4986]
[YOCTO #5113]

(From OE-Core rev: e5b20199ddddfa2146dc112c0a81f3fd292258e5)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/archive*.bbclass: remove archive-*-source.bbclass
Robert Yang [Sat, 4 Jan 2014 13:02:30 +0000 (21:02 +0800)]
classes/archive*.bbclass: remove archive-*-source.bbclass

Nearly all of the codes in the following 3 files are the same, we can
move the code to archiver.bbclass and remove them:

  archive-configured-source.bbclass
  archive-original-source.bbclass
  archive-patched-source.bbclass

[YOCTO #5113]

(From OE-Core rev: d2d3428a0fc746e56c0a0046bd12a393dedb4dda)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: fix task elapsed time calculation
Alexandru DAMIAN [Tue, 18 Mar 2014 14:58:04 +0000 (14:58 +0000)]
bitbake: toaster: fix task elapsed time calculation

This patch restricts the elapsed calculation to just
the events that have the "time" parameter set.

This fixes an error where data was lost due to an exception
where invalid dictionary lookups were made on the wrong
events.

(Bitbake rev: fa9f4eb8784553deb782bff34c5e04012c2c52c9)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: image information views
Dave Lerner [Wed, 12 Mar 2014 21:54:09 +0000 (16:54 -0500)]
bitbake: toaster: image information views

[YOCTO # 4346]

When a target image is selected, this commit adds to the toaster
project a two-tabbed page that shows
1) 'packages included' a table of packages included in the image
(see target.html), and
2) 'directory structure', the target image's file system directory
and detailed information showing the source of each file in the
directory table (see dirinfo.html).

The directory structure tab relies on the open source jQuery plugin
jtreetable which provides hierarchical table expansions and contractions
of the directory entry tables as the user drills down into directories.

A file of jtreetable styles that are compatible with other toaster styles
is provided included as css/jquery.treetable.theme.toaster.css. The
complete unaltered jtreetable plugin is added via a separate commit.

This work was developed base on the bugzilla specification number 4346
and the document "Design 1.1 Image information" attached to that report.

Whitespace and typo fixes from Alex Damian.

(Bitbake rev: 1ba9f310a8b4fd0952a95be86ab43ae27fe6d983)

Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: add jquery treetable plugin
Dave Lerner [Tue, 4 Mar 2014 21:02:58 +0000 (15:02 -0600)]
bitbake: toaster: add jquery treetable plugin

This commit includes the critical javascript and css files
downloaded from http://plugins.jquery.com/treetable version 3.1.0.
The following is from the author's README.md included with
the license files in the directory static/jquery-treetable-license.

"jQuery treetable is a plugin for jQuery, the 'Write Less, Do More,
JavaScript Library'. With this plugin you can display a tree in an
HTML table, e.g. a directory structure or a nested list...
Download the latest release from the jQuery Plugin Registry or grab
the source code from Github. Please report issues through Github
issues. This plugin is released under both the MIT and the GPLv2
license by Ludo van den Boom...
See index.html for technical documentation and examples. The most
recent version of this document is also available online at
http://ludo.cubicphuse.nl/jquery-treetable. An AJAX enabled example
built with Ruby on Rails can be found at
https://github.com/ludo/jquery-treetable-ajax-example."

Author: Ludo van den Boom

The relevant files were moved to the static/js and static/css
directories to match the existing javascript and css toaster
deployment model.

The applicable licenses and the README are in
static/jquery-treetable-license.

(Bitbake rev: 9a260d8b08053e3dcc2fe5960e060b2da1109790)

Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: filter out setscene tasks in recipe details
David Reyna [Thu, 13 Mar 2014 23:18:37 +0000 (16:18 -0700)]
bitbake: toaster: filter out setscene tasks in recipe details

Filter out any *_setscene tasks in recipe details page, as
they are not relevant.

[YOCTO #5913]

(Bitbake rev: 3aca83accd6755d518d6b6c667e685020efdfb8d)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: Amend failed tasks behaviour
Belen Barros Pena [Thu, 13 Mar 2014 05:16:23 +0000 (05:16 +0000)]
bitbake: toaster: Amend failed tasks behaviour

In the builds table, when a build reports more than one
failed task, the number of failed tasks should be a link
to the tasks table with the failed tasks filter applied.
Amend the URL to include the filter.

(Bitbake rev: 7d93dd7a1ddb43279e0e1309ac6d935bf6b2ec97)

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 display of "Cache attempt" column
Belen Barros Pena [Thu, 13 Mar 2014 03:57:37 +0000 (03:57 +0000)]
bitbake: toaster: Set display of "Cache attempt" column

The "Cache attempt" column should display by default in the
tasks table, but should be hidden by default in the time,
CPU and Disk I/O tables.

(Bitbake rev: dc96eecd2e8bef1b4d4fc500bf496b3edb91f808)

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 extra space in the breadcrumb
Belen Barros Pena [Thu, 13 Mar 2014 03:27:31 +0000 (03:27 +0000)]
bitbake: toaster: Remove extra space in the breadcrumb

For builds with more than one target, remove the extra
space between the '+' and the number of targets - 1.

(Bitbake rev: 0d5e342d8878d8aff0ffe723be376845cccd8720)

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 "Package version" to "Version"
Belen Barros Pena [Thu, 13 Mar 2014 03:01:52 +0000 (03:01 +0000)]
bitbake: toaster: Change "Package version" to "Version"

We use "Version" everywhere else.

(Bitbake rev: 9def611e25c0d90285012cf44cb40256984368f3)

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 trailing spaces from 'name'
Belen Barros Pena [Thu, 13 Mar 2014 02:51:18 +0000 (02:51 +0000)]
bitbake: toaster: Remove trailing spaces from 'name'

Those extra spaces were showing in the heading of the
filter modal dialogs.

(Bitbake rev: ed958d288de92faf8bd17a067c7a7f719dacd27d)

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 link to the Toaster manual
Belen Barros Pena [Thu, 13 Mar 2014 02:00:17 +0000 (02:00 +0000)]
bitbake: toaster: Add link to the Toaster manual

The Toaster manual will live at
http://www.yoctoproject.org/documentation/toaster-manual
and should open in a new tab / window.

(Bitbake rev: 4e382ac6b5c1da497caa1ece3fcdc404dd02c058)

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: measure task duration with server-side timestamps
Alexandru DAMIAN [Mon, 17 Mar 2014 15:28:46 +0000 (15:28 +0000)]
bitbake: toaster: measure task duration with server-side timestamps

The buildstats and toaster use separate time markers to measure the
duration of task execution. This causes a mismatch in the time
measured by buildstats class and the time measured in toaster.

The solution implemented here is to timestamp the creation of
every TaskBase event on the bitbake server side and calculate
the execution duration as the difference between creation time
of TaskSucceeded and TaskStarted events.

Based on an original patch by Marius Avram.

[YOCTO #5485]

(Bitbake rev: 7a08282c074c264f414cf7665dc873f51245072c)

Signed-off-by: Marius Avram <marius.avram@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: ConfHandlerr: Use full path in variable history
Marius Avram [Tue, 11 Mar 2014 16:37:06 +0000 (18:37 +0200)]
bitbake: ConfHandlerr: Use full path in variable history

When an evaluation was made for a configuration file the path to the
file was saved as a relative one. The change in this commit will save the
location as an absolute path. This way the user will have full information
regarding the location of the file where a variable was changed and the
line withing the file.

[YOCTO #5562]

(Bitbake rev: df9e22901555b06fef308f7136547f2c47ccec35)

Signed-off-by: Marius Avram <marius.avram@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agognome-doc-utils: removed gconf inheritance
Alexandru Palalau [Tue, 11 Mar 2014 13:31:27 +0000 (13:31 +0000)]
gnome-doc-utils: removed gconf inheritance

In order to remove WARN-QA message regarding --disable-schemas-install configure option.

(From OE-Core rev: eb53ae4a5702dbd65b6e340bbd3ae4566157c081)

Signed-off-by: Alexandru Palalau <alexandrux.palalau@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogsettings-desktop-schemas: removed unneeded class inheritance
Alexandru Palalau [Tue, 11 Mar 2014 13:27:46 +0000 (13:27 +0000)]
gsettings-desktop-schemas: removed unneeded class inheritance

Removed gconf, gtk-icon-cache and mime classes as they are not needed

(From OE-Core rev: 1138976f7bdcd24ef57451a2c2ceffa43666610f)

Signed-off-by: Alexandru Palalau <alexandrux.palalau@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agognome-mime-data: removed gconf and gtk-icon-cache inheritance
Alexandru Palalau [Tue, 11 Mar 2014 13:24:57 +0000 (13:24 +0000)]
gnome-mime-data: removed gconf and gtk-icon-cache inheritance

Should remove WARN-QA message regarding --disable-schemas-install.
gtk-icon-cache is not needed.

(From OE-Core rev: 665d2190b21d43081db806a49bfd529544ee87f2)

Signed-off-by: Alexandru Palalau <alexandrux.palalau@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogst-plugins-gl: removed gconf inheritance
Alexandru Palalau [Tue, 11 Mar 2014 13:19:21 +0000 (13:19 +0000)]
gst-plugins-gl: removed gconf inheritance

In order to remove WARN-QA message regarding --disable-schemas-install configure option.

(From OE-Core rev: 1bb8c4018c4c52db0934ffcd7cfdf5d5b599a9f1)

Signed-off-by: Alexandru Palalau <alexandrux.palalau@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agognome-desktop: removed gconf inheritance
Alexandru Palalau [Tue, 11 Mar 2014 11:51:52 +0000 (11:51 +0000)]
gnome-desktop: removed gconf inheritance

In order to remove WARN-QA message regarding --disable-schemas-install configure option.

(From OE-Core rev: 0c30f3106a5172b1e58d5cc4eae964923fa6c8e2)

Signed-off-by: Alexandru Palalau <alexandrux.palalau@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocore-image-minimal: allow user to set size
Trevor Woerner [Thu, 20 Mar 2014 21:06:38 +0000 (17:06 -0400)]
core-image-minimal: allow user to set size

Allow the user, in their local configuration, to override the size of the
final image. This is useful when creating an image for (for example) an SD
card and the user wants the image to fill up the card as much as possible.

(From OE-Core rev: 9b4ea0f2e13e52d860d59d0348a3218af151666b)

Signed-off-by: Trevor Woerner <trevor.woerner@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopython3: sync module dependencies from 2.7
Paul Eggleton [Thu, 20 Mar 2014 17:41:39 +0000 (17:41 +0000)]
python3: sync module dependencies from 2.7

These have been added recently to 2.7 but were missing in the 3.3
script/inc file.

(From OE-Core rev: 4669afac1004a89e6b87ec46136ca3e7448700d4)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogenerate-manifest-3.3.py: sync descriptions with 2.7 version
Paul Eggleton [Thu, 20 Mar 2014 17:23:08 +0000 (17:23 +0000)]
generate-manifest-3.3.py: sync descriptions with 2.7 version

(From OE-Core rev: 081bc11c347d11d285f2948127bca81a285ada84)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibsdl: add missing libglu dependency for openGL
Koen Kooi [Fri, 14 Mar 2014 14:31:27 +0000 (15:31 +0100)]
libsdl: add missing libglu dependency for openGL

Configure checks for glu.h to determine if openGL is available.

(From OE-Core rev: a7641a2bc3f3f7e661f71b17f91382fb9a1cde55)

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel-arch.bbclass: add arm64 support to U-Boot architecture map
Fathi Boudra [Thu, 20 Mar 2014 17:49:35 +0000 (19:49 +0200)]
kernel-arch.bbclass: add arm64 support to U-Boot architecture map

to define UBOOT_ARCH, we map kernel architectures to U-Boot architectures.
In the case of arm64 kernel, we should map to arm U-boot architecture.

This patch add the exception rule to the map_uboot_arch function.

(From OE-Core rev: 0b891265716c414ade29d587fc1a3c4ea7beadbe)

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorunqemu: Add option for custom BIOS directory
Ricardo Neri [Thu, 20 Mar 2014 19:35:33 +0000 (12:35 -0700)]
runqemu: Add option for custom BIOS directory

Add support to specify a directory for custom BIOS, VGA BIOS and
keymaps as supported by qemu (-L option). Even though this can be
done through qemuparams, having this option provides better user
experience by not having to specify a long and cluttered path along
with other qemuparams that the user might want to specify.

This new options assumes first that the path provided is relative to
OECORE_NATIVE_SYSROOT and will check whether it exists before proceeding.
If not, it will treat the provided path as absolute. This provides
the user flexibility to use BIOS binaries generated inside or outside
the OE build environment.

(From OE-Core rev: d302f5683dd736ac4cd4b601a046d22000d41e68)

Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobase-files: use /dev/root in /etc/fstab for systemd support
Jonathan Liu [Wed, 19 Mar 2014 23:05:04 +0000 (10:05 +1100)]
base-files: use /dev/root in /etc/fstab for systemd support

systemd does not recognize "rootfs" in /etc/fstab so the root
filesystem is not checked. As a result, the following message
is logged by journalctl:
systemd-fstab-generator[68]: Checking was requested for "rootfs", but it
is not a device

Changing "rootfs" to "/dev/root" in /etc/fstab allows systemd to
check the root filesystem when the kernel is booted with the root
filesystem mounted read-only.

[YOCTO #5950]

(From OE-Core rev: c509f948d9c575c45af8c5ed1cb1692c0ca5dade)

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotclibc-uclibc: Changing assignment to conditional variable assignment
Andrey Belous [Wed, 12 Mar 2014 18:57:03 +0000 (14:57 -0400)]
tclibc-uclibc: Changing assignment to conditional variable assignment

Setting of a variable PREFERRED_PROVIDER_virtual/libc only if it doesn't have a value

(From OE-Core rev: d0e9f74e3f1322b58b78a9bc82f299d6b9da036f)

Signed-off-by: Andrey Belous <abelous@broadcom.com>
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopulseaudio: Upgrade 4.0 -> 5.0
Khem Raj [Tue, 18 Mar 2014 17:04:44 +0000 (10:04 -0700)]
pulseaudio: Upgrade 4.0 -> 5.0

bluetooth-proximity has been removed in 5.0

pulseaudio now differentiates between bluez4 and bluez5

(From OE-Core rev: c53d3a4f1f2d42437dc2985fe109039c843aa4dc)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosstate: list missing files for toaster
Alexandru DAMIAN [Mon, 17 Mar 2014 15:04:09 +0000 (15:04 +0000)]
sstate: list missing files for toaster

Toaster needs to record the attempts to restore
setscene tasks that don't have a sstate file.

We build a list of tasks for which we can't find an
sstate file, and if we're running under Toaster data
collection, we send it off with a MetadataEvent.

(From OE-Core rev: 109ae6c5c981610ab0d63d2c83dcd50b2e93276b)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoaster.bbclass: read the data needed for license manifest path
Cristiana Voicu [Mon, 17 Mar 2014 15:04:08 +0000 (15:04 +0000)]
toaster.bbclass: read the data needed for license manifest path

The license.manifest file is located in DEPLOY_DIR_IMAGE/licenses/
IMAGE_NAME dir. The data needed is collected after rootfs task.

[YOCTO #5649]
(From OE-Core rev: ff52c5ba15433f2b1e9723bf845e39da918ad59b)

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogcc-runtime: Build libatomic
Cosmin Paraschiv [Fri, 7 Mar 2014 13:39:04 +0000 (15:39 +0200)]
gcc-runtime: Build libatomic

GCC 4.8 includes a new runtime library, libatomic, which supports
atomic operations not supported by hardware or the OS. Build it,
so other packages can link against it, if needed.

(From OE-Core rev: a4dd6dfccee0be50d3addce3dd1bf903e051ad5a)

Signed-off-by: Cosmin Paraschiv <cosmin.paraschiv@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoimage_types.bbclass: use 4096 instead of 8192 bytes-per-inode
Robert Yang [Wed, 19 Mar 2014 09:23:53 +0000 (17:23 +0800)]
image_types.bbclass: use 4096 instead of 8192 bytes-per-inode

The image not correctly created if 'ptest-pkgs' is in IMAGE_FEATURES,
this is because there is no free inode left. We can use 4096 instead of
8192 bytes-per-inode to fix the problem, and most of the distributions
us 4096, such as Ubuntu, Suse, Fedora and CentOS.

There are another problems:
* There are error message when there is no free inode left if we run the
  mke2fs command manually, but they are not in log.do_rootfs.

* The image generation doesn't stop when error happens because mke2fs
  doesn't return failed for this case.

Will fix them in other threads.

[YOCTO #5957]

(From OE-Core rev: 09ab3a00598d06e3a1bf871811c2ac37359c74da)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuildhistory.bbclass: create proper dependency files for SDK
Laurentiu Palcu [Tue, 18 Mar 2014 11:19:20 +0000 (11:19 +0000)]
buildhistory.bbclass: create proper dependency files for SDK

The old functions were calling the list_installed_packages() wrapper
function that only listed the packages in an image rootfs. Even for
target/host SDK. Also, a python crash was possible if 'bitbake -c
populate_sdk core-image-*' was called without calling 'bitbake
core-image-*' first. That's because the wrapper was always looking into
the image rootfs...

This commit fixes the problem and calls the right wrapper for image/sdk.

(From OE-Core rev: c1b1a6eb448aa1548e2ec669a9304b5a25bd8ba5)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoimage.bbclass, license.bbclass: adjust the name of list_installed_packages()
Laurentiu Palcu [Tue, 18 Mar 2014 11:17:09 +0000 (11:17 +0000)]
image.bbclass, license.bbclass: adjust the name of list_installed_packages()

The old wrapper got renamed to image_list_installed_packages().

(From OE-Core rev: 118a2a44bbe5ed2e9bbd0012970686be454e5d4c)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorootfs.py, sdk.py: adjust/create the wrappers for creating installed packages list
Laurentiu Palcu [Tue, 18 Mar 2014 11:09:56 +0000 (11:09 +0000)]
rootfs.py, sdk.py: adjust/create the wrappers for creating installed packages list

Since we created a new PkgsList object that will deal with listing the
installed packages in a rootfs, use the new class both for images and
SDKs in the wrapper functions.

The old list_installed_packages() wrapper listed only the packages inside
an image rootfs. It didn't deal with target/host SDK rootfs's.

(From OE-Core rev: 8fc18e67504db5b6df3fdd239c6187a71af52656)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage_manager.py: create separate class for installed packages listing
Laurentiu Palcu [Tue, 18 Mar 2014 11:03:51 +0000 (11:03 +0000)]
package_manager.py: create separate class for installed packages listing

This commit creates a new class that has the only purpose to generate
various listings of installed packages in the rootfs.

Basically, the methods involved in listing the installed packages, that
were part of each backend PM class implementation, were moved to this
new class.

This change avoids instantiating a new PM object just to get the list of
installed packages in a certain rootfs.

(From OE-Core rev: a7290ed13378826723d1edc7e828eab848eaad10)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-dummy: provide kernel-modules (empty) package
Matthieu Crapet [Wed, 19 Mar 2014 15:46:09 +0000 (16:46 +0100)]
linux-dummy: provide kernel-modules (empty) package

Like it is done in kernel.bbclass

(From OE-Core rev: 5df4e63e747028c3ce89f1f9ae01a766ae34dc3d)

Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocogl-1.0 : Update to 1.16.2 release
Prabhu Sundararaj [Wed, 19 Mar 2014 16:24:42 +0000 (13:24 -0300)]
cogl-1.0 : Update to 1.16.2 release

(From OE-Core rev: 3eb2435a7c7c8108cb73945d5003a9fc7455befd)

Signed-off-by: Prabhu Sundararaj <prabhu.sundararaj@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogsettings-desktop-schemas: Updated to 3.10.1.bb
Prabhu Sundararaj [Wed, 19 Mar 2014 16:24:40 +0000 (13:24 -0300)]
gsettings-desktop-schemas: Updated to 3.10.1.bb

(From OE-Core rev: 0bbea90252b93d7e36527dd0db63597a3d4c0aa1)

Signed-off-by: Prabhu Sundararaj <prabhu.sundararaj@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>