]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
8 years agolinux-yocto/4.1: fix CVE-2016-5195 (dirtycow)
Bruce Ashfield [Sat, 22 Oct 2016 03:47:37 +0000 (23:47 -0400)] 
linux-yocto/4.1: fix CVE-2016-5195 (dirtycow)

Backporting commit 19be0eaffa [mm: remove gup_flags FOLL_WRITE games
from __get_user_pages()] to address the dirtycow exploit.

(From OE-Core rev: 8470ea4cfd5fca4c9573e39c7c3486aeb310990a)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.4: update to v4.4.26
Bruce Ashfield [Sat, 22 Oct 2016 03:47:36 +0000 (23:47 -0400)] 
linux-yocto/4.4: update to v4.4.26

Integrating the 4.4.23->26 -stable releases. Among other fixes
this contains commit:

  mm: remove gup_flags FOLL_WRITE games from __get_user_pages()

Which addresses CVE-2016-5195.

(From OE-Core rev: e2472c1a66ef62f6904cc9b635b275e7da32e51a)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokern-tools: make patches with shell-unsafe characters valid
Bruce Ashfield [Wed, 19 Oct 2016 01:08:18 +0000 (21:08 -0400)] 
kern-tools: make patches with shell-unsafe characters valid

If a patch contains characters like ; or (), it can cause processing
errors in the patch queue.

We had previously fixed this issue by renaming the patches to not
include invalid characters, but with this change to the kern tools
that ensures patch names are wrapped in quotes, we avoid shell
processing and hence they are valid.

(From OE-Core rev: 727afe9e6fb9ef4a24a36cc907ebb6336d12184e)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.4/4.8: kernel config warning cleanups
Bruce Ashfield [Wed, 19 Oct 2016 01:08:17 +0000 (21:08 -0400)] 
linux-yocto/4.4/4.8: kernel config warning cleanups

Merging the following patches into 4.4 and 4.8 to remove kernel
configuration warnings:

  bbaf01752b01 meta-yocto-bsp: beaglebone: remove the stale kernel options
  552a83790b17 features: Fix configcheck warnings in features used by intel-quark BSPs
  c33d9c2c575f features: Fix configcheck warnings in features used by intel-core* BSPs

(From OE-Core rev: ac9842bc3a17f15c3807aa06e4469c030346420e)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolocal.conf.sample.extended: remove RM_OLD_IMAGE
Joshua Lock [Wed, 12 Oct 2016 20:46:42 +0000 (21:46 +0100)] 
local.conf.sample.extended: remove RM_OLD_IMAGE

RM_OLD_IMAGE has been removed so don't include this variable in
sample local.conf

(From meta-yocto rev: 0a881d01ab2b0a3f721323447b4c970ab3fd4755)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: Removed RM_OLD_IMAGE variable description.
Scott Rifenbark [Fri, 14 Oct 2016 18:49:21 +0000 (11:49 -0700)] 
ref-manual: Removed RM_OLD_IMAGE variable description.

This variable is now redundant due to the way these image
files are staged now.  The variable does not need to be
in the glossary.  Removing the images is now the default
behavior.

Author: Joshua Lock <joshua.g.lock@intel.com>

(From yocto-docs rev: 049c371b44d3ef68def4ead7d1db8bf982d23c57)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: Added more to migration 2.2 runqemu ported to python.
Scott Rifenbark [Fri, 14 Oct 2016 16:25:07 +0000 (09:25 -0700)] 
ref-manual: Added more to migration 2.2 runqemu ported to python.

Provided more detail on what the user can do with configuration files
to use the changed runqemu.

(From yocto-docs rev: 5dee8ceca290fdc8f3b41e0eba6565494190ce4f)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: Updated the 2.2 Migration section with review changes.
Scott Rifenbark [Fri, 14 Oct 2016 15:23:11 +0000 (08:23 -0700)] 
ref-manual: Updated the 2.2 Migration section with review changes.

(From yocto-docs rev: 4af78f942bedb55e46280bc0fc878f174e15b479)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: Added links for migration BitBake change.
Scott Rifenbark [Fri, 14 Oct 2016 02:06:34 +0000 (19:06 -0700)] 
ref-manual: Added links for migration BitBake change.

I did not put in the links for a couple commits for some of the
2.2 bitbake changes.  Put in the links.

(From yocto-docs rev: a806463a07ab07ce9da23d6bb73cb981b85b668e)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: Fixed missing title for migration section.
Scott Rifenbark [Thu, 13 Oct 2016 23:29:06 +0000 (16:29 -0700)] 
ref-manual: Fixed missing title for migration section.

(From yocto-docs rev: 81645a11c4e27daa30891265e9a1ea2c3c2682cc)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: Added the 2.2 Migration guide section.
Scott Rifenbark [Thu, 13 Oct 2016 23:19:19 +0000 (16:19 -0700)] 
ref-manual: Added the 2.2 Migration guide section.

(From yocto-docs rev: 668e32419ba59d975a196967e620c384009426a4)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: Added note to RM_OLD_IMAGE indicating redundancy
Scott Rifenbark [Thu, 13 Oct 2016 22:05:57 +0000 (15:05 -0700)] 
ref-manual: Added note to RM_OLD_IMAGE indicating redundancy

The way these old image files are staged now makes removing them
the default behavior.  Thus, this variable has become redundant.
I added a note indicating such.

(From yocto-docs rev: e1db620fdf741b46e54cf1a3715597f81a811818)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: Changed BB_SETSCENE_VERIFY_FUNCTION name
Scott Rifenbark [Thu, 13 Oct 2016 22:03:47 +0000 (15:03 -0700)] 
ref-manual: Changed BB_SETSCENE_VERIFY_FUNCTION name

The BB_SETSCENE_VERIFY_FUNCTION variable has effectively changed
names to be BB_SETSCENE_VERIFY_FUNCTION2.  I made the one instance
of it correct here.

(From yocto-docs rev: c2864dace370d7a43234f4728b33f25082e628e3)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Sat, 15 Oct 2016 12:22:16 +0000 (13:22 +0100)] 
build-appliance-image: Update to master head revision

