]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agoqemu: add ptest sub-package
Kai Kang [Tue, 4 Aug 2015 03:25:36 +0000 (11:25 +0800)]
qemu: add ptest sub-package

Add sub-package ptest which runs all unit tests cases for qemu.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agort-tests: fix redo install error
Kai Kang [Tue, 4 Aug 2015 03:25:35 +0000 (11:25 +0800)]
rt-tests: fix redo install error

Currently gzip on host is used. If host gzip is provided by pigz, it
fails to redo install that pigz can't handle the option after file name.
When run command for target install in Makefile:

gzip src/backfire/backfire.4 -c > OUTPUT_FILE

File src/backfire/backfire.4 is zipped into backfire.4.gz but the
OUTPUT_FILE is empty. When rerun do_install, it shows warning:

| gzip: src/backfire/backfire.4 does not exist -- skipping

and empty manual gzip files are created:

$ file image/usr/share/man/man4/backfire.4.gz
image/usr/share/man/man4/backfire.4.gz: empty

Fix it by putting option '-c' before the file name.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobash: 4.3 -> 4.3.30
Robert Yang [Mon, 3 Aug 2015 15:44:22 +0000 (08:44 -0700)]
bash: 4.3 -> 4.3.30

Remove patch001 -> patch030 since they are already in source, add
patch031 -> patch039

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agolibcheck: 0.9.14 -> 0.10.0
Robert Yang [Mon, 3 Aug 2015 15:19:56 +0000 (08:19 -0700)]
libcheck: 0.9.14 -> 0.10.0

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agofile: 5.23 -> 5.24
Robert Yang [Tue, 14 Jul 2015 05:08:01 +0000 (22:08 -0700)]
file: 5.23 -> 5.24

* Remove backported patch:
- 0001-Fix-bug-with-long-options-and-explicitly-number-them.patch \
- 0002-fix-bug-with-5.23-long-options.patch \

* Use git repo rather than tarball since the original SRC_URI is not
  stable, it is not reachable sometimes.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agogit: 2.4.6 -> 2.5.0
Robert Yang [Mon, 3 Aug 2015 15:13:11 +0000 (08:13 -0700)]
git: 2.4.6 -> 2.5.0

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agoboost: add python3 support
Andreas Müller [Wed, 22 Jul 2015 08:21:10 +0000 (10:21 +0200)]
boost: add python3 support

* Both - python/python3 - libs are build by adding 'python' to PACKAGECONFIG
  but are packed into separate packages
* Indention was wrong in __anonymous()

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibpam: Fix patch broken during upgrade
Richard Purdie [Sun, 9 Aug 2015 22:10:08 +0000 (15:10 -0700)]
libpam: Fix patch broken during upgrade

"0x200" became "0200" during the upgrade to libpam 1.2.1 in:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=88dd997d9941b63ae9eead6690ecf2b785c0740c
and this broke the IMAGE_FEATURES like debug-tweaks.

I've converted all the values to octal here to match the original
header file convention and make it clearer.

[YOCTO #8033]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosecurity_flags.inc: disable -pie and -fpie from Python3 compilation.
Topi Kuutela [Fri, 7 Aug 2015 06:42:35 +0000 (09:42 +0300)]
security_flags.inc: disable -pie and -fpie from Python3 compilation.

If security_flags.inc is 'required' to the image, -pie and -fpie options
are added to CFLAGS. These are not compatible with -shared GCC option.
The result is several errors of following form and missing Python3
modules in the image:

    *.o In function `_start': *.S undefined reference to `main'
    collect2: error: ld returned 1 exit status

Signed-off-by: Topi Kuutela <topi.kuutela@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: release 0.2.0
Ed Bartosh [Mon, 3 Aug 2015 13:51:51 +0000 (16:51 +0300)]
wic: release 0.2.0

Major changes in 0.2.0:
- implemented UUID support
- fixed support of GPT partition tables
- implemented running bitbake from wic
- implemented image compressing
- started testing with oe-selftest. implemented 17 test cases
- used native tools (parted, mkfs, mtools, etc)
- usability and documentation fixes
- code clenup

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: code cleanup: pylint misc.py
Ed Bartosh [Mon, 3 Aug 2015 13:51:50 +0000 (16:51 +0300)]
wic: code cleanup: pylint misc.py

Fixed pylint warnings.
Increased pylint score from 8.02 to 9.40.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: code cleanup: remove unused code
Ed Bartosh [Mon, 3 Aug 2015 13:51:49 +0000 (16:51 +0300)]
wic: code cleanup: remove unused code

Removed unused global variable wks_vars and 2 unused functions
get_wks_var and add_wks_var.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: Report recipe name for native commands
Ed Bartosh [Mon, 3 Aug 2015 13:51:48 +0000 (16:51 +0300)]
wic: Report recipe name for native commands

exec_native_cmd was modified to report recipe to build
native programs.

Pairs executable->recipe are hardcoded as it's not possible
to obtain this information automatically.

[YOCTO #7631]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: Improve 'wic help overview' content
Ed Bartosh [Mon, 3 Aug 2015 13:51:47 +0000 (16:51 +0300)]
wic: Improve 'wic help overview' content

Included full console output and example of the .wks file
into the 'wic help overview' content.

Used qemux86-64 machine instead of crownbay to make example
working without cloning additional layers.

[YOCTO #7940]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: improved usage text
Ed Bartosh [Mon, 3 Aug 2015 13:51:46 +0000 (16:51 +0300)]
wic: improved usage text

Made command line specification less confusing.
Reformatted usage output.

[YOCTO #7938]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agostress: update checksums to match upstream tarball
Alexander Kanavin [Mon, 3 Aug 2015 16:29:53 +0000 (19:29 +0300)]
stress: update checksums to match upstream tarball

COPYING checksum has changed because the previous upstream tarball
(taken from Fedora) had GPLv3 in it, but author's tarball has GPLv2.
Otherwise the tarballs are identical

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocreate-pull-request: cd to relative directory
Ed Bartosh [Wed, 5 Aug 2015 09:16:00 +0000 (12:16 +0300)]
create-pull-request: cd to relative directory

create-pull-request -d path creates empty patches if directory
is specified as a path, i.e. ./bitbake or ./bitbake/ or full path.
It behaves expected way only if script is run with -d bitbake, i.e.
relative dir name doesn't contain '\'.

Fixed this unwanted behaviour by changing directory and running
git format-patch in it with --relative, without specifying
relative path as a parameter.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowpa-supplicant: Fix CVE-2015-4141, CVE-2015-4143, CVE-2015-4144, CVE-2015-4145, CVE...
Fan Xin [Wed, 5 Aug 2015 02:41:32 +0000 (11:41 +0900)]
wpa-supplicant: Fix CVE-2015-4141, CVE-2015-4143, CVE-2015-4144, CVE-2015-4145, CVE-2015-4146

wpa-supplicant: backport patch to fix CVE-2015-4141,
 CVE-2015-4143, CVE-2015-4144, CVE-2015-4145, CVE-2015-4146

Backport patch to fix CVE-2015-4141, CVE-2015-4143, CVE-2015-4144, CVE-2015-4145, CVE-2015-4146.
This patch is originally from:

For CVE-2015-4141:
http://w1.fi/security/2015-2/0001-WPS-Fix-HTTP-chunked-transfer-encoding-parser.patch

For CVE-2015-4143:
http://w1.fi/security/2015-4/0001-EAP-pwd-peer-Fix-payload-length-validation-for-Commi.patch
http://w1.fi/security/2015-4/0002-EAP-pwd-server-Fix-payload-length-validation-for-Com.patch

For CVE-2015-4144 and CVE-2015-4145:
http://w1.fi/security/2015-4/0003-EAP-pwd-peer-Fix-Total-Length-parsing-for-fragment-r.patch
http://w1.fi/security/2015-4/0004-EAP-pwd-server-Fix-Total-Length-parsing-for-fragment.patch

For CVE-2015-4146:
http://w1.fi/security/2015-4/0005-EAP-pwd-peer-Fix-asymmetric-fragmentation-behavior.patch

Signed-off-by: Fan Xin <fan.xin at jp.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxf86-video-intel: fix yocto/oe-core wreckage from libdrm upgrade
Paul Gortmaker [Tue, 4 Aug 2015 05:07:55 +0000 (01:07 -0400)]
xf86-video-intel: fix yocto/oe-core wreckage from libdrm upgrade

In commit a117fd5ecdd9973c7e4d772d1785f1f4e9b162c2,
from OE-Core rev: 88d60e70da0890184922056cef1f20171f716ace
"libdrm: Upgrade to 2.4.62" we managed to break X like this:

[3602662.736] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 4600
[3602662.736] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx, avx2
[3602662.736] (II) intel(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[3602662.736] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[3602662.736] (==) intel(0): RGB weight 888
[3602662.736] (==) intel(0): Default visual is TrueColor
[3602662.736] (EE)
[3602662.736] (EE) Backtrace:
[3602662.736] (EE) 0: /usr/bin/X (xorg_backtrace+0x49) [0x56ae09]
[3602662.736] (EE) 1: /usr/bin/X (0x400000+0x16ecd9) [0x56ecd9]
[3602662.736] (EE) 2: /lib64/libpthread.so.0 (0x3330600000+0x105e0) [0x33306105e0]
[3602662.736] (EE)
[3602662.736] (EE) Segmentation fault at address 0x0
[3602662.736] (EE)
Fatal server error:
[3602662.736] (EE) Caught signal 11 (Segmentation fault). Server aborting

A mix of a ~1 month old (working) image and the failing image led me
to determine /usr/lib64/xorg/modules/drivers/intel_drv.so was bad.
However nothing changed the parent package xf86-video-intel in
yocto for months.

So brute force bisecting yocto leads to the above commit.  Inserting
libdrm as git and then bisecting the 2.4.59 --> 2.4.62 uprev content
leads to libdrm commit 8576527cfacaf42af8316e1030c192193e94225a
("intel: Merge latest i915_drm.h") -- specifically, the part of that
commit that adds __u64 flags to drm_i915_gem_mmap lands in our sysroot
and is used by the compile of xf86-video-intel.

With the specific trigger finally pinpointed, the final leap was to
correlate that trigger to the upstream xf86-video-intel commit that
accounts for the fallout of this libdrm header change, that we did
not yet have here.  Fun times.  Hopefully this complete description
here will ensure nobody else has to retrace these steps again.

Cc: Damien Lespiau <damien.lespiau@intel.com>
Cc: Neil Roberts <neil@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Steffen Pankratz <steffen.pankratz@elektrobit.com>
Cc: Ross Burton <ross.burton@intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/qemurunner: Improve runqemu log output debug
Richard Purdie [Sun, 9 Aug 2015 07:07:05 +0000 (00:07 -0700)]
oeqa/qemurunner: Improve runqemu log output debug

If runqemu fails, ensure the log output is shown as its invaluable
to aid debugging. Its slightly convoluted since we need to ensure
we don't block on reading the pipe which may still be executing
hence the need for nonblocking IO.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorunqemu: Handle device names like tapX@NONE
Richard Purdie [Sun, 9 Aug 2015 07:05:10 +0000 (00:05 -0700)]
runqemu: Handle device names like tapX@NONE

ip list can return devices in the form tapX@NONE. If it does so,
ensure we handle that case correctly. Newer distros appear to do
this in some cases.

[YOCTO #8129]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorunqemu: Add error handling for unexpected tap devices
Richard Purdie [Sun, 9 Aug 2015 07:03:49 +0000 (00:03 -0700)]
runqemu: Add error handling for unexpected tap devices

In theory the code reduces the tap device number to an integer. This
patch adds error checking to ensure that does happen and that the script
exits if something unexpected happens.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoweston: Fix parallel make race
Richard Purdie [Mon, 3 Aug 2015 16:47:31 +0000 (17:47 +0100)]
weston: Fix parallel make race

The current approach used by the Makefile ends up installing
weston.desktop twice and can give build failures when using
parallel make flags. Change to just have one DATA reference.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocombo-layer: fix action_pull for unknown branch
Patrick Ohly [Tue, 4 Aug 2015 16:24:00 +0000 (18:24 +0200)]
combo-layer: fix action_pull for unknown branch

When reconfiguring the branch to something not already fetched,
action_pull fails with
   error: pathspec '<new branch name>' did not match any file(s) known to git.

It is the "git checkout" which fails like that. To solve this,
try the faster "git checkout + git pull" first and only if that fails,
fall back to the slow "git fetch + git checkout".

In the conf.hard_reset case, do the checkout always after the git fetch.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocombo-layer: enhance output in action_pull
Patrick Ohly [Tue, 4 Aug 2015 16:23:59 +0000 (18:23 +0200)]
combo-layer: enhance output in action_pull

The git operations can fail, for example when the branch is unknown
or misconfigured.

Better move the info message and extend it such that it is printed
first and provides the necessary context, because otherwise the
CalledProcessError exception gets dumped without mentioning for which
component it occurred.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemurunner: Improves checking for server and target IPs on qemus parameters
Alejandro Hernandez [Thu, 6 Aug 2015 18:44:22 +0000 (18:44 +0000)]
qemurunner: Improves checking for server and target IPs on qemus parameters

Fixes OS hanging infinitely waiting for qemus process to release bitbake.lock

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuilder: Fix multilib compile failure
Richard Purdie [Mon, 3 Aug 2015 06:15:47 +0000 (07:15 +0100)]
builder: Fix multilib compile failure

The last commit introduced a build failure in the multilib case:

| WARNING: /media/data1/build1/poky/build/tmp/work/x86-pokymllib32-linux/lib32-builder/0.1-r6/temp/run.do_install.781:1 exit 1 from
|   chown lib32-builder.lib32-builder /media/data1/build1/poky/build/tmp/work/x86-pokymllib32-linux/lib32-builder/0.1-r6/image/etc/mini_x/session.d/builder_hob_start.sh

so fix the chown to use the correct user.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoperl: fix build failure if building dir has the "blib" string
Wenzong Fan [Fri, 10 Jul 2015 08:54:55 +0000 (16:54 +0800)]
perl: fix build failure if building dir has the "blib" string

If build dir includes the string "blib", filter it out from @INC may empty
the @INC and cause build errors like:

  Can't locate ExtUtils/MakeMaker.pm in @INC \
  (you may need to install the ExtUtils::MakeMaker module) \
  (@INC contains: .) at Makefile.PL

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorootfs.py: fix PRE/POSTPROCESS_COMMANDS for rpm and deb
Robert Yang [Tue, 28 Jul 2015 03:10:50 +0000 (20:10 -0700)]
rootfs.py: fix PRE/POSTPROCESS_COMMANDS for rpm and deb

The rpm didn't run RPM_PREPROCESS_COMMANDS or RPM_POSTPROCESS_COMMANDS,
the similar to deb, this patch fix the problem.

And fix a typo:
DEB_POSTPROCESS_COMMAND -> DEB_POSTPROCESS_COMMANDS

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython3: delete patches that don't get applied anywhere
Dominic Sacré [Tue, 28 Jul 2015 14:58:38 +0000 (16:58 +0200)]
python3: delete patches that don't get applied anywhere

These patches are not referenced in any of the Python recipes.

Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython3: remove 2to3 symlink from package python3-2to3
Dominic Sacré [Tue, 28 Jul 2015 14:58:37 +0000 (16:58 +0200)]
python3: remove 2to3 symlink from package python3-2to3

The 2to3 symlink conflicts with its Python 2 equivalent in package
python-2to3.
The Python 3 version of the tool is still available as 2to3-3.4.

Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython3: remove package python3-robotparser
Dominic Sacré [Tue, 28 Jul 2015 14:58:36 +0000 (16:58 +0200)]
python3: remove package python3-robotparser

robotparser has been moved to urllib.robotparser in Python 3, and gets
packaged as part of python3-netclient alongside the rest of urllib.
This causes python3-modules to depend on an empty/missing
python3-robotparser package.

robotparser.py is relatively small and has no dependencies outside
urllib, so it makes more sense to eliminate the python3-robotparser
package than to alter the manifest for python3-netclient.

Part of the fix for [YOCTO #8048].

Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython3: detect libraries in STAGING_LIBDIR
Dominic Sacré [Tue, 28 Jul 2015 14:58:35 +0000 (16:58 +0200)]
python3: detect libraries in STAGING_LIBDIR

Patch setup.py so that the detect_modules() function looks for required
libraries and headers in STAGING_LIBDIR / STAGING_INCDIR.

Without this patch, several extension modules are not built, even though
their dependencies are present in the compiler's search paths.
The result is the following warning, and ultimately incomplete packages:

| The necessary bits to build these optional modules were not found:
| _bz2                  _curses_panel         _dbm
| _gdbm                 _lzma                 _sqlite3
| nis                   readline              zlib
| To find the necessary bits, look in setup.py in detect_modules() for the module's name.

With the Python 3.3 version of the recipe, at least some of these modules
were built, because STAGING_LIBDIR happened to be in the search path
by coincidence. Due to changes to distutils in Python 3.4, this is no
longer the case.

A previous patch that only affects the search paths for SSL is dropped, as
this one is a more complete fix for [YOCTO #7768].

Part of the fix for [YOCTO #8048].

Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuilder: fix USERADD_PARAM
Robert Yang [Tue, 28 Jul 2015 09:03:34 +0000 (02:03 -0700)]
builder: fix USERADD_PARAM

When build lib32-builder, it would create the user lib32-builder which
was incorrect.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouseradd_base.bbclass: do not warn when the user exists
Robert Yang [Tue, 28 Jul 2015 09:03:33 +0000 (02:03 -0700)]
useradd_base.bbclass: do not warn when the user exists

Use bbnote rather than bbwarn when the user exists, otherwise we would
always get the warnings when rebuild the recipe or build with mulitlib,
everything is OK if the user exists, so it should not be a warning.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouseradd_base.bbclass: print PN when bbnote/bbwarn/bbfatal
Robert Yang [Tue, 28 Jul 2015 09:03:32 +0000 (02:03 -0700)]
useradd_base.bbclass: print PN when bbnote/bbwarn/bbfatal

Print PN will help debug:
WARNING: openssh: user sshd already exists, not re-creating it

Which is better than:
WARNING: user sshd already exists, not re-creating it

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobase.bbclass/blacklist.bbclass: remove doc item when d.getVarFlags()
Robert Yang [Thu, 30 Jul 2015 15:18:10 +0000 (08:18 -0700)]
base.bbclass/blacklist.bbclass: remove doc item when d.getVarFlags()

The FOO[doc] is set in meta/conf/documentation.conf, we need remove it
from d.getVarFlags()'s return dict when it causes many loops.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobase.bbclass: move invalid PACKAGECONFIG checking to insane.bbclass
Robert Yang [Thu, 30 Jul 2015 15:18:09 +0000 (08:18 -0700)]
base.bbclass: move invalid PACKAGECONFIG checking to insane.bbclass

There was a problem when check invalid PACKAGECONFIG in the anonymous
function (when parsing), for example, there are two versions of a
recipe:
foo_1.0.bb
foo_2.0.bb
While foo_2.0.bb has a "PACKAGECONFIG[item] = 'x,y,z'", but foo_1.0.bb
doesn't, if we set PACKAGECONFIG_pn-foo = "item" in a conf file, we
would get the warning about invalid PACKAGECONFIG for foo_1.0.bb. Delay
the checking to build time will fix the problem.

[YOCTO #8065]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobusybox: enable support for sha1sum and sha256sum applets
Andre McCurdy [Thu, 30 Jul 2015 20:56:28 +0000 (13:56 -0700)]
busybox: enable support for sha1sum and sha256sum applets

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobusybox: support mount via label for btrfs and squashfs
Andre McCurdy [Thu, 30 Jul 2015 20:56:27 +0000 (13:56 -0700)]
busybox: support mount via label for btrfs and squashfs

Also move the mount via label (and mount via UUID) support into its
own config fragment and disable volume ID support for less common
filesystem formats exFAT and NILFS.

Following this commit, mount via label is supported for btrfs, ext, f2fs,
fat and squashfs.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobusybox: disable fatattr in defconfig
Andre McCurdy [Thu, 30 Jul 2015 20:56:26 +0000 (13:56 -0700)]
busybox: disable fatattr in defconfig

The fatattr applet (to display or change file attributes on a fat file
system) doesn't seem to be core functionality, so disable by default.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobusybox: disable sha3sum in defconfig
Andre McCurdy [Thu, 30 Jul 2015 20:56:25 +0000 (13:56 -0700)]
busybox: disable sha3sum in defconfig

The sha1sum, sha256sum and sha512sum applets have not historically
been enabled by default, so don't enable sha3sum either.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobusybox: refresh defconfig for busybox v1.23.2
Andre McCurdy [Thu, 30 Jul 2015 20:56:24 +0000 (13:56 -0700)]
busybox: refresh defconfig for busybox v1.23.2

The current oe-core busybox defconfig dates back to busybox v1.20.2,
so configure options introduced in busybox v1.21.x, v1.22.x and
v1.23.x take on default values when the oe-core defconfig is run
through 'make oldconfig'.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobusybox: re-order defconfig to align with busybox 1.23.2
Andre McCurdy [Thu, 30 Jul 2015 20:56:23 +0000 (13:56 -0700)]
busybox: re-order defconfig to align with busybox 1.23.2

No functional changes, simply re-order lines in defconfig so that
the existing options don't move elsewhere in the file when run
though busybox 1.23.2 'make oldconfig'.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobusybox: remove CONFIG_FEATURE_VI_OPTIMIZE_CURSOR from defconfig
Andre McCurdy [Thu, 30 Jul 2015 20:56:22 +0000 (13:56 -0700)]
busybox: remove CONFIG_FEATURE_VI_OPTIMIZE_CURSOR from defconfig

CONFIG_FEATURE_VI_OPTIMIZE_CURSOR is obsolete and removed
from busybox v1.21.0 onwards:

  http://git.busybox.net/busybox/commit/?id=04b52892ed5d9d8a4cf5d887c221a8b50c71274e

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodhcp: fix installed not shipped warning for lib32
Zhixiong Chi [Fri, 31 Jul 2015 02:20:25 +0000 (10:20 +0800)]
dhcp: fix installed not shipped warning for lib32

Modify the dhcp.inc with using the variable ${PN} instead of direct
packagename, so that the content will not be override after expanding
while we build the lib32-dhcp package with FILES_${PN}-xxxx_append.

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopopulate_sdk_ext: pass BBPATH to devtool --bbpath
Christopher Larson [Fri, 31 Jul 2015 15:19:14 +0000 (08:19 -0700)]
populate_sdk_ext: pass BBPATH to devtool --bbpath

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: add --bbpath argument
Christopher Larson [Fri, 31 Jul 2015 15:19:13 +0000 (08:19 -0700)]
devtool: add --bbpath argument

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopopulate_sdk_ext: use lnr, not ln -sr, for portability
Christopher Larson [Fri, 31 Jul 2015 15:19:12 +0000 (08:19 -0700)]
populate_sdk_ext: use lnr, not ln -sr, for portability

Not all hosts are running sufficiently new coreutils.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython-scons: 2.3.4 -> 2.3.6
Richard Purdie [Sat, 1 Aug 2015 08:18:29 +0000 (08:18 +0000)]
python-scons: 2.3.4 -> 2.3.6

License copyright year changed.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agokexec-tools: 2.0.9 -> 2.0.10
Richard Purdie [Sat, 1 Aug 2015 08:17:23 +0000 (08:17 +0000)]
kexec-tools: 2.0.9 -> 2.0.10

Drop patch merged upstream and part of x32 patch merged upstream.
Refresh patches.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agompfr: 3.1.2 -> 3.1.3
Richard Purdie [Sat, 1 Aug 2015 08:16:27 +0000 (08:16 +0000)]
mpfr: 3.1.2 -> 3.1.3

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibmpc: 1.0.2 -> 1.0.3
Richard Purdie [Sat, 1 Aug 2015 08:15:33 +0000 (08:15 +0000)]
libmpc: 1.0.2 -> 1.0.3

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopkg: solve inconsistency of using different lists directories
Alejandro Hernandez [Fri, 31 Jul 2015 18:59:37 +0000 (18:59 +0000)]
opkg: solve inconsistency of using different lists directories

Default behavior of opkg was to use ${OPKGLIBDIR}/opkg/lists;
but in our recipe we modify it to ${OPKGLIBDIR}/opkg/${OPKGLIBDIR}/opkg/,
when appending package-management to IMAGE_FEATURES these lists are
populated during build time (using the default directory),
but since our config was different these populated lists were never used at runtime,
this patch solves this inconsistency by using default behavior for both build time and runtime.

[YOCTO #6966]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobase.bbclass: Note when including pn with INCOMPATIBLE_LICENSES
Beth Flanagan [Fri, 31 Jul 2015 15:40:07 +0000 (16:40 +0100)]
base.bbclass: Note when including pn with INCOMPATIBLE_LICENSES

We need to be able to tell people if we WHITELIST a recipe
that contains an incompatible licese.

Example: If we set WHITELIST_GPL-3.0 ?= "foo", foo will end
up on an image even if GPL-3.0 is incompatible. This is the
correct behaviour but there is nothing telling people that it
is even happening.

Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoinit-install-efi.sh: Check if an installation device is present
Leonardo Sandoval [Fri, 31 Jul 2015 09:14:59 +0000 (09:14 +0000)]
init-install-efi.sh: Check if an installation device is present

In case there is no installation device present, give a better
message to the user and abort installation.

[YOCTO #7971]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/commands: Increase qemu boot timeout to match testimage.bbclass
Richard Purdie [Fri, 31 Jul 2015 14:58:53 +0000 (15:58 +0100)]
oeqa/commands: Increase qemu boot timeout to match testimage.bbclass

This matches the value in testimage.bbclass, which makes sense
since the autobuilders are usually contended.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolicense_class: Fix choose_lic_set into incompatible license
Aníbal Limón [Thu, 30 Jul 2015 21:40:13 +0000 (16:40 -0500)]
license_class: Fix choose_lic_set into incompatible license

Use canonical_license when doing evaluation of license expresion since
INCOMPATIBLE_LICENSE are already canonized.

[YOCTO #8080]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodistrodata.bbclass: drop the manual upstream version check logic
Alexander Kanavin [Mon, 27 Jul 2015 16:42:52 +0000 (19:42 +0300)]
distrodata.bbclass: drop the manual upstream version check logic

It's already taken care of in meta/lib/oe/recipeutils.py

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodistrodata.bbclass: do not skip -native recipes in checkpkg task
Alexander Kanavin [Mon, 27 Jul 2015 16:40:27 +0000 (19:40 +0300)]
distrodata.bbclass: do not skip -native recipes in checkpkg task

Some recipes are available only in the -native flavour, and we need to
check their upstream version too from the command line.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agonss: advance to version 3.19.1
Joe Slater [Thu, 30 Jul 2015 16:34:29 +0000 (09:34 -0700)]
nss: advance to version 3.19.1

Picks up fixes for CVE-2015-2721 and CVE-2015-2730.  Specify previously
overlooked license file COPYING.  Fold nss.inc into recipe.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoperf: add liblzma depdenency
Bruce Ashfield [Thu, 30 Jul 2015 15:03:14 +0000 (11:03 -0400)]
perf: add liblzma depdenency

With kernel commit 6c6f0f6164f [tools build: Add feature check for lzma
library], perf now performs a test for lzma and adds functionality
appropriately.

This currently is a floating dependency that will sometimes be present,
and sometimes not. The result is the following QA warning:

  WARNING: QA Issue: perf rdepends on liblzma, but it isn't a build dependency? [build-deps]

By adding xz to the DEPENDS, we'll ensure that it is consistently in
place.

[YOCTO: #8045]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoguilt-native: set PV in the recipe to allow upstream version check
Alexander Kanavin [Mon, 27 Jul 2015 16:36:54 +0000 (19:36 +0300)]
guilt-native: set PV in the recipe to allow upstream version check

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agostress: use developer's website for SRC_URI
Alexander Kanavin [Fri, 10 Jul 2015 12:27:35 +0000 (15:27 +0300)]
stress: use developer's website for SRC_URI

So that upstream version check happens at the upstream, not
at Fedora's build servers.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoshared-mime-info: reorder SRC_URI lines to fix upstream version check
Alexander Kanavin [Fri, 10 Jul 2015 09:33:54 +0000 (12:33 +0300)]
shared-mime-info: reorder SRC_URI lines to fix upstream version check

Upstream tarball should be listed first.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosyslinux: drop v6.xx/ from directory path in SRC_URI
Alexander Kanavin [Fri, 10 Jul 2015 09:33:07 +0000 (12:33 +0300)]
syslinux: drop v6.xx/ from directory path in SRC_URI

This allows upstream version check.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopseudo: fix upstream SRC_URI to enable upstream version check
Alexander Kanavin [Tue, 7 Jul 2015 17:03:48 +0000 (20:03 +0300)]
pseudo: fix upstream SRC_URI to enable upstream version check

Previous URI did not allow directory listings.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibmad: use ftp instead of sourceforge for consistency with libid3tag
Alexander Kanavin [Tue, 28 Jul 2015 12:00:22 +0000 (15:00 +0300)]
libmad: use ftp instead of sourceforge for consistency with libid3tag

Both ftp and SF are official code sources, but ftp is less finicky
for upstream version checks.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoeglinfo: change version from 1.0 to 1.0.0 to match the upstream git tag
Alexander Kanavin [Tue, 28 Jul 2015 11:39:15 +0000 (14:39 +0300)]
eglinfo: change version from 1.0 to 1.0.0 to match the upstream git tag

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoossp-uuid: update SRC_URI to not use Google Code
Alexander Kanavin [Fri, 26 Jun 2015 13:06:32 +0000 (16:06 +0300)]
ossp-uuid: update SRC_URI to not use Google Code

Google Code is shutting down so tarballs will be fetched from a Debian mirror
instead

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoadt-installer: update SRC_URI to not use Google Code
Alexander Kanavin [Fri, 26 Jun 2015 13:06:03 +0000 (16:06 +0300)]
adt-installer: update SRC_URI to not use Google Code

Google Code is shutting down and opkg tarballs are now available
from yoctoproject.org

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibproxy: update SRC_URI to not use Google Code
Alexander Kanavin [Fri, 26 Jun 2015 13:04:07 +0000 (16:04 +0300)]
libproxy: update SRC_URI to not use Google Code

Google Code is shutting down soon, so libproxy tarball is now fetched
from Debian mirrors

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/sstatetests.py: add annotator to test_sstate_32_64_same_hash [YOCTO #6006]
Costin Constantin [Thu, 30 Jul 2015 11:35:43 +0000 (14:35 +0300)]
oeqa/sstatetests.py: add annotator to test_sstate_32_64_same_hash [YOCTO #6006]

Signed-off-by: Costin Constantin <costin.c.constantin@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/sstatetests.py: add decorator to test_sstate_nativelsbstring_same_hash
Costin Constantin [Thu, 30 Jul 2015 11:54:27 +0000 (14:54 +0300)]
oeqa/sstatetests.py: add decorator to test_sstate_nativelsbstring_same_hash

Signed-off-by: Costin Constantin <costin.c.constantin@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoalsa-utils: assume the alsa storing is success if machine has no sound card
Roy Li [Thu, 30 Jul 2015 03:03:27 +0000 (11:03 +0800)]
alsa-utils: assume the alsa storing is success if machine has no sound card

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotzdata: Add marking for config files in recipe
Li Zhou [Thu, 30 Jul 2015 05:20:23 +0000 (13:20 +0800)]
tzdata: Add marking for config files in recipe

The tzdata recipe does not mark the /etc/timezone file and
/etc/localtime link as configuration files. An on target update would
then overwite the user modified versions of those files.
Add those files in CONFFILES_${PN}.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocreate-pull-request: Implement -d option
Ed Bartosh [Thu, 30 Jul 2015 11:10:51 +0000 (14:10 +0300)]
create-pull-request: Implement -d option

This options allows to generate patches against relative directory by
using git format-patch --relative option.
See more details about --relative option in git diff manual page.

For example generating bitbake patchsets from poky can be
done this way: create-pull-request -u contrib -d ./bitbake

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosmartpm: set noprogress for pycurl
Kai Kang [Thu, 30 Jul 2015 06:37:23 +0000 (14:37 +0800)]
smartpm: set noprogress for pycurl

Set NOPROGRESS for pycurl just as same as default operation in pycurl
module itself. If set NOPROGRESS with 0 for pycurl, it causes dead lock
issue of Python GIL when call smart library by python gui just like
pygtk.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoqemu: upgrade to 2.4.0-rc3
Cristian Iorga [Thu, 30 Jul 2015 09:14:48 +0000 (12:14 +0300)]
qemu: upgrade to 2.4.0-rc3

Bugfixes, bring it closer to 2.4.0 final release.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoguile: Add earlyclobber constraint to the SMULL outputs.
Jackie Huang [Wed, 29 Jul 2015 08:09:10 +0000 (16:09 +0800)]
guile: Add earlyclobber constraint to the SMULL outputs.

backport a patch to fix issue:
{standard input}: Assembler messages:
{standard input}:16966: rdhi, rdlo and rm must all be different

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodbus: upgrade to 1.8.20
Chen Qi [Wed, 29 Jul 2015 03:33:45 +0000 (11:33 +0800)]
dbus: upgrade to 1.8.20

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc-multilib-config: Adapt mips for mips64 and different gcc versions
Richard Purdie [Fri, 31 Jul 2015 10:24:37 +0000 (11:24 +0100)]
gcc-multilib-config: Adapt mips for mips64 and different gcc versions

The location of some files for mips varies between gcc 4.9 and 5.2. Ensure
that we cover both cases (and allow specified files to be optional).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocross-canadian/gcc: Various mips64 fixes
Richard Purdie [Fri, 31 Jul 2015 10:38:24 +0000 (11:38 +0100)]
cross-canadian/gcc: Various mips64 fixes

"n32" is a mips64 variant we need to consider when processing the TARGET_OS
extensions. Also add the multilib extensions for mips64.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglibc: don't override TUNE_CCARGS for MIPS
Dmitry Eremin-Solenikov [Wed, 1 Jul 2015 14:02:22 +0000 (17:02 +0300)]
glibc: don't override TUNE_CCARGS for MIPS

Overriding TUNE_CCARGS this way breaks MULTILIB setup for MIPS. This
override disables multilib handling of tunes for TUNE_CCARGS, thus
enforcing glibc's TUNE_CCARGS to the TUNE_CCARGS of main DEFAULTTUNE.

Glibc perfectly build without this override for both simple and multilib
cases.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocross.bbclass: override MULTIMACH_TARGET_SYS
Dmitry Eremin-Solenikov [Wed, 1 Jul 2015 14:02:21 +0000 (17:02 +0300)]
cross.bbclass: override MULTIMACH_TARGET_SYS

Cross packages are built for BUILD_VENDOR/BUILD_OS, rather than
TARGET_VENDOR/TARGET_OS. E.g. there is no point in hardcoding the
target's LIBCEXTENSION and ABIEXTENSION into the STAMPDIR/WORKDIR
variables (set using MULTIMACH_TARGET_SYS).

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackagegroups-cross-canadian: don't override TRANSLATED_TARGET_ARCH
Dmitry Eremin-Solenikov [Wed, 1 Jul 2015 14:02:20 +0000 (17:02 +0300)]
packagegroups-cross-canadian: don't override TRANSLATED_TARGET_ARCH

There is no point in overriding TRANSLATED_TARGET_ARCH in
packagegroups-cross-canadian recipe. The cross-canadian class sets the
PACKAGE_ARCH variable, thus allarch class (inherited through
packagegroup class) doesn't change variables.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoarch-mips.inc: don't override TRANSLATED_TARGET_ARCH
Dmitry Eremin-Solenikov [Wed, 1 Jul 2015 14:02:19 +0000 (17:02 +0300)]
arch-mips.inc: don't override TRANSLATED_TARGET_ARCH

Currently MIPS64 N32 is broken. There is internal disagreement
between TARGET_ARCH (which doesn't contain ABIEXTENSION) and
TRANSLATED_TARGET_ARCH (which contains ABIEXTENSION). ABI is already
encoded into the TARGET_OS. ARM tunes in the same situation override
neither the TARGET_ARCH nor the TRANSLATED_TARGET_ARCH. So let's drop
this override.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomultilib_global: Fix PREFERRED_VERSION mapping for gcc-cross-canadian
Richard Purdie [Fri, 31 Jul 2015 10:29:35 +0000 (11:29 +0100)]
multilib_global: Fix PREFERRED_VERSION mapping for gcc-cross-canadian

Our multilib cross toolchains have <ml_prefix> as a prefix however we
only have a single gcc-cross-canadian for each arch and it is not
prefixed even in the multilib case. We can have two versions of
gcc-cross-canadian, 32 and 64 bit.

This fixes the multilib PREFERRED_VERSION mapping code so that
no prefix is added to the preferred version and therefore the
right versions of gcc-cross-canadian are used.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocross-canadian: Add symlinks for multilib cases
Richard Purdie [Fri, 31 Jul 2015 10:28:56 +0000 (11:28 +0100)]
cross-canadian: Add symlinks for multilib cases

In the same way we map various TARGET_OS options back to the single
cross-canadian compiler, add mappings for the TARGET_VENDOR cases we
know about in the multilib case.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibgcc: Fix symlink handling in cross-arch multilib cases
Richard Purdie [Fri, 31 Jul 2015 10:28:22 +0000 (11:28 +0100)]
libgcc: Fix symlink handling in cross-arch multilib cases

The symlink being generated needs to match both the current arch (e.g. mips
or mips64) but also use the underlying TARGET_SYS without multilib extensions
to TARGET_VENDOR or extensions to TARGET_OS.

The way multilib changes TARGET_VENDOR meant this code did not have
a way of removing that change. The method of removing some TARGET_OS
suffixes was also not working.

By using immediate expansion to run this code, we can run before the
multilib code changes it and get the original values.

We then use the *current* TARGET_ARCH value in case this does get changed
by the multilib since we need to point at the right compiler (32 bit one
for 32 bit code).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc-multilib-config: Tweak naming of options to match gcc's expectations
Richard Purdie [Fri, 31 Jul 2015 10:27:45 +0000 (11:27 +0100)]
gcc-multilib-config: Tweak naming of options to match gcc's expectations

gcc itself does not add the '-' of options to its multilib configuration.
We should follow its example.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc-cross-canadian: Add symlink to real-ld alongside other symlinks
Richard Purdie [Fri, 31 Jul 2015 10:27:05 +0000 (11:27 +0100)]
gcc-cross-canadian: Add symlink to real-ld alongside other symlinks

In some cases such as cross architecture configurations (using mips-X-linux
on mips64-X-linux), gcc can get confused about finding a 'real' version
of ld. Adding a symlink to 'real-ld' allowed these configurations
to work properly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc: Add patch to handle on target multilibs better
Richard Purdie [Fri, 31 Jul 2015 10:26:24 +0000 (11:26 +0100)]
gcc: Add patch to handle on target multilibs better

On target multilibs did not work properly since gcc-cross-canadian
was only searching a limited number of sysroot directories to
find multilib target binaries.

This adds an extra search path to ensure those binaries are found
and our gcc-cross-canadian works everywhere we need it to, e.g.
with mips trilib configurations.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackagegroup-cross-canadian: Make the code more readable
Richard Purdie [Fri, 31 Jul 2015 10:25:43 +0000 (11:25 +0100)]
packagegroup-cross-canadian: Make the code more readable

Make the code more readable by using the functions slightly differently.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoutils: Handle MLPREFIX in all_multilib_tune_values()
Richard Purdie [Fri, 31 Jul 2015 10:24:01 +0000 (11:24 +0100)]
utils: Handle MLPREFIX in all_multilib_tune_values()

MLPREFIX wasn't being set by the function correctly since its
not an overridden value but directly set. Handle this variable
explicitly so the function returns the expected values.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotestimage: testsdk fixes/improvements
Richard Purdie [Fri, 31 Jul 2015 10:23:22 +0000 (11:23 +0100)]
testimage: testsdk fixes/improvements

The "bitbake meta-toolchain" comment is dated and incorrect, fix to
point at -c populate_sdk.

If a toolchain contains multiple environment files, iterate them and run
the sdk test suite on each on in turn rather than giving a fatal error and
giving up.

Also improve the debug output so that rather than PN, it also show the
toolchain tarball under test, and the environment file name its using.

Also enable the accidentally disabled cleanup code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-selftest: devtool: fix teardown warning in test_devtool_update_recipe_append
Paul Eggleton [Fri, 31 Jul 2015 09:31:35 +0000 (10:31 +0100)]
oe-selftest: devtool: fix teardown warning in test_devtool_update_recipe_append

We don't need to run bitbake -c cleansstate on this because it's being
cleaned out as part of "devtool reset".

Addresses [YOCTO #8031].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: use tinfoil shutdown method
Paul Eggleton [Fri, 31 Jul 2015 09:31:34 +0000 (10:31 +0100)]
devtool: use tinfoil shutdown method

Tinfoil now has its own shutdown method, use it instead of calling into
cooker - not only is it the right thing to do from an API perspective,
it also ensures proper lock handling.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agou-boot: fix extern inline build errors for gcc 5
Kevin Hao [Fri, 31 Jul 2015 05:21:25 +0000 (13:21 +0800)]
u-boot: fix extern inline build errors for gcc 5

The gcc 5 change its default standard from gnu89 to gnu11. These two
standards do have different semantics for inline functions. And the
gcc 5 will emit the following errors on the "extern inline" functions:
    arch/powerpc/cpu/mpc8xxx/fsl_lbc.o: In function `ld_le16':
    ./arch/powerpc/include/asm/byteorder.h:12: multiple definition of `ld_le16'
    arch/powerpc/cpu/mpc8xxx/fdt.o:./arch/powerpc/include/asm/byteorder.h:12: first defined here

Fix these build errors by using "-fgnu89-inline" to enforce the gnu89
inline semantics as suggested in [1].

[1] https://gcc.gnu.org/gcc-5/porting_to.html

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocombo-layer: fix AttributeError traceback.
Alexander Kanevskiy [Thu, 30 Jul 2015 16:49:17 +0000 (19:49 +0300)]
combo-layer: fix AttributeError traceback.

Commit c908a423f85a84ddd8249abd00254f29d47df74b introduced a new
issue in combo-layer that leads to a traceback as
args.hard_reset is an unknown variable. This change defines an
appropriate destination for the command args parser and fixes the
reference.

Signed-off-by: Alexander Kanevskiy <kad@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>