]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
8 years agosysklogd: do more to properly work with systemd
Mark Asselstine [Tue, 3 Jan 2017 17:01:58 +0000 (12:01 -0500)] 
sysklogd: do more to properly work with systemd

It was noticed that syslogd and klogd were no longer running on system
startup, meaning no /var/log/messages etc.. It appears as though
sysklogd has never been updated to follow the expected logging
requirement for systemd as described here:
https://www.freedesktop.org/wiki/Software/systemd/syslog/

As such no service was started and no logging present. Using the above
guidelines we create two new service files syslogd.service and
klogd.service. We make use of tmpfiles.d in order to ensure the
xconsole device node exists and do other minor recipe cleanup to
ensure peaceful coexistence with sysvinit and systemd implementations.

The systemd documentation also asks that for a logger which is not
rsyslog that we also enable 'ForwardToSyslog=' in journald.conf, but
this is already the case so no action is required.

With this change in place syslogd and klogd are started at system
startup and the expected logs are available.

Unfortunately I was not able to find any work done on this upstream or
in other distros so this is my best effort at making this work.

(From OE-Core rev: 914e08cf627e54e5019eda2154663c30b9a68ded)

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonfs-utils: remove -f exports from nfsserver
Saul Wold [Fri, 23 Dec 2016 00:07:39 +0000 (16:07 -0800)] 
nfs-utils: remove -f exports from nfsserver

The upstream project remove that option as it was quote:
    It is completely ineffective.

[YOCTO #10843]

(From OE-Core rev: 52a12c6e5360f3f60b5610eb9ad6edaa076427c1)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopkg-utils: bump SRCREV to 0.3.4 tag
Alejandro del Castillo [Tue, 27 Dec 2016 20:50:01 +0000 (14:50 -0600)] 
opkg-utils: bump SRCREV to 0.3.4 tag

* Add patch that removes hardcoded installation directories.

(From OE-Core rev: 60c9a970426cf9a9985fb70b4d896dc29ba2befd)

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild-appliance-image: support for Toaster
Juro Bystricky [Fri, 30 Dec 2016 21:35:32 +0000 (13:35 -0800)] 
build-appliance-image: support for Toaster

Various changes needed to enable to run Toaster in the
Build Appliance:

1. Pre-install packages as specified by the file
   "bitbake/toaster-requirements.txt"
2. Include pip3 in the image
3. Include tzdata in the image (needed by django)
4. Bump SRCREV to a commit with proper settings.py (ALLOWED_HOSTS)
   for Django 1.8.16
5. Added README_VirtualBox_Toaster.txt to provide steps for
   configuring VirtualBox network adapters (NAT or Bridged)
   and steps to launch Toaster

[YOCTO#10767]

(From OE-Core rev: dffbac64bbf86c91247ba7373b3b5bd6af24103f)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage_types.bbclass: IMAGE_TYPEDEP_ now adds deps for conversion types
Randy Witt [Thu, 5 Jan 2017 23:15:44 +0000 (15:15 -0800)] 
image_types.bbclass: IMAGE_TYPEDEP_ now adds deps for conversion types

Previously if IMAGE_TYPEDEP_* contained a conversion type of the form,
"foo.bar", the dependency on CONVERSION_DEPENDS_bar would not get added
to the task depends for do_rootfs.

[YOCTO #10883]

(From OE-Core rev: 037d39898e0e16c6d5b24a8d3844abfb328d3c14)

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage_typedep.py: Add a test that ensures conversion type deps get added
Randy Witt [Thu, 5 Jan 2017 23:15:43 +0000 (15:15 -0800)] 
image_typedep.py: Add a test that ensures conversion type deps get added

Add a test that ensures if IMAGE_TYPEDEP_* contains a conversion type,
that the corresponding CONVERSION_DEPENDS_ for that type gets added to
the dependency tree for do_rootfs.

(From OE-Core rev: 9cf9c725f7d534c326ffd95ec539b041f4ad286f)

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopkg: upgrade to v0.3.4
Alejandro del Castillo [Tue, 27 Dec 2016 20:50:00 +0000 (14:50 -0600)] 
opkg: upgrade to v0.3.4

* Add localstatedir and sysconfdir class-native configure definitions to
  override OE default sysroot values.

(From OE-Core rev: 3428a3d1b4d250b82582d472907fb202efe25d40)

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocoreutils: upgrade to 8.26
Chen Qi [Mon, 26 Dec 2016 08:10:35 +0000 (16:10 +0800)] 
coreutils: upgrade to 8.26

Add 0001-local.mk-fix-cross-compiling-problem.patch to fix the following
cross compiling problem.

| Makefile:3418: *** Recursive variable 'INSTALL' references itself (eventually).  Stop.

(From OE-Core rev: 07fabf6aa622c4b9ed6f0dc97a6acf5df5a6f058)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogrep: upgrade to 2.27
Chen Qi [Mon, 26 Dec 2016 08:10:33 +0000 (16:10 +0800)] 
grep: upgrade to 2.27

(From OE-Core rev: 5cacc3cd986d5a6e7ed68171b3908fbae111330b)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosysstat: upgrade to 11.5.3
Chen Qi [Mon, 26 Dec 2016 08:10:31 +0000 (16:10 +0800)] 
sysstat: upgrade to 11.5.3

(From OE-Core rev: 21c8a422cd115e726ce8451b5ea998d7a830f113)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodbus/dbus-test: upgrade to 1.10.14
Chen Qi [Mon, 26 Dec 2016 08:10:30 +0000 (16:10 +0800)] 
dbus/dbus-test: upgrade to 1.10.14

(From OE-Core rev: a196662b49dac6386e21656dcd0b21f37d35dad3)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemd-bootchart: upgrade to 231
Chen Qi [Mon, 26 Dec 2016 08:10:29 +0000 (16:10 +0800)] 
systemd-bootchart: upgrade to 231

(From OE-Core rev: b4dccaf03ed4d01f6b41518f391948bbb6789f72)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomusl: Upgrade to 1.1.16+ on master
Khem Raj [Tue, 3 Jan 2017 01:55:28 +0000 (17:55 -0800)] 
musl: Upgrade to 1.1.16+ on master

summary of changes

http://git.musl-libc.org/cgit/musl/commit/?id=8fe1f2d79b275b7f7fb0d41c99e379357df63cd9

(From OE-Core rev: 6536c9d333587d1bb7941acfc58af3d36262abd8)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage_types.bbclass: look for wks files in <layer>/wic
Ed Bartosh [Thu, 22 Dec 2016 23:42:14 +0000 (01:42 +0200)] 
image_types.bbclass: look for wks files in <layer>/wic

Added <layer>/wic directory to the list of paths to look
for wks files. This makes wic behaviour consistent when
invoked manually and by bitbake.

(From OE-Core rev: d345985db69dc86e9a8f8e2506b250d8780374cb)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-firmware: remove alternatives for brcmfmac-stdio.bin
Ross Burton [Thu, 22 Dec 2016 17:07:43 +0000 (17:07 +0000)] 
linux-firmware: remove alternatives for brcmfmac-stdio.bin

These alternatives are only used to provide an unversioned brcmfmac-sdio.bin,
which was required by kernels prior to 3.13.  As these alternatives all have the
same priority there's no determinism in which one is selected, and current
kernels (since January 2014) use the appropriately versioned firmware names.

(From OE-Core rev: 7ac00f2efee4973703ef9725c81242bd6eae36c0)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogummiboot: Remove old gummiboot recipe, related class and wks file
Alejandro Hernandez [Wed, 23 Nov 2016 23:00:31 +0000 (17:00 -0600)] 
gummiboot: Remove old gummiboot recipe, related class and wks file

Since the gummiboot project is no longer being maintained
and we are using systemd-boot as a replacement instead,
we can now clean up all remaining gummiboot files.

[YOCTO #10332]

(From OE-Core rev: 65eb3f51b70baaf24de871301a7247d5baed00ed)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoyocto-project-qs, ref-manual: Added note for "resources temporarily unavailable"...
Scott Rifenbark [Fri, 6 Jan 2017 16:16:09 +0000 (08:16 -0800)] 
yocto-project-qs, ref-manual: Added note for "resources temporarily unavailable" error

Fixes [YOCTO #10818]

There is a weird and intermittant error that can occur on any given
distribution that has a 4.3+ Linux kernel and a version 228+ systemd.
The error happens during an initial build of an image and indicates
that resources are unavailable.  Investigation determines that
resources are available.  The combination of the kernel and the
systemd in a distro is causing issues when a distro is upgraded.

yocto-project-qs:
I added a note in the two areas where the user is stepped through
the bitbake process to build an image.  The note mentions the
possibility of the error, the host configuration situation, and a
couple work-arounds, which are to reboot the machine or to set the
"DefaultTaskMax" systemd parameter to "infinity".

ref-manual:
Added the same note in the "Building an Image" section.

(From yocto-docs rev: 3516803f9e6b5a29e4f95d31742c6e03ff63ef41)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodev-manual: Added section on bmap-tool to flash images
Scott Rifenbark [Tue, 3 Jan 2017 22:15:31 +0000 (14:15 -0800)] 
dev-manual: Added section on bmap-tool to flash images

Fixes [YOCTO #10621]

bmaptool is integrated into the OpenEmbedded build system but is
not documented.  I added a new section describing how to flash an
image to media using the tool.  Also, updated a small section in the
Wic part of the manual that used "dd" to flash an example.  I added
a bmaptool counterpart here and referenced the reader back to the
main new section.

(From yocto-docs rev: 98ebe9acccceea2b833c1372a3e664befd1b6aef)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodev-manual: Added section on bmap-tool to flash images
Scott Rifenbark [Tue, 3 Jan 2017 22:15:31 +0000 (14:15 -0800)] 
dev-manual: Added section on bmap-tool to flash images

Fixes [YOCTO #10621]

bmaptool is integrated into the OpenEmbedded build system but is
not documented.  I added a new section describing how to flash an
image to media using the tool.  Also, updated a small section in the
Wic part of the manual that used "dd" to flash an example.  I added
a bmaptool counterpart here and referenced the reader back to the
main new section.

(From yocto-docs rev: 83a9a3aa5f20c7f389306eea9213eabea997aba1)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodev-manual: Added cross-reference for tool-chain installation.
Scott Rifenbark [Mon, 2 Jan 2017 22:38:41 +0000 (14:38 -0800)] 
dev-manual: Added cross-reference for tool-chain installation.

(From yocto-docs rev: f57728c63cc83c44682fb5a109808a17e1f18485)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodev-manual: Updated "Building an Initial RAM Filesystem (initramfs) Image" section
Scott Rifenbark [Mon, 2 Jan 2017 21:29:31 +0000 (13:29 -0800)] 
dev-manual: Updated "Building an Initial RAM Filesystem (initramfs) Image" section

Fixes [YOCTO #7096]

Applied a couple review comments to the section to clarify where
to set key variables.  Also fixed an incorrect variable name used
to specify the *.cpio file.

(From yocto-docs rev: 24861b36804cbd636aafc36b1918bcfe33ca3811)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: New VOLATILE_LOG_DIR variable description
Scott Rifenbark [Fri, 30 Dec 2016 18:20:28 +0000 (10:20 -0800)] 
ref-manual: New VOLATILE_LOG_DIR variable description

Fixes [YOCTO #6132]

No mention of how to make the target directory /var/log
persistent.  I added a note to the "post-install-logging"
image feature that points to the new VOLATILE_LOG_DIR
variable description, which I added to the glossary.

(From yocto-docs rev: 5d2bdf49e569e44d02602501d72418f04dbe6e4a)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodev-manual: Fixed "recipetool create" example
Martin Vuille [Thu, 29 Dec 2016 18:54:43 +0000 (10:54 -0800)] 
dev-manual: Fixed "recipetool create" example

Fixes [YOCTO #10763]

The final example in the section describing how to create
the base recipe using receipetool create was wrong.  I updated
it to use the -d option in addition to the -o opetion.  I also
changed the description to match appropriately.

(From yocto-docs rev: 8cc6d5e21532eeaac0e6d9ace3e0b58803a9804e)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodev-manual, ref-manual: Created new section on initramfs
Scott Rifenbark [Thu, 29 Dec 2016 18:26:15 +0000 (10:26 -0800)] 
dev-manual, ref-manual: Created new section on initramfs

Fixes [YOCTO #7096]

We did not document how to create an initramfs image to be included
with a kernel build.  Various variables sort of inferred the
knowledge.  I created a new section in the "Common Tasks" section
of the dev-manual that describes how to create an initramfs image.

Also, I updated the kernel.bbclass reference section to point back
to the new "how-to" section.

Finally, I also created a bunch of cross-reference links from various
related variables back to the new "how-to" section.

(From yocto-docs rev: 289dfbd5d24241e42446a043104eecd6dca76f13)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual, dev-manual: Removed term "wic-partitioned"
Scott Rifenbark [Wed, 28 Dec 2016 18:25:00 +0000 (10:25 -0800)] 
ref-manual, dev-manual: Removed term "wic-partitioned"

This term was incorrect and I have replaced it with the
term "partitioned."

(From yocto-docs rev: 50dd5c6994a2f799fdaf1ccbf7138b0074e981ee)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodev-manual: Updated to the "Creating Partitioned Images" section
Scott Rifenbark [Tue, 13 Dec 2016 01:04:46 +0000 (17:04 -0800)] 
dev-manual: Updated to the "Creating Partitioned Images" section

new information on how wic works

(From yocto-docs rev: 7b6a54a593a678442541b1fa6847498a792183c7)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: Added WKS_FILE description for new variable
Scott Rifenbark [Tue, 13 Dec 2016 01:00:51 +0000 (17:00 -0800)] 
ref-manual: Added WKS_FILE description for new variable

This new variable points to the location of the wics kickstart
file.

(From yocto-docs rev: 80d18224140f95fdca0b4efad8f6a6e545ee4d56)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: event: Replace slightly elderly bbmake references!
Richard Purdie [Fri, 6 Jan 2017 16:43:43 +0000 (16:43 +0000)] 
bitbake: event: Replace slightly elderly bbmake references!

bbmake hasn't existed for a while (a decade+) so we should
probably remove the references.

(Bitbake rev: 4170cf874850b950f31d2e36c895c110c0b096c3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: prserv/persist_data/utils: Drop obsolete python2 imports
Richard Purdie [Fri, 6 Jan 2017 12:35:08 +0000 (12:35 +0000)] 
bitbake: prserv/persist_data/utils: Drop obsolete python2 imports

These imports were from python 2.6 and earlier, 2.4 in some cases.
Drop them since we're all python3 now.

(Bitbake rev: 7ef12684e8647b006bf46cae695069d4bfece1cf)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest/devtool: update test to work with new mtd-utils
Ross Burton [Fri, 6 Jan 2017 12:36:45 +0000 (12:36 +0000)] 
selftest/devtool: update test to work with new mtd-utils

The new mtd-utils (version 2.0) has been autotooled so the test needs to touch
Makefile.am instead of Makefile.

(From OE-Core rev: acce512a0b85853b5acf2ef07e4163a3b4f33a98)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agohdparm: 9.48 -> 9.50
Robert Yang [Tue, 20 Dec 2016 03:09:45 +0000 (03:09 +0000)] 
hdparm: 9.48 -> 9.50

Remove "-e MAKEFLAGS=" from EXTRA_OEMAKE to fix:
ERROR: hdparm-9.50-r0 do_package: QA Issue: File '/sbin/hdparm.hdparm' from hdparm was already stripped, this will prevent future debugging! [already-stripped]
ERROR: hdparm-9.50-r0 do_package: Fatal QA errors found, failing task.

The "-e MAKEFLAGS=" would cause submake can't get vars from environment,
The git log said that it was added for fixing a QA warning, but
everything is OK after remove it now.

(From OE-Core rev: 6305c1361c0d1140e37513402532600528a63744)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoattr/ea-acl: pass --disable-gettext when USE_NLS=no
Denys Dmytriyenko [Fri, 23 Dec 2016 19:34:31 +0000 (14:34 -0500)] 
attr/ea-acl: pass --disable-gettext when USE_NLS=no

Fixes following error in configure:
  FATAL ERROR: msgfmt does not seem to be installed.
  attr cannot be built without a working gettext installation.

(From OE-Core rev: d044fad8a0ac5d57deb88b25106f3a39cb7c1636)

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowebkitgtk: add missing python-native dep
Christopher Larson [Thu, 5 Jan 2017 19:41:59 +0000 (12:41 -0700)] 
webkitgtk: add missing python-native dep

Since we can't inherit pythonnative, we need this dep explicitly.

(From OE-Core rev: 63530f59e43738bac081aaf3c89ec57006038dce)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowebkitgtk: patch & disable JIT for x32
Christopher Larson [Fri, 16 Dec 2016 18:02:08 +0000 (11:02 -0700)] 
webkitgtk: patch & disable JIT for x32

It might not be speedy, but it does build now.

(From OE-Core rev: 79f7e215ee7c176f02efafe7359aaa77dbd9430c)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agognome-desktop3: fix for x32
Christopher Larson [Wed, 14 Dec 2016 03:52:33 +0000 (20:52 -0700)] 
gnome-desktop3: fix for x32

Explicitly use strftime+strptime rather than snprintf+atol. This fixes the
build for X32, where long's size doesn't match that of time_t.

(From OE-Core rev: 72fa7d558a43ed053547ddc74972631504e40614)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibunwind: apply a patch to fix x32
Christopher Larson [Wed, 14 Dec 2016 03:09:04 +0000 (20:09 -0700)] 
libunwind: apply a patch to fix x32

Apply patch to fix the X32 build from https://github.com/sjnewbury/x32

(From OE-Core rev: cdd6130255d8fc78b0a43fad410cde024cb1b9a5)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonss: fix for x32
Christopher Larson [Wed, 14 Dec 2016 03:08:03 +0000 (20:08 -0700)] 
nss: fix for x32

This was casting to a pointer, and the pointer sizes are 32-bit on X32, not
64-bit. Adjust as appropriate.

(From OE-Core rev: d9dca61ed26af166df913f34bdce3f2830682b33)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agox264: for x32, disable asm and pass -mx32
Christopher Larson [Wed, 14 Dec 2016 03:06:51 +0000 (20:06 -0700)] 
x264: for x32, disable asm and pass -mx32

We should probably patch it to stop adding the -m argument to CFLAGS/LDFLAGS
in the first place, since we pass it in via CC, but this will do for now.

(From OE-Core rev: 5d2b0816a92965cdbbb2dca5d3009fbd5064b9ca)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoffmpeg: disable asm for x32
Christopher Larson [Wed, 14 Dec 2016 03:04:34 +0000 (20:04 -0700)] 
ffmpeg: disable asm for x32

This is the usual way this is handled in desktop distros (see debian, gentoo).
I wasn't able to track down a patch to add proper x32 support to ffmpeg. There
was, however, a libav patch series which may be worth investigating.

(From OE-Core rev: 94bfdb0accab0a2638e3bea1271cb80596f38e00)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogstreamer1.0-libav: disable asm for x32
Christopher Larson [Wed, 14 Dec 2016 03:04:00 +0000 (20:04 -0700)] 
gstreamer1.0-libav: disable asm for x32

The included libav lacks support for x32, so disable the assembly
optimizations.

(From OE-Core rev: 7bac614503d0d9fda03b087501690e5f8262d966)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoboost: drop flags bits, fix for x32
Christopher Larson [Wed, 14 Dec 2016 03:09:58 +0000 (20:09 -0700)] 
boost: drop flags bits, fix for x32

boost was adding -march/-mcpu itself, and adding -m32/-m64 itself as well.
Patch that behavior out, apply another similar patch from elsewhere, and
adjust BJAM_OPTS to fix the x32 build.

(From OE-Core rev: 2dc30ad281b625e0c4f2437879bce58245aa45b1)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoltp: fix build for x32
Christopher Larson [Wed, 14 Dec 2016 03:02:57 +0000 (20:02 -0700)] 
ltp: fix build for x32

We need to use the correct time() definition with time_t rather than a long,
since long is 32-bit on x32.

(From OE-Core rev: 520cee660efa60e44dbf004a617c130597be6cae)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agognu-efi: ignore arch mismatch for x32
Christopher Larson [Wed, 14 Dec 2016 03:00:57 +0000 (20:00 -0700)] 
gnu-efi: ignore arch mismatch for x32

(From OE-Core rev: 97976de2a5465cb476379ebc9d9e1b3f0837853a)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agognu-efi: build 64-bit for x32
Christopher Larson [Wed, 14 Dec 2016 03:00:35 +0000 (20:00 -0700)] 
gnu-efi: build 64-bit for x32

We're targeting the x86_64 EFI ABI.

(From OE-Core rev: 24325410acb670a3e7bc626ac3607efa8df38dc5)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolttng-tools: fix for x32
Christopher Larson [Thu, 1 Dec 2016 02:42:55 +0000 (19:42 -0700)] 
lttng-tools: fix for x32

(From OE-Core rev: af0203f1543e444d4c9397c6b400ba627baf9574)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogrub-efi: ignore arch mismatch for x32
Christopher Larson [Thu, 1 Dec 2016 02:40:01 +0000 (19:40 -0700)] 
grub-efi: ignore arch mismatch for x32

Ordinary 64-bit binaries are expected for the bootloader.

(From OE-Core rev: 688a79b720044dd9fca3e95ff3d172252fba1e7a)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackagegroup-core-tools-profile: exclude valgrind for x32
Christopher Larson [Thu, 1 Dec 2016 02:40:56 +0000 (19:40 -0700)] 
packagegroup-core-tools-profile: exclude valgrind for x32

valgrind doesn't seem to support x32 at this time, even in current upstream.

(From OE-Core rev: 0203ae47dacc1a4b37007062f962fa8d4bd602e2)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agovalgrind: skip for linux-gnux32
Christopher Larson [Wed, 14 Dec 2016 03:12:59 +0000 (20:12 -0700)] 
valgrind: skip for linux-gnux32

valgrind doesn't support x32 at this time, so skip it for that host.

(From OE-Core rev: b0764fc58e2ebe0555b71392a6fd177ecfd0be66)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agozlib: update SRC_URI to fix fetching
Joshua Lock [Thu, 5 Jan 2017 16:34:23 +0000 (16:34 +0000)] 
zlib: update SRC_URI to fix fetching

Upstream have removed the file from zlib.net as a new version has
been released, switch to fetching from the official sourceforge
mirror.

[YOCTO #10879]

(From OE-Core rev: bb99e4a620efd59556539c156cd98ea23aae74c8)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomtd-utils: Upgrade to 2.0.0
Mike Crowe [Wed, 4 Jan 2017 19:28:46 +0000 (19:28 +0000)] 
mtd-utils: Upgrade to 2.0.0

Upstream has started using automake which means that the recipe must now
inherit from autotools and pkgconfig.

The source tree has been reorganised too which requires the paths in the
patches to be modified. None of the patches appear to have been applied
upstream.

(From OE-Core rev: dacf6ab5aaf8cc588280b92d64db2e28c6c07a22)

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonettle: Modify configure script to get consistent build.
Haiqing Bai [Thu, 5 Jan 2017 03:32:54 +0000 (11:32 +0800)] 
nettle: Modify configure script to get consistent build.

The original configure script detects the header files
of openssl to set variable like 'HAVE_OPENSSL_AES_H' in
config.h and ignore the value of '--enable-openssl', this
may cause inconsistent build.

(From OE-Core rev: 17e34c083aa53914610d8eca2341e82d0e1208e2)

Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonss: Fix postinstall script
David Vincent [Wed, 4 Jan 2017 16:43:02 +0000 (17:43 +0100)] 
nss: Fix postinstall script

When installing NSS on a read-only rootfs, the current postinstall
scriptlet exits after having run the signing part. This causes an error
when appending the task because the rest of the script is simply ignored
and therefore never run.

(From OE-Core rev: 8f782f7095e718dd9452055af53363beb6bdbece)

Signed-off-by: David Vincent <freesilicon@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocurl: upgrade to 7.52.1
Oleksandr Kravchuk [Wed, 4 Jan 2017 08:19:27 +0000 (09:19 +0100)] 
curl: upgrade to 7.52.1

(From OE-Core rev: d4218bb468ab9485a0a0cb12b07cb1d96dc6326b)

Signed-off-by: Oleksandr Kravchuk <oleksandr.kravchuk@pelagicore.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoppp: Add patch to fix build with musl and 4.9 headers
Jussi Kukkonen [Wed, 28 Dec 2016 14:45:45 +0000 (16:45 +0200)] 
ppp: Add patch to fix build with musl and 4.9 headers

Removing unused includes fixes the build.

Fixes [YOCTO #10853].

(From OE-Core rev: c580d2938286d62d092496e699f12b03fa065546)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoppp: Partly remove patch that doesn't make sense any more
Jussi Kukkonen [Wed, 28 Dec 2016 14:45:44 +0000 (16:45 +0200)] 
ppp: Partly remove patch that doesn't make sense any more

ppp no longer provides the duplicate if_pppox.h header so no need to patch that
out of the Makefile.

(From OE-Core rev: 015574ac9335799e0a3da00cf882b103177c3744)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogcc6: Upgrade to 6.3.0
Khem Raj [Wed, 21 Dec 2016 20:08:31 +0000 (12:08 -0800)] 
gcc6: Upgrade to 6.3.0

6.3.0 is a bugfix release in gcc 6 series

(From OE-Core rev: 36ffcd1d7d2ab9dcc91e9c09623a6613a248bc69)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocairo: set license for cairo-doc
Ross Burton [Tue, 6 Dec 2016 17:05:08 +0000 (17:05 +0000)] 
cairo: set license for cairo-doc

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopkg-utils: Do not use --ignore-fail-on-non-empty with rmdir
Khem Raj [Wed, 21 Dec 2016 17:34:12 +0000 (09:34 -0800)] 
opkg-utils: Do not use --ignore-fail-on-non-empty with rmdir

--ignore-fail-on-non-empty is coreutils specific, and you
are not always going to have coreutils on target systems
especially small ones. They will use the busybox applet which
does not support --ignore-fail-on-non-empty, use pipe and true
to ignore the errorcode from rmdir instead

Fixes upgrade errors on target e.g.

rmdir: unrecognized option '--ignore-fail-on-non-empty'
BusyBox v1.24.1 (2016-12-20 10:41:39 PST) multi-call binary.

Usage: rmdir [OPTIONS] DIRECTORY...
To remove package debris, try `opkg remove update-alternatives-opkg`.
To re-attempt the install, try `opkg install update-alternatives-opkg`.
Collected errors:
 * pkg_run_script: package "update-alternatives-opkg" postrm script returned status 1.
 * postrm_upgrade_old_pkg: postrm script for package "update-alternatives-opkg" failed

(From OE-Core rev: 5ec8934a495e9b9a782889bc3a84936c8a381165)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-dtb: strip DTB extension properly in postinst/postrm
Denys Dmytriyenko [Wed, 21 Dec 2016 20:20:17 +0000 (15:20 -0500)] 
linux-dtb: strip DTB extension properly in postinst/postrm

The use of awk -F "." in do_install/do_deploy to strip filename extension
was deprecated long time ago in 72980d5bb465f0640ed451d1ebb9c5d2a210ad0c.

Make a similar change in postinst/postrm to properly use basename command.

Otherwise DTB files that contain dots in the name result in broken symlinks
that point to non-existent truncated files.

(From OE-Core rev: 40c2addf0f0ee16b1c1334cf00f1490ffeaac475)

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe-selftest: devtool: Reverting a change should trigger rebuild
Ola x Nilsson [Thu, 22 Dec 2016 13:16:33 +0000 (14:16 +0100)] 
oe-selftest: devtool: Reverting a change should trigger rebuild

Add code to verify that not only does a change trigger a build, but so
does reverting that change.

Reverting a change in a devtool managed git repo may cause the current
checksum to match the checksum of a previous build, which will cause
bitbake to skip builds that are needed.

(From OE-Core rev: 58a31d8dd7293f14c70e56ec9639c420d15e7dfc)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/oe.sstatesig: make locked sig file consistent
Jianxun Zhang [Wed, 21 Dec 2016 22:31:46 +0000 (14:31 -0800)] 
lib/oe.sstatesig: make locked sig file consistent

Sort keys of dict 'types' prior to dumping, in order to have
identical output every time. This could make it a little easier
to diff these human-readable dumps.

(From OE-Core rev: 8abbaba1931e2cb2b87aa733aa9a3e8eb359b500)

Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agometa: use require instead of include when file should exist
Paul Eggleton [Thu, 22 Dec 2016 03:13:56 +0000 (16:13 +1300)] 
meta: use require instead of include when file should exist

If the file is expected to exist, then we should always be using require
so that if it doesn't we get an error rather than some other more
obscure failure later on.

(From OE-Core rev: 603ae6eb487489e65da69c68e532cb767ccc1fc2)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agouseradd-example: exclude from world
Kai Kang [Thu, 22 Dec 2016 09:55:16 +0000 (17:55 +0800)] 
useradd-example: exclude from world

(From OE-Core rev: 1e03ad25d8b9536d5e7f9969809a4df01e55fe3a)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe-selftest: fix behaviour if oe-selftest.log is a dangling symlink
Paul Eggleton [Thu, 22 Dec 2016 03:13:57 +0000 (16:13 +1300)] 
oe-selftest: fix behaviour if oe-selftest.log is a dangling symlink

If you delete the log file that the oe-selftest.log symlink points to
but not the symlink itself, because we were using os.path.exists() here
the code assumed that the symlink didn't exist when in fact it still
did. Use os.path.lexists() instead.

(From OE-Core rev: 263af91a0efd21e041ecdb0c40f9b2d4e735f67d)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: Remove gummiboot test
Alejandro Hernandez [Thu, 22 Dec 2016 19:11:54 +0000 (13:11 -0600)] 
wic: Remove gummiboot test

Weve now migrated to systemd-boot, the gummiboot test on wic is no longer necessary

(From OE-Core rev: 0a8abc7681edec5f128ceb757559c5a50f139a9c)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogummiboot: Remove/change gummiboot references with systemd-boot
Alejandro Hernandez [Wed, 23 Nov 2016 22:53:30 +0000 (16:53 -0600)] 
gummiboot: Remove/change gummiboot references with systemd-boot

After systemd-boot was introduced, its been tested for a while with no major
issues being found until now, this patch completely replaces all gummiboot
instances with systemd-boot ones, taking the next step into cleaning
up systemd-boot/gummiboot.

[YOCTO #10332]

(From OE-Core rev: f9a61d3400ad9068a6d83b8eb6aefe3098c58e68)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopkg-utils: warn if update-alternatives finds priority conflict
Chen Qi [Wed, 21 Dec 2016 04:32:47 +0000 (12:32 +0800)] 
opkg-utils: warn if update-alternatives finds priority conflict

If multiple providers for a utility have the same alternatives priority,
which one would be chosen is determined by which one is installed later.
Our alternatives system should be able to detect such problem and warn users
so that potential problems could be avoided.

Modify update-alternatives to warn users when detecting multiple providers
with the same priority.

[YOCTO #8314]

(From OE-Core rev: 06cf956e3441868d69f81d6c034778d855ce1c98)

(From OE-Core rev: 0b413d502868c89b7ddbe50a978317ffa774b3cc)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotoaster: prevent use of unset variable BUILDSTATS_BASE
Jochen Jaegers [Wed, 4 Jan 2017 18:00:24 +0000 (19:00 +0100)] 
toaster: prevent use of unset variable BUILDSTATS_BASE

(From OE-Core rev: aca5555881edf4751540203591aadbaf3d17bf41)

Signed-off-by: Jochen Jaegers <jochen.jaegers@riedel-at.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses: Fix alternatives and rc.d ordering
David Vincent [Tue, 20 Dec 2016 09:47:45 +0000 (10:47 +0100)] 
classes: Fix alternatives and rc.d ordering

When using an alternative as an initscript, the ordering between
update-rc.d and update-alternatives tasks during prerm and postinst
tasks must always be the following in order to work:
  * prerm:
    - stop daemon
    - remove alternative

  * postinst:
    - add alternative
    - start daemon

This patchset adds comments to the scripts generated by both classes and
organize the generated sections based on those comments.

[YOCTO #10433]

Changes since v5:
    - Remove boolean in d.getVar() calls

(From OE-Core rev: aa87b1a4dcc14e4dfe719b6c55045c5662bc59c2)

Signed-off-by: David Vincent <freesilicon@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoexternalsrc: Add optional srcdir arg to srctree_hash_files
Ola x Nilsson [Thu, 22 Dec 2016 13:59:49 +0000 (14:59 +0100)] 
externalsrc: Add optional srcdir arg to srctree_hash_files

Make it easier to reuse the function for other dirs than EXTERNALSRC.

(From OE-Core rev: 9ddcfb51e637acba82089da6430ac77e29f0f1ef)

Signed-off-by: Ola x Nilsson <ola.x.nilsson@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoexternalsrc: Set STAMPCLEAN to match STAMP
Ola x Nilsson [Thu, 22 Dec 2016 13:16:34 +0000 (14:16 +0100)] 
externalsrc: Set STAMPCLEAN to match STAMP

Only the last stamp file should be kept, but unless STAMPCLEAN matches
files generated using STAMP old stamp files may linger.  This may
cause false positives for skipping tasks.

(From OE-Core rev: 6d60f60e38e0e00e6753f5b136277f27d6204e63)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/buildstats: don't expand variable pointing to SystemStats
Paul Eggleton [Thu, 22 Dec 2016 03:13:58 +0000 (16:13 +1300)] 
classes/buildstats: don't expand variable pointing to SystemStats

We're placing an object into the datastore - it's very definitely not
something we want to be expanding.

(From OE-Core rev: adfee41d2b1edbd2abd09f9101c359919e21e5d6)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/sstate: fix file conflict message
Paul Eggleton [Thu, 22 Dec 2016 02:19:59 +0000 (15:19 +1300)] 
classes/sstate: fix file conflict message

* Fix not decoding output from grep ("Matched in b'manifest...')
* Fix showing "Matched in b''" if no match (show "not matched to any
  task" instead)
* Drop the filtering out of .populate-sysroot from matched manifest
  names - it should have been .populate_sysroot so it doesn't work, and
  in any case the value of removing the task name is questionable given
  that we aren't removing it for any other task, and that the rest of
  the filename isn't only the task name, we might as well have the whole
  thing. At least then you can do a find on that exact name without
  wildcards and find it.
* Fix indenting of file list entries and indent "matched in" further
  underneath
* Minor punctuation fixes

(From OE-Core rev: 4675ce43496898fccbac738835d7e92b1cca648e)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/sstate: handle filenames containing square brackets
Paul Eggleton [Thu, 22 Dec 2016 02:19:58 +0000 (15:19 +1300)] 
classes/sstate: handle filenames containing square brackets

If a recipe installs a file or directory whose name contains square
brackets [ ] that form a valid glob expression and that file then they
won't be correctly removed from the sysroot, because we pass each path
in the sstate manifest to our oe.path.remove() function which calls
glob.glob() on the path passed into it and the expression won't
actually match the original filename. Since we don't expect to put any
wildcarded expressions in the sstate manifests, and we already have a
try...except around this, we can actually use os.remove() here instead.

Similarly, when we pass existing file paths to "grep" looking through
the manifests, we don't want those paths to be treated as regexes - so
use grep's -F command line switch.

Fixes [YOCTO #10836].

(From OE-Core rev: fd8a57861024fc82e15a2a4ec8c20ed0ebb242f6)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/package_rpm: handle square brackets in filenames
Paul Eggleton [Thu, 22 Dec 2016 02:19:56 +0000 (15:19 +1300)] 
classes/package_rpm: handle square brackets in filenames

When constructing a spec file we list files and directory paths in the
%files section. If ] or [ characters are in a file or directory name,
rpm treats them as wildcards which will mean it won't properly match the
filename. Instead, transform these into an ? wildcard so they don't
cause a problem.

(This fixes packaging the npm package "file-set" and anything that
happens to depend upon it, since it includes tests with files that
contain unusual characters including ] and [).

(From OE-Core rev: f95adb749619e70920c6cc6cd01c6d02cd348fd8)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/oe/path: add warning comment about oe.path.remove() with wildcarded filenames
Paul Eggleton [Thu, 22 Dec 2016 02:19:57 +0000 (15:19 +1300)] 
lib/oe/path: add warning comment about oe.path.remove() with wildcarded filenames

Add a warning in the doc comment for oe.path.remove() about using that
function on paths that may contain wildcards in the actual
file/directory names.

(From OE-Core rev: 18cc0965741102bccc62dfb32ed7753cdacbadc7)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agometa/scripts: Various getVar/getVarFlag expansion parameter fixes
Richard Purdie [Thu, 5 Jan 2017 21:15:08 +0000 (21:15 +0000)] 
meta/scripts: Various getVar/getVarFlag expansion parameter fixes

There were a few straggling expansion parameter removals left for
getVar/getVarFlag where the odd whitespace meant they were missed
on previous passes. There were also some plain broken ussages such
as:

d.getVar('ALTERNATIVE_TARGET', old_name, True)
path = d.getVar('PATH', d, True)
d.getVar('IMAGE_ROOTFS', 'True')

which I've corrected (they happend to work by luck).

(From OE-Core rev: 688f7a64917a5ce5cbe12f8e5da4d47e265d240f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: bb/cooker: BBCooker stops notifier at shutdown
Aníbal Limón [Thu, 5 Jan 2017 23:44:46 +0000 (17:44 -0600)] 
bitbake: bb/cooker: BBCooker stops notifier at shutdown

At end of  BBCooker needs to release fd's associated with pyinotify
watchers to  avoid: Too many open files (EMFILE) error in different
scenarios like several instances of tinfoil.

[YOCTO #10873]

(Bitbake rev: ae6045b84978940c365c95c33d6996359c3e299d)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: prserv/serv: Tweak stdout manipulation to be stream safe
Richard Purdie [Wed, 4 Jan 2017 23:23:52 +0000 (23:23 +0000)] 
bitbake: prserv/serv: Tweak stdout manipulation to be stream safe

We've been seeing oe-selftest failures under puzzling circumstances. It
turns out if you run oe-selftest on a machine with xmlrunner installed
and have the recent tinfoil2 changes, the launching of PR server crashes
leading to selftest hanging if using an autoloaded PR server.

The reason is that xmlrunner uses an io.StringIO object as stdout/stderr
instead of the usual io.TextIOWrapper and StringIO lacks a fileno() method.

We have to deal with both cases and in the python way, we try and then seek
forgivness if we see an AttributeError or UnSupportedOperation exception.
Unfortunately we have to deal with both cases as we may be performing a
traditiional double fork() from the commandline, or a larger python program.

[YOCTO #10866]

(Bitbake rev: 26243f04e3af652291d13e85c084057104fe155b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackagegroup-core-lsb: add opengl to REQUIRED_DISTRO_FEATURES
Christopher Larson [Wed, 4 Jan 2017 22:57:55 +0000 (15:57 -0700)] 
packagegroup-core-lsb: add opengl to REQUIRED_DISTRO_FEATURES

This group pulls in libglu, which needs virtual/libgl, whose providers require
opengl in DISTRO_FEATURES.

(From OE-Core rev: af330fc0087692039d4256a6fb1e122742e8ec1a)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackagegroup-self-hosted: add opengl to REQUIRED_DISTRO_FEATURES
Christopher Larson [Wed, 4 Jan 2017 22:57:54 +0000 (15:57 -0700)] 
packagegroup-self-hosted: add opengl to REQUIRED_DISTRO_FEATURES

This rdepends on libgl.

(From OE-Core rev: a7cab6a9d416b5a53de206c9c2cf020c1fc70201)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoeglinfo-x11: add opengl to REQUIRED_DISTRO_FEATURES
Christopher Larson [Wed, 4 Jan 2017 22:57:53 +0000 (15:57 -0700)] 
eglinfo-x11: add opengl to REQUIRED_DISTRO_FEATURES

The .inc already included this, but the x11 version was overriding it. This is
a problem, as the x11 version still needs opengl as well as x11. Append
instead.

(From OE-Core rev: e2006b11d36e3ead725ae6e5613b6b0087f28029)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibglu: add opengl to REQUIRED_DISTRO_FEATURES
Christopher Larson [Wed, 4 Jan 2017 22:57:52 +0000 (15:57 -0700)] 
libglu: add opengl to REQUIRED_DISTRO_FEATURES

This requires libgl, and mesa requires the opengl distro feature.

(From OE-Core rev: 2f4c6b833d3d57c394bce5f7ebba688a0ce8e66e)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopiglit: add opengl to REQUIRED_DISTRO_FEATURES
Christopher Larson [Wed, 4 Jan 2017 22:57:51 +0000 (15:57 -0700)] 
piglit: add opengl to REQUIRED_DISTRO_FEATURES

This recipe depend on virtual/libgl, whose providers require the opengl distro
feature.

(From OE-Core rev: 009c088f6d0bf75ebb17825f6a3aba356a5b659d)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowaffle: add opengl to REQUIRED_DISTRO_FEATURES
Christopher Larson [Wed, 4 Jan 2017 22:57:50 +0000 (15:57 -0700)] 
waffle: add opengl to REQUIRED_DISTRO_FEATURES

Multiple packageconfigs depend upon virtual/libgl, whose providers require the
opengl distro feature.

(From OE-Core rev: 930c5a17b543bef9d5c2efe71680f82993d77269)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_sdk_ext: whitelist do_package tasks
Ed Bartosh [Wed, 4 Jan 2017 18:48:18 +0000 (20:48 +0200)] 
populate_sdk_ext: whitelist do_package tasks

With enabled SSTATE_MIRRORS sstate code expects mirrors to
contain entries for all tasks, which is not the case for ext
installer as it uses reduced sstate cache.

Added do_package tasks to BB_SETSCENE_ENFORCE_WHITELIST to prevent
installer failing with ERROR: Sstate artifact unavailable

[YOCTO #10832]

(From OE-Core rev: 2ed46ada4b8e496493835e84b36f7e9c367f59d2)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_sdk_ext: fix working with uninative sstate
Ed Bartosh [Wed, 4 Jan 2017 18:48:17 +0000 (20:48 +0200)] 
populate_sdk_ext: fix working with uninative sstate

Mapped uninative sstate directories to make ext SDK installer to
use them when it's run on systems with gcc version different from
gcc version used to build installer.

[YOCTO #10832]

(From OE-Core rev: 549df5f82c9b2d4feb6f459cb3b2f240efb9a981)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe-selftest: Improve BUILDDIR environment handling
Richard Purdie [Wed, 4 Jan 2017 23:34:30 +0000 (23:34 +0000)] 
oe-selftest: Improve BUILDDIR environment handling

Its possible something (like bitbake/tinfoil2) may mess around with the
environment and using the enviroment as a global variable store isn't
particularly nice anyway.

This patch changes the BUILDDIR usages so that the environment isn't used
as a global store and a global variable is used instead. Whilst that
is still not perfect, it does avoid the current double and triple backtraces
we're seeing where tinfoil2/bitbake has trampled the enviroment leading
to failures of failures making debugging even harder.

(From OE-Core rev: 689b676bbf2f1a5fadb04aeb41d5e68e35356545)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: let command line parameters override defaults
Patrick Ohly [Wed, 21 Dec 2016 13:11:28 +0000 (14:11 +0100)] 
runqemu: let command line parameters override defaults

It may be necessary to override the parameters gathered for the qemu
invocation. For example, the qemux86 machine configuration sets "-vga
vmware", but when using OVMF as BIOS, only "-vga std" is supported.

By putting the parameters derived from custom runqemu parameters like
"qemuparams" after the parameters derived from the machine
configuration the user gets the possibility to override those.

(From OE-Core rev: b6feb7578d60289c8b6e376cfaac8a3ee45e72f9)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomodule.bbclass: allow to override location of Module.symvers
André Draszik [Mon, 21 Nov 2016 09:37:13 +0000 (09:37 +0000)] 
module.bbclass: allow to override location of Module.symvers

Requiring all build systems for external kernel modules to
place Module.symvers directly into ${B}/. is quite an
artificial assumption/requirement. It doesn't have to end
up there, but could easily end up somewhere below ${B}.

Allow to override the location below ${B}

Note that we still don't make use of multiple
Module.symvers in case there are any generated by one
single kernel module build, but this is no change in
behaviour from before and could be added if there really
is a demand for that.

Reported-by: Denys Dmytriyenko <denis@denix.org>
(From OE-Core rev: caa0fa2ddf0c97255b38b1ec8579944ab4821ff1)

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoifupdown: upgrade to 0.8.16
Maxin B. John [Wed, 21 Dec 2016 15:20:28 +0000 (17:20 +0200)] 
ifupdown: upgrade to 0.8.16

Refreshed the following patch:
 * inet-6-.defn-fix-inverted-checks-for-loopback.patch

(From OE-Core rev: 1daa09aa82c528dcc7682553dd6704a93aafdc88)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosqlite3: upgrade to 3.15.2
Maxin B. John [Wed, 21 Dec 2016 15:20:27 +0000 (17:20 +0200)] 
sqlite3: upgrade to 3.15.2

(From OE-Core rev: 12b5e9943da5eece2641665cd091ef709c30214e)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofile: 5.28 -> 5.29
Huang Qiyu [Wed, 21 Dec 2016 10:37:22 +0000 (02:37 -0800)] 
file: 5.28 -> 5.29

Upgrade file from 5.28 to 5.29.

(From OE-Core rev: 056b31649141f8160ce05d72b9e53e39ac97c718)

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokexec-tools: Update to 2.0.14
He Zhe [Wed, 21 Dec 2016 09:56:23 +0000 (17:56 +0800)] 
kexec-tools: Update to 2.0.14

Remove kexec-aarch64.patch since it has been merged upstream
Remove kexec-x32.patch since it has been reverted upstream
Backport patches for kdump arm64 from:
https://git.linaro.org/people/takahiro.akashi/kexec-tools.git

(From OE-Core rev: 587778e24c9129f499645ca080218c7ac142f93f)

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogstreamer: Upgrade to 1.10.2
Khem Raj [Wed, 21 Dec 2016 07:02:38 +0000 (23:02 -0800)] 
gstreamer: Upgrade to 1.10.2

(From OE-Core rev: fcba432ed28d0249198de0b6b3d1b1c0a87c02a6)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoguile: 2.0.12 -> 2.0.13
Robert Yang [Wed, 21 Dec 2016 06:17:11 +0000 (22:17 -0800)] 
guile: 2.0.12 -> 2.0.13

Remove 0002-Recognize-nios2-as-compilation-target.patch which is already
in the source.

(From OE-Core rev: a2b7f442d8872afe8edec062c60264b31e860218)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoquilt: 0.64 -> 0.65
Robert Yang [Wed, 21 Dec 2016 06:17:10 +0000 (22:17 -0800)] 
quilt: 0.64 -> 0.65

* Removed install.patch since it is already in the patch.
* Fix indent for file://test.sh

(From OE-Core rev: bd8b1d79b50819486e5882db05abb6b358b7392a)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodebianutils: 4.8 -> 4.8.1
Robert Yang [Wed, 21 Dec 2016 06:17:08 +0000 (22:17 -0800)] 
debianutils: 4.8 -> 4.8.1

(From OE-Core rev: dfd4c078a38c3df9ac91ae3e8d01787611bb8cab)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemu: Fix pci-assign
He Zhe [Tue, 29 Nov 2016 09:56:47 +0000 (17:56 +0800)] 
qemu: Fix pci-assign

Fix iommu pci device assignment failure.

"qemu-system-x86_64: -device pci-assign,host=02:00.0: No IOMMU found.
Unable to assign device "(null)""

(From OE-Core rev: 2011d1cc6c05ff3979e4bd664ce918dc8eb8e8fb)

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_sdk: don't force target debug packages into SDK
Ross Burton [Wed, 21 Dec 2016 16:36:07 +0000 (16:36 +0000)] 
populate_sdk: don't force target debug packages into SDK

TOOLCHAIN_TARGET_TASK doesn't need to explicitly list sdk-target-dbg because if
SDKIMAGE_FEATURES contains dbg-pkgs (as it does by default) then they'll all be
installed anyway.  This means that if the user removes dbg-pkgs from
SDKIMAGE_FEATURES then the SDK correctly doesn't have debug packages in.

[ YOCTO #9078 ]

(From OE-Core rev: 4c711830ae26008f73bbf557964bdb86b8c922da)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>