]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
9 years agoopenssl.inc: avoid random ptest failures
Patrick Ohly [Fri, 23 Sep 2016 13:23:20 +0000 (15:23 +0200)] 
openssl.inc: avoid random ptest failures

"make alltests" is sensitive to the timestamps of the installed
files. Depending on the order in which cp copies files, .o and/or
executables may end up with time stamps older than the source files.
Running tests then triggers recompilation attempts, which typically
will fail because dev tools and files are not installed.

"cp -a" is not enough because the files also have to be newer than
the installed header files. Setting the file time stamps to
the current time explicitly after copying solves the problem because
do_install_ptest_base is guaranteed to run after do_install.

(From OE-Core rev: 101e2a5e0b7822ca3de3d3a73369405c05ab3c5b)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopenssl: update to 1.0.2i (CVE-2016-6304 and more)
Patrick Ohly [Fri, 23 Sep 2016 13:26:05 +0000 (15:26 +0200)] 
openssl: update to 1.0.2i (CVE-2016-6304 and more)

This update fixes several CVEs:
* OCSP Status Request extension unbounded memory growth (CVE-2016-6304)
* SWEET32 Mitigation (CVE-2016-2183)
* OOB write in MDC2_Update() (CVE-2016-6303)
* Malformed SHA512 ticket DoS (CVE-2016-6302)
* OOB write in BN_bn2dec() (CVE-2016-2182)
* OOB read in TS_OBJ_print_bio() (CVE-2016-2180)
* DTLS buffered message DoS (CVE-2016-2179)
* DTLS replay protection DoS (CVE-2016-2181)
* Certificate message OOB reads (CVE-2016-6306)

Of these, only CVE-2016-6304 is considered of high
severity. Everything else is low. CVE-2016-2177 and CVE-2016-2178 were
already fixed via local patches, which can be removed now.

See https://www.openssl.org/news/secadv/20160922.txt for details.

Some patches had to be refreshed and one compile error fix from
upstream's OpenSSL_1_0_2-stable was required. The server.pem
file is needed for test_dtls.

(From OE-Core rev: d6b69279b5d1370d9c4982d5b1842a471cfd2b0e)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoarch-mips: Add mips64r2 tunes
Zubair Lutfullah Kakakhel [Fri, 23 Sep 2016 13:47:50 +0000 (14:47 +0100)] 
arch-mips: Add mips64r2 tunes

Add MIPS64r2 optimizations

(From OE-Core rev: 4c10376bdfd54af75de840bd4a31386e6e89477e)

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolttng-tools: adds DEPENDS to util-linux
Ming Liu [Fri, 23 Sep 2016 11:14:48 +0000 (13:14 +0200)] 
lttng-tools: adds DEPENDS to util-linux

lttng-utils rdepends on util-linux-libuuid, this fixes a do_package_qa
QA warning.

(From OE-Core rev: 8a25d4871f10021757041755be4e6bd7bc0292de)

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolttng-tools: fixes a wrong header issue
Ming Liu [Fri, 23 Sep 2016 10:58:53 +0000 (12:58 +0200)] 
lttng-tools: fixes a wrong header issue

This fixes a following compiling issue:
| agent.c:33:19: fatal error: error.h: No such file or directory
|  #include "error.h"

it's back-ported from lttng-tools upstream, we need it in SRC_URI
since 2.8 is still the latest release.

(From OE-Core rev: 08c9a363cc600cb58ab98cf22de0f7963720dea3)

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/oe/patch: improve accuracy of patch header extraction
Paul Eggleton [Fri, 23 Sep 2016 09:22:11 +0000 (21:22 +1200)] 
lib/oe/patch: improve accuracy of patch header extraction