(From OE-Core rev: 327e4bf5a84d5b49ccc65927df622c9ef6302d55)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: Update default release to Morty
brian avery [Fri, 14 Oct 2016 15:28:01 +0000 (16:28 +0100)] 
bitbake: toaster: Update default release to Morty

Set Morty to be the default release in toaster for the Morty release
when creating new projects.

(Bitbake rev: 00f79096f639ce3a9c0b7c72cfb36f14e264733d)

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: Update poky fixture for Morty release
brian avery [Fri, 14 Oct 2016 15:28:00 +0000 (16:28 +0100)] 
bitbake: toaster: Update poky fixture for Morty release

Update the poky fixture to the Morty release.  This removes the
master branch from the release and limits it to the morty branch.
Normally, we would also support at least one past branch but the change
from Python 2.7 -> Python 3 makes that infeasible.

(Bitbake rev: 2674ca33b900f4f3f16be504d7c67d0fc69c1c2d)

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: Update oe-core fixture for Morty release
brian avery [Fri, 14 Oct 2016 15:27:59 +0000 (16:27 +0100)] 
bitbake: toaster: Update oe-core fixture for Morty release

Update the oe-core fixture to the Morty release.  This removes the
master branch from the release and limits it to the morty branch.
Normally, we would also support at least one past branch but the change
from Python 2.7 -> Python 3 makes that infeasible.

(Bitbake rev: 93f1e6c3d022b1f12a230879160efa941cb1e250)

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto: Update genericx86* SRCREVs for linux-yocto 4.4 Upgrades to Linux 4.4.22
Alejandro Hernandez [Fri, 14 Oct 2016 16:20:56 +0000 (16:20 +0000)] 
linux-yocto: Update genericx86* SRCREVs for linux-yocto 4.4 Upgrades to Linux 4.4.22

(From meta-yocto rev: 231154919669d30f1f82d4fc9e3fbd47408e6ec5)

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 agolinux-yocto: Update genericx86* SRCREVs for linux-yocto 4.1 Upgrades to Linux 4.1.33
Alejandro Hernandez [Fri, 14 Oct 2016 16:20:55 +0000 (16:20 +0000)] 
linux-yocto: Update genericx86* SRCREVs for linux-yocto 4.1 Upgrades to Linux 4.1.33

(From meta-yocto rev: 6d0a183706cfe89367d4d1eeb11472411e3d2341)

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 agoREADME.hardware: update Edgerouter section
Ed Bartosh [Fri, 14 Oct 2016 08:19:51 +0000 (11:19 +0300)] 
README.hardware: update Edgerouter section

Updated image creation instructions. Used wic images instead
of manually putting rootfs and kernel to SD card.

