]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
8 years agopoky.ent: Updated the variables for Morty release.
Scott Rifenbark [Mon, 3 Oct 2016 17:38:35 +0000 (10:38 -0700)] 
poky.ent: Updated the variables for Morty release.

Using Morty for the name, 17.0.0 for the poky version, etc.

(From yocto-docs rev: b396626ca05820b51e78407a6c7cd6a0e113aad5)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodev-manual: Added new section on recipe style guidelines
Scott Rifenbark [Mon, 3 Oct 2016 17:20:55 +0000 (10:20 -0700)] 
dev-manual: Added new section on recipe style guidelines

Fixes [YOCTO #10360]

Added a new section to reference into the OpenEmbedded Styleguide.
This will help people writing new recipes to conform to known
styles.

(From yocto-docs rev: 40c12742c78f5aba5bb4e43f759e8c478470fd83)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodev-manual: Fixed missing quote in SRC_URI example.
Scott Rifenbark [Mon, 3 Oct 2016 17:12:03 +0000 (10:12 -0700)] 
dev-manual: Fixed missing quote in SRC_URI example.

Fixes [YOCTO #10360]

(From yocto-docs rev: 4a8fce4962ca77f6840294f7942fffd0c3479874)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: Updated build/tmp/cache/ reference section
Scott Rifenbark [Mon, 3 Oct 2016 17:02:05 +0000 (10:02 -0700)] 
ref-manual: Updated build/tmp/cache/ reference section

Fixes [YOCTO #10356]

Expanded the general description of this directory.

(From yocto-docs rev: df71fe472f9d5cb5f809706ec4218952a49d31d3)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosdk-manual: Fixed example in "Passing Host Options"
Scott Rifenbark [Mon, 3 Oct 2016 16:47:46 +0000 (09:47 -0700)] 
sdk-manual: Fixed example in "Passing Host Options"

Fixes [YOCTO #10267]

Changed the example to use a single long line.

(From yocto-docs rev: c80d8bb8773b7bbe9c85c48880f42ffb273729b7)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: Updated the STAGING_DIR_HOST variable description.
Scott Rifenbark [Mon, 3 Oct 2016 16:08:10 +0000 (09:08 -0700)] 
ref-manual: Updated the STAGING_DIR_HOST variable description.

Fixes [YOCTO #10348]

Added a note clarifying that -native recipes are not installed
into host paths.

(From yocto-docs rev: c0b4265350b558eec296c93f0829c3d687950c52)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: Added explanation of the -C option
Scott Rifenbark [Mon, 3 Oct 2016 15:24:54 +0000 (08:24 -0700)] 
ref-manual: Added explanation of the -C option

Fixes [YOCTO #10345]

There was no mention of the -C option in the "Running Specific
Tasks" section.  I added information to cover this command-line
option.

(From yocto-docs rev: 7b05c5dd3816414c1d3ca898fbd41ce588425057)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodev-manual: Fixed IMAGE_FEATURES examples in debug section.
Scott Rifenbark [Mon, 3 Oct 2016 14:37:14 +0000 (07:37 -0700)] 
dev-manual: Fixed IMAGE_FEATURES examples in debug section.

Fixes [YOCTO #9554]

In the examples, I changes "IMAGE_FEATURE" to "IMAGE_FEATURES_append"

(From yocto-docs rev: 3fc2cc217a0a67b3e0739c6a235ab8e350c4b7c3)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodev-manual: Update to GPL file finder script.
Scott Rifenbark [Mon, 26 Sep 2016 16:53:14 +0000 (09:53 -0700)] 
dev-manual: Update to GPL file finder script.

Fixes [YOCTO 10323]

Made a code change to the example script that helps a user
locate GPL files.

(From yocto-docs rev: bd02012de75f0c30887d3a5bb4aa219703a3ee1c)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopoky.conf: Bump version for 2.2.0 morty release
Richard Purdie [Tue, 11 Oct 2016 07:44:48 +0000 (08:44 +0100)] 
poky.conf: Bump version for 2.2.0 morty release

(From meta-yocto rev: 4d72c9a750e531c6421fb094c1e7cfb74b770cf0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: bitbake: Update version to 1.32.0
Richard Purdie [Tue, 11 Oct 2016 07:46:35 +0000 (08:46 +0100)] 
bitbake: bitbake: Update version to 1.32.0

(Bitbake rev: d9713ed13d0c88c7ee38e8d7b52aa525318af6e3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoarchiver: fix gcc-source handling
Saul Wold [Mon, 10 Oct 2016 18:32:05 +0000 (11:32 -0700)] 
archiver: fix gcc-source handling

The source archiver was not handling the gcc-source target correctly, since it uses the
work-shared directory, we don't want to unpack and patch it twice, just as the comments
say, but the code was not there to check for the gcc-source target.

[YOCTO #10265]

(From OE-Core rev: bbac0699ceadb7a25a60643fb23dffce8b4d23d0)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: depexp: Close UI with error message on NoProvider event
Jussi Kukkonen [Mon, 10 Oct 2016 08:30:04 +0000 (11:30 +0300)] 
bitbake: depexp: Close UI with error message on NoProvider event

Without this the UI just sits there doing nothing. Showing an
infobar in-UI would be nicer but not much more useful since currently
user couldn't do anything in-UI to fix the situation. Implementation
is based on the one in knotty.

Fixes [YOCTO #9288]

(Bitbake rev: eee9231a543f1d0b9ef3cd8377fc46fd23afb97b)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogenericx86-common.inc: add dependency do_image_wic -> do_bootimg
Ed Bartosh [Mon, 10 Oct 2016 14:43:50 +0000 (17:43 +0300)] 
genericx86-common.inc: add dependency do_image_wic -> do_bootimg

do_image_wic depends on do_bootimg on genericx86 machines as it
copies files from hddimg/EFI/BOOT directory to boot partition.

(From meta-yocto rev: 377a87d390ec3a3f19499f850b7f6b6dfb624389)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoREADME.hardware: Update Genericx86 section
Saul Wold [Sun, 9 Oct 2016 15:24:24 +0000 (08:24 -0700)] 
README.hardware: Update Genericx86 section

This section was truly dated, update with newer hardware that is
being tested.

Update section on creating USB stick images using wic and alternate EFI_PROVIDER
information about systemd-boot.

(From meta-yocto rev: 4a8f28e2c18211a2cd1b380b0b2c8d175fe1e51a)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogenericx86-common.inc: produce EFI wic image
Ed Bartosh [Mon, 10 Oct 2016 08:02:06 +0000 (11:02 +0300)] 
genericx86-common.inc: produce EFI wic image

Used mkefidisk.wks as a default kickstart file for genericx86* machines.
Added dependency do_image_wic -> gptfdisk-native as wic uses sgdisk tool
from this package to set partition UUIDS.

(From meta-yocto rev: a867b07634b49f75d3e7591b9bc83536eeecb3ad)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto: linux 4.4: bump to the latest stable version for non-x86 BSPs
Kevin Hao [Sat, 8 Oct 2016 07:45:59 +0000 (15:45 +0800)] 
linux-yocto: linux 4.4: bump to the latest stable version for non-x86 BSPs

Boot test for all these boards.

(From meta-yocto rev: 0fc5dc88faaf54ec7cfd1adc9da07a7fd28b3eae)

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto: linux 4.1: bump to the latest stable version for non-x86 BSPs
Kevin Hao [Sat, 8 Oct 2016 07:45:58 +0000 (15:45 +0800)] 
linux-yocto: linux 4.1: bump to the latest stable version for non-x86 BSPs

Boot test for all these boards.

(From meta-yocto rev: b90c81322363ecbdc1e552fd15bc547441b69b78)

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto: linux 4.8: bump to the final v4.8 release for non-x86 BSPs
Kevin Hao [Sat, 8 Oct 2016 07:45:57 +0000 (15:45 +0800)] 
linux-yocto: linux 4.8: bump to the final v4.8 release for non-x86 BSPs

Boot test for all these boards.

(From meta-yocto rev: 095731b7bde0539aeb4af79df56b5758a59c0e0f)

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonet-tools: fix building with linux-4.8
Jackie Huang [Sun, 9 Oct 2016 00:56:07 +0000 (08:56 +0800)] 
net-tools: fix building with linux-4.8

Fix a build error when using the linux-4.8 headers that results in:

In file included from
.../sysroots/qemuarm64/usr/include/linux/if_tunnel.h:6:0,
                  from iptunnel.c:39:
.../qemuarm64/usr/include/linux/ip.h:85:8: error: redefinition of
'struct iphdr'
  struct iphdr {
         ^~~~~
In file included from iptunnel.c:29:0:
.../qemuarm64/usr/include/netinet/ip.h:44:8: note: originally defined here
  struct iphdr
         ^~~~~
(From OE-Core rev: 94d15885c516e3bfee4fb68dfb568f4da6904052)

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoRevert "linux-libc-headers: if_tunnel: remove include of if/ip/in6.h"
Jackie Huang [Sun, 9 Oct 2016 00:56:06 +0000 (08:56 +0800)] 
Revert "linux-libc-headers: if_tunnel: remove include of if/ip/in6.h"

The issue is fixed in net-tools.

This reverts commit fb71f34d7379569c23cc00e18d134093147613f5.

(From OE-Core rev: 804bea398af3e3e3d134e5199eda61afbc285088)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocanned-wks: use GPT partition table
Ed Bartosh [Mon, 10 Oct 2016 07:50:41 +0000 (10:50 +0300)] 
canned-wks: use GPT partition table

According to UEFI specification all EFI platforms must support
GUID Partition Table(GPT) disk layout. Here is a list of advantages
of using GPT disk layout over the legacy MBR partitioning:

 - Logical Block Addresses (LBAs) are 64 bits (rather than 32 bits).
 - Supports many partitions (rather than just four primary partitions).
 - Provides both a primary and backup partition table for redundancy.
 - Uses version number and size fields for future expansion.
 - Uses CRC32 fields for improved data integrity.
 - Defines a GUID for uniquely identifying each partition.
 - Uses a GUID and attributes to define partition content type.
 - Each partition contains a 36 character human readable name.

Used GPT partitioning in all EFI kickstart files.
Tested result images on NUC, MinnowBoard MAX and MinnowBoard Turbot.

(From OE-Core rev: 66d4efeb0face5fc8a1755dcd2ed3a611997a04d)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemd-bootdisk.wks: update kernel command line
Ed Bartosh [Mon, 10 Oct 2016 07:40:51 +0000 (10:40 +0300)] 
systemd-bootdisk.wks: update kernel command line

Used ttyS0 console.
Removed usage of ttyPCH0 (FRI2 leftover)
Decreased bootloader timeout to 5 seconds
Removed 'vmalloc=256MB snd-hda-intel.enable_msi=0' as it's not
needed for any of reference BSPs.

(From OE-Core rev: ee16a283d695112236906338887c6eba109c9fb5)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoflex: Backport buffer overflow fix
Jussi Kukkonen [Mon, 10 Oct 2016 08:30:03 +0000 (11:30 +0300)] 
flex: Backport buffer overflow fix

Fix a heap-based buffer overflow in yy_get_next_buffer()
(CVE-2016-6354).

(From OE-Core rev: 68d56306baa21e66756fb44c6c5680e725b1e3bc)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoflex: Update upstream check uri
Jussi Kukkonen [Mon, 10 Oct 2016 08:30:02 +0000 (11:30 +0300)] 
flex: Update upstream check uri

Flex has moved to github, update UPSTREAM_CHECK_URI.

(From OE-Core rev: 591a5aecfe4a52dc3b9e11883334c604dd9fc957)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agognutls: Backport certificate check fix
Jussi Kukkonen [Mon, 10 Oct 2016 08:30:01 +0000 (11:30 +0300)] 
gnutls: Backport certificate check fix

Previously the OCSP certificate check wouldn't verify the serial
length and could succeed in cases it shouldn't (CVE-2016-7444).

(From OE-Core rev: d7e97992befd3fa5c1c6616652a3aa723d08c531)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: main: Check bitbake server-only port is a number
Benjamin Esquivel [Fri, 7 Oct 2016 21:46:26 +0000 (16:46 -0500)] 
bitbake: main: Check bitbake server-only port is a number

Either using the memres script or the bitbake call with --server-only
if the port is a string instead of a number then the process hangs
indefinitely causing a loop that never ends.

Add a check at the beginning for the port being a number otherwise
show an error message and exit cleanly.

[YOCTO #10397]

(Bitbake rev: 35927a98daeeb854ef5782e900206af6cd96b3d7)

Signed-off-by: Benjamin Esquivel <benjamin.esquivel@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: runqueue: Optimise task id string manipulations
Richard Purdie [Fri, 7 Oct 2016 07:26:48 +0000 (08:26 +0100)] 
bitbake: runqueue: Optimise task id string manipulations

Some task id manipulations were suboptimal:

* taskfn_fromtid and fn_from_tid were effectively the same function
* many calls to split_tid(), then taskfn_fromtid()
* taskfn_fromtid() called split_tid() internally

This patch adds split_tid_mcfn() to replace split_tid() and returns the
"taskfn" variant being used in many places. We update all core calls
to the new function and ignore the return values we don't need since the
function call overhead of the split_tid wrapper is higher than ignoring
a return value.

The one remaining standalone use of taskfn_fromtid is replaced with
fn_from_tid. I couldn't see any external usage so it was dropped.

There is external usage of split_tid so a wrapper remains for it.

Combined together these changes should improve some of the runqueue task
manipulation performance.

(Bitbake rev: 1bf2ef874fbe47f1320007efa0bdeef8d630b8a1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: fix cloning of git+ssh repositories
Ed Bartosh [Fri, 7 Oct 2016 06:23:20 +0000 (09:23 +0300)] 
bitbake: toaster: fix cloning of git+ssh repositories

Replaced '+' -> '_' to avoid having '+' in folder name.

Thanks Stephan Dünner for this fix.

(Bitbake rev: 858ade277d3bd62e84d3d78e9302f766c1b31dfb)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: bb.runqueue: fix unexpected process death logic
Christopher Larson [Fri, 7 Oct 2016 04:07:41 +0000 (21:07 -0700)] 
bitbake: bb.runqueue: fix unexpected process death logic

`if w in self.rq.worker` when w *is* self.rq.worker doesn't make a great deal
of sense, and results in this error:

      File ".../poky/bitbake/lib/bb/runqueue.py", line 2372, in runQueuePipe.read():
                             name = None
        >                    if w in self.rq.worker:
                                 name = "Worker"
    TypeError: unhashable type: 'dict'

Most likely this was meant to be 'is' rather than 'in', but rather than
checking after the fact, just include the name in the iteration, instead.

While we're here, also clean up and fix the broken error message.

(Bitbake rev: 267e025cad44c8bd0fb157f1f7a2e08df117ba84)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: ui/knotty.py: Fix signal handling of SIGWINCH in BBProgress
Aníbal Limón [Thu, 6 Oct 2016 21:52:07 +0000 (16:52 -0500)] 
bitbake: ui/knotty.py: Fix signal handling of SIGWINCH in BBProgress

Add the ability to pass default signal handler for SIGWINCH in BBProgress
because with multiple instace of BBProgress the original signal handler
set by TerminalFilter (sigwinch_handle) is lost.

This is a fix for stack trace due to multiple async calls of ProgressBar
_handle_resize (ioctl to terminal fd), see:

NOTE: Executing SetScene Tasks
Fatal Python error: Cannot recover from stack overflow.

Current thread 0x00007f70a4793700 (most recent call first):
  File
"/home/alimonb/repos/poky/bitbake/lib/progressbar/progressbar.py", line
183 in _handle_resize
  File "/home/alimonb/repos/poky/bitbake/lib/bb/ui/knotty.py", line 58
in _handle_resize
  File "/home/alimonb/repos/poky/bitbake/lib/bb/ui/knotty.py", line 60
in _handle_resize
...
  File "/home/alimonb/repos/poky/bitbake/lib/bb/ui/knotty.py", line 60
in _handle_resize
...
Aborted

(Bitbake rev: 812bd49cb569379ee90d5be28a4b6e60645f1e54)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotestimage: disable build tests for qemumips and qemumips64
Joshua Lock [Thu, 6 Oct 2016 10:06:54 +0000 (11:06 +0100)] 
testimage: disable build tests for qemumips and qemumips64

It's not uncommon for qemumips[64] builds on the Yocto Project
autobuilder to fail during Sanity Tests after a very long timeout
period. This is due to the MIPS emulation in QEMU being slow and
some of the build tests taking a very long time on MIPS machines.

This patch works around this slowness by disabling the more
complex build tests for QEMU MIPS machines.

[YOCTO #10340]

(From OE-Core rev: 4a1c04c0d509b2cda9b2ccd5a80523c05fa279c6)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomkgummidisk.wks: update kernel command line
Ed Bartosh [Fri, 7 Oct 2016 06:30:09 +0000 (09:30 +0300)] 
mkgummidisk.wks: update kernel command line

Used ttyS0 console.
Removed usage of ttyPCH0 (FRI2 leftover)
Decreased bootloader timeout to 5 seconds
Removed 'vmalloc=256MB snd-hda-intel.enable_msi=0' as it's not
needed for any of reference BSPs.

(From OE-Core rev: 7b2443364a42c731bc9eefa6bb460262464e26b6)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomklibs-native: update broken SRC_URI
Armin Kuster [Fri, 7 Oct 2016 16:13:29 +0000 (09:13 -0700)] 
mklibs-native: update broken SRC_URI

fixes checkuri AB failure.

V2] change to snaphot instead of ubuntu

ERROR: mklibs-native-0.1.41-r0 do_checkuri: Fetcher failure for URL: 'http://ftp.de.debian.org/debian/pool/main/m/mklibs/mklibs_0.1.41.tar.xz'. URL http://ftp.de.debian.org/debian/pool/main/m/mklibs/mklibs_0.1.41.tar.xz doesn't work
ERROR: mklibs-native-0.1.41-r0 do_checkuri: Function failed: do_checkuri

[ Yocto #10391]

(From OE-Core rev: 57b9cad4ac3d6fbb1b93799c32311536d263aeb1)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogcc-runtime.inc: Add CPP support for x86-64-x32 tune
Juro Bystricky [Sat, 8 Oct 2016 17:53:52 +0000 (10:53 -0700)] 
gcc-runtime.inc: Add CPP support for x86-64-x32 tune

Using the following setup (as specified in yocto sample code):

MACHINE = "qemux86-64"
require conf/multilib.conf
MULTILIBS = "multilib:libx32"
DEFAULTTUNE_virtclass-multilib-libx32 = "x86-64-x32"

We fail to compile simple CPP programs because CPP cannot
find relevant header files, looking for them in a non-existing place.
To fix this, we create a symlink of the name CPP expects and point it to
the corresponding existing directory.

[YOCTO#10354]
[YOCTO#10380]

(From OE-Core rev: 9f9be229040f4f9a523a1e25afd78d5c3f4efc23)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibgcc-common.inc: Fix broken symlinks for multilib SDK
Juro Bystricky [Sat, 8 Oct 2016 17:53:53 +0000 (10:53 -0700)] 
libgcc-common.inc: Fix broken symlinks for multilib SDK

This patch fixes broken "32" symlinks for multilib settings:

MACHINE = "qemuarm64"
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "armv7a"

and

MACHINE = "qemux86-64"
require conf/multilib.conf
MULTILIBS = "multilib:libx32"
DEFAULTTUNE_virtclass-multilib-libx32 = "x86-64-x32"

[YOCTO#8642]
[YOCTO#10380]

(From OE-Core rev: 2810671a0f96776c135137f27a5ca52194ddd692)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomachine.cfg: Unset CONFIG_64BIT for qemu i386 architecture
Leonardo Sandoval [Sat, 1 Oct 2016 00:09:35 +0000 (19:09 -0500)] 
machine.cfg: Unset CONFIG_64BIT for qemu i386 architecture

In modern kernels, ARCH=x86 defaults to 64 bits, so explicitly
unset this word length for qemu i386 architectures.

(From meta-yocto rev: 9750779bc78de3ea33d7f88e4972a5b21c3f811b)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.8: Enable R8169 driver since its needed by supported platforms
Bruce Ashfield [Fri, 7 Oct 2016 21:27:44 +0000 (17:27 -0400)] 
linux-yocto/4.8: Enable R8169 driver since its needed by supported platforms

    The Realtek 8169 driver is needed by the Minnowboard MAX, one of the
    boards we currently support, since some of our images do not contain
    modules by default, the network isnt working on genericx86, genericx86-64
    and intel-core2-32 (meta-intel) when no modules are installed.

    This patch fixes network on images not containing modules when
    using the previously mentioned MACHINES for this board.

(From OE-Core rev: 747f59f5103995654f2b10a52d1dfd2dd4ad1a0e)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoupdate-rc.d.bbclass: check that init script is executable before running it
Markus Lehtonen [Thu, 6 Oct 2016 13:37:04 +0000 (16:37 +0300)] 
update-rc.d.bbclass: check that init script is executable before running it

Check that the init script that is going to be called in the prerm()
script really exists and is executable. There might be a packaging bug
or the script might've been removed already earlier in prerm().

[YOCTO #10299]

(From OE-Core rev: aabb87c9dbd60fe9467ca0354ec05c275a3f1b1a)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/populate_sdk_ext: add symlinks and unfsd to support Eclipse plugin
Paul Eggleton [Thu, 6 Oct 2016 21:43:04 +0000 (10:43 +1300)] 
classes/populate_sdk_ext: add symlinks and unfsd to support Eclipse plugin

The Yocto Project Eclipse plugin requires that runqemu and unfsd are
accessible within the SDK, and indeed the standard SDK has these. This
turns out to be fairly easy to do - we just need to add unfsd and symlink
it, runqemu and a few other scripts into the SDK's bin directory.

Fixes [YOCTO #10214].

(From OE-Core rev: 9007e0e3fce7e09b043fead54b17f69c1661d162)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/sshcontrol: Handle interrupted system call error
Richard Purdie [Mon, 3 Oct 2016 14:56:13 +0000 (15:56 +0100)] 
oeqa/sshcontrol: Handle interrupted system call error

Deal with an interrupted system call gracefully:

|   File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-systemd/build/meta/lib/oeqa/utils/sshcontrol.py", line 55, in _run
|     if select.select([self.process.stdout], [], [], 5)[0] != []:
| InterruptedError: [Errno 4] Interrupted system call

(From OE-Core rev: 556125e4004fb7ac5169b59f51dc151f18c1806a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agou-boot: Add support to use uboot-extlinux-config class
Fabio Berton [Tue, 4 Oct 2016 13:54:11 +0000 (10:54 -0300)] 
u-boot: Add support to use uboot-extlinux-config class

Use uboot-extlinux-config class to create extlinux.conf file and then
install inside /boot/extlinux directory and also put file to deploy
dir. This file will be only create if UBOOT_EXTLINUX is set to 1.

You can use DEPLOYDIR/extlinux.conf file to install into final image
using wic setting:

IMAGE_BOOT_FILES_append = " extlinux.conf;extlinux/extlinux.conf"

(From OE-Core rev: 33df3a65f3e8e136811da715d0cc247ce66ae0ea)

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/uboot-extlinux-config: Add class
Fabio Berton [Tue, 4 Oct 2016 13:54:10 +0000 (10:54 -0300)] 
classes/uboot-extlinux-config: Add class

This class allow the extlinux.conf generation for U-Boot use.
The U-Boot support for it is given to allow the Generic Distribution
Configuration specification use by OpenEmbedded-based products.

This class can be inherited by u-boot recipes to create extlinux.conf
and boot using menu options.

U-boot with extlinux support is machine dependent, so to use this class
you need to set UBOOT_EXTLINUX to 1 in machine configuration file and
also set root= kernel cmdline UBOOT_EXTLINUX_ROOT. This variable is used
to pass root kernel cmdline, e.g:

UBOOT_EXTLINUX_ROOT = "root=/dev/mmcblk2p2"

(From OE-Core rev: 7c18abeb2a6ef8b7bb53aa92a9ee76bd465fada2)

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: selftest: add test for sdimage-bootpart
Ed Bartosh [Thu, 6 Oct 2016 11:53:17 +0000 (14:53 +0300)] 
wic: selftest: add test for sdimage-bootpart

Test creation of sdimage-bootpart image

(From OE-Core rev: 8b18568591f66aa9770798bc61123898de92b8a9)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: selftest: add test for systemd-bootdisk
Ed Bartosh [Thu, 6 Oct 2016 11:53:16 +0000 (14:53 +0300)] 
wic: selftest: add test for systemd-bootdisk

Test creation of systemd-bootdisk image.

(From OE-Core rev: b8eef88536b944ea35664b9a6a9496fb0a3f7988)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosecurity_flags: Diable PIE for mesa-gl
Khem Raj [Thu, 6 Oct 2016 15:35:24 +0000 (08:35 -0700)] 
security_flags: Diable PIE for mesa-gl

This creeped in along with rest of the changes in
c999b3d88dfcffbe0fb66406fb0bff1fb66f34bc
even after it was reported a build failure in mesa-gl
This is also showing up on arm architecture now

| /usr/src/debug/glibc/2.24-r0/git/csu/elf-init.c:87: undefined reference to `__init_array_end'
| /usr/src/debug/glibc/2.24-r0/git/csu/elf-init.c:87: undefined reference to `__init_array_start'
| /a/builder/mnt/build/tmp-glibc/sysroots/x86_64-linux/usr/libexec/arm-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/6.2.0/ld: .libs/mesa_dri_drivers.so: hidden symbol `__init_array_end' isn't defined

(From OE-Core rev: 9211fb2a6d6c2d72ec7c2664737aee3a6b6149cf)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomkefidisk.wks: update kernel command line
Ed Bartosh [Thu, 6 Oct 2016 15:57:53 +0000 (18:57 +0300)] 
mkefidisk.wks: update kernel command line

Used ttyS0 console.
Removed usage of ttyPCH0 (FRI2 leftover)
Decreased bootloader timeout to 5 seconds
Removed 'vmalloc=256MB snd-hda-intel.enable_msi=0' as it's not needed
for any of reference BSPs.

(From OE-Core rev: b46825a6ce5cecd24fed814bae48f9cfd0b97568)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomkefidisk.wks: use MSDOS partition table
Ed Bartosh [Thu, 6 Oct 2016 10:33:38 +0000 (13:33 +0300)] 
mkefidisk.wks: use MSDOS partition table

Stopped using GPT partition table in mkefidisk.wks as it's not
supported by all reference hardware.

(From OE-Core rev: 07bb11b097a67ff89ae633fa1992db5494d75c0c)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: rewrite MBR disk identifier
Ed Bartosh [Thu, 6 Oct 2016 10:33:37 +0000 (13:33 +0300)] 
wic: rewrite MBR disk identifier

Disk identifier created by parted doesn't match the one we generated
and used in bootloader config. We need to rewrite it to make our image
bootable.

Modified involved API and data structures to access previously
generated disk identifiers after MBR is initialized. Written disk
identifiers to MBR.

(From OE-Core rev: 221d3bdd6e0ab8a4d25e2c96bd976cbec4e76681)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: generate PARTUUID for MDOS partitions
Ed Bartosh [Thu, 6 Oct 2016 10:33:36 +0000 (13:33 +0300)] 
wic: generate PARTUUID for MDOS partitions

Added generation of partition UUIDs for MSDOS partitions.
UUID for MSDOS partitions is <disk identifier>-<partition number>,
where disk identifier is a random 4 bytes long number. It's usually
generated when MBR/partition table is initialized.

As UUID is used to point to the root partition in bootloader config
we need to generate it before the MBR is initialized.
After MBR is created we need to rewrite system identifier to match
it with what is used in bootloader config. This will be implemented
in the next commit.

(From OE-Core rev: 6ecc6addf4080eda75a15af077816c81c6bf70a5)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: set PARTUUID only for gpt partition table
Ed Bartosh [Thu, 6 Oct 2016 10:33:35 +0000 (13:33 +0300)] 
wic: set PARTUUID only for gpt partition table

sgdisk fails to set PARTUUID for msdos partitions as it's only
supported for GPT partitions.

Checked partition table format to run sgdisk --partition-guid
only for GPT partitions.

(From OE-Core rev: 0c1804821917d6d3a062ca19b63667d030138f21)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinuxloader.bbclass: Adjust mips to cover all mips/mips64
Mark Hatle [Thu, 6 Oct 2016 16:59:38 +0000 (11:59 -0500)] 
linuxloader.bbclass: Adjust mips to cover all mips/mips64

[YOCTO #10389]

Use a glob (*) to match all mips (not previously matched).  This will ensure
that the linuxloader is properly returned for mips, mipsel, mips64,
mips64el and their n32 variants.

See: https://sourceware.org/glibc/wiki/ABIList#mips for the official list
of loaders.

(From OE-Core rev: b90d68fda3d14b4d19b7ffcb5b80ed28563a616d)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoarch-mips: Add mipsisa{32, 64}r6{el, } tunes
Zubair Lutfullah Kakakhel [Tue, 4 Oct 2016 11:31:21 +0000 (12:31 +0100)] 
arch-mips: Add mipsisa{32, 64}r6{el, } tunes

Add support for MIPS Release 6 ISA and the various tune
configurations.

This patch adds the tunes for 32r6 and 64r6 n64 and not the n32
variants at the moment.

Release 6 onwards, the tuples are now
 - mipsisa32r6-linux-gnu
 - mipsisa32r6el-linux-gnu
 - mipsisa64r6-linux-gnuabi64
 - mipsisa64r6el-linux-gnuabi64
 - mipsisa64r6-linux-gnuabin32
 - mipsisa64r6el-linux-gnuabin32

For more details, check https://wiki.debian.org/Multiarch/Tuples

(From OE-Core rev: 6b2e0c60c3222a13b33284f258d5c340222d759f)

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogcc-configure: Add mipsisa{32, 64}r6{el, } support
Zubair Lutfullah Kakakhel [Tue, 4 Oct 2016 11:31:20 +0000 (12:31 +0100)] 
gcc-configure: Add mipsisa{32, 64}r6{el, } support

Add support for MIPS Release 6 ISA

(From OE-Core rev: 4c694d5bd29c406009332e3bd388e3f6a504d103)

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglibc: Add mipsisa{32, 64}r6{el, } support
Zubair Lutfullah Kakakhel [Tue, 4 Oct 2016 11:31:19 +0000 (12:31 +0100)] 
glibc: Add mipsisa{32, 64}r6{el, } support

Add support for MIPS Release 6 ISA

The loader is located at a new place for multiarch.
For more details, check https://wiki.debian.org/Multiarch
and https://sourceware.org/glibc/wiki/ABIList#mips

(From OE-Core rev: 502145553e2368525a4b327c64d2971dac58d85b)

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake.conf: Add mipsisa{32, 64}r6{el, } support
Zubair Lutfullah Kakakhel [Tue, 4 Oct 2016 11:31:18 +0000 (12:31 +0100)] 
bitbake.conf: Add mipsisa{32, 64}r6{el, } support

Add support for MIPS Release 6 ISA

(From OE-Core rev: 582374542b8374fc5d7894387de2ba746afcd036)

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agositeinfo.bbclass: Add mipsisa{32, 64}r6{el, } support
Zubair Lutfullah Kakakhel [Tue, 4 Oct 2016 11:31:17 +0000 (12:31 +0100)] 
siteinfo.bbclass: Add mipsisa{32, 64}r6{el, } support

Add support for MIPS Release 6 ISA

(From OE-Core rev: fcb67508be00cdd22181d6c9e4c3d29dfa578b45)

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinuxloader.bbclass: Add mipsisa{32, 64}r6{el, } support
Zubair Lutfullah Kakakhel [Tue, 4 Oct 2016 11:31:16 +0000 (12:31 +0100)] 
linuxloader.bbclass: Add mipsisa{32, 64}r6{el, } support

Add support for MIPS Release 6 ISA. The loader is located at a
new place for multiarch.

For more details, check https://wiki.debian.org/Multiarch
and https://sourceware.org/glibc/wiki/ABIList#mips

(From OE-Core rev: 27537d146f3f143b06819102c348c8914287ec8e)

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibc-package.bbclass: Add mipsisa{32, 64}r6{el, } support
Zubair Lutfullah Kakakhel [Tue, 4 Oct 2016 11:31:15 +0000 (12:31 +0100)] 
libc-package.bbclass: Add mipsisa{32, 64}r6{el, } support

Add support for MIPS Release 6 ISA

(From OE-Core rev: 8e098ddb656d39c56427ad45e0fa429b8f0153f5)

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-arch.bbclass: Add mipsisa{32, 64}r6{el, } support
Zubair Lutfullah Kakakhel [Tue, 4 Oct 2016 11:31:14 +0000 (12:31 +0100)] 
kernel-arch.bbclass: Add mipsisa{32, 64}r6{el, } support

Add support for MIPS Release 6 ISA

(From OE-Core rev: aecb57f2fd65a1bfbc2e9a23fba4984d44055c4c)

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoinsane.bbclass: Add mipsisa{32, 64}r6{el, }
Zubair Lutfullah Kakakhel [Tue, 4 Oct 2016 11:31:13 +0000 (12:31 +0100)] 
insane.bbclass: Add mipsisa{32, 64}r6{el, }

Add support for MIPS release 6 of the ISA

(From OE-Core rev: 6613ee0155de1e0afd30cd8d8290eda3f7486337)

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopseudo: backport a patch to fix renameat()
Joshua Lock [Thu, 6 Oct 2016 15:45:20 +0000 (16:45 +0100)] 
pseudo: backport a patch to fix renameat()

renameat calls under pseudo were losing extended attributes.
Backport the fix for this from pseudo upstream.

[YOCTO '10349]

(From OE-Core rev: 16f6b020ebea49f012f2e65997a8d464f94d6605)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoxmlto: Add libxslt to native DEPENDS
Saul Wold [Thu, 6 Oct 2016 18:38:59 +0000 (11:38 -0700)] 
xmlto: Add libxslt to native DEPENDS

xmlto requires xsltproc to work correctly, it was being included
for the target, but may have been finding host contamination.

[YOCTO #10366]

(From OE-Core rev: b7e5b9ec4f71a3b8dcb4fe56aa1b971383a6fa27)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoutils.bbclass: add function to check for git config user
Stephano Cetola [Mon, 3 Oct 2016 23:32:45 +0000 (16:32 -0700)] 
utils.bbclass: add function to check for git config user

If attempting to patch a git repo without a proper git config setup,
an error will occur saying user.name/user.email are needed by git
am/apply. After some code was removed from kernel-yocto, it was
simple enough to reproduce this error by creating a kernel patch and
using a container to build.

This patch abstracts out functionality that existed in buildhistory
for use in other classes. It also adds a call to this functionality
to the kernel-yocto class.

Fixes [YOCTO #10346]

introduced in OE-core revision
0f698dfd1c8bbc0d53ae7977e26685a7a3df52a3

(From OE-Core rev: 25b43cb05c645e43f96bc18906441b8fdc272228)

Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: Update tests to reflect front end changes
Michael Wood [Thu, 6 Oct 2016 00:08:54 +0000 (17:08 -0700)] 
bitbake: toaster: Update tests to reflect front end changes

 - Browser test we changed the project heading access to use the class name
 - Update toastergui unit test for additional gotoUrl property
 - On faster browsers we had a race for layer details inputs being
   visible

(Bitbake rev: 80f377ebcffd01dbe393ccffb999df4b04552f8a)

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: bavery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: Delete notification update front end implementation to design
Michael Wood [Thu, 6 Oct 2016 00:08:53 +0000 (17:08 -0700)] 
bitbake: toaster: Delete notification update front end implementation to design

Update the delete notifications to reflect feedback from design
review comments.

(Bitbake rev: e47a1cc160c0f1da060884a8585403b35375fb09)

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: bavery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: importlayer Fix layer dependencies button state toggle
Michael Wood [Thu, 6 Oct 2016 00:08:52 +0000 (17:08 -0700)] 
bitbake: toaster: importlayer Fix layer dependencies button state toggle

Fix regression introduced by switching typeahead library. Make sure we
enable and disable the add button based on whether the selection event
has fired or not.

[YOCTO #9936]

(Bitbake rev: cfef79e98b023252cd116d6cc4f90d261d47d13f)

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: bavery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: checksettings Remove confusing startup messages
Michael Wood [Thu, 6 Oct 2016 00:08:51 +0000 (17:08 -0700)] 
bitbake: toaster: checksettings Remove confusing startup messages

These "validation" messages are shown regardless as to whether the
settings are being correctly set or not.
For the time being remove them.

[YOCTO #9097]

(Bitbake rev: c57f20f9cd7cb4ea4d285291a1e71e5df7152799)

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: bavery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: buildinfohelper: Use correct way to get message from LogMessage
Michael Wood [Thu, 6 Oct 2016 00:08:50 +0000 (17:08 -0700)] 
bitbake: toaster: buildinfohelper: Use correct way to get message from LogMessage

Use the correct method to get a message value from the LogMessage object
rather than constructing it ourselves which is not recommended. This
causes an exception when the msg contains a '%' such as when there are
wildcards in file names (something2.%.bbappends)

(Bitbake rev: 11b3b6a7087554d14a2812a9ae463dce740b879e)

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: bavery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: api / project Cancel any in progress builds before project delete
Michael Wood [Thu, 6 Oct 2016 00:08:49 +0000 (17:08 -0700)] 
bitbake: toaster: api / project Cancel any in progress builds before project delete

Before we finally delete any project make sure we send the cancel command to
any in-progress builds. This ensures that an inaccessible build doesn't block
up the system and that we don't get errors after deletion.

[YOCTO #10289]

(Bitbake rev: 263762a01a6460332ef0cfea5df1e5b81c086df4)

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: bavery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto: Update genericx86* SRCREVs for linux-yocto 4.8
Alejandro Hernandez [Wed, 5 Oct 2016 22:08:13 +0000 (22:08 +0000)] 
linux-yocto: Update genericx86* SRCREVs for linux-yocto 4.8

Upgrades to Linux 4.8

(From meta-yocto rev: b68cd3eed60e01936cec94a03ba2b1a087763e6b)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: bitbake-user-manual: Added new section on BB-style functions
Scott Rifenbark [Tue, 4 Oct 2016 16:58:44 +0000 (09:58 -0700)] 
bitbake: bitbake-user-manual: Added new section on BB-style functions

Fixes [YOCTO #10364]

Added a new section titled "Bitbake-Style Python Functions
Versus Python Functions".  This section describes differences
for the user between the two types of functions.

Also, cleaned up a consistency problem with the terms
"BitBake style" and "BitBake-style".  I used the latter
throughout the manual.

(Bitbake rev: e6f12157a210084d1a870832107c910df792f1d9)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: bitbake-user-manual: Updated minor wordings.
Scott Rifenbark [Thu, 22 Sep 2016 23:27:41 +0000 (16:27 -0700)] 
bitbake: bitbake-user-manual: Updated minor wordings.

Fixes [YOCTO #10296]

Applied some minor wording changes per review edits.

(Bitbake rev: 67d5501d5fd6b7ac3ee9ad97962fcf8a41d00cff)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: bitbake-user-manual: Added examples for using overrides with functions.
Scott Rifenbark [Wed, 21 Sep 2016 22:30:14 +0000 (15:30 -0700)] 
bitbake: bitbake-user-manual: Added examples for using overrides with functions.

Fixes [YOCTO #10296]

This adds some bits clarifying you can append and prepend to
functions.  Added a bit to the introduction paragraph of the
"Appending and Prepending (Override Style Syntax)" section to
note that you can do this.  Referenced some new examples.

In the "Shell Functions" section I added an example.  In the
"BitBake Style Python Functions" section I also added an example.

(Bitbake rev: 6e6b7e10e04fdb94b59bd2ead3ccb79c899c7458)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: bitbake-user-manual: Fixed grammar from missing word
Scott Rifenbark [Thu, 22 Sep 2016 23:07:13 +0000 (16:07 -0700)] 
bitbake: bitbake-user-manual: Fixed grammar from missing word

Fixes [YOCTO #10293]

I omitted the work "quote" and needed to have it there.

(Bitbake rev: 5087d856a39fd7be9716d1a2c185fc764f63f2c7)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts: Rename 'native' to 'oe-run-native'
Ulf Magnusson [Thu, 6 Oct 2016 03:18:23 +0000 (05:18 +0200)] 
scripts: Rename 'native' to 'oe-run-native'

Makes it a bit more descriptive and potentially more discoverable. Most
people seemed to prefer an oe- prefix, so let's go with that.

(From OE-Core rev: 97e526ca10a00010987ffa3b90ec48337503a573)

Signed-off-by: Ulf Magnusson <ulfalizer@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agouninative: users can override download site
bavery [Thu, 6 Oct 2016 00:43:06 +0000 (17:43 -0700)] 
uninative: users can override download site

The default download site for the uninative tarball is
http://downloads.yoctoproject.org/releases/uninative/<version>. There
are scenarios in which the user may need to force the download to be
somewhere else.  This patch allows the UNINATIVE_URL to be set in the
local.conf.

(From OE-Core rev: 2778178b5a0d0e072c0cf7c3569bc1f5ccd82b53)

Signed-off-by: bavery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoicecc.bbclass: replace os.popen with subprocess.check_output
Martin Jansa [Wed, 5 Oct 2016 20:53:11 +0000 (22:53 +0200)] 
icecc.bbclass: replace os.popen with subprocess.check_output

* otherwise there is a lot of warnings about missing close on file descriptor

(From OE-Core rev: 629ff6eb58ddad2d533cbcc8b1a4594d3c8fd441)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodevtool: modify command fails to ignore source files
Stephano Cetola [Wed, 5 Oct 2016 17:07:17 +0000 (10:07 -0700)] 
devtool: modify command fails to ignore source files

With recent changes to recipeutils, the list of local files returned
by get_recipe_local_files could possibly include source files. This
only happens when the recipe contains a SRC_URI using subdir= to put
files in the source tree. These files should be ignored when
populating the list of local files for oe-local-files directory.

[YOCTO #10326]

introduced in
OE-Core revision 9069fef5dad5a873c8a8f720f7bcbc7625556309

(From OE-Core rev: 31f1bbad248c36a8c86dde4ff57ce42efc664082)

Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_sdk_base.bbclass: Make do_populate_sdk depend on PACKAGE_EXCLUDE_COMPLEMENTARY
Peter Kjellerstedt [Wed, 5 Oct 2016 15:30:48 +0000 (17:30 +0200)] 
populate_sdk_base.bbclass: Make do_populate_sdk depend on PACKAGE_EXCLUDE_COMPLEMENTARY

(From OE-Core rev: 06c732bb8e2896d789716e7f0635aac9ff3a2d42)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage.bbclass: Make do_rootfs depend on PACKAGE_EXCLUDE_COMPLEMENTARY
Peter Kjellerstedt [Wed, 5 Oct 2016 15:30:47 +0000 (17:30 +0200)] 
image.bbclass: Make do_rootfs depend on PACKAGE_EXCLUDE_COMPLEMENTARY

(From OE-Core rev: 7294c550eb3c7e31f8b80c7055aa84945c75c7f1)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage_manager.py: Allow multiple regexps in PACKAGE_EXCLUDE_COMPLEMENTARY
Peter Kjellerstedt [Wed, 5 Oct 2016 15:30:46 +0000 (17:30 +0200)] 
package_manager.py: Allow multiple regexps in PACKAGE_EXCLUDE_COMPLEMENTARY

The PACKAGE_EXCLUDE_COMPLEMENTARY variable can currently only contain
one regular expression. This makes it hard to add to it from different
configuration files and recipes.

Allowing it to contain multiple, whitespace separated regular
expressions should be backwards compatible as it is assumed that
whitespace is not used in package names and thus is not used in any
existing instances of the variable.

After this change, the following three examples should be equivalent:

  PACKAGE_EXCLUDE_COMPLEMENTARY = "foo|bar"

  PACKAGE_EXCLUDE_COMPLEMENTARY = "foo bar"

  PACKAGE_EXCLUDE_COMPLEMENTARY = "foo"
  PACKAGE_EXCLUDE_COMPLEMENTARY += "bar"

(From OE-Core rev: a5f7e98a94e96d40b1276c85249619aa8d7be847)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage_manager.py: Allow a leading - in PACKAGE_EXCLUDE_COMPLEMENTARY
Peter Kjellerstedt [Wed, 5 Oct 2016 15:30:45 +0000 (17:30 +0200)] 
package_manager.py: Allow a leading - in PACKAGE_EXCLUDE_COMPLEMENTARY

This allows a regular expression specified in
PACKAGE_EXCLUDE_COMPLEMENTARY to have a leading dash. Without this,
the dash was treated by oe-pkgdata-util as the beginning of a command
line argument. E.g., if PACKAGE_EXCLUDE_COMPLEMENTARY = "-foo$", it
resulted in an error like:

  ERROR: <imagename>-1.0-r0 do_populate_sdk: Could not compute
  complementary packages list. Command '<topdir>/scripts/oe-pkgdata-util -p
  <builddir>/tmp/sysroots/<machine>/pkgdata glob
  <workdir>/installed_pkgs.txt *-dev *-dbg -x -foo$' returned 2:
  ERROR: argument -x/--exclude: expected one argument
  usage: oe-pkgdata-util glob [-h] [-x EXCLUDE] pkglistfile glob [glob ...]

(From OE-Core rev: ac4ca41d3a27356d46c0c39053e74d3519b24c44)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.buildperf: measure apparent size instead of real disk usage
Markus Lehtonen [Wed, 5 Oct 2016 13:29:49 +0000 (16:29 +0300)] 
oeqa.buildperf: measure apparent size instead of real disk usage

This change aligns disk usage measurements of the eSDK test with the old
build-perf-test.sh script. And thus, also makes the results between the
old and the new script comparable.

(From OE-Core rev: dadb84936b3672dcf07e5ab8226158136762801f)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: add Font Awesome license
bavery [Mon, 3 Oct 2016 23:56:26 +0000 (16:56 -0700)] 
bitbake: toaster: add Font Awesome license

Font Awesome fonts are bundled with the Toaster UI and are released
under the SIL Open Font License 1.1.  This patch adds that information
to the LICENSE file.

(Bitbake rev: f8f387de57b46c848e6521a5f6b08742403d4797)

Signed-off-by: bavery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: bb.build: in _exec_task, catch errors from TaskStarted
Christopher Larson [Tue, 4 Oct 2016 16:11:23 +0000 (09:11 -0700)] 
bitbake: bb.build: in _exec_task, catch errors from TaskStarted

We don't always want a traceback when an exception is raised by the
TaskStarted event handler. Silently return if we get a SystemExit or
HandledException, and print the error and return for FuncFailed.

This is done via a separate try/catch block, to avoid firing TaskFailed if all
the TaskStarted event handlers didn't complete, otherwise the bitbake UIs get
unhappy.

(Bitbake rev: ca5b788280ad4303cc08a376e847cbbeda31970c)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: event: prevent unclosed file warning in print_ui_queue
Joshua Lock [Tue, 4 Oct 2016 10:03:55 +0000 (11:03 +0100)] 
bitbake: event: prevent unclosed file warning in print_ui_queue

Use logger.addHandler(), rather than assigning an array of Handlers
to the loggers handlers property directly, to avoid a warning from
Python 3 about unclosed files:

$ bitbake
Nothing to do.  Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.
WARNING: /home/joshuagl/Projects/poky/bitbake/lib/bb/event.py:143: ResourceWarning: unclosed file <_io.TextIOWrapper name='/home/joshuagl/Projects/poky/build/tmp/log/cooker/qemux86/20161004094928.log' mode='a' encoding='UTF-8'>
  logger.handlers = [stdout]

(Bitbake rev: 1e23b1f1a80066223b98e18b163840051ac74944)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogtk+3: Backport treeview focus fix
Jussi Kukkonen [Tue, 4 Oct 2016 13:16:42 +0000 (16:16 +0300)] 
gtk+3: Backport treeview focus fix

Treeview did not grab focus properly on mouse click, leading to e.g.
multifile selection with click/shift-click not working in the
filechooser. Backport a fix.

Fixes [YOCTO #10273].

(From OE-Core rev: d408b79dba47e4392a9d13aff1660a1e483a765c)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.8: fix BUG_ON() in workingset_node_shadows_dec() triggers
Bruce Ashfield [Wed, 5 Oct 2016 03:03:48 +0000 (23:03 -0400)] 
linux-yocto/4.8: fix BUG_ON() in workingset_node_shadows_dec() triggers

Paul Gotmaker pointed out that a last minute merge to the 4.8 kernel
has the potential to hard hang a kernel when VM debugging is enabled:

  https://lkml.org/lkml/2016/10/4/1

He also pointed out the fix for it in commit 21f54dda
[Using BUG_ON() as an assert() is _never_ acceptable].

While that fix will loop through -stable into 4.8.1, that will
likely be too late for our release. So I've cherry picked the
change to make it available.

(From OE-Core rev: eb4b39d5ffbe93d363b05c57196bdac61fa09c59)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopigz: Update SRC_URI
Richard Purdie [Wed, 5 Oct 2016 07:55:11 +0000 (08:55 +0100)] 
pigz: Update SRC_URI

Upstream have released a new tarball and removed the old one. Revert to
the Yocto Project source mirror instead, preserving the upstream version
check.

(From OE-Core rev: 839b17ffd96abff3e9cf47fb4a6d680637c865b1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoperf: Fix to obey LD failure
Sujith Haridasan [Wed, 5 Oct 2016 05:58:39 +0000 (11:28 +0530)] 
perf: Fix to obey LD failure

This patch brings the last bit from meta-mentor for the perf
to build successfully with minnowmax BSP. The meta-mentor
commit for the same is:
http://git.yoctoproject.org/cgit/cgit.cgi/meta-mentor/commit/meta-mentor-staging?id=a8db95c0d4081cf96915e0c3c4063a44f55e21cc

The previous fix:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/recipes-kernel/perf?id=ef942d6025e1a339642b10ec1e29055f4ee6bd46
was incomplete and was not submitted upstream. And due to that this change is required.

When built on minnowmax ( machine name: intel-corei7-64),
an error is noticed during the do_compile:

 /home/sujith/codebench-linux-install-2015.12-133-i686-pc-linux-gnu/codebench/bin/i686-pc-linux-gnu-ld:
Relocatable linking with relocations from format elf64-x86-64
(/home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/fd/array.o)
to format elf32-i386 (/home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/fd/libapi-in.o)
is not supported

This change help fix the issue.

(From OE-Core rev: 122ae03e2f1a2252a6914d51087531557f9a08f2)

Signed-off-by: Sujith Haridasan <Sujith_Haridasan@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoyocto-bsp: linux-yocto recipes update (4.4 to 4.8) for x86-64 arch
Leonardo Sandoval [Tue, 4 Oct 2016 21:53:41 +0000 (16:53 -0500)] 
yocto-bsp: linux-yocto recipes update (4.4 to 4.8) for x86-64 arch

[YOCTO #10301]

(From meta-yocto rev: 088662bd13fa7366cb471be4be746aa195defa3f)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoyocto-bsp: linux-yocto recipes update (4.4 to 4.8) for PowerPC arch
Leonardo Sandoval [Tue, 4 Oct 2016 21:53:40 +0000 (16:53 -0500)] 
yocto-bsp: linux-yocto recipes update (4.4 to 4.8) for PowerPC arch

[YOCTO #10301]

(From meta-yocto rev: f9d795172ae18489eaf40af7d32f8402299b805c)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoyocto-bsp: linux-yocto recipes update (4.4 to 4.8) for qemu arch
Leonardo Sandoval [Tue, 4 Oct 2016 21:53:34 +0000 (16:53 -0500)] 
yocto-bsp: linux-yocto recipes update (4.4 to 4.8) for qemu arch

[YOCTO #10301]

(From meta-yocto rev: b0e3518ffae3e72d7aad20860b3da79b70d74383)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoyocto-bsp: linux-yocto recipes update (4.4 to 4.8) for i386 arch
Leonardo Sandoval [Tue, 4 Oct 2016 21:53:37 +0000 (16:53 -0500)] 
yocto-bsp: linux-yocto recipes update (4.4 to 4.8) for i386 arch

[YOCTO #10301]

(From meta-yocto rev: 0b58b90844c2898c604e7310c3fa5577044c0f08)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoyocto-bsp: linux-yocto recipes update (4.4 to 4.8) for MIPS64 arch
Leonardo Sandoval [Tue, 4 Oct 2016 21:53:39 +0000 (16:53 -0500)] 
yocto-bsp: linux-yocto recipes update (4.4 to 4.8) for MIPS64 arch

[YOCTO #10301]

(From meta-yocto rev: 586ff58a6a803539fd1cf6709dbcedf3ec88924e)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomachine.conf: Remove duplicate xserver choices
Leonardo Sandoval [Tue, 4 Oct 2016 21:53:36 +0000 (16:53 -0500)] 
machine.conf: Remove duplicate xserver choices

All kernel choices today (linux-yocto_4.* and custom) have the same xserver options,
so remove the duplicate lines.

(From meta-yocto rev: c456b5cf172e5ee1fca078383cad189325ea05f5)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoyocto-bsp: linux-yocto recipes update (4.4 to 4.8) for MIPS arch
Leonardo Sandoval [Tue, 4 Oct 2016 21:53:38 +0000 (16:53 -0500)] 
yocto-bsp: linux-yocto recipes update (4.4 to 4.8) for MIPS arch

[YOCTO #10301]

(From meta-yocto rev: 01e16ff4d1df17daed184279868e151cbf35a1a8)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoyocto-bsp: linux-yocto recipes update (4.4 to 4.8) for arm arch
Leonardo Sandoval [Tue, 4 Oct 2016 21:53:35 +0000 (16:53 -0500)] 
yocto-bsp: linux-yocto recipes update (4.4 to 4.8) for arm arch

[YOCTO #10301]

(From meta-yocto rev: ad6e937db32721cfec8d4d85818d028878c5bc23)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: bitbake: Update version to 1.31.2
Richard Purdie [Wed, 5 Oct 2016 09:08:59 +0000 (10:08 +0100)] 
bitbake: bitbake: Update version to 1.31.2

(Bitbake rev: 100a0aef3d121d950d89c4152f56957628f2f933)

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