When PATCHTOOL = "git", if we need to manually apply a patch and then
commit it (i.e. when git am doesn't work) we try to extract the author /
date / shortlog from the patch header. Make the following improvements
to that extraction process:

* If there's no explicit Subject: but the first line is followed by a
  blank line, isn't an Upstream-Status: or Index: marker and isn't too
  long, then assume it's good enough to be the shortlog. This avoids
  having too many patches with "Upgrade to version x.y" as the shortlog
  (since that is often when patches get added).
* Add --follow to the command we use to find the commit that added the
  patch, so we mostly get the commit that added the patch rather than
  getting stuck on upgrade commits that last moved/renamed the patch
* Populate the date from the commit that added the patch if we were able
  to get the author but not the date from the patch (otherwise you get
  today's date which is less useful).

(From OE-Core rev: 896cfb10ec166a677cbb3b4f8643719cabeb7663)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/oe/patch: exclude "From <hash>" from commit message when PATCHTOOL is "git"
Paul Eggleton [Fri, 23 Sep 2016 09:22:10 +0000 (21:22 +1200)] 
lib/oe/patch: exclude "From <hash>" from commit message when PATCHTOOL is "git"

If you leave "From <hash>" lines in the commit message it can actually
break git rebase because it tries to interpret the line in the context
of the current repository, and if the hash is invalid then a rebase
will blow up with:

  fatal: git cat-file: could not get object info

or in newer git versions:

  error: unable to find <hash>
  fatal: git cat-file <hash>: bad file

(I hit this when I tried to do a devtool upgrade on openssl to 1.0.2i
the first time I did "git rebase --skip")

(From OE-Core rev: 19a6b18ac23cb2d7bb89203f774b2bee7f0cb03c)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agonativesdk-qemu-helper: drop old Zaurus flash tools
Paul Eggleton [Fri, 23 Sep 2016 09:17:52 +0000 (21:17 +1200)] 
nativesdk-qemu-helper: drop old Zaurus flash tools

These tools are relics of an earlier time when the Zaurus devices were
reference platforms - these days they are no longer needed. It seems
amazing that they survived earlier purges.

(From OE-Core rev: 49919585e5cec2999201fce8cb1b70f1cf7f591e)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobluez5: remove duplicated udev setting from FILES_${PN}
Robert Yang [Wed, 27 Jul 2016 07:03:10 +0000 (00:03 -0700)] 
bluez5: remove duplicated udev setting from FILES_${PN}

bitbake.conf already sets it.

(From OE-Core rev: 73d138be52c7f7c55ec4ea1cda2d7c8ead85deec)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopcmciautils: remove duplicated udev setting from FILES_${PN}
Robert Yang [Wed, 27 Jul 2016 07:03:10 +0000 (00:03 -0700)] 
pcmciautils: remove duplicated udev setting from FILES_${PN}

bitbake.conf already sets it.

(From OE-Core rev: 2df7386f7199079353762c726c364e6c4377621d)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoeudev: don't move udev directory
Robert Yang [Thu, 21 Jul 2016 09:53:46 +0000 (02:53 -0700)] 
eudev: don't move udev directory

The code did "mv ${D}${base_libdir}/udev ${D}${nonarch_base_libdir}"
which is not needed any more, eudev can work with ${base_libdir}/udev.

(From OE-Core rev: 5e26b3df04716010b31b4c7ac0ac6b28982784f3)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxf86-input-vmmouse: remove duplicated udev setting from FILES_${PN}
Robert Yang [Thu, 21 Jul 2016 09:29:56 +0000 (02:29 -0700)] 
xf86-input-vmmouse: remove duplicated udev setting from FILES_${PN}

bitbake.conf already sets it.

(From OE-Core rev: e196300e066aef347cee52a4fd2eae21725e41f7)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomdadm: remove duplicated udev setting from FILES_${PN}
Robert Yang [Thu, 21 Jul 2016 09:29:56 +0000 (02:29 -0700)] 
mdadm: remove duplicated udev setting from FILES_${PN}

bitbake.conf already sets it.

(From OE-Core rev: 79b38adb3cac86ac24aa8c13fa0403105f17d494)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoofono: remove duplicated udev setting from FILES_${PN}
Robert Yang [Thu, 21 Jul 2016 09:29:56 +0000 (02:29 -0700)] 
ofono: remove duplicated udev setting from FILES_${PN}

It doesn't have files in udev dir, and bitbake.conf already sets it.

(From OE-Core rev: 10dbf13c86ce7f10ff84547fee8c4c5f15fe91fb)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibinput: fix udevdir
Robert Yang [Thu, 21 Jul 2016 06:36:47 +0000 (23:36 -0700)] 
libinput: fix udevdir

* Use "pkg-config --variable=udevdir udev" to fix udevdir, otherwise it
  would use ${libdir}/udev which is incorrect for systemd's udev.

(From OE-Core rev: bcd93a4ad1188bb15db00727d5d03548d687a7a3)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemd: install udev.pc
Robert Yang [Thu, 21 Jul 2016 03:35:53 +0000 (20:35 -0700)] 
systemd: install udev.pc

It provides udev, but doesn't install udev.pc, which causes other
recipes failed to figure out udevdir.

Fixed when systemd in DISTRO_FEATURES:
$ bitbake pcmciautils (or btrfs-tools):

Package udev was not found in the pkg-config search path.
Perhaps you should add the directory containing `udev.pc'
to the PKG_CONFIG_PATH environment variable
No package 'udev' found

Their udev rules file may not be installed according to each pkg's
implementation.

(From OE-Core rev: a32dac24808bf8621fdbbecb654eff784acee47e)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake.conf: add eudev's udevdir to FILES_${PN}
Robert Yang [Thu, 21 Jul 2016 09:03:30 +0000 (02:03 -0700)] 
bitbake.conf: add eudev's udevdir to FILES_${PN}

* The eudev's udevdir can be ${base_libdir}/udev or ${libdir}/udev, it
  doesn't have to be hardcoded to /lib/udev, so add them FILES_${PN}.

* Use /lib/udev rather than /lib/udev/rules.d for FILES_${PN} since
  there might be files in /lib/udev except subdir rules.d

(From OE-Core rev: e1b81a80760fc79612254804e429cab5228b1ab6)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuildtools/uninative-tarball: Fix deployment overlap issues
Richard Purdie [Fri, 23 Sep 2016 17:05:16 +0000 (18:05 +0100)] 
buildtools/uninative-tarball: Fix deployment overlap issues

We still have problems where deploying SDKMACHINE=i686 can cause removal
of SDKMACHINE=x86_64 artefacts.

The reason is that x86_64 is a BUILD_ARCH as well as an SDK_ARCH and
the manifest namespaces overlap. To fix this, set PACKAGE_ARCH and
the stamp-extra-into to include SDK_OS. SDK_OS may not be entirely correct
but it is what sstate.bbclass uses for nativesdk and fixing that is
a separate issue.

This is confirmed to resolve artefact problems on the AB which have been
delaying a new uninative release.

(From OE-Core rev: 1dbc6ec4ca061570d2482c9abebcf720298db9b7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoolchain-shar-relocate.sh: Fix typo
Richard Purdie [Fri, 23 Sep 2016 16:49:22 +0000 (17:49 +0100)] 
toolchain-shar-relocate.sh: Fix typo

(From OE-Core rev: 8d6ee36493800a30e9bd6eacb671fbafe5d61ad7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosdk-manual: Removed two Git tag developer notes.
Scott Rifenbark [Fri, 16 Sep 2016 18:22:05 +0000 (11:22 -0700)] 
sdk-manual: Removed two Git tag developer notes.

These notes can't be in the final version of the manual.
Now is the time to get them out.

(From yocto-docs rev: 600b4f2c7360b30d12fdc7ed0f5ba41bc09fc778)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosdk-manual: Removed notes about the BitBake Commander
Scott Rifenbark [Fri, 16 Sep 2016 18:11:04 +0000 (11:11 -0700)] 
sdk-manual: Removed notes about the BitBake Commander

Fixes [YOCTO #10032]

The fix to remove the BitBake Commander from the tools to install
when dealing with the Eclipse Yocto Plug-in has happened.
Consequently, I removed the developer notes in the manual stating
that the Commander was still showing up there.  The manual set
is now clean of this stuff.

(From yocto-docs rev: fbe169b086faac571de8a2ebd9d32682162cfd31)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosdk-manual: Updated Passing host options example
Scott Rifenbark [Fri, 16 Sep 2016 17:57:19 +0000 (10:57 -0700)] 
sdk-manual: Updated Passing host options example

Fixes [YOCTO #10267]

The example works better using OECORE_TARGET_SYSROOT for the
aclocal line.  I changed it to that.

(From yocto-docs rev: 362b786e7bf2083c5809e961f61c0ad81b778d71)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: Updates to PKGDESTWORK and do_packagedata
Scott Rifenbark [Fri, 16 Sep 2016 17:43:10 +0000 (10:43 -0700)] 
ref-manual: Updates to PKGDESTWORK and do_packagedata

Fixes [YOCTO #10248]

Provided more accurate descriptions for this variable and task.

(From yocto-docs rev: 422fa705165748230470fffc4fcc543ee38b1f2e)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodev-manual: Updated add and modify flows and text.
Scott Rifenbark [Fri, 16 Sep 2016 16:49:24 +0000 (09:49 -0700)] 
dev-manual: Updated add and modify flows and text.

Updated the devtool add and devtool modify flow diagrams and
supporting text to exactly match those from the SDK manual.

Also, updated the help output generated from the devtool --help
and devtool add --help commands.

(From yocto-docs rev: 002297a8ed3979f012fe228b7edb77514e7528a2)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosdk-manual: Updates to the devtool Finish command flow.
Scott Rifenbark [Fri, 16 Sep 2016 15:53:47 +0000 (08:53 -0700)] 
sdk-manual: Updates to the devtool Finish command flow.

(From yocto-docs rev: f980b7cfa021c3777acd8e26b00cf40ed58f10f4)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: Applied review edits to auto added runtime deps
Scott Rifenbark [Wed, 14 Sep 2016 13:01:15 +0000 (06:01 -0700)] 
ref-manual: Applied review edits to auto added runtime deps

Fixes [YOCTO #10248]

Applied some review changes.  Minor wording tweaks and typo
fixes.

(From yocto-docs rev: a9e99c8b44c48c74448487187cebfe8df331e9e1)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosdk-manual: Updated SDK workflow
Scott Rifenbark [Wed, 14 Sep 2016 01:05:31 +0000 (18:05 -0700)] 
sdk-manual: Updated SDK workflow

A new command devtool finish has superceded the final commands
in the SDK workflow.  I updated the two figures (add and modify)
to reflect this new flow.  I also updated the ordered number list
to match reality.

(From yocto-docs rev: 0ba31e730cd748d06eab8d46b38764cda5c4e3bd)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosdk-manual, ref-manual: New variable for including toolchain
Scott Rifenbark [Tue, 13 Sep 2016 20:17:57 +0000 (13:17 -0700)] 
sdk-manual, ref-manual: New variable for including toolchain

Added a new variable description for SDK_INCLUDE_TOOLCHAIN.
Along with the new glossary entry, I updated a couple places
where it would be relevant to cross-reference the new variable.

(From yocto-docs rev: df99b097595e7488a93354082b8d9f33acd9c229)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: Added note to PREFERRED_VERSION
Scott Rifenbark [Tue, 13 Sep 2016 18:40:43 +0000 (11:40 -0700)] 
ref-manual: Added note to PREFERRED_VERSION

fixes [YOCTO #10252]

Added a note to help avoid confusion regarding the version
specification used in PREFERRED_VERSION.

(From yocto-docs rev: 38edc25b04c1a6d673ceb25f5548898d5b63b120)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: New section and updates for runtime dep work
Scott Rifenbark [Tue, 13 Sep 2016 18:15:02 +0000 (11:15 -0700)] 
ref-manual: New section and updates for runtime dep work

fixes [YOCTO #10248]

The bulk of this change is a new section called "Automatically
Added Runtime Dependencies".  Additionally, changes were made
to the RDEPENDS and DEPENDS variables. Some cross-referencing
to the new material was also added in the do_package task entry,
the do_packagedata task entry, the PKGDATA_DIR glossary entry,
and the PRIVATE_LIBS glossary entry.

(From yocto-docs rev: 16504cd0eb23e102322c6c6096c5b52500a04640)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: Another edit to the oe-pkgdata-utils description
Scott Rifenbark [Thu, 8 Sep 2016 00:08:25 +0000 (17:08 -0700)] 
ref-manual: Another edit to the oe-pkgdata-utils description

Fixed the description to match that what is in the code.

(From yocto-docs rev: c099dd0b7c8d205b56009606e61ae359017f5783)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: More wording changes to oe-pkgdata-util section.
Scott Rifenbark [Wed, 7 Sep 2016 22:19:56 +0000 (15:19 -0700)] 
ref-manual: More wording changes to oe-pkgdata-util section.

(From yocto-docs rev: 63f412dd31ae05dd0abdcc2b97b1c596b6054f18)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: Applied some re-writes to oe-pkgdata-util use section.
Scott Rifenbark [Wed, 7 Sep 2016 21:45:55 +0000 (14:45 -0700)] 
ref-manual: Applied some re-writes to oe-pkgdata-util use section.

(From yocto-docs rev: 40175a3e120fd57fcd03fdfd19c84ffd8336595d)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosdk-manual: Updated the connection steps for deployment
Scott Rifenbark [Wed, 7 Sep 2016 20:54:44 +0000 (13:54 -0700)] 
sdk-manual: Updated the connection steps for deployment

Provided clearer instruction on how to set up a new SSH
connection when deploying an application to QEMU.

(From yocto-docs rev: 93adc542a40e86377380684e1ce294edd0fd7268)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: New section on using oe-pkgdata-util
Scott Rifenbark [Wed, 7 Sep 2016 20:31:08 +0000 (13:31 -0700)] 
ref-manual: New section on using oe-pkgdata-util

Fixes [YOCTO #10216]

Creted a new section titled "Viewing Package Information with
oe-pkgdata-util".  This section describes how to view information
for already build packages through the use of the
oi-pkgdata-util command.

(From yocto-docs rev: 8d9465f320f973ecaeecb3eae594b29c0d7f4960)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosdk-manual: Fixed spelling error.
Scott Rifenbark [Wed, 7 Sep 2016 19:39:44 +0000 (12:39 -0700)] 
sdk-manual: Fixed spelling error.

(From yocto-docs rev: 46794f1c852a12375764d80c7242312921d8bd20)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodocumentation: Added new description for the PACKAGECONFIG_CONFARGS variable.
Scott Rifenbark [Wed, 7 Sep 2016 17:17:42 +0000 (10:17 -0700)] 
documentation: Added new description for the PACKAGECONFIG_CONFARGS variable.

Fixes [YOCTO #10183]

Added a new variable entry for the PACKAGECONFIG_CONFARGS variable.

With the introduction of the new PACKAGECONFIG_CONFARGS variable,
many places in the mainstream YP documentation that referenced
how to pass configure arguments using EXTRA_OECONF needed to also
make mention of this new variable.  I added many cross-references
to the new variable.

(From yocto-docs rev: 00f02d45319bab90b72eab89fcb69cbe8bd05bb5)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomega-manual: Added the new mars appendix to the sdk-manual build section.
Scott Rifenbark [Wed, 7 Sep 2016 16:08:57 +0000 (09:08 -0700)] 
mega-manual: Added the new mars appendix to the sdk-manual build section.

(From yocto-docs rev: 5e9e7553260e7c684f30fd2565ba8c03b8cd0462)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: Added variable description for PACKAGECONFIG_CONFARGS
Scott Rifenbark [Wed, 7 Sep 2016 16:03:21 +0000 (09:03 -0700)] 
ref-manual: Added variable description for PACKAGECONFIG_CONFARGS

Fixes [YOCTO #10183]

(From yocto-docs rev: 8ad71d720e6f1a1d23d5879a14600ade86e2bc46)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosdk-manual: Updated neon JDK requirements to be 1.8+
Scott Rifenbark [Tue, 6 Sep 2016 19:10:43 +0000 (12:10 -0700)] 
sdk-manual: Updated neon JDK requirements to be 1.8+

(From yocto-docs rev: 796fad8a20ece3ef5fdb0c7c1d325a18e37e676b)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosdk-manual: Updated legacy mars links to go to neon section.
Scott Rifenbark [Tue, 6 Sep 2016 19:09:44 +0000 (12:09 -0700)] 
sdk-manual: Updated legacy mars links to go to neon section.

(From yocto-docs rev: 4c524f3763f676d4f60a8fb383019b6153901b9d)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosdk-manual: Updates to "Working With Eclips" for Neon
Scott Rifenbark [Sat, 3 Sep 2016 00:24:56 +0000 (17:24 -0700)] 
sdk-manual: Updates to "Working With Eclips" for Neon

Fixes [YOCTO #7546]

Applied changes throughout this section to move it from Luna to
the Neon version (latest) of Eclipse.  We now provide a single
thread for Eclipse, which is based on the latest version (Neon).
Information for Mars, which is also supported) is in a new Appendix
C.

(From yocto-docs rev: 82995d9c49e4c55707591a1375c5d86874c589b0)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: Fixed typo for "debugging".
Scott Rifenbark [Thu, 1 Sep 2016 23:57:45 +0000 (16:57 -0700)] 
ref-manual: Fixed typo for "debugging".

(From yocto-docs rev: a8a3bdc0bcec938486f533148fc3f6d106e5af94)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopoky.ent: Updated the essentials list variable for Fedora
Scott Rifenbark [Thu, 1 Sep 2016 23:31:09 +0000 (16:31 -0700)] 
poky.ent: Updated the essentials list variable for Fedora

Fixes [YOCTO #10208]

Apparently, this should be "python3" and not "python" now.

(From yocto-docs rev: d9547b426d9ab8a2d79fac95405a7a371a4a35ac)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: Changed command to install Fedora Python package
Scott Rifenbark [Thu, 1 Sep 2016 23:06:53 +0000 (16:06 -0700)] 
ref-manual: Changed command to install Fedora Python package

Fixes [YOCTO #10208]

The example command was wrong.  Had the wrong package name since
we moved upward with Python.  Using "sudo dnf install python3-GitPython"
now.

(From yocto-docs rev: d94469ac4860841c3955161ce1b67a962c4f3f8d)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoyocto-project-qs, ref-manual: Updated Python requirement to 3.4.0
Scott Rifenbark [Thu, 1 Sep 2016 22:24:23 +0000 (15:24 -0700)] 
yocto-project-qs, ref-manual: Updated Python requirement to 3.4.0

This is the minimum requirement for YP 2.2 release.

(From yocto-docs rev: 0aebdd8556a6e5a52c0caf28dc97c1872b40e950)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: Removed link to ROOTFS_RO_UNNEEDED.
Scott Rifenbark [Thu, 1 Sep 2016 21:29:09 +0000 (14:29 -0700)] 
ref-manual: Removed link to ROOTFS_RO_UNNEEDED.

Fixes [YOCTO #9899]

This variable does not need documented in the glossary.

(From yocto-docs rev: 4082b752239025c8696bb248a20ac1fb5380c7af)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: Added new note item to the DEPENDS note box.
Scott Rifenbark [Thu, 1 Sep 2016 21:25:33 +0000 (14:25 -0700)] 
ref-manual: Added new note item to the DEPENDS note box.

Fixes [YOCTO #10198]

The new note helps clarify runtime dependencies.

(From yocto-docs rev: e9eba1260df4ef5f3245149f0436eae5ca68c78b)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: Updated the MLPREFIX variable description.
Scott Rifenbark [Thu, 1 Sep 2016 21:16:52 +0000 (14:16 -0700)] 
ref-manual: Updated the MLPREFIX variable description.

Fixes [YOCTO #10197]

Provided better examples and a bit of a historical note.

(From yocto-docs rev: 5845aadcc4e6932abde4ce7c74834c0f2a9fb806)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodev-manual: Updated QEMU known issues for user-mode
Scott Rifenbark [Thu, 1 Sep 2016 20:30:16 +0000 (13:30 -0700)] 
dev-manual: Updated QEMU known issues for user-mode

Fixes [YOCTO #9285]

Applied some rewording to the last bullet of the "Known
Issues" section in the "Enabling GObject Introspection
Support" section.

(From yocto-docs rev: 6cc0c7925984a29a115819195b800e2ecd8b4757)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: Added variable description for FORCE_RO_REMOVE.
Scott Rifenbark [Thu, 1 Sep 2016 20:02:46 +0000 (13:02 -0700)] 
ref-manual: Added variable description for FORCE_RO_REMOVE.

Fixes [YOCTO #9899]

I put this new variable description in.

(From yocto-docs rev: 32040277a921d0013256bed5aa7e32e14d1220ba)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: Updated CLASSOVERRIDE with a new example.
Scott Rifenbark [Thu, 1 Sep 2016 19:56:16 +0000 (12:56 -0700)] 
ref-manual: Updated CLASSOVERRIDE with a new example.

(From yocto-docs rev: 057e79672769eb1fbec87695a0084f42955f757d)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoyocto-project-qs, ref-manual: Removed Python 3.0 exclusion
Scott Rifenbark [Thu, 1 Sep 2016 19:42:53 +0000 (12:42 -0700)] 
yocto-project-qs, ref-manual: Removed Python 3.0 exclusion

Fixes [YOCTO #10178]

Previously, YP did not support Python 3.0.  We mentioned that
in the manual in several places as a requirement for running YP.
I removed this exclusion in the following areas:

 * yocto-project-qs - the section that tells what version of
   Python you need.

 * ref-manual - the section that tells what version of Python
   you need.

 * ref-manual - the FAQ entry about not having the right version
   of Python.

(From yocto-docs rev: 5a0d3ac1c2a4154b93dc925b8074bc9243a86faf)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: Updated the DISTROOVERRIDES variable description.
Scott Rifenbark [Thu, 1 Sep 2016 18:58:36 +0000 (11:58 -0700)] 
ref-manual: Updated the DISTROOVERRIDES variable description.

Fixes [YOCTO #10176]

Provided a more complete description of this variable.

(From yocto-docs rev: 164bf11250c965aadd1ee1573267aa31daa8a4e8)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: Updated the MACHINEOVERRIDES variable description
Scott Rifenbark [Thu, 1 Sep 2016 18:49:34 +0000 (11:49 -0700)] 
ref-manual: Updated the MACHINEOVERRIDES variable description

Fixes [YOCTO #10175]

Provided a more detailed description of this variable.

(From yocto-docs rev: 95a80313dfb276425020a61d199b75d259b47ff1)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: Rewrite of the CLASSOVERRIDE variable in the glossary
Scott Rifenbark [Thu, 1 Sep 2016 18:35:36 +0000 (11:35 -0700)] 
ref-manual: Rewrite of the CLASSOVERRIDE variable in the glossary

Fixes [YOCTO #10174]

I applied a more descriptive explanation of this varialbe.

(From yocto-docs rev: 7c6c2645b7e74e1c7de0d43b35307c8917648959)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: Grammar fix in the OVERRIDES variable description.
Scott Rifenbark [Thu, 1 Sep 2016 18:08:33 +0000 (11:08 -0700)] 
ref-manual: Grammar fix in the OVERRIDES variable description.

(From yocto-docs rev: cae94f6b5595e3674af041110d89f736f833cc88)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: Grammar fix in "Stamp Files and the Rerunning of Tasks"
Scott Rifenbark [Thu, 1 Sep 2016 18:03:09 +0000 (11:03 -0700)] 
ref-manual: Grammar fix in "Stamp Files and the Rerunning of Tasks"

(From yocto-docs rev: 0d04e8c226ff9391e14f5b07ee95de4e4b7d3bcf)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: Clarified the OVERRIDES glossary description.
Scott Rifenbark [Thu, 1 Sep 2016 17:57:39 +0000 (10:57 -0700)] 
ref-manual: Clarified the OVERRIDES glossary description.

Fixes [YOCTO #10173]

I provided a more detailed description of how this variable
works.  Also provided a cross-reference link back to the
variable at the end of the PREFERRED_VERSION variable.

(From yocto-docs rev: 679b205eea541b89e220656f7aa304d0f343c8a6)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: New section clarifying stamps, input checksums and sstate cache
Scott Rifenbark [Thu, 1 Sep 2016 17:10:47 +0000 (10:10 -0700)] 
ref-manual: New section clarifying stamps, input checksums and sstate cache

Fixes [YOCTO #10172]

I added a new section on how BitBake reruns tasks based on the
stamps files.  Also put in some cross-referencing links to that
new section in the stamps entry for the structure chapter and in
the STAMP variable in the glossary.

(From yocto-docs rev: da8779d9eb85473cd6b0f74e9e1371e1d277890f)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: Updated systemd-boot documentation link.
Scott Rifenbark [Tue, 30 Aug 2016 23:08:13 +0000 (16:08 -0700)] 
ref-manual: Updated systemd-boot documentation link.

Fixes [YOCTO #9707]

The original link was bogus.  I applied four instances to fix the
link.

(From yocto-docs rev: f03d5af6ddf0430cf98332c5d54f3fe68fb69cf9)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: knotty: ensure progress bar output is accounted for in display
Paul Eggleton [Fri, 23 Sep 2016 09:14:32 +0000 (21:14 +1200)] 
bitbake: knotty: ensure progress bar output is accounted for in display

When calculating how many lines we'd printed we weren't properly taking
the progress bars into account, with the result that sometimes if the
last line printed on the terminal wrapped to the next line (which is
possible) we backed up less lines than we should have.

Additionally, we should always print a newline after updating the
progress bar - there's no need to check if there wasn't output (there
always will be courtesy of our overridden _need_update()) and we now
allow the line to wrap so we don't need to check the other condition
either.

Hopefully this will fix [YOCTO #10046].

(Bitbake rev: 326d18d96faf02675ba34ad3c3a20cd424b39b91)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: knotty: Show task elapsed time
Richard Purdie [Thu, 22 Sep 2016 12:54:43 +0000 (13:54 +0100)] 
bitbake: knotty: Show task elapsed time

Its often useful to know how long a task has been running for. This patch
adds that information to the task display, updating every 5s if there
were no other updates so the user can see how long tasks have been running
for.

[YOCTO #9737]

(Bitbake rev: 6c42025e5dd7761213be3f82f3252a7892d2239d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/base: backup and restore local configuration files
Jose Lamego [Wed, 21 Sep 2016 19:54:59 +0000 (12:54 -0700)] 
oeqa/selftest/base: backup and restore local configuration files

Selftests' cleanup method during test setup is not capable of
restoring local configuration files that remain modified after
aborting a test through a keyboard interruption.
This change creates backups for local.conf and bblayers.conf at
test setup, restore them when found, and deletes them at cleanup.

[YOCTO #9390]

(From OE-Core rev: 0877278e07e4c2494c4c23199490dc47a5cee69d)

Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotestimage.bbclass: Add package manager dependency
Mariano Lopez [Wed, 21 Sep 2016 13:50:43 +0000 (13:50 +0000)] 
testimage.bbclass: Add package manager dependency

The feature to install packages in the target requires to
build the package manager. It would fail, with very obtuse
errors, if a test requires to install something and the
package manager hasn't been build. This will add the package
manager as dependency for testimage.

[YOCTO #10260]

(From OE-Core rev: cf548fd85297585cc5688eda45ee332200bbd4b7)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoscripts/runqemu: Using a cpio* rootfs has no special network
Nathan Rossi [Thu, 22 Sep 2016 13:53:01 +0000 (23:53 +1000)] 
scripts/runqemu: Using a cpio* rootfs has no special network

When booting a system with the rootfs being of cpio* type the networking
setup should still work the same as for all other root filesystem types.
This change removes the clearing of the NETWORK_CMD variable allowing
for the slirp/tap setup to be provided to QEMU.

(From OE-Core rev: 7d01a9c80de0cdbac3831301dd996c7b61754c74)

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorunqemu: Move virtio RNG to machine configuration
Nathan Rossi [Thu, 22 Sep 2016 13:53:00 +0000 (23:53 +1000)] 
runqemu: Move virtio RNG to machine configuration

Not all QEMU machines (outside of those available in OE-Core) are
capable of using the virtio-rng-pci device due to various machine models
not having a pci/virtio bus. This makes it such that the use of the
'-device virtio-rng-pci' flag to QEMU is machine specific.

This patch removes the general addition of the flag to all runqemu
targets and adds the flag into the QB_OPT_APPEND for all the qemu*
machines in OE-Core that support its use (which is all of them).

(From OE-Core rev: e890c05e66a21702e9e8ccce794b74cb7f5518ed)

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocmake-native: prefer native sysroot libraries over host
Ross Burton [Thu, 22 Sep 2016 16:11:47 +0000 (17:11 +0100)] 
cmake-native: prefer native sysroot libraries over host

Explicitly set CMAKE_LIBRARY_PATH so that find_library() looks in the native
sysroot before the host.

Also pass --verbose to configure which sets CMAKE_VERBOSE_MAKEFILE for detailed
compile logs.

(From OE-Core rev: 89b28990ff3ef8ac7a33a0a3f9177b9bd0e1530b)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogstreamer1.0-libav: Add 'valgrind' config option
Otavio Salvador [Thu, 22 Sep 2016 12:33:49 +0000 (09:33 -0300)] 
gstreamer1.0-libav: Add 'valgrind' config option

This fixes following error:

,----
| src/libavutil/log.c:51:31: fatal error: valgrind/valgrind.h: No such file or directory
|  #include <valgrind/valgrind.h>
`----

(From OE-Core rev: 262f8180c9037b7e82efe08ce3bb1880fee22ea8)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowpa_supplicant: Security Advisory-CVE-2016-4477
Zhixiong Chi [Thu, 22 Sep 2016 07:54:27 +0000 (15:54 +0800)] 
wpa_supplicant: Security Advisory-CVE-2016-4477

Add CVE-2016-4477 patch for avoiding \n and \r characters in passphrase
parameters, which allows remote attackers to cause a denial of service
(daemon outage) via a crafted WPS operation.
Patches came from http://w1.fi/security/2016-1/

(From OE-Core rev: d4d4ed5f31c687b2b2b716ff0fb8ca6c7aa29853)

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowpa_supplicant: Security Advisory-CVE-2016-4476
Zhixiong Chi [Thu, 22 Sep 2016 07:54:20 +0000 (15:54 +0800)] 
wpa_supplicant: Security Advisory-CVE-2016-4476

Add CVE-2016-4476 patch for avoiding \n and \r characters in passphrase
parameters, which allows remote attackers to cause a denial of service
(daemon outage) via a crafted WPS operation.
Patches came from http://w1.fi/security/2016-1/

(From OE-Core rev: ed610b68f7e19644c89d7131e34c990a02403c62)

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoencodings: Add dependency to mkfontdir-native
Gratian Crisan [Wed, 21 Sep 2016 18:40:25 +0000 (13:40 -0500)] 
encodings: Add dependency to mkfontdir-native

Currently adding a font recipe to an image doesn't have enough
dependencies to cause mkfontdir-native to be included in the native
sysroot. This creates problems with the postinstall scripts for fonts
which call mkfontdir to create font index files: font.dir. The end
result is missing font.dir files in the built image and a malfunctioning
font system.

Dependencies for the relevant recipes currently look like this:

  * <font.bb>   [D ] -> font-util-native
                [R ] -> encodings, font-util
                [RN] -> font-util-native

  * font-util   [D ] -> encodings
                [R ] -> mkfontdir, mkfontscale, encodings
                [RN] -> mkfontdir-native, mkfontscale-native

  * encodings   [D ] -> mkfontscale-native, font-util-native

  * mkfontdir   [R ] -> mkfontscale
                [RN] -> mkfontscale-native

  * mkfontscale [D ] -> libfontenc

  * libfontenc  [D ] -> font-util

Where:
  * D = DEPENDS
  * R = RDEPENDS
  * RN = RDEPENDS_class-native
  * <font.bb> e.g. font-adobe-100dpi*.bb
Some details where omitted for clarity e.g. dependencies on util-macros.

I believe the intent behind the RDEPENDS_class-native chain:
  * <font.bb> -> font-util-native -> mkfontdir-native
was to provide the necessary dependency on mkfontdir. However because
the native sysroot is not built from packages this RDEPENDS_class-native
chain doesn't have the desire effect (i.e. it doesn't pull in
mkfontdir-native).

Changing the RDEPENDS_class-native chain into a DEPENDS_class-native
chain is a non-starter because of the build time dependency loop it
creates:
  * font-util-native -> mkfontscale-native -> libfontenc-native -> font-util-native

Having upstream remove the build time dependency of libfontenc on
font-util is also a non-starter[1] even though it does create problems
in other distributions, for example on Debian see [2], [3].

Instead add a DEPENDS on mkfontdir-native in the encodings recipe in
addition to the mkfontscale-native dependency it already contains. This
solves the missing mkfontdir in the native sysroot problem without
introducing a build dependency loop.

[1] https://bugs.freedesktop.org/show_bug.cgi?id=97631
[2] https://wiki.debian.org/CircularBuildDependencies
[3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=717843

(From OE-Core rev: aa8a7b2962f9a77bdd347843c41f86dc291b783e)

Signed-off-by: Gratian Crisan <gratian.crisan@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake.conf: add a lazy default for SDKMACHINE
Ross Burton [Thu, 22 Sep 2016 12:24:30 +0000 (13:24 +0100)] 
bitbake.conf: add a lazy default for SDKMACHINE

If the user doesn't set SDKMACHINE in their local.conf then uninative and
buildtools will fail in obscure ways, so ensure that a default value is set.

Also as SDK_ARCH will be overritten then loading the machine-sdk configuration
file, don't bother assigning it.

(From OE-Core rev: 6bd507ef36578ba7bee6ef8b3f8f6465afca4e20)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuildtools-tarball: improve stamp independence
Joshua Lock [Thu, 22 Sep 2016 13:05:51 +0000 (14:05 +0100)] 
buildtools-tarball: improve stamp independence

buildtools-tarball shouldn't be regenerated when MACHINE changes,
nor should variants for other SDKMACHINE be removed from the deploy
directory when SDKMACHINE changes.

Remove target architecture dependencies so that deploy artefacts
can overlap.

(From OE-Core rev: b7d1a310f6b880e92b124a78af3c948abaab4236)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoolchain-scripts-base: add base class for toolchain_create_sdk_version
Joshua Lock [Thu, 22 Sep 2016 13:05:50 +0000 (14:05 +0100)] 
toolchain-scripts-base: add base class for toolchain_create_sdk_version

We use toolchain_create_sdk_version() in buildtools-tarball but
don't want the extra classes toolchain-scripts pulls in, therefore
split out a separate base class for this function which both
toolchain-scripts and the buildtools-tarball can inherit.

(From OE-Core rev: a398dfa654dc035c404fc12279fac9edf6403e11)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxserver-xorg: fix qa warnings
Kai Kang [Thu, 22 Sep 2016 10:04:24 +0000 (18:04 +0800)] 
xserver-xorg: fix qa warnings

When build lib32-xserver-xorg it has qa warning:

| WARNING: lib32-xserver-xorg-2_1.18.4-r0 do_package_qa: QA Issue:
| Package lib32-xf86-video-modesetting contains Xorg driver
| (modesetting_drv.so) but no xorg-abi- dependencies [xorg-driver-abi]

The qa check xorg-driver-abi has been skipped for xserver-xorg and make
it to skip for multilib package too.

(From OE-Core rev: 5f94d2dd7a16ae9f327c88636822539f79e983eb)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: cooker/providers: Only add target to world build if task exists
Richard Purdie [Wed, 21 Sep 2016 21:31:57 +0000 (22:31 +0100)] 
bitbake: cooker/providers: Only add target to world build if task exists

A "bitbake world -c unpack" currently breaks as not all tasks have an
unpack task. This change allows addition of world targets only if the
specified task exists which makes certain commands possible when otherwise
you just get errors which can't easily be avoided.

(Bitbake rev: ca4f5e6d01b5c8cf315f59bc86194d63c0d3d042)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: fetch2: handle absolute paths in subdir
Ross Burton [Wed, 21 Sep 2016 16:31:27 +0000 (17:31 +0100)] 
bitbake: fetch2: handle absolute paths in subdir

Currently if you use the subdir parameter in a SRC_URI and pass an absolute path
then it gets appended to the unpack directory instead of being used directly.
This is inconvenient as it may be useful to use ${S} when you want to unpack a
file into the source tree.

Change this behaviour so that absolute paths are used directly instead of being
appended to the root directory.  To ensure that recipes cannot write files to an
arbitrary location enforce that the subdir starts with the unpack root.

(Bitbake rev: c3873346c6fa1021a1d63bddd9b898a77c618432)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobase.bbclass: Drop unnecessary dirs setting
Richard Purdie [Wed, 21 Sep 2016 21:30:03 +0000 (22:30 +0100)] 
base.bbclass: Drop unnecessary dirs setting

${D} is listed in cleandirs so no need to list it in dirs as well.
The default directory is ${B} so this is a cleanup which should have
no changes to the execution.

[YOCTO #10017]

(From OE-Core rev: 7e0f95bf359bc3b5bb1578024a993e184de155cd)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoautotools/siteinfo: Tweak CONFIG_SITE handling for determism/races
Richard Purdie [Wed, 21 Sep 2016 10:53:57 +0000 (11:53 +0100)] 
autotools/siteinfo: Tweak CONFIG_SITE handling for determism/races

As things stand there are multiple races in the CONFIG_SITE handling
where checksums can change depending on whether site directories
exist or not when parsing happens. This is bad.

Secondly, there is a build race that occurs if you build virtuals
in parallel with the "main" recipe, since the main recipe is parsed
when the virtual is (since it sets variables like BBCLASSEXTEND)
and with the current code, it may look for files and directories
which could be created/destroyed which the loop is executing. This
is also bad.

The aclocal-copy directory should only ever be accessed by the call
from autotools.bbclass. This changes the parameter name to make it
clear and ensures all callers have the right usage, neatly avoiding
all the problems above. Also added better comments.

(From OE-Core rev: 3207244004c612c1a0e13921251003e5e635d1b1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoasciidoc: set CLEANBROKEN to fix rebuild
Robert Yang [Tue, 20 Sep 2016 10:32:57 +0000 (03:32 -0700)] 
asciidoc: set CLEANBROKEN to fix rebuild

The make clean removes doc/a2x.1 and doc/asciidoc.1, then it would cause
build failures since in the second build:
Fixing CONF_DIR in asciidoc.py
Fixing CONF_DIR in a2x.py
python a2x.py -f manpage doc/a2x.1.txt
a2x: ERROR: "xmllint" --nonet --noout --valid "/path/to/asciidoc-native/8.6.9-r0/asciidoc-8.6.9/doc/a2x.1.xml" returned non-zero exit status 4
make: *** [doc/a2x.1] Error 1

The xmllint failed because "--nonext" is used:
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
/buildarea/lyang1/test_arm/tmp/work/x86_64-linux/asciidoc-native/8.6.9-r0/asciidoc-8.6.9/doc/a2x.1.xml:2: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"

Avoid running make clean will fix the problem.

(From OE-Core rev: f60fc2dc231ffc8cbf5939b0dbfa06c5fe805b86)

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>
9 years agodirectdisk*.wks: add serial console support
Ed Bartosh [Tue, 20 Sep 2016 12:13:31 +0000 (15:13 +0300)] 
directdisk*.wks: add serial console support

Added serial console to kernel command line to to make it
easier to boot wic images on devices without display.

Tested on MinnowBoard MAX.

(From OE-Core rev: 9a774e3bcd5dc4c85d642acc7bf26095b8c620e4)

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>
9 years agoperf: Fix to obey LD failure on qemux86-64
Christopher Larson [Wed, 21 Sep 2016 05:17:42 +0000 (10:47 +0530)] 
perf: Fix to obey LD failure on qemux86-64

When built on an i686 host for qemux86-64 without the
fix to obey LD and it fails:

/scratch/dogwood/toolchains/x86_64/bin/i686-pc-linux-gnu-ld:
Relocatable linking with relocations from format elf64-x86-64
(/scratch/dogwood/perf-ld-test/build/tmp/work/qemux86_64-mel-linux/perf/1.0-r9/perf-1.0/fs/fs.o)
to format elf32-i386 (/scratch/dogwood/perf-ld-test/build/tmp/work/qemux86_64-mel-linux/perf/1.0-r9/perf-1.0/fs/libapi-in.o)
is not supported

This is because LD includes HOST_LD_ARCH, which contains TUNE_LDARGS,
which is -m elf32_x86_64 for x86_64. Without that, direct use of ld will fail.

(From OE-Core rev: 0ce06611068e74e6ea2e226e3f967aaa91fecd25)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Sujith Haridasan <Sujith_Haridasan@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibunwind: fix build by linking with bfd instead of gold
Andreas Müller [Wed, 21 Sep 2016 05:30:43 +0000 (07:30 +0200)] 
libunwind: fix build by linking with bfd instead of gold

works around:
<native-sysroot>/ld: error: Gperf-simple.o: cannot make copy relocation for protected symbol '_Uarm_local_addr_space', defined in ../src/.libs/libunwind-arm.so
collect2: error: ld returned 1 exit status
Makefile:1038: recipe for target 'Gperf-simple' failed
make[1]: *** [Gperf-simple] Error 1
make[1]: *** Waiting for unfinished jobs....
<...>
<native-sysroot>/ld: error: Lperf-simple.o: cannot make copy relocation for protected symbol '_ULarm_local_addr_space', defined in ../src/.libs/libunwind.so
collect2: error: ld returned 1 exit status
Makefile:1094: recipe for target 'Lperf-simple' failed
make[1]: *** [Lperf-simple] Error 1
<...>
ERROR: oe_runmake failed
<native-sysroot>/ld: error: Gperf-trace.o: cannot make copy relocation for protected symbol '_Uarm_local_addr_space', defined in ../src/.libs/libunwind-arm.so
collect2: error: ld returned 1 exit status
Makefile:1042: recipe for target 'Gperf-trace' failed
make[1]: *** [Gperf-trace] Error 1
<native-sysroot>/ld: error: Lperf-trace.o: cannot make copy relocation for protected symbol '_ULarm_local_addr_space', defined in ../src/.libs/libunwind.so
collect2: error: ld returned 1 exit status
Makefile:1098: recipe for target 'Lperf-trace' failed
make[1]: *** [Lperf-trace] Error 1
<...>
<native-sysroot>/ld: error: test-coredump-unwind.o: cannot make copy relocation for protected symbol '_UCD_accessors', defined in ../src/.libs/libunwind-coredump.so
collect2: error: ld returned 1 exit status
Makefile:1186: recipe for target 'test-coredump-unwind' failed

(From OE-Core rev: 482733bae05bdc7b149e515fb209c3266f459a53)

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemd: fix indentation
Maciej Borzecki [Wed, 21 Sep 2016 08:19:58 +0000 (10:19 +0200)] 
systemd: fix indentation

(From OE-Core rev: 170157602932aa454e721ea849fbf1679b573618)

Signed-off-by: Maciej Borzecki <maciej.borzecki@rndity.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agox264: add textrel to INSANE_SKIP
Fahad Usman [Wed, 21 Sep 2016 09:42:43 +0000 (15:12 +0530)] 
x264: add textrel to INSANE_SKIP

Tried by adding CFLAGS_append = " -fpic " to
the recipe. But that couldn't help resolve the
warning message:

x264/r2491+gitAUTOINC+c8a773ebfc-r0/packages-split/x264/usr/lib/libx264.so.144' has relocations in .text [textrel]

It was found that this warning is emitted because of the
assembly files in the source code. And it is not easy to
get rid of TEXTREL's which are coming from the assembly
source files.

Adding textrel to INSANE_SKIP resolves this issue.
This issue was observed in cyclone5 and imx6qsabresd BSP's.
So generalizing the patch.

(From OE-Core rev: 9470e0911838a6f5a23f01c6944906b69aa1317a)

Signed-off-by: Fahad Usman <fahad_usman@mentor.com>
Signed-off-by: Sujith Haridasan <Sujith_Haridasan@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoperl: fix CVE-2015-8607
Mingli Yu [Wed, 21 Sep 2016 09:47:32 +0000 (17:47 +0800)] 
perl: fix CVE-2015-8607

Backport patch to fix CVE-2015-8607 from perl upstream:
http://perl5.git.perl.org/perl.git/commitdiff/0b6f93036de171c12ba95d415e264d9cf7f4e1fd

(From OE-Core rev: e2289647ace9ef96e6a7e4aae201fd9149e56678)

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoperl: fix CVE-2016-6185
Mingli Yu [Wed, 21 Sep 2016 09:47:31 +0000 (17:47 +0800)] 
perl: fix CVE-2016-6185

Backport patch to fix CVE-2016-6185 from perl upstream:
http://perl5.git.perl.org/perl.git/commitdiff/08e3451d7

(From OE-Core rev: 81e550d0c23c9842b85207cdfa73bbe9102e01fb)

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoolchain-shar-relocate.sh: Add error-handling
Mariano Lopez [Wed, 21 Sep 2016 07:54:25 +0000 (07:54 +0000)] 
toolchain-shar-relocate.sh: Add error-handling

The relocation script of the SDK doesn't have enough
error handling when replacing host perl with SDK perl
or changing the symlinks. This will add those checks
along with a sanity check of xargs.

[YOCTO #10114]

(From OE-Core rev: c9982dab4cfdd5963d2c2dd4aab99dd6a27fcd1c)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibnewt: link whiptail properly with libnewt
Andreas Müller [Wed, 21 Sep 2016 20:46:38 +0000 (22:46 +0200)] 
libnewt: link whiptail properly with libnewt

Configuration failed to detect gold as GNU linker. It was searching for
'GNU ld' but gold returns 'GNU gold (GNU Binutils 2.27.0.20160806) 1.12' which
does not match. When not linking by GNU linker Makefile did some magic link
target alignment:

ifneq ($(GNU_LD),)
SHLIBFLAGS= -Wl,--version-script,newt.0.52.ver -Wl,-soname,$(LIBNEWTSONAME)
else
SHLIBFLAGS=
endif

which caused:

| WARNING: libnewt-0.52.19-r0 do_package_qa: QA Issue: /usr/bin/whiptail contained in package whiptail requires libnewt.so, but no providers found in RDEPENDS_whiptail? [file-rdeps]

(From OE-Core rev: 3b806c927504e682ddd159c890a5f243e273b23e)

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouninative-tarball: Make stamp independent
Richard Purdie [Wed, 21 Sep 2016 23:24:03 +0000 (00:24 +0100)] 
uninative-tarball: Make stamp independent

The uninative tarball only contains nativesdk compoents. It should
not get regenerated when MACHINE changes for example. Currently its
sstate arch is also incorrect so changing SDKMACHINE results in other
variants being removed from the deploy directory.

This patch removes the target architecture dependencies so that
deploy artefacts can overlap and it doesn't continually rebuild. This
also fixes various autobuilder/release artefact issues we're having
as a result of these issues.

(From OE-Core rev: 6edd0b8dccc6e1e21f2ef87013e2e0a40d19b0d6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bitbake-user-manual: Added information for using single quotes
Scott Rifenbark [Wed, 21 Sep 2016 21:03:10 +0000 (14:03 -0700)] 
bitbake: bitbake-user-manual: Added information for using single quotes

Fixes [YOCTO #10293]

In the section about setting variables, I added a paragraph that
explains the use of single quotes when setting a variable.  The
case covers when you must have the double quote charater as part
of your variable's value.

(Bitbake rev: 01e331cd0d612013badfb07df91151907f74903d)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bitbake-user-manual: New section on functions you can call from Python
Scott Rifenbark [Wed, 7 Sep 2016 14:52:26 +0000 (07:52 -0700)] 
bitbake: bitbake-user-manual: New section on functions you can call from Python

Fixes [YOCTO #10100]

I added a new parent directory named "Functions You Can Call From
Within Python".  This section contains a couple new sub-sections.
One is the existing "Functions for Accessing Datastore Variables".
The other is called "Other Functions", and it is used to point
or reference some commonly used functions that the user can call
from within Python.

(Bitbake rev: ecbcedd74125ef00599f4af384ee303dae8af5b7)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bb.build: in _exec_task, catch BBHandledException
Christopher Larson [Fri, 16 Sep 2016 20:05:11 +0000 (13:05 -0700)] 
bitbake: bb.build: in _exec_task, catch BBHandledException

We don't want a traceback for this exception, we need to catch it, fire
TaskFailed, and return failure.

(Bitbake rev: 63966ada459d44d3dc7817ad2a026a22e8f6700f)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuildtools-tarball: add SDKMACHINE to stamps-extra-info
Joshua Lock [Wed, 21 Sep 2016 18:44:47 +0000 (19:44 +0100)] 
buildtools-tarball: add SDKMACHINE to stamps-extra-info

Otherwise the stamps for x86-64 and i686 uninative tarballs match
and we can't deploy both to the DEPLOYDIR.

(From OE-Core rev: fee426ae0c2b27925b05b856ada676958ee10869)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorunqemu: don't fail during check_arg_machine()
Joshua Lock [Wed, 21 Sep 2016 19:35:39 +0000 (20:35 +0100)] 
runqemu: don't fail during check_arg_machine()

If DEPLOY_DIR_IMAGE doesn't exist during check_arg_machine() we
will attempt to guess a suitable value later when check_and_set()
calls validate_paths(), therefore this shouldn't raise an exception

(From OE-Core rev: ed8d6f391c567048bd50dc3234804915f8212cef)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorunqemu: don't try and invoke bitbake when running in a toolchain env
Joshua Lock [Wed, 21 Sep 2016 19:35:38 +0000 (20:35 +0100)] 
runqemu: don't try and invoke bitbake when running in a toolchain env

If a MACHINE value is passed we can't validate it by running bitbake
as the toolchain environment doesn't include the build system, we
must assume that the passed value for MACHINE is correct.

(From OE-Core rev: 2c569678566c49b3ea237ef2de0fbae782263449)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorunqemu: try and guess qemu-system binary when MACHINE isn't set
Joshua Lock [Wed, 21 Sep 2016 19:35:37 +0000 (20:35 +0100)] 
runqemu: try and guess qemu-system binary when MACHINE isn't set

Emulate some logic from the prior, shell based, version of runqemu
to try and infer the correct setting for MACHINE from the kernel
and rootfs filenames.

(From OE-Core rev: a5adabe1414061d6864c5913dd5e66a4527838f1)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorunqemu: validate paths and attempt to infer unset paths
Joshua Lock [Wed, 21 Sep 2016 19:35:36 +0000 (20:35 +0100)] 
runqemu: validate paths and attempt to infer unset paths

We need to validate and ensure all paths are set regardless of
whether runqemu was invoked with a .qemuboot.conf file or
otherwise. Split this logic out into a separate method called
during check_and_set()

(From OE-Core rev: e843b2d49a151c1fe0d2a7ba00c41d2a35775736)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto: Updates genericx86* SRCREVs for linux-yocto 4.8
Alejandro Hernandez [Wed, 21 Sep 2016 16:17:52 +0000 (16:17 +0000)] 
linux-yocto: Updates genericx86* SRCREVs for linux-yocto 4.8

Upgrades to Linux 4.8-rc7

(From meta-yocto rev: 1a36dae24793dd1736e7eaea80c0b470d0be559d)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>