]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
10 years agodiffutils & diffstat: fix up EXTRA_OECONF
Chen Qi [Mon, 29 Dec 2014 08:28:21 +0000 (16:28 +0800)]
diffutils & diffstat: fix up EXTRA_OECONF

The following line is meant to be in diffutils but it was added to
diffstat by accident. The commit message which introduced this line
says that it's for diffutils.

     EXTRA_OECONF += "--without-libsigsegv-prefix"

This patch fixes this problem.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowpa-supplicant: avoid host contamination of drivers by libnl3
Justin Capella [Sun, 28 Dec 2014 23:40:23 +0000 (15:40 -0800)]
wpa-supplicant: avoid host contamination of drivers by libnl3

(See patch refrenced from OE-core rev: 1c3beda0015da9a0fec2581af7645c9ea122c7e3)

Modifies do_configure to inject DRV_CFLAGS variable into wpa_supplicant/.config which is then included during make of drivers.

Signed-off-by: Justin Capella <justincapella@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclutter: enable EGL backend by default
Ross Burton [Thu, 27 Jun 2013 16:40:50 +0000 (17:40 +0100)]
clutter: enable EGL backend by default

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclutter-1.0: add ptest
Tim Orling [Wed, 8 Oct 2014 03:00:13 +0000 (20:00 -0700)]
clutter-1.0: add ptest

Upstream has reworked installed-tests, use them for ptest.
Default output format for tests is not TAP, add patch to generate TAP output.
Run tests with gnome-desktop-testing-runner, which understands TAP output.

Tested on nuc with core-image-clutter and core-image-weston.

Reminder that for "pure" wayland (e.g. core-image-weston) you need to "export CLUTTER_BACKEND = wayland" to get past setting the DISPLAY variable expected for X11 backend.

Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclutter-1.0: upgrade to v1.20.0
Tim Orling [Wed, 8 Oct 2014 03:00:12 +0000 (20:00 -0700)]
clutter-1.0: upgrade to v1.20.0

* The 1.19.x series were "snapshots" and not stable releases.
* This is the first stable release beyond the 1.18.x series.
* Tested on nuc with core-image-weston.

ANNOUNCEMENT:
https://mail.gnome.org/archives/clutter-list/2014-September/msg00007.html

Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolocal.conf.sample: Add qemuarm64
Mark Hatle [Thu, 6 Nov 2014 15:34:27 +0000 (23:34 +0800)]
local.conf.sample: Add qemuarm64

Add an example machine configuration for qemuarm64.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobinutils: several security fixes
Armin Kuster [Fri, 26 Dec 2014 16:51:53 +0000 (08:51 -0800)]
binutils: several security fixes

CVE-2014-8484
CVE-2014-8485
CVE-2014-8501
CVE-2014-8502
CVE-2014-8503
CVE-2014-8504
CVE-2014-8737

and one supporting patch.

[Yocto # 7084]

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agom4: Disable searching for libsigsegv
Holger Hans Peter Freyther [Fri, 26 Dec 2014 11:08:59 +0000 (12:08 +0100)]
m4: Disable searching for libsigsegv

When building GNU Smalltalk libsigsegv will be available and m4
will start to use it. This leads to the below warning:

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

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodiffutils: Disable searching for libsigsegv
Holger Hans Peter Freyther [Fri, 26 Dec 2014 11:08:58 +0000 (12:08 +0100)]
diffutils: Disable searching for libsigsegv

After building GNU Smalltalk libsigsegv is in the sysroot
and will be picked-up by diffutils. This lead to the below
warning:

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

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogrep: upgrade to 2.21
Chen Qi [Fri, 26 Dec 2014 09:35:33 +0000 (17:35 +0800)]
grep: upgrade to 2.21

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoxz: upgrade to latest stable release 5.2.0
Chen Qi [Fri, 26 Dec 2014 09:35:32 +0000 (17:35 +0800)]
xz: upgrade to latest stable release 5.2.0

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopciutils: add PACKAGECONFIG for 'hwdb'
Chen Qi [Fri, 26 Dec 2014 09:35:31 +0000 (17:35 +0800)]
pciutils: add PACKAGECONFIG for 'hwdb'

Add PACKAGECONFIG for 'hwdb' to fix the following QA warning.
WARNING: QA Issue: libpci rdepends on libudev, but it isn't a build dependency? [build-deps]
WARNING: QA Issue: pciutils rdepends on libudev, but it isn't a build dependency? [build-deps]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopciutils: upgrade to 3.3.0
Chen Qi [Fri, 26 Dec 2014 09:35:30 +0000 (17:35 +0800)]
pciutils: upgrade to 3.3.0

lib-build-fix.patch is removed as it doesn't seem useful.
do_compile_prepend is removed because it's not useful for the new version.
The following line is removed as I don't see any problem without it.
PARALLEL_MAKE = ""

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosudo: upgrade to latest state version 1.8.11p2
Chen Qi [Fri, 26 Dec 2014 09:35:29 +0000 (17:35 +0800)]
sudo: upgrade to latest state version 1.8.11p2

Files containing license information have changed position.
FILES_${PN}-dev needs to be modified to contain correct files.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotar: upgrade to 2.18
Chen Qi [Fri, 26 Dec 2014 09:35:28 +0000 (17:35 +0800)]
tar: upgrade to 2.18

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokmod: upgrade to 19
Chen Qi [Fri, 26 Dec 2014 09:35:27 +0000 (17:35 +0800)]
kmod: upgrade to 19

0001-Add-missing-O_CLOEXEC-in-kmod_module_get_size.patch is dropped
as it's in the new version.

Change-to-calling-bswap_-instead-of-htobe-and-be-toh.patch is modified
to match the new version.

License chesum is changed but it is confirmed that the license information
is not chagned.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoboost : Add the atomic and chrono libraries to the build.
Philip Balister [Tue, 23 Dec 2014 14:14:03 +0000 (09:14 -0500)]
boost : Add the atomic and chrono libraries to the build.

Inspection of buildhistory shows no existing libraries changed and
the atmoic and chrono libraries are packaged individually.

Signed-off-by: Philip Balister <philip@balister.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorunqemu-internal: increase memory for qemuarm64
Kai Kang [Thu, 25 Dec 2014 08:19:33 +0000 (16:19 +0800)]
runqemu-internal: increase memory for qemuarm64

Increase memory to 512M for qemuarm64. The original size 126M can't make
task testimage pass, neither 256M.

[YOCTO #7102]

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoelfutils: Update PREFERRED_VERSION after upgrade
Saul Wold [Tue, 23 Dec 2014 21:41:04 +0000 (13:41 -0800)]
elfutils: Update PREFERRED_VERSION after upgrade

Since we normally fix the version of elfutils in tcmode-default, this
needs to be updated after we upgrade the recipe itself.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/selftest: fix test_force_task so it doesn't taint the entire build
Paul Eggleton [Tue, 23 Dec 2014 16:01:55 +0000 (16:01 +0000)]
oeqa/selftest: fix test_force_task so it doesn't taint the entire build

Using -C sets a taint on the specified task, and m4-native is in the
dependency chain for just about everything, which means that everything
gets forced to rebuild. We don't need the influence of this test to
extend outside of the test itself, so ensure that the taint gets cleared
at the end of the test.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agooeqa/selftest: populate pkgdata/shlibs in test_recipetool_create_git
Paul Eggleton [Tue, 23 Dec 2014 15:20:24 +0000 (15:20 +0000)]
oeqa/selftest: populate pkgdata/shlibs in test_recipetool_create_git

Build some recipes so that we have the needed data in the sysroot for
recipetool to refer to when scanning for dependencies.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agooeqa/selftest: improve failure messages for devtool tests
Paul Eggleton [Tue, 23 Dec 2014 15:19:03 +0000 (15:19 +0000)]
oeqa/selftest: improve failure messages for devtool tests

assertTrue prints "False is not True" if it fails, which is pretty much
useless. Use a more appropriate assertion test where practical and add a
message where it isn't.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agooeqa/selftest: skip test_incremental_image_generation if not using rpm
Paul Eggleton [Tue, 23 Dec 2014 15:17:48 +0000 (15:17 +0000)]
oeqa/selftest: skip test_incremental_image_generation if not using rpm

We have just implemented incremental ipk image generation, but at the
moment this test doesn't support that, so skip it if not using rpm.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agooeqa/selftest: fix test_event_handler for changes in bitbake output
Paul Eggleton [Tue, 23 Dec 2014 14:39:03 +0000 (14:39 +0000)]
oeqa/selftest: fix test_event_handler for changes in bitbake output

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agooeqa/utils: fix testcase decorator to allow calling tests individually
Paul Eggleton [Tue, 23 Dec 2014 14:47:45 +0000 (14:47 +0000)]
oeqa/utils: fix testcase decorator to allow calling tests individually

Without this, running tests individually failed with a traceback:

$ oe-selftest --run-test
buildoptions.ImageOptionsTests.test_incremental_image_generation
2014-12-23 14:40:37,636 - selftest - INFO - Checking that everything is in order before running the tests
2014-12-23 14:40:38,408 - selftest - INFO - Running bitbake -p
2014-12-23 14:40:40,235 - selftest - INFO - Loading tests from:
oeqa.selftest.buildoptions.ImageOptionsTests.test_incremental_image_generation
Traceback (most recent call last):
  File "/home/user/poky/scripts/oe-selftest", line 179, in <module>
    ret = main()
  File "/home/user/poky/scripts/oe-selftest", line 164, in main
    suite.addTests(loader.loadTestsFromName(test))
  File "/usr/lib64/python2.7/unittest/loader.py", line 91, in loadTestsFromName
    module = __import__('.'.join(parts_copy))
  File "/home/user/poky/meta/lib/oeqa/selftest/buildoptions.py", line 12, in <module>
    class ImageOptionsTests(oeSelfTest):
  File "/home/user/poky/meta/lib/oeqa/selftest/buildoptions.py", line 14, in ImageOptionsTests
    @testcase(761)
NameError: global name 'func' is not defined

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agooeqa/utils: replace some tabs with spaces
Paul Eggleton [Tue, 23 Dec 2014 14:34:29 +0000 (14:34 +0000)]
oeqa/utils: replace some tabs with spaces

Python code should use spaces only for indentation.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agodpkg: Upgrade to 1.17.21
Aníbal Limón [Mon, 24 Nov 2014 21:16:31 +0000 (15:16 -0600)]
dpkg: Upgrade to 1.17.21

Remove dpkg-1.17.4-CVE-2014-0471, dpkg-1.17.4-CVE-2014-0471-CVE-2014-3127 and
ignore_extra_fields patches that are already in upstream.

Rebase no-vla-warning patch.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopythonnative: set PYTHON_EXECUTABLE so that cmake can find it
Andreas Müller [Wed, 3 Dec 2014 12:40:54 +0000 (13:40 +0100)]
pythonnative: set PYTHON_EXECUTABLE so that cmake can find it

| CMake Error at /home/a.mueller/tmp/oe-core-glibc/sysroots/x86_64-linux/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
|   Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE)

[RP: Added comment that is used by cmake]
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowic: account for mmcblk device partition naming
Maciej Borzecki [Mon, 22 Dec 2014 14:28:02 +0000 (15:28 +0100)]
wic: account for mmcblk device partition naming

MMC block device partitions are named differently than other block
devices and use the scheme: mmcblk<devnum>p<partnum>, ex: mmcblk0p1,
mmcblk0p2. The current code generates incorrect parition names missing
'p' infix for fstab entries. The patch resolves this problem.

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolsb: remove sendmail from sysroot
Robert Yang [Fri, 19 Dec 2014 08:27:54 +0000 (00:27 -0800)]
lsb: remove sendmail from sysroot

The sysroot/${libdir}/sendmail conflicts with esmtp's, and it's a
symlink to ${sbindir}/sendmail which is meaningless for sysroot, so
remove it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobind: fix conf.patch to add db.255 configuration file
Chen Qi [Fri, 19 Dec 2014 07:30:04 +0000 (15:30 +0800)]
bind: fix conf.patch to add db.255 configuration file

Add in conf.patch /etc/bind/db.255 file so that we don't get the following error.

    zone 255.in-addr.arpa/IN: loading from master file /etc/bind/db.255 failed: file not found

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoimage.bbclass: avoid boot error on read-only systemd image
Chen Qi [Tue, 21 Oct 2014 06:30:36 +0000 (14:30 +0800)]
image.bbclass: avoid boot error on read-only systemd image

New version of systemd implements a new feature of updating /etc
or /var when needed at boot. For details, please see link below.

Opointer.de/blog/projects/stateless.html

For now, at boot time, the systemd-sysusers.service would update user
database files (/etc/passwd, /etc/group, etc.) according to the configuration
files under /usr/lib/sysusers.d. This step is necessary for other systemd
services to work correctly. Examples of such services are systemd-resolved
and systemd-tmpfiles-setup.

The problem is that on a read-only file system, that is, if /etc is read-only,
the user database files could not be updated, causing failures of services.

This patch fixes this problem by adding users/groups at rootfs time.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolicense.bbclass: hardlink requires write permission
Robert Yang [Thu, 13 Nov 2014 07:55:58 +0000 (23:55 -0800)]
license.bbclass: hardlink requires write permission

Fixed:
* The os.link() reqiures write permission on the src file (suppose the
  src file belongs to another user, then you need write permission to harlink to
  it since the link count would change)

* Print more info when failed to copy
  The warning was like:
  WARNING: Could not copy license file COPYING: [Errno 1] Operation not permitted

  We couldn't know which recipe print the warning from this message.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoopkg-collateral: Use new lists_dir syntax
Paul Barker [Sun, 21 Dec 2014 22:11:50 +0000 (22:11 +0000)]
opkg-collateral: Use new lists_dir syntax

Since opkg v0.2.3, it has been possible to use the new syntax for the
'lists_dir' option in an opkg configuration file. From v0.3.0, this new syntax
is required. The new syntax matches the way other options are set.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoppp: upgrade 2.4.7
Hongxu Jia [Tue, 23 Dec 2014 05:09:58 +0000 (13:09 +0800)]
ppp: upgrade 2.4.7

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopax-utils: upgrade to 0.9.2
Hongxu Jia [Tue, 23 Dec 2014 05:09:57 +0000 (13:09 +0800)]
pax-utils: upgrade to 0.9.2

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoapr-util: upgrade to 1.5.4
Hongxu Jia [Tue, 23 Dec 2014 05:09:56 +0000 (13:09 +0800)]
apr-util: upgrade to 1.5.4

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibxml2: upgrade to 2.9.2
Hongxu Jia [Tue, 23 Dec 2014 05:09:54 +0000 (13:09 +0800)]
libxml2: upgrade to 2.9.2

- Rebase python-sitepackages-dir.patch to 2.9.2

- Drop libxml2-CVE-2014-3660.patch which has been merged to 2.9.2.

- Add configure.ac-fix-cross-compiling-warning.patch to fix cross
  compilation failure.

- Tweak do_configure_prepend, use configure.ac to instead of configure.in

- Add cmake files to ${PN}-dev

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolicense: Validate if LICENSE is well defined.
Aníbal Limón [Mon, 22 Dec 2014 23:30:46 +0000 (17:30 -0600)]
license: Validate if LICENSE is well defined.

Add check_license_format function that shows warning if LICENSE don't have
valid operators and also if have space separated entries without operator,
add check_license_format validation into base class.

[YOCTO #6758]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolicense_class: fix license.manifest shows LICENSE field differently to recipe
Aníbal Limón [Mon, 22 Dec 2014 23:30:45 +0000 (17:30 -0600)]
license_class: fix license.manifest shows LICENSE field differently to recipe

Drop removal of [|&()*] operators in pkged_lic because this removal is only
needed to validate if license is collected.

[YOCTO #6757]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agologrotate: upgrade to 3.8.8
Robert Yang [Fri, 19 Dec 2014 11:06:34 +0000 (03:06 -0800)]
logrotate: upgrade to 3.8.8

* Upgrade to 3.8.8.
* Update disable-check-different-filesystems.patch since we still need it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/image.py: Handle compressed IMAGE_TYPEDEP values
Otavio Salvador [Wed, 24 Dec 2014 16:32:11 +0000 (14:32 -0200)]
lib/oe/image.py: Handle compressed IMAGE_TYPEDEP values

When computing the dependency graph for the image generation, we need
to take into account the compression type and identify the base type
it relates to. This allow for a more robust graph generation even when
using composed image types.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoimage_types.bbclass: Rework code to map types for 'ext3'
Otavio Salvador [Wed, 24 Dec 2014 16:32:10 +0000 (14:32 -0200)]
image_types.bbclass: Rework code to map types for 'ext3'

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoimage_types.bbclass: Respect IMAGE_TYPEDEP dependencies
Otavio Salvador [Wed, 24 Dec 2014 16:32:09 +0000 (14:32 -0200)]
image_types.bbclass: Respect IMAGE_TYPEDEP dependencies

The IMAGE_TYPEDEP dependencies also need to be taken into account when
building an IMAGE_FSTYPE.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoinit-ifupdown: Add missing script for qemuarm64
Richard Purdie [Mon, 22 Dec 2014 12:14:10 +0000 (12:14 +0000)]
init-ifupdown: Add missing script for qemuarm64

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibpng 1.6.13: fix build for aarch64
Koen Kooi [Thu, 18 Dec 2014 08:51:04 +0000 (16:51 +0800)]
libpng 1.6.13: fix build for aarch64

The configure override was too restrictive, it needed both 'arm' and
'neon' to trigger, which breaks on aarch64. Since TUNE_FEATURES is the
only qualifier that matters, drop the 'arm' override.

Buildtested for 'genericarmv8' and 'qemux86' machines.

[RP: Added class-target override to avoid failures for libpng-native]
Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agomake: upgrade to 4.1
Robert Yang [Mon, 22 Dec 2014 05:28:29 +0000 (21:28 -0800)]
make: upgrade to 4.1

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogit: upgrade to 2.2.0
Robert Yang [Mon, 22 Dec 2014 05:28:28 +0000 (21:28 -0800)]
git: upgrade to 2.2.0

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorsync: upgrade to 3.1.1
Robert Yang [Mon, 22 Dec 2014 05:28:26 +0000 (21:28 -0800)]
rsync: upgrade to 3.1.1

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowget: add PACKAGECONFIG for util-linux
Robert Yang [Mon, 22 Dec 2014 05:28:25 +0000 (21:28 -0800)]
wget: add PACKAGECONFIG for util-linux

Fixed:
WARNING: QA Issue: wget rdepends on util-linux-libuuid, but it isn't a build dependency? [build-deps]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowget: upgrade to 1.16.1
Robert Yang [Mon, 22 Dec 2014 05:28:24 +0000 (21:28 -0800)]
wget: upgrade to 1.16.1

* upgrade to 1.16.1
* inherit pkgconfig to fix the error like:a
  | configure.ac:41: error: possibly undefined macro: AC_MSG_NOTICE
  | configure.ac:89: error: possibly undefined macro: AS_IF

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agofile: upgrade to 5.21
Robert Yang [Mon, 22 Dec 2014 05:28:23 +0000 (21:28 -0800)]
file: upgrade to 5.21

* Upgrade to 5.21.
* The debian-742262.patch is still needed.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorunqemu-internal: Fix qemu networking for qemuarm64
Richard Purdie [Mon, 22 Dec 2014 10:13:26 +0000 (10:13 +0000)]
runqemu-internal: Fix qemu networking for qemuarm64

This brings qemuarm64 into feature parity with the other qemu machines
and enables the automated testing on the autobuilder.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto: Fixup linux-yocto for aarch64
Mark Hatle [Thu, 18 Dec 2014 08:51:15 +0000 (16:51 +0800)]
linux-yocto: Fixup linux-yocto for aarch64

linux-yocto is updated to pass the sysroot path to the compiler when necessary.

linux-yocto_ver.bb are updated to reference the correct linux-yocto branchs and
SRCREVs.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoaarch-arm64: Update tune files
Mark Hatle [Thu, 18 Dec 2014 08:51:14 +0000 (16:51 +0800)]
aarch-arm64: Update tune files

arch-arm64 is the base tune file for aarch64.  Update this to allow the
system to work with both aarch32 and aarch64 (multilib).

arch-armv8 is for compatibility, it simply uses the base config for now.

feature-arm-thumb was updated, since aarch64 mode does NOT have thumb support.
We should only be processing warnings and additional arguments if thumb
support is enabled on the processor core.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoglibc-package: aarch64 enable symlink for ABI compliance
Mark Hatle [Thu, 18 Dec 2014 08:51:13 +0000 (16:51 +0800)]
glibc-package: aarch64 enable symlink for ABI compliance

aarch64 requires the ld.so to be present in /lib, even if the rest
of the libraries are installed into an alternative directory.

See: https://sourceware.org/glibc/wiki/ABIList

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogcc: Disable aarch64 multilib options
Mark Hatle [Thu, 18 Dec 2014 08:51:12 +0000 (16:51 +0800)]
gcc: Disable aarch64 multilib options

We want to revert to default gcc behavior to support oe-core's ability
to change the libdir.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackagegroup-core-tools-profile: remove sysprof for aarch64
Kai Kang [Thu, 18 Dec 2014 08:51:11 +0000 (16:51 +0800)]
packagegroup-core-tools-profile: remove sysprof for aarch64

Remove sysprof from packagegroup-core-tools-profile that sysprof doesn't
support arch aarch64.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokexec-tools: add aarch64 support
Kai Kang [Thu, 18 Dec 2014 08:51:10 +0000 (16:51 +0800)]
kexec-tools: add aarch64 support

Add patch from
https://fedorapeople.org/~hrw/aarch64/for-fedora/kexec-aarch64.patch

to add aarch64 support for kexec-tools.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorunqemu: add qemuarm64 support.
Kai Kang [Thu, 18 Dec 2014 08:51:09 +0000 (16:51 +0800)]
runqemu: add qemuarm64 support.

Update scripts runqemu and runqemu-internal to support to boot
qemuarm64.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibunwind: add aarch64 support
Fathi Boudra [Thu, 18 Dec 2014 08:51:08 +0000 (16:51 +0800)]
libunwind: add aarch64 support

* pass --enable-debug-frame on aarch64 architecture
* include patches:
  - aarch64 port (backported from upstream)
  - Support-building-with-older-compilers (fix undefined reference to
    `unreachable' on older compilers)

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoguile: allow compilation for aarch64
Joe Slater [Thu, 18 Dec 2014 08:51:07 +0000 (16:51 +0800)]
guile: allow compilation for aarch64

Add aarch64 endianness specification to scm file.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolttng: recognize aarch64
Joe Slater [Thu, 18 Dec 2014 08:51:06 +0000 (16:51 +0800)]
lttng: recognize aarch64

Add aarch64 architecture to liburcu and lttng-ust.
Internally it is treated the same as "arm".

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosysprof: disable build for aarch64
Joe Slater [Thu, 18 Dec 2014 08:51:05 +0000 (16:51 +0800)]
sysprof: disable build for aarch64

Add COMPATIBLE_HOST to the recipe and prohibit
building for aarch64 and aarch64_be.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoqt4: add aarch64 support
Kai Kang [Fri, 12 Sep 2014 11:03:38 +0000 (19:03 +0800)]
qt4: add aarch64 support

Add aarch64 support for qt4 packages.

Most of the patches are derived from debian:
http://anonscm.debian.org/cgit/pkg-kde/qt/qt4-x11.git/tree/debian/patches

Add arch check to set right QT_ARCH.

Disable webkit temporarily for qt4 and qt4-embedded that they fail to build:

| runtime/JSValueInlineMethods.h: In constructor
'JSC::JSValue::JSValue(const JSC::JSCell*)':
| runtime/JSValueInlineMethods.h:242:78: error: cast from 'JSC::JSCell*'
to 'int32_t {aka int}' loses precision [-fpermissive]

It has been fix by Qt5, but didn't backport to Qt4. There is an still open
defect for it:
https://bugreports.qt-project.org/browse/QTBUG-35442

Signed-off-by: Kai Kang <kai.kang@windriver.com>
10 years agolibatomics-ops: add aarch64 target iniitial support
Kai Kang [Thu, 18 Dec 2014 08:51:02 +0000 (16:51 +0800)]
libatomics-ops: add aarch64 target iniitial support

Add patch for libatomics-ops to add aarch64 target iniitial
support. It is from linaro repo.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoglibc-locale.inc: add aarch64 to BINARY_LOCALE_ARCHES
Kai Kang [Thu, 18 Dec 2014 08:51:01 +0000 (16:51 +0800)]
glibc-locale.inc: add aarch64 to BINARY_LOCALE_ARCHES

Add aarch64 to var BINARY_LOCALE_ARCHES. In libc-packages.class, it is
used to work with other vars to check and add cross-localedef-native as
a dependecy correctly.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibc-package.bbclass: add aarch64 target to locale_arch_options
Kai Kang [Thu, 18 Dec 2014 08:51:00 +0000 (16:51 +0800)]
libc-package.bbclass: add aarch64 target to locale_arch_options

Add aarch64 target to locale_arch_options in libc-package.bbclass to
support Arm V8.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agositeinfo: account for 32 and 64 bit arm
Joe Slater [Thu, 18 Dec 2014 08:50:59 +0000 (16:50 +0800)]
siteinfo: account for 32 and 64 bit arm

Pull wordsize related items from arm-common and put in
arm-32.  Leave them as they were.  Copy arm-32 to arm-64
and comment out all variables.  Re-define to correct
values leaving items which do not appear to be used
undefined.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoAdd machine qemuarm64
Kai Kang [Thu, 18 Dec 2014 08:50:58 +0000 (16:50 +0800)]
Add machine qemuarm64

Add machine qemuarm64. The configure files are derived from linaro.

Update:
* rename genericarmv8 to qemuarm64 for coordination in oe-core
* include qemu.inc then remove common part of config
* disable using autoserial
* move arch-armv8.inc from machine/include/arm64 to machine/include/arm

[YOCTO #6487]

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto: depend on libgcc for aarch64
Kai Kang [Thu, 18 Dec 2014 08:50:57 +0000 (16:50 +0800)]
linux-yocto: depend on libgcc for aarch64

Make aarch aarch64 kernel depend on libgcc.

In arch/arm64/Makefile, it adds LIBGCC to libs-y:

LIBGCC          := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
libs-y          += $(LIBGCC)

In file Makefile in top directory, libs-y is assigned to to var
KBUILD_VMLINUX_MAIN. It uses script link-vmlinux.sh to link vmlinux.o,
and when execute function vmlinux_link() in link-vmlinux.sh,
KBUILD_VMLINUX_MAIN is passed to ${LD}.

If build without libgcc, the value of LIBGCC is just libgcc.a without
parent directory. linux-yocto fails to build:

|   LD      vmlinux.o
| aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory

Add libgcc to aarch64 kernel dependency.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopython-2.7-manifest.inc: add stdlib argparse module
Maciej Borzecki [Thu, 18 Dec 2014 14:51:22 +0000 (15:51 +0100)]
python-2.7-manifest.inc: add stdlib argparse module

Adding argparse module from Python's standard library. The module has replaced
previous python-argparse package that was build using source that are not part
of Python 2.7 release.

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopython-argparse: remove external argparse module
Maciej Borzecki [Thu, 18 Dec 2014 14:51:21 +0000 (15:51 +0100)]
python-argparse: remove external argparse module

Python argparse module is a part of a standard library since Python 2.7
release. Remove externally built module in favor of the stdlib one.

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoopkg-utils: Update SRCREV
Paul Barker [Thu, 18 Dec 2014 21:03:30 +0000 (21:03 +0000)]
opkg-utils: Update SRCREV

The new upstream commit incorporates the following fix to update-alternatives
from Chen Qi <Qi.Chen@windriver.com>:

    update-alternatives: avoid double slash problem

    The link path stored by update-alternatives should always be absolute and so we
    do not need to add an additional slash when joining to $OPKG_OFFLINE_ROOT.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobyacc: Upgrade to 20141128
Chong Lu [Fri, 19 Dec 2014 05:42:01 +0000 (13:42 +0800)]
byacc: Upgrade to 20141128

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocups: Upgrade to 2.0.1
Chong Lu [Fri, 19 Dec 2014 05:42:00 +0000 (13:42 +0800)]
cups: Upgrade to 2.0.1

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoless: Upgrade to 471
Chong Lu [Fri, 19 Dec 2014 05:41:59 +0000 (13:41 +0800)]
less: Upgrade to 471

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodevtool: add QA tests
Paul Eggleton [Fri, 19 Dec 2014 11:41:57 +0000 (11:41 +0000)]
devtool: add QA tests

Add some QA tests for devtool (and recipetool). These aren't
comprehensive but at least they are a start, and have already helped me
catch and fix a number of regressions.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoscripts/devtool: Support deploy/undeploy function
Junchun Guan [Fri, 19 Dec 2014 11:41:56 +0000 (11:41 +0000)]
scripts/devtool: Support deploy/undeploy function

Deploy recipe output files to live target machine using scp
Store the files list and target machine info in localhost if deployment
is done
Undeploy recipe output files in target machine using the previous
deployment info

[YOCTO #6654]

Signed-off-by: Junchun Guan <junchunx.guan@intel.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoscripts/devtool: add development helper tool
Paul Eggleton [Fri, 19 Dec 2014 11:41:55 +0000 (11:41 +0000)]
scripts/devtool: add development helper tool

Provides an easy means to work on developing applications and system
components with the build system.

For example to "modify" the source for an existing recipe:

  $ devtool modify -x pango /home/projects/pango
  Parsing recipes..done.
  NOTE: Fetching pango...
  NOTE: Unpacking...
  NOTE: Patching...
  NOTE: Source tree extracted to /home/projects/pango
  NOTE: Recipe pango now set up to build from /home/paul/projects/pango

The pango source is now extracted to /home/paul/projects/pango, managed
in git, with each patch as a commit, and a bbappend is created in the
workspace layer to use the source in /home/paul/projects/pango when
building.

Additionally, you can add a new piece of software:

  $ devtool add pv /home/projects/pv
  NOTE: Recipe /path/to/workspace/recipes/pv/pv.bb has been
  automatically created; further editing may be required to make it
  fully functional

The latter uses recipetool to create a skeleton recipe and again sets up
a bbappend to use the source in /home/projects/pv when building.

Having done a "devtool modify", can also write any changes to the
external git repository back as patches next to the recipe:

  $ devtool update-recipe mdadm
  Parsing recipes..done.
  NOTE: Removing patch mdadm-3.2.2_fix_for_x32.patch
  NOTE: Removing patch gcc-4.9.patch
  NOTE: Updating recipe mdadm_3.3.1.bb

[YOCTO #6561]
[YOCTO #6653]
[YOCTO #6656]

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoscripts: add scriptutils module
Paul Eggleton [Fri, 19 Dec 2014 11:41:54 +0000 (11:41 +0000)]
scripts: add scriptutils module

Add a utility module for scripts. This is intended to provide functions
only really useful before bitbake has been found (or only of particular
interest to scripts). At the moment this includes functions for setting
up a logger and for loading plugins.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoscripts/recipetool: Add a recipe auto-creation script
Paul Eggleton [Fri, 19 Dec 2014 11:41:53 +0000 (11:41 +0000)]
scripts/recipetool: Add a recipe auto-creation script

Add a more maintainable and flexible script for creating at least the
skeleton of a recipe based on an examination of the source tree.
Commands can be added and the creation process can be extended through
plugins.

[YOCTO #6406]

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/externalsrc: set do_compile as nostamp
Paul Eggleton [Fri, 19 Dec 2014 11:41:52 +0000 (11:41 +0000)]
classes/externalsrc: set do_compile as nostamp

Most of the time what you want when using this class is for do_compile
to execute more than just once - every time the source changes would be
ideal, but that's a little tricky to accomplish. Thus, set do_compile as
nostamp to get something close.  Note that in order to be effective this
also requires the change to bitbake that causes nostamp task signatures
to change on each execution.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/utils: make get_bb_var() more reliable
Paul Eggleton [Fri, 19 Dec 2014 11:41:51 +0000 (11:41 +0000)]
oeqa/utils: make get_bb_var() more reliable

* Enable querying exported variables
* Use strip() to remove quotes so any internal quotes are not disturbed

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel-devsrc: Ensure we have a dependency on the actual source
Richard Purdie [Sun, 21 Dec 2014 13:50:35 +0000 (13:50 +0000)]
kernel-devsrc: Ensure we have a dependency on the actual source

Tthe kernel populate_sysroot can come from sstate, we need the full
source here. We therefore depend on the configure task which isn't
covered by sstate to ensure we get the right set of files.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe: add recipeutils module
Paul Eggleton [Fri, 19 Dec 2014 11:41:50 +0000 (11:41 +0000)]
lib/oe: add recipeutils module

Add a module to help provide utility functions for dealing with recipes.
This would typically be used by external tools.

Substantial portions of this module were borrowed from the OE Layer
index code; other functions originally contributed by
Markus Lehtonen <markus.lehtonen@intel.com>.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/patch: add support for extracting patches from git tree
Paul Eggleton [Fri, 19 Dec 2014 11:41:49 +0000 (11:41 +0000)]
lib/oe/patch: add support for extracting patches from git tree

When patches from a recipe have been written out to a git tree, we also
want to be able to do the reverse so we can update the patches next to
the recipe. This is implemented by adding a comment to each commit
message (using git hooks) which we can extract later on.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/patch.py: abort "git am" if it fails
Paul Eggleton [Fri, 19 Dec 2014 11:41:48 +0000 (11:41 +0000)]
lib/oe/patch.py: abort "git am" if it fails

If we don't do this, you may still be in the git am resolution mode at
the end of applying patches, which is not desirable.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/patch: use --keep-cr with git am
Paul Eggleton [Fri, 19 Dec 2014 11:41:47 +0000 (11:41 +0000)]
lib/oe/patch: use --keep-cr with git am

Preserving carriage returns is important where the patch contains them.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/patch: auto-commit when falling back from git am
Paul Eggleton [Fri, 19 Dec 2014 11:41:46 +0000 (11:41 +0000)]
lib/oe/patch: auto-commit when falling back from git am

When PATCHTOOL = "git", if we're not able to use "git am" to apply a
patch and fall back to "git apply" or "patch", it is desirable to
actually commit the changes, attempting to preserve (and interpret) the
patch header as part of the commit message if present. As a bonus, the
code for extracting the commit message is callable externally in case it
is useful elsewhere.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/patch: fall back to patch if git apply fails
Paul Eggleton [Fri, 19 Dec 2014 11:41:45 +0000 (11:41 +0000)]
lib/oe/patch: fall back to patch if git apply fails

When PATCHTOOL = "git", git apply doesn't support fuzzy application, so
if a patch requires that it's better to be able to apply it rather than
just failing.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/package: move read_shlib_providers() to a common unit
Paul Eggleton [Fri, 19 Dec 2014 11:41:44 +0000 (11:41 +0000)]
classes/package: move read_shlib_providers() to a common unit

This allows us to use this function elsewhere in the code.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agometa-environment: don't mark tasks as nostamp
Paul Eggleton [Fri, 19 Dec 2014 11:41:43 +0000 (11:41 +0000)]
meta-environment: don't mark tasks as nostamp

With siggen being changed to alter the signature of nostamp tasks on the
fly, having these tasks as nostamp results in the SDK being rebuilt
every time, which is not desirable. In any case this is just legacy from
the days before we used signatures to take care of ensuring these tasks
get re-run when they need to be.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocore-image-sato-sdk: Use kernel-devsrc to ensure kernel module builds work
Richard Purdie [Sat, 20 Dec 2014 11:16:40 +0000 (11:16 +0000)]
core-image-sato-sdk: Use kernel-devsrc to ensure kernel module builds work

With the move of the kernel source to the kernel-devsrc, we need this package
to ensure the kernel module sanity tests made on core-image-sato-sdk continue
to pass. Therefore update the name of the package included in the image.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoboot-directdisk: Use kernel from DEPLOY_DIR_IMAGE, not sysroot
Richard Purdie [Sat, 20 Dec 2014 11:19:51 +0000 (11:19 +0000)]
boot-directdisk: Use kernel from DEPLOY_DIR_IMAGE, not sysroot

After the recent kernel changes, this avoids failures like:

DEBUG: Executing shell function build_boot_dd
install: cannot stat '/home/pokybuild/yocto-autobuilder/yocto-worker/build-appliance/build/build/tmp/sysroots/qemux86-64/usr/src/kernel/bzImage': No such file or directory
WARNING: exit code 1 from a shell command.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobootimg: Use deploy artefacts, not STAGING_KERNEL_DIR
Richard Purdie [Fri, 19 Dec 2014 17:46:59 +0000 (17:46 +0000)]
bootimg: Use deploy artefacts, not STAGING_KERNEL_DIR

bzImage is no longer in STAGING_KERNEL_DIR. Rather than add it back,
depend on the kernel deploy task and find it in DEPLOY_DIR_IMAGE.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel: Fix non linux-yocto builds
Richard Purdie [Fri, 19 Dec 2014 17:46:27 +0000 (17:46 +0000)]
kernel: Fix non linux-yocto builds

After the recent kernel changes, non linux-yocto builds stopped working
properly for two reasons:

a) ${S} was being reset to ${WORKDIR}/git for example and STAGING_KERNEL_DIR
   did not contain the source

b) Most builds were using ${B} == ${S}

This patch adds a fixup to the unpack function to handle the case where
${S} != ${STAGING_KERNEL_DIR} and also set up the infrastrcture so that
B != S for kernel builds from now on. The kernel build system is one of the
best for supporting this and there is no good reason not to take advantage
of it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel-devsrc: Ensure we don't race against do_make_scripts from module-base.bbclass
Richard Purdie [Sun, 21 Dec 2014 12:30:53 +0000 (12:30 +0000)]
kernel-devsrc: Ensure we don't race against do_make_scripts from module-base.bbclass

do_install for kernel-devsrc can race against do_make_scripts from
module-base.bbclass. Since there is a lock there to guard against concurrency
already, we can just use it here to avoid a race.

Ultimately, this can all likely be much more streamlined but this resolves
the immediate build failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel-devsrc: Handle ppc crtsaves.o explictly for now
Richard Purdie [Sun, 21 Dec 2014 12:29:03 +0000 (12:29 +0000)]
kernel-devsrc: Handle ppc crtsaves.o explictly for now

Resolve kernel module build failures for qemuppc by including crtsaves.o.

I'm not particularly happy to be doing this, it should perhaps be contained
in the kernel-dev package. Until the overlap between kernel-devsrc and
kernel-dev is resolved, this at least removed the regressions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel-devsrc: Inherit module-base
Richard Purdie [Fri, 19 Dec 2014 14:12:43 +0000 (14:12 +0000)]
kernel-devsrc: Inherit module-base

As a "normal" recipe, mulitlib would try and extend it for multilibs.
By inheriting module-base, we can avoid this since we now look more
'kernel' like.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>