[YOCTO #8719]

(From meta-yocto rev: 2b030a6061a33334bec63fce23447cbbe1846c86)

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 agoedgerouter.conf: produce wic images for Edgerouter
Ed Bartosh [Fri, 14 Oct 2016 08:04:43 +0000 (11:04 +0300)] 
edgerouter.conf: produce wic images for Edgerouter

Added wic images to the list of default image types for Edgerouter
machine. Added required wic dependencies.

[YOCTO #8719]

(From meta-yocto rev: 7abb3ec529bd7754fc15ecf30e078d90d8014569)

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 agopoky-tiny.conf: set QB_DEFAULT_FSTYPE to IMAGE_FSTYPES
Robert Yang [Wed, 12 Oct 2016 08:47:22 +0000 (01:47 -0700)] 
poky-tiny.conf: set QB_DEFAULT_FSTYPE to IMAGE_FSTYPES

Its IMAGE_FSTYPES is cpio.gz, not the default ext4 which is set in
qemuboot.bbclass. Now we can boot it by:
$ runqemu tmp/deploy/images/qemux86/ nographic

[YOCTO #7477]

(From meta-yocto rev: 4c9792bbc8ac09417787838609aa5d466e3d0c77)

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 agoREADME.hardware: update Beaglebone section
Ed Bartosh [Wed, 12 Oct 2016 10:36:12 +0000 (13:36 +0300)] 
README.hardware: update Beaglebone section

Updated image creation instructions. Used wic images instead
of manually partitioning SD card.

[YOCTO #8719]

(From meta-yocto rev: aaa23941f228f08573b0e4901e8bf3fd5f1c97e3)

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 agobitbake: bb.event: fix infinite loop on print_ui_queue
Aníbal Limón [Fri, 14 Oct 2016 15:48:39 +0000 (10:48 -0500)] 
bitbake: bb.event: fix infinite loop on print_ui_queue

If bitbake ends before _uiready and bb.event.LogHandler was add
to the bitbake logger it causes an infinite loop when logging
something.

The scenario is print_ui_queue is called at exit and executes
the log handlers [2] one of them is bb.event.LogHandler this handler
appends the same entry to ui_queue causing the inifine loop [3].

In order to fix a new copy of the ui_queue list is created when iterate
ui_queue.

[YOCTO #10399]

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=10399#c0
[2] http://git.openembedded.org/bitbake/tree/lib/bb/event.py?id=41d9cd41d40b04746c82b4a940dca47df02514fc#n156
[3]
http://git.openembedded.org/bitbake/tree/lib/bb/event.py?id=41d9cd41d40b04746c82b4a940dca47df02514fc#n164

(Bitbake rev: 46fecca9d531a07788b5cac8b2dc6a8267d8b6d0)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobinutils: Fix gas error with cfi_section inconsistencies
Khem Raj [Fri, 14 Oct 2016 12:04:07 +0000 (05:04 -0700)] 
binutils: Fix gas error with cfi_section inconsistencies

This error is visible when using clang but not when using gcc
this has been reported and fixed upstream.

llvm bug https://llvm.org/bugs/show_bug.cgi?id=29017
binutils bug https://sourceware.org/bugzilla/show_bug.cgi?id=20648

(From OE-Core rev: e5a81575f11dc2a0ec9ee4184514750d2dbd09aa)

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 agolibxml2: Make tests non-executable
Jussi Kukkonen [Fri, 14 Oct 2016 18:38:40 +0000 (21:38 +0300)] 
libxml2: Make tests non-executable

The XML W3C conformance test suite contains thousands of xml files all
marked executable. We dutifully try to strip all these files of debug
info in do_package.

"chmod -x" improves build time by ~40 seconds.

(From OE-Core rev: eb9cdf6b9277d23d1696233fccc4689e6030644c)

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 agobind: fix two CVEs
Zheng Ruoqin [Fri, 14 Oct 2016 14:11:04 +0000 (10:11 -0400)] 
bind: fix two CVEs

Add two CVE patches from upstream
git: https://www.isc.org/git/

1.CVE-2016-2775.patch
2.CVE-2016-2776.patch

(From OE-Core rev: 5f4588d675e400f13bb6001df04790c867a95230)

Signed-off-by: zhengruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorpm: prevent race in tempdir creation
Markus Lehtonen [Fri, 14 Oct 2016 10:41:26 +0000 (13:41 +0300)] 
rpm: prevent race in tempdir creation

This patch fixes an extramely rare race condition in creation of rpmdb
temporary directory. The "rpmdb-more-verbose-error-logging" patch is
still left in place, just for the case.

[YOCTO #9416]

(From OE-Core rev: 84de3283fa2a2908d367eb58953903ae685b0298)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoinsane.bbclass: fix package_qa_check_arch() for mips64-o32
Robert Yang [Fri, 14 Oct 2016 10:08:37 +0000 (03:08 -0700)] 
insane.bbclass: fix package_qa_check_arch() for mips64-o32

Fixed:
MACHINE = "qemumips64"
DEFAULTTUNE = "mips64-o32"

$ bitbake linux-yocto
ERROR: linux-yocto-4.8+gitAUTOINC+03bf3dd731_674818dad5-r0 do_package_qa: QA Issue: Bit size did not match (32 to 64) linux-yocto on
    /work/qemumips64-poky-linux/linux-yocto/4.8+gitAUTOINC+03bf3dd731_674818dad5-r0/packages-split/kernel-module-parport/lib/modules/4.8.0-yocto-standard/kernel/drivers/parport/parport.ko [arch]

The mips64-n32 works since it would set ABIEXTENSION to "n32" so that
TARGET_OS is linux-gnun32, and it will skip the check, but "mips64-o32"
doesn't set ABIEXTENSION to "o32", "n32" or "32", so the error happend.

Skip the check if mips64.*32 matches DEFAULTTUNE can fix the problem.
Another way to fix the problem is define ABIEXTENSION to "o32" or "32"
for mips64-o32, but that may make things confused since "o32" is purely
32 bit.

[YOCTO #10305]

(From OE-Core rev: 4e61d8d6f4619dbfaeb5ca642449de7cf4b3e92d)

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 agoarch-mips.inc: remove duplicates from PACKAGE_ARCHS
Robert Yang [Fri, 14 Oct 2016 10:08:36 +0000 (03:08 -0700)] 
arch-mips.inc: remove duplicates from PACKAGE_ARCHS

Fixed:
MACHINE = "qemumips64"
DEFAULTTUNE = "mips64-o32"

$ bitbake linux-yocto
ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Error, the PACKAGE_ARCHS variable contains duplicates. The following archs are listed more than once: mips64-o32

(From OE-Core rev: e57d70e6803c63823ae3a7c7971fc06db3748b68)

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 agoppp: fix building with linux-4.8
Jackie Huang [Fri, 14 Oct 2016 00:50:11 +0000 (08:50 +0800)] 
ppp: fix building with linux-4.8

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

In file included from pppoe.h:87:0,
                 from plugin.c:29:
../usr/include/netinet/in.h:211:8: note: originally defined here
 struct in6_addr
        ^~~~~~~~
In file included from ../usr/include/linux/if_pppol2tp.h:20:0,
                 from ../usr/include/linux/if_pppox.h:26,
                 from plugin.c:52:
../usr/include/linux/in6.h:49:8: error: redefinition of 'struct sockaddr_in6'
 struct sockaddr_in6 {
        ^~~~~~~~~~~~

(From OE-Core rev: 68e917aa778742da104c038a6e1ffa789fe95410)

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoRevert "linux-libc-headers: fix in/if.h includes"
Jackie Huang [Fri, 14 Oct 2016 00:50:10 +0000 (08:50 +0800)] 
Revert "linux-libc-headers: fix in/if.h includes"

This issue is fixed in the ppp recipe.

This reverts commit 7c6b78ac8e2b176f77178c3dd12d8455be10845d.

(From OE-Core rev: efc92a63d40b909864505d3d6d22ce74cd6a847b)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_sdk_ext: explicitly set DL_DIR
Ross Burton [Fri, 14 Oct 2016 12:57:51 +0000 (13:57 +0100)] 
populate_sdk_ext: explicitly set DL_DIR

The eSDK generation assumes that DL_DIR is downloads/ under the build directory,
and puts files such as a freshly buily uninative tarball in there expecting
bitbake will find it later.

Whilst ${TOPDIR}/downloads/ is in fact the default value for DL_DIR in
bitbake.conf, and any instances of DL_DIR are removed from the original
local.conf, there is still the possibility that other layers could contain a
site.conf that assigns DL_DIR.

If this happens the errors are quite mysterious as it fails to find the
uninative tarball and so the hashes all change, and eSDK building fails.

Ensure that this cannot happen by explicitly assigning the DL_DIR that we
require, instead of assuming that the default value will be used.

[ YOCTO #10439 ]

(From OE-Core rev: bc2e6f5eab47e869dbc4a3eacfe759b9b1cacaee)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosqlite3: Revert ad601c7962 from 3.14.1 amalgamation package
Jianxun Zhang [Thu, 13 Oct 2016 20:16:34 +0000 (13:16 -0700)] 
sqlite3: Revert ad601c7962 from 3.14.1 amalgamation package

It turns out this change between 3.12.2 and 3.13 introduces
a 2% increase of build time based on statistic data in
bz10367.

The added patch is forged by diffing the new sqlite3.c
generated from reverting the change in raw source of sqlite3
project, and then manually migrate the delta to a sqlite3.c
from the 3.14.1 tarball package because what recipes reference
is actually a generated C code (amalgamation) release package
and we cannot apply the real change to 3.14.1 cleanly due to
so many changes happened.

Fixes [YOCTO #10367]

(From OE-Core rev: dda0c80019b181a5e323a82d346f86c6fffb6756)

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 agolinux-yocto.inc: ensure do_kernel_link_images runs before do_strip
Andre McCurdy [Thu, 13 Oct 2016 18:49:33 +0000 (11:49 -0700)] 
linux-yocto.inc: ensure do_kernel_link_images runs before do_strip

If the do_kernel_link_images task is enabled, then it needs to run
before do_strip. The addtask statement for do_strip makes that
explicit. For consistency, make it explicit in the addtask statement
for do_kernel_link_images too.

(From OE-Core rev: 1296cc0538efe64d666868fd28c5b195ec9c08ff)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobinutils: fix for MIPS "Can't find matching LO16 reloc" errors
Andre McCurdy [Thu, 13 Oct 2016 00:16:30 +0000 (17:16 -0700)] 
binutils: fix for MIPS "Can't find matching LO16 reloc" errors

Patch taken from Binutils Bugzilla:

  https://sourceware.org/bugzilla/show_bug.cgi?id=20649

(From OE-Core rev: a31eff6894099ee1d0ce7ccf2972f7276ca12743)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibgpg-error: Make case generic for MIPS
Zubair Lutfullah Kakakhel [Wed, 12 Oct 2016 12:55:02 +0000 (13:55 +0100)] 
libgpg-error: Make case generic for MIPS

The tuples for MIPS r6 onwards are
- mipsisa32r6el
- mipsisa32r6
- mipsisa64r6el
- mipsisa64r6

The default case passes it forward which isn't handled well and
causes a build error. Rework the case statement to make it generic.

(From OE-Core rev: 49dc626182694d4dd92ed921a8fa2d9cd9f49635)

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolive-vm-common.bbclass: Allow to use different kernel image than KERNEL_IMAGETYPE...
Martin Jansa [Wed, 12 Oct 2016 12:06:12 +0000 (14:06 +0200)] 
live-vm-common.bbclass: Allow to use different kernel image than KERNEL_IMAGETYPE for /vmlinuz

* syslinux config hardcodes kernel image as /vmlinuz add warning message
  when the selected image doesn't exist and allow to select different image
  with VM_DEFAULT_KERNEL variable (qemuboot.bbclass is using QB_DEFAULT_KERNEL)

(From OE-Core rev: e6b21d1b3716ee6f4aec1674e56f06b2963a7968)

Signed-off-by: Martin Jansa <Martin.Jansa@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: add dependency do_image_wic -> do_bootimg
Ed Bartosh [Wed, 12 Oct 2016 11:47:16 +0000 (14:47 +0300)] 
image_types.bbclass: add dependency do_image_wic -> do_bootimg

To produce certain types of images wic uses do_bootimg results
to assemble final image. For example, it copies BOOT/EFI directory
produced by do_bootimg to boot partition for every EFI image.

The tricky part of this is that do_bootimg task is not always run,
so we can't always make do_image_wic depend on do_bootimg. We only
need to do it if do_bootimg present in task graph.

Thank to Cristopher Larson for this fix.

(From OE-Core rev: 1a961b4becf677c9eb07c5b24a8ddb75044663d1)

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 agolibxcb: use python3 to build it
Robert Yang [Tue, 11 Oct 2016 10:16:40 +0000 (03:16 -0700)] 
libxcb: use python3 to build it

Backport Fix-inconsistent-use-of-tabs-vs.-space.patch to make it can be
built by python3.

(From OE-Core rev: c488656825accf4543754cb712256a775d5a92e7)

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 agoxcb-proto: fix for python3
Robert Yang [Wed, 12 Oct 2016 02:48:12 +0000 (19:48 -0700)] 
xcb-proto: fix for python3

Backport two patches to make it py3 friendly.

(From OE-Core rev: 647ff3bed1823b53a41a5c2640ffc5f4d50d1e11)

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 agoxcb-proto: create .pyc files for python2
Robert Yang [Thu, 22 Sep 2016 09:36:55 +0000 (02:36 -0700)] 
xcb-proto: create .pyc files for python2

Its Makefile's do_install creates .pyc files for python3, now also
create them for python2 so that they will be recorded by manifest, and
can be cleaned correctly.

(From OE-Core rev: 3007f8b365270c35fdb1829d83affd98d8d5475a)

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 agopackage_tar: avoid chdir warnings and restore cwd after packaging
Robert Yang [Wed, 12 Oct 2016 09:19:05 +0000 (02:19 -0700)] 
package_tar: avoid chdir warnings and restore cwd after packaging

Fixed:
WARNING: attr-2.4.47-r0 do_package_write_tar: Task do_package_tar changed cwd to /path/to/attr/2.4.47-r0/packages-split/attr-locale-sv

(From OE-Core rev: 3753d07c9ff33b9a97aca61ad312b0e283c4c68d)

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 agosource-highlight: use with-boost-libdir
Robert Yang [Wed, 12 Oct 2016 06:31:29 +0000 (23:31 -0700)] 
source-highlight: use with-boost-libdir

Without with-boost-libdir, it checks lib64 libx32 lib lib64 in
sysroot/usr/ and set it as boost lib path if it exist, this is
unreliable when build with multilib.

Fixed when switch baselib from lib64 to lib, for example, when we build
qemux86-64 + multilib setting, the baselib is lib64, and when disable
multilib, it would be lib, then we may see the error when
do_configure since lib64 may exist during build source-highlight:

configure: error: Could not find a version of the Boost::Regex library!

Steps to reproduce:
MACHINE = "qemux86-64"
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"

$ bitbake world

Then:
MACHINE = "qemux86-64"
$ bitbake source-highlight

(From OE-Core rev: 98f521fff9bbeb1f7f40a009620884ec664992d7)

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 agoinsane.bbclass: Additional "mips" and "mipsel" machine definitions
Juro Bystricky [Tue, 11 Oct 2016 16:56:24 +0000 (09:56 -0700)] 
insane.bbclass: Additional "mips" and "mipsel" machine definitions

Add "mips" and "mipsel" to "machdata" table.
Although there is a way to add entries to the "machdata" table
from a BSP without modifying the insane.bbclass directly, MIPS is
already supported in poky and as such the relevant entries should be
present in insane.bbclass.

(From OE-Core rev: 3ba03d1affa6f647e9a03c8ba4389606a0da8e8b)

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 agokernel-arch.bbclass: Add xtensa and arc into valid_archs table
Juro Bystricky [Tue, 11 Oct 2016 16:31:32 +0000 (09:31 -0700)] 
kernel-arch.bbclass: Add xtensa and arc into valid_archs table

Both "arc" and "xtensa" are valid Linux architectures, add
them into valid_archs table.

(From OE-Core rev: 20d511cd1b7fe4891f7842be12f13a92da433c46)

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 agolibxrender: remove spurious build dependency
Ross Burton [Tue, 11 Oct 2016 15:10:37 +0000 (16:10 +0100)] 
libxrender: remove spurious build dependency

(From OE-Core rev: 225c6657938b2bb6ef14a8493a4f9623ce745f4b)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibxext: remove spurious dependencies
Ross Burton [Tue, 11 Oct 2016 15:06:41 +0000 (16:06 +0100)] 
libxext: remove spurious dependencies

(From OE-Core rev: 93b91ae84a8c4b479da2f6fdf1f45db7da730a20)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibxext: remove stale git recipe
Ross Burton [Tue, 11 Oct 2016 15:02:20 +0000 (16:02 +0100)] 
libxext: remove stale git recipe

(From OE-Core rev: 8af49df09496c00a4afbe01beb86938eac3489dd)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocmake: improve CMAKE_SYSTEM_PROCESSOR assignment in nativesdk
Ross Burton [Tue, 11 Oct 2016 12:30:42 +0000 (13:30 +0100)] 
cmake: improve CMAKE_SYSTEM_PROCESSOR assignment in nativesdk

The previous string manipulations would result in the wrong string being used
for machines such as intel-corei7-64 as the sysroot was split at the first
hyphen (so would result in corei7 instead of corei7-64).

Change the logic so that it looks for processor-distro-os and uses the whole of
the processor field.

(From OE-Core rev: ce24958d644f2218d5415be574a5b7e1ee8c9b2d)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocmake: also set CMAKE_FIND_ROOT_PATH_MODE_PACKAGE
Ross Burton [Mon, 10 Oct 2016 11:41:34 +0000 (12:41 +0100)] 
cmake: also set CMAKE_FIND_ROOT_PATH_MODE_PACKAGE

The other CMAKE_FIND_ROOT_PATH_MODE_* variables were already set to ONLY, but
PACKAGE was left out.  Fix this so that cmake doesn't look on the host for cmake
modules when it should only be looking in the target sysroot.

(From OE-Core rev: 2df2372a31b02eab933e4a7aa6d5f8ca48e02c04)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobase-files: fix profile error under < /dev/null
Richard Tollerton [Wed, 12 Oct 2016 01:08:15 +0000 (20:08 -0500)] 
base-files: fix profile error under < /dev/null

Previous attempts to constrain execution of `resize` to only TTYs did
not properly handle situations when `tty` would return the string "not a
tty". The symptom is "/etc/profile: line 34: test: too many arguments".
Fix this by utilizing the exit code of `tty`. Also use `case` instead of
`cut` to eliminate a subshell.

(From OE-Core rev: e67637e4472ff3a1e2801b84ee3d69d4e14b9efc)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agox86-base: Update version to 4.8
Saul Wold [Wed, 12 Oct 2016 17:06:51 +0000 (10:06 -0700)] 
x86-base: Update version to 4.8

This update will avoid confusion with other parts of OE-Core that
set the kernel version to 4.8 for qemux86* and genericx86*.

(From OE-Core rev: 7f8c36d8aa00da109e842c790c6a0ab7a849de72)

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 agopixbufcache: handle gdk-pixbuf not being present
Ross Burton [Thu, 13 Oct 2016 19:36:35 +0000 (20:36 +0100)] 
pixbufcache: handle gdk-pixbuf not being present

It's possible - albeit unlikely - that gdk-pixbuf isn't present in the sysroot
when a recipe inheriting this class is and the sysroot is finalised.

One example would be if the sstate archive has librsvg but not gdk-pixbuf:
librsvg will be extracted from the sstate but gdk-pixbuf will be built to "fill
in the gap".  In this situation the setscene completion hook installed by
pixbufcache.bbclass will attempt to execute gdk-pixbuf-query-loaders, but that
binary hasn't been installed by gdk-pixbuf yet.

Also add gdk-pixbuf-native to DEPENDS in native builds to ensure that the
binaries we expect will be present, as it's possible to build loaders without
linking to GdkPixbuf.

[ YOCTO #10420 ]

(From OE-Core rev: 03cdb3366ded46cd760656e4cda0be37c1f82109)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibrsvg: remove redundant assignment
Ross Burton [Thu, 13 Oct 2016 19:36:21 +0000 (20:36 +0100)] 
librsvg: remove redundant assignment

PIXBUFCACHE_SYSROOT_DEPS was removed in oe-core b41108, so remove this
assignment to avoid confusing people reading the recipe.

(From OE-Core rev: fcfd3e76eb52353345aa9a1f7ec0f9795e607493)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoRemove RM_OLD_IMAGE, it's no longer useful
Joshua Lock [Wed, 12 Oct 2016 20:46:41 +0000 (21:46 +0100)] 
Remove RM_OLD_IMAGE, it's no longer useful

Since the move to put image deployment under sstate control in
d54339d4b1a7e884de636f6325ca60409ebd95ff old images are automatically
removed before a new image is deployed (the default behaviour of the
sstate logic).

RM_OLD_IMAGE is therefore no longer required to provide this
behaviour, remove the variable and its users.

(From OE-Core rev: 93631befe8b962bf99524746b49f4ebca336175c)

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 agobitbake: bitbake-user-manual: Changed BB_SETSCENE_VERIFY_FUNCTION name
Scott Rifenbark [Thu, 13 Oct 2016 22:00:23 +0000 (15:00 -0700)] 
bitbake: bitbake-user-manual: Changed BB_SETSCENE_VERIFY_FUNCTION name

The BB_SETSCENE_VERIFY_FUNCTION variable has effectively changed
to BB_SETSCENE_VERIFY_FUNCTION2.  I changed the three areas in the
book.  Basically a name change.

(Bitbake rev: 41d9cd41d40b04746c82b4a940dca47df02514fc)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: bitbake-user-manual: Fixes small typos for 'addtask' section
Scott Rifenbark [Tue, 11 Oct 2016 14:59:46 +0000 (07:59 -0700)] 
bitbake: bitbake-user-manual: Fixes small typos for 'addtask' section

Fixes [YOCTO #10401]

Applied some edits to various areas of the section.  These
were minor in nature.

(Bitbake rev: ec99f168fd0d6feca67f2890917ba4829933c73b)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: bitbake-user-manual: Updated the [noexec] and [nostamp] flag descriptions
Scott Rifenbark [Mon, 10 Oct 2016 19:49:06 +0000 (12:49 -0700)] 
bitbake: bitbake-user-manual: Updated the [noexec] and [nostamp] flag descriptions

Fixes [YOCTO #10401]

Added some wording to clarify that setting these flags to "1"
causes the desired action.  Also, provided a cautionary note
about tasks depending on any [nostamp] task causes the task
to always be executed and could cause unnecessary rebuild time.

(Bitbake rev: b6a4a6147b9e455cc1fec37553fb577f187a2d73)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: bitbake-user-manual: Fleshed out the "addtask" documentation
Scott Rifenbark [Mon, 10 Oct 2016 19:39:59 +0000 (12:39 -0700)] 
bitbake: bitbake-user-manual: Fleshed out the "addtask" documentation

Fixes [YOCTO #10401]

The "addtask" documentation was rewritten to tighten up the
introductory section and to flesh out the actual examples.

(Bitbake rev: c3373399c5d565de033c40a39e6f6f9399bb782e)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: bitbake-user-manual: Updated the datastore functions
Scott Rifenbark [Mon, 10 Oct 2016 18:48:03 +0000 (11:48 -0700)] 
bitbake: bitbake-user-manual: Updated the datastore functions

Fixes [YOCTO #10400]

No information existed for cases when a variable did not exist.
I added this information to each of the variables in the table.

(Bitbake rev: 466b2c30f31754a7b6a2478e359f687ec6888e0d)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodev-manual: Re-wrote the remote GDB debugging section.
Scott Rifenbark [Tue, 11 Oct 2016 16:46:28 +0000 (09:46 -0700)] 
dev-manual: Re-wrote the remote GDB debugging section.

Fixed [YOCTO #9481]

Complete re-write based on Mark Hatle's steps.  I converted
from sub-sections to an ordered list.

(From yocto-docs rev: f83bfe5d3dc012b924b6870672d7260a9c0bc3ee)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodev-manual: Applied review comments to "Packaging Externally Produced Binaries"
Scott Rifenbark [Tue, 11 Oct 2016 14:36:00 +0000 (07:36 -0700)] 
dev-manual: Applied review comments to "Packaging Externally Produced Binaries"

Fixes [YOCTO #10392]

Moved the last bullet item from the list that was about
DEPENDS to a note form above the list.  This was done because
the stuff for DEPENDS is more general.

(From yocto-docs rev: 2879d97b14322f1f9495288fc7f2298a186c5f68)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobsp-guide: Updated the yocto-bsp create selections in the example.
Scott Rifenbark [Tue, 11 Oct 2016 13:38:43 +0000 (06:38 -0700)] 
bsp-guide: Updated the yocto-bsp create selections in the example.

(From yocto-docs rev: 5cade0f14904fc6f7f2fab2816fcf2fe97ab7447)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotoaster-manual: Added video link to 2.2 Toaster Intro.
Scott Rifenbark [Tue, 11 Oct 2016 13:19:35 +0000 (06:19 -0700)] 
toaster-manual: Added video link to 2.2 Toaster Intro.

(From yocto-docs rev: 5f93674dbb26db55302471b65f2bc2fa2d78ab8b)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoyocto-project-qs: Fixed Minnow MAX build example
Scott Rifenbark [Tue, 11 Oct 2016 12:32:21 +0000 (05:32 -0700)] 
yocto-project-qs: Fixed Minnow MAX build example

Fixes [YOCTO #9667]

The actual command in the example to build the image for
Minnow MAX should be for 'core-image-base'.  I changed it to
be that.

(From yocto-docs rev: 9aca9cceee543eea278390059ccff0761758b55e)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Tue, 11 Oct 2016 22:43:20 +0000 (23:43 +0100)] 
build-appliance-image: Update to master head revision

(From OE-Core rev: 1a2311c8fa9a3703568cd390c44639fe3335023e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: runqueue.py: Remove redundant whitelist checks
Randy Witt [Tue, 11 Oct 2016 22:36:19 +0000 (15:36 -0700)] 
bitbake: runqueue.py: Remove redundant whitelist checks

The whitelist checks for BB_SETSCENE_ENFORCE were running for every call
to execute(). Since the task list doesn't change for each call into
execute, the checks only need to be ran once.

[YOCTO #10369]

(Bitbake rev: f65e631ab6705dfd9188f19ee423eca33bca7d7d)

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/externalsrc: re-run do_configure when configure files change
Paul Eggleton [Tue, 11 Oct 2016 21:33:47 +0000 (10:33 +1300)] 
classes/externalsrc: re-run do_configure when configure files change

If the user modifies files such as CMakeLists.txt in the case of cmake,
we want do_configure to re-run so that those changes can take effect. In
order to accomplish that, have a variable CONFIGURE_FILES which
specifies a list of files that will be put into do_configure's checksum
(either full paths, or just filenames which will be searched for in the
entire source tree). CONFIGURE_FILES then just needs to be set
appropriately depending on what do_configure is doing; for now I've set
this for autotools and cmake which are the most common cases.

Fixes [YOCTO #7617].

(From OE-Core rev: 923fc20c2862a6d75f949082c9f6532ab7e2d2cd)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopoky.conf: fix DISTRO_VERSION
Ross Burton [Tue, 11 Oct 2016 21:50:17 +0000 (22:50 +0100)] 
poky.conf: fix DISTRO_VERSION

The autobuilder can't cope with this version format, work around
the issue for now.

(From meta-yocto rev: ea1a72ed3ae0ad072d6583920bf8a94448c97f9e)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosdk-installer: Fix unclear SDK installer message
Todor Minchev [Tue, 4 Oct 2016 15:47:11 +0000 (08:47 -0700)] 
sdk-installer: Fix unclear SDK installer message

When the host and the SDK architectures are incompatible the SDK
installer outputs an incomplete error message "Error: Installation
machine not supported!". This commit adds a more verbose error
message e.g "Error: Incompatible SDK installer! Your host is i686
and this SDK was built for x86_64 hosts."

(From OE-Core rev: dc3964f1c3457cc1265d1ed0095c0c491a97b47f)

Signed-off-by: Todor Minchev <todor.minchev@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosysklogd and busybox: ignore return code from init script stop
Markus Lehtonen [Tue, 11 Oct 2016 12:43:29 +0000 (15:43 +0300)] 
sysklogd and busybox: ignore return code from init script stop

The init script will return '1' if we try to stop the service and it is
not currently running. The prerm scriptlet must not fail because of this
because it will cause package deinstallation of upgrade fail if opkg
package manager is used.

[YOCTO #10299]

(From OE-Core rev: 806a910927f479207d47b06c20a0497e91203266)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoupdate-rc.d.bbclass: ignore init script return code
Markus Lehtonen [Tue, 11 Oct 2016 12:43:28 +0000 (15:43 +0300)] 
update-rc.d.bbclass: ignore init script return code

We need to ignore the return code from the init script 'stop' command in
the preinst and prerm scriptlets. Otherwise package upgrade or
deinstallation (at least when opkg is used) is likely to fail if the
daemon is not running. That is because an init script possibly returns
'1' if you try to stop a service that is not running which, in turn,
causes the scriptlet to fail which, in turn, causes the package
(de-)installation to fail.

[YOCTO #10299]

(From OE-Core rev: daa3c266a7ffa060b52381fa00df518102fceda8)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoinsane: display names instead of ELF machine numbers
Ross Burton [Tue, 11 Oct 2016 12:19:44 +0000 (13:19 +0100)] 
insane: display names instead of ELF machine numbers

The 'arch' QA test currently simply outputs the ELF machine field as a number
which isn't helpful.  Display this as a human-readable name to make it clearer
to the user what the problem is.

(From OE-Core rev: 607a2a1de4b77818c3e801a4de7ff0888229e036)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/oe/qa: add ELF machine to string function
Ross Burton [Tue, 11 Oct 2016 12:19:43 +0000 (13:19 +0100)] 
lib/oe/qa: add ELF machine to string function

Add a function (and test suite) to turn the ELF machine field (e_machine) into a
string, so we can tell the user "x86-64" instead of 0x3E.

(From OE-Core rev: 72336003741fb16a7ecdd6b753eae56310413ff7)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Tue, 11 Oct 2016 21:16:16 +0000 (22:16 +0100)] 
build-appliance-image: Update to master head revision

(From OE-Core rev: 70b9b1f5bbc07d97f90b62793bf2c5aa01884436)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agovte: Build without vala by default
Jussi Kukkonen [Tue, 11 Oct 2016 10:58:02 +0000 (13:58 +0300)] 
vte: Build without vala by default

vala.bbclass DEPENDS on vala and vala-native: Drop the inherit so
that these dependencies can be added on-demand based on vte
PACKAGECONFIG. Add relevant items from vala class into the recipe.

Add copy of vapigen.m4 so building without vala actually succeeds.

Make building without vala the default PACKAGECONFIG.

Fixes [YOCTO #10386].

(From OE-Core rev: 516b5c407e19029c09b870d460f64b7133f742b4)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Tue, 11 Oct 2016 07:51:31 +0000 (08:51 +0100)] 
build-appliance-image: Update to master head revision

(From OE-Core rev: c33cd0b3d274d2c4253ff98f85b7ca4fced0aedb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: Updated the USERADD_ERROR_DYNAMIC and USERADDEXTENSION variables.
Peter Kjellerstedt [Mon, 10 Oct 2016 20:05:08 +0000 (13:05 -0700)] 
ref-manual: Updated the USERADD_ERROR_DYNAMIC and USERADDEXTENSION variables.

The value for USERADD_ERROR_DYNAMIC changed from "1" to "error"
to activate this variable.  Also, the value "warn" is used
to cause a warning to be issued.  I updated the variable
description to reflect this.

For the USERADDEXTENSION variable, I updated the [doc] string
to use proper quote marks.  I was not nesting these properly.

(From yocto-docs rev: f21277b3887134611fc567da05e8a590ecb0d7af)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodev-manual: Updated "Packaging Externally Produced Binaries"
Scott Rifenbark [Mon, 10 Oct 2016 18:19:12 +0000 (11:19 -0700)] 
dev-manual: Updated "Packaging Externally Produced Binaries"

Fixes [YOCTO #10392]

People often needlessly put [noexec] on tasks, making the recipes
more complicated than they need to be.  I updated the first bullet
item in this section to more clearly explain how to do this.

Also, added a new bullet item to the end to point into the DEPENDS
variable for more clarification.

(From yocto-docs rev: c61e61c1a5f9524c50bfc26335ea6c2027cafd19)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobsp-guide: Updated the yocto-bsp create output in the example.
Scott Rifenbark [Mon, 10 Oct 2016 16:36:13 +0000 (09:36 -0700)] 
bsp-guide: Updated the yocto-bsp create output in the example.

Fixes [YOCTO #10385]

The output was incorrect for the default kernel type.  In the
Krogoth branch, the output uses 4.1 and the text indicates 4.4.

In the master branch it was the same as well.  This commit fixes the
master branch to use the default 4.8 kernel in both the example output
and the text.

(From yocto-docs rev: a76d1cc91883dcd58743f2cd2626917e51419cb1)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: Added link in the SYSROOT_DIRS_NATIVE description
Scott Rifenbark [Wed, 5 Oct 2016 18:13:53 +0000 (11:13 -0700)] 
ref-manual: Added link in the SYSROOT_DIRS_NATIVE description

Fixes [YOCTO #10377]

Linkified the STAGING_DIR_NATIVE item in the the
SYSROOT_DIRS_NATIVE glossary entry.

(From yocto-docs rev: e02ecfac949b92ec32a621fccb0d1663bb7816ad)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: Review edits to do_populate_sysroot and SYSROOT_DIRS_NATIVE
Scott Rifenbark [Wed, 5 Oct 2016 18:05:47 +0000 (11:05 -0700)] 
ref-manual: Review edits to do_populate_sysroot and SYSROOT_DIRS_NATIVE

Fixes [YOCTO #10377]

Some minor wordsmithing.  Also added a new note to the
SYSROOT_DIRS_NATIVE variable.

(From yocto-docs rev: 459666b01b8d6d8212a59c877ea6c324511a5883)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: Updated three SYSROOT_DIRS* variables.
Scott Rifenbark [Wed, 5 Oct 2016 15:48:42 +0000 (08:48 -0700)] 
ref-manual: Updated three SYSROOT_DIRS* variables.

Fixes [YOCTO #10377]

Provided links back into the do_populate_sysroot task and other
key variables.  I updated the SYSROOT_DIRS, SYSROOT_DIRS_BLACKLIST,
and SYSROOT_DIRS_NATIVE variables.

(From yocto-docs rev: 23ed80e4884b00e303a15d0d191bd0dca385b064)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: Updated the do_sysroot_populate task description.
Scott Rifenbark [Wed, 5 Oct 2016 15:47:47 +0000 (08:47 -0700)] 
ref-manual: Updated the do_sysroot_populate task description.

Fixes [YOCTO #10377]

Added more detail and linked it to key variables.

(From yocto-docs rev: d82c1d4e8cc95bee718388cfeced1566ce8569a0)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: Updated QA error message.
Scott Rifenbark [Wed, 5 Oct 2016 15:15:21 +0000 (08:15 -0700)] 
ref-manual: Updated QA error message.

Added wording to the "installed-vs-shipped" error message
in the QA chapter.

(From yocto-docs rev: cc9d22fb6dd8e45ef6b53608f0ebccf29721cc3f)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: Added note about bb.fatal() raising an exception.
Scott Rifenbark [Tue, 4 Oct 2016 16:20:21 +0000 (09:20 -0700)] 
ref-manual: Added note about bb.fatal() raising an exception.

Fixes [YOCTO #10363]

Added a small note to the bullet item about bb.fatal().  Noted
that the function raises an exception so the user does not
have to put a "return" statement after the function call.

(From yocto-docs rev: c27bae87192b7e109d995679c8c91fb3388d8d4c)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodocumentation: Updated Manual revision table for 2.2
Scott Rifenbark [Tue, 4 Oct 2016 16:01:30 +0000 (09:01 -0700)] 
documentation: Updated Manual revision table for 2.2

Added string "October 2016" as the release date.

(From yocto-docs rev: db40986677746afbbb138d9cbe3885111550b7c5)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: Applied review changes to the STAGING_DIR_HOST
Scott Rifenbark [Mon, 3 Oct 2016 19:25:56 +0000 (12:25 -0700)] 
ref-manual: Applied review changes to the STAGING_DIR_HOST

I basically moved the note from the bottome to a position
within the bulleted list.

Fixes [YOCTO #10348]

(From yocto-docs rev: a55dc7e0f8465abf8398f51d90bbe2df7e639b3f)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: Added a reference to viewing task variable dependencies.
Scott Rifenbark [Mon, 3 Oct 2016 19:13:18 +0000 (12:13 -0700)] 
ref-manual: Added a reference to viewing task variable dependencies.

Put a closing reference in the "Stamp Files and the Rerunning of Tasks"
section to point the user to the area that tells them how to
view information about a task's signature.

(From yocto-docs rev: 3f395ef1999a2aff1447da4d257fd5d53124aaa7)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoyocto-project-qs: Altered MinnowBoard MAX example
Scott Rifenbark [Mon, 3 Oct 2016 18:58:29 +0000 (11:58 -0700)] 
yocto-project-qs: Altered MinnowBoard MAX example

Fixes [YOCTO #9667]

The example that built the image out for the MinnowBoard MAX was
buiding a core-image-minimal.  This was not ideal.  I have fixed
it so that several types of images are suggested as examples with
a reference to the Images chapter in the ref-manual.  The actual
command now builds out core-image-base.

(From yocto-docs rev: 588f9c06bf5dbad253826825dd2a9a67c89f3219)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomega-manual: Added new chapters to support building the manual
Scott Rifenbark [Mon, 3 Oct 2016 18:05:17 +0000 (11:05 -0700)] 
mega-manual: Added new chapters to support building the manual

Due to new chapters in the SDK manual and the movement of the devtool
Quick Reference from the dev-manual to the ref-manual, I had to xinclude
these various chapters in the mega-manual.xml file that builds out the
manual.

(From yocto-docs rev: 8d6fb3d97e6a64b53cfdf66d94d7306babb48378)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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>