]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
7 years agosystemd: change some RRECOMMENDS to RDEPENDS
Chen Qi [Tue, 5 Sep 2017 08:07:59 +0000 (16:07 +0800)]
systemd: change some RRECOMMENDS to RDEPENDS

Set NO_RECOMMENDATIONS to "1", build and start a systemd image, and we
could not get serial getty spawned, thus causing the user not able to
login via serial port.

E.g.
MACHINE=qemux86-64 bitbake core-image-minimal
runqemu qemux86-64 nographic

And we cannot login onto the system.

Move util-linux-agetty and systemd-serialgetty (determined by PACKAGECONFIG)
from RRECOMMENDS to RDEPENDS to fix the above problem.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoclasses/externalsrc: delete symlinks at start of do_buildclean
Paul Eggleton [Mon, 18 Sep 2017 04:54:42 +0000 (16:54 +1200)]
classes/externalsrc: delete symlinks at start of do_buildclean

To help users find the work and log directories (especially within the
eSDK) we create symlinks to these from the source tree. However during
do_buildclean we call "make clean", and some project Makefiles which
delete something like "*/*/lib" which will match files underneath the
oe-workdir symlink and fail. do_buildclean is called from do_clean which
is in turn called by devtool reset by default, and thus devtool reset is
blocked. An example of a recipe where this is visible is the openssl-qat
recipe in meta-intel.

In order to fix this, delete the symlinks at the start of do_buildclean
since we shouldn't need them at that point anyway, and thus make clean
won't be able to trip over them.

Fixes [YOCTO #11036].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobzip2: Create Makefile for run-ptest
Ooi Cinly [Thu, 14 Sep 2017 09:35:48 +0000 (17:35 +0800)]
bzip2: Create Makefile for run-ptest

To improve binary reproducibility, only the
relevent part of the Makefile in bzip2-ptest
package that run-ptest needs are copied to
the destination directory.

bzip2-ptest requires Makefile. The original
Makefile contains references to build host.
By copying only the relevent part,
we avoid those references making their way
into the target system

Used Makefile.am as the source to extract
the revelent part instead of Makefile as
it is easier to parse than Makefile.

A redundant command  in do_install_ptest()
that repeat the copying of Makefile that
was already copied by  Makefile's install-ptest
step is removed because it now interfers with
the creation of the new Makefile by
make's install-ptest.

[YOCTO #11596]

Signed-off-by: Ooi Cinly <cinly.ooi@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoutil-linux: package switch_root separately
Ioan-Adrian Ratiu [Mon, 18 Sep 2017 12:22:02 +0000 (15:22 +0300)]
util-linux: package switch_root separately

Having only this utility is useful for tiny initramfs'es which don't
need the whole util-linux package (and neither the busybox binary
which is much bigger than switch_root) to do operations like decrypt
a rootfs & switch to it in the init file.

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobluez5: Correct support for building without systemd
Peter Kjellerstedt [Sun, 17 Sep 2017 09:06:04 +0000 (11:06 +0200)]
bluez5: Correct support for building without systemd

This avoids the following error when the systemd DISTRO_FEATURE is
enabled, but the systemd PACKAGECONFIG is not:

  ERROR: bluez5-5.46-r0 do_package: SYSTEMD_SERVICE_bluez5 value
  bluetooth.service does not exist

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosysvinit-inittab: start_getty: Cleanup comments
Andrea Adami [Fri, 15 Sep 2017 23:35:50 +0000 (01:35 +0200)]
sysvinit-inittab: start_getty: Cleanup comments

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosysvinit-inittab: start_getty: consider whitespaces in tty driver name
Andrea Adami [Fri, 15 Sep 2017 23:35:49 +0000 (01:35 +0200)]
sysvinit-inittab: start_getty: consider whitespaces in tty driver name

Unbreak serial console when driver name contains spaces (PXA serial).

Fix commit ac0e954
"start_getty: Over added SERIAL_CONSOLE cause error in userspace log"

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agocore-image-tiny-initramfs: initramfs recipes should not generate an actual image...
Alejandro Hernandez [Fri, 15 Sep 2017 18:22:44 +0000 (11:22 -0700)]
core-image-tiny-initramfs: initramfs recipes should not generate an actual image file

core-image-tiny-initramfs was used to generate a wic image, which was conceptually wrong
since initrafms recipes should only generate the boot artifacts that can later be used
by another recipe to generate an image using the tool of their choice.

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodevtools: qemu: Remove obsolete '--with-system-pixman' option
Alistair Francis [Fri, 15 Sep 2017 16:56:29 +0000 (09:56 -0700)]
devtools: qemu: Remove obsolete '--with-system-pixman' option

QEMU version 2.11 will remove the pixman submodule. This means users are
always required to supply pixman from the system if building softmmu
support in QEMU.

Without specifying a pixman configure option QEMU will default to using
the system pixman if it is avaliable. In which case let's remove the
config option as it is no longer supported in recent commits and is not
required in older builds as the configure system defaults are already
using system pixman.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoAdd Go toolchain support
Otavio Salvador [Thu, 14 Sep 2017 19:22:31 +0000 (16:22 -0300)]
Add Go toolchain support

This adds the meta-go-toolchain. It enables the generation of a Go
toolchain allowing for cross compiling for target architecture.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogo.bbclass: set TMPDIR during compilation
Matt Madison [Thu, 14 Sep 2017 19:22:30 +0000 (16:22 -0300)]
go.bbclass: set TMPDIR during compilation

The go build tool creates working directories under
$TMPDIR for all of its processing.  Create a directory
under ${WORKDIR} for this and point TMPDIR at it during
compilation, so that systems that have a relatively
small /tmp filesystems can still compile larger Go
packages.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogo: fixes for cross-canadian builds
Matt Madison [Thu, 14 Sep 2017 19:22:29 +0000 (16:22 -0300)]
go: fixes for cross-canadian builds

* Add patch for go's make script to allow for
  build system != host system

* Add dependencies on the appropriate crosssdk recipes,
  and use the crosssdk C compiler and linker

* Remove bashism in the wrapper script

* Restrict installation to only the tool binaries
  to address some packaging errors

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogo: fix linking issues for nativesdk builds
Matt Madison [Thu, 14 Sep 2017 19:22:28 +0000 (16:22 -0300)]
go: fix linking issues for nativesdk builds

Switch to using an external linker for nativesdk
go, go-runtime, and go package builds, which works
more reliably when building 32-bit SDKs.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogo-crosssdk: fix host/target references and cleanup
Matt Madison [Thu, 14 Sep 2017 19:22:27 +0000 (16:22 -0300)]
go-crosssdk: fix host/target references and cleanup

* The _FOR_TARGET variables need to include SDKNATIVEPATH
* Install tools (cmd) only, and for the build host
* Remove unnecessary FILES setting

Corrects some errors when the build host architecture
is different from the SDKMACHINE's.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoalsa-state: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:06 +0000 (11:40 +0800)]
alsa-state: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoudev-extraconf: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:24 +0000 (11:40 +0800)]
udev-extraconf: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agotrace-cmd: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:23 +0000 (11:40 +0800)]
trace-cmd: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosystemd-serialgetty: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:22 +0000 (11:40 +0800)]
systemd-serialgetty: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosystemd-compat-units: Add HOMEPAGE info into recipe.
Huang Qiyu [Mon, 18 Sep 2017 03:40:21 +0000 (11:40 +0800)]
systemd-compat-units: Add HOMEPAGE info into recipe.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoqemuwrapper-cross: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:20 +0000 (11:40 +0800)]
qemuwrapper-cross: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoopkg-arch-config: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:19 +0000 (11:40 +0800)]
opkg-arch-config: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomobile-broadband-provider-info: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:18 +0000 (11:40 +0800)]
mobile-broadband-provider-info: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolsbtest: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:17 +0000 (11:40 +0800)]
lsbtest: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolsbinitscripts: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:16 +0000 (11:40 +0800)]
lsbinitscripts: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibxml-sax-perl: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:15 +0000 (11:40 +0800)]
libxml-sax-perl: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibxml-sax-base-perl: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:14 +0000 (11:40 +0800)]
libxml-sax-base-perl: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibxml-parser-perl: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:13 +0000 (11:40 +0800)]
libxml-parser-perl: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibtimedate-perl: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:12 +0000 (11:40 +0800)]
libtimedate-perl: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agokbd: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:10 +0000 (11:40 +0800)]
kbd: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoinitscripts: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:09 +0000 (11:40 +0800)]
initscripts: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoi2c-tools: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:08 +0000 (11:40 +0800)]
i2c-tools: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodtc: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:07 +0000 (11:40 +0800)]
dtc: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoconf: add maintainers.inc from meta-poky
Ross Burton [Thu, 14 Sep 2017 11:01:21 +0000 (12:01 +0100)]
conf: add maintainers.inc from meta-poky

7 years agogawk: Enable native building
Nathan Rossi [Sun, 10 Sep 2017 12:59:08 +0000 (22:59 +1000)]
gawk: Enable native building

Also update the ASSUME_PROVIDED in bitbake.conf to contain gawk-native
as the dependency is passed in via HOSTTOOLS for native builds.

This allows for recipes to depend on gawk-native, and have the
dependency met if not already provided by the host tools.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agouseradd.bbclass: Unify writing of script file in useradd_sysroot_sstate()
Peter Kjellerstedt [Fri, 15 Sep 2017 14:48:59 +0000 (16:48 +0200)]
useradd.bbclass: Unify writing of script file in useradd_sysroot_sstate()

There were two identical code blocks for writing the
postinst-useradd-${PN} scripts. This combines them into one.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobinutils: apply mingw fix only for binutils-cross-canadian
Samuli Piippo [Fri, 15 Sep 2017 10:07:07 +0000 (13:07 +0300)]
binutils: apply mingw fix only for binutils-cross-canadian

Whenever SDKMACHINE is set to mingw32, sdkmingw32 override is defined
everywhere. This meant that value of LDGOLD was different also for
binutils and binutils-cross depending whether SDKMACHINE was set or not.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/oe-build-perf-report: show recipe version changes in html report
Markus Lehtonen [Fri, 15 Sep 2017 13:04:40 +0000 (16:04 +0300)]
scripts/oe-build-perf-report: show recipe version changes in html report

If buildstats are available (for a certain measurement), show recipe
version changes between the two builds that are being compared. The
information shown includes new and dropped recipes as well as changes in
recipe version, revision or epoch.

[YOCTO #11382]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/buildstats-diff: move more code to lib/buildstats.py
Markus Lehtonen [Fri, 15 Sep 2017 13:04:39 +0000 (16:04 +0300)]
scripts/buildstats-diff: move more code to lib/buildstats.py

More refactoring of buildstats-diff script. Move recipe version
comparison functionality to scripts/lib/buildstats.py. This patch also
compasses some wording changes, i.e. changing 'package' to 'recipe'.

[YOCTO #11382]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/oe-build-perf-report: summary of task resource usage
Markus Lehtonen [Fri, 15 Sep 2017 13:04:38 +0000 (16:04 +0300)]
scripts/oe-build-perf-report: summary of task resource usage

Utilize buildstats, if available, and show a summary of the resource
usage of bitbake tasks in the html report. The details provided are:
- total number of tasks
- top 5 resource-hungry tasks (cputime)
- top 5 increase in resource usage (cputime)
- top 5 decrease in resource usage (cputime)

[YOCTO #11381]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/buildstats-diff: move code to lib/buildstats.py
Markus Lehtonen [Fri, 15 Sep 2017 13:04:37 +0000 (16:04 +0300)]
scripts/buildstats-diff: move code to lib/buildstats.py

Move over code from buildstats-diff to new scripts/lib/buildstats.py
module in order to share code related to buildstats processing.  Also,
refactor the code, introducing new classes to make the code readable,
maintainable and easier to debug.

[YOCTO #11381]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/oe-build-perf-report: tidy up html syntax
Markus Lehtonen [Fri, 15 Sep 2017 12:54:55 +0000 (15:54 +0300)]
scripts/oe-build-perf-report: tidy up html syntax

Fix some problems in the html syntax of the generated report:
- prevent empty rows in the summary table
- add one missing column in the results table

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/oe-build-perf-report: provide valid title in the html report
Markus Lehtonen [Fri, 15 Sep 2017 12:54:54 +0000 (15:54 +0300)]
scripts/oe-build-perf-report: provide valid title in the html report

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/oe-build-perf-report: remove dead code
Markus Lehtonen [Fri, 15 Sep 2017 12:54:53 +0000 (15:54 +0300)]
scripts/oe-build-perf-report: remove dead code

Some leftover from an early prototype.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/oe-build-perf-report: use --hostname in --list
Markus Lehtonen [Fri, 15 Sep 2017 12:54:52 +0000 (15:54 +0300)]
scripts/oe-build-perf-report: use --hostname in --list

Makes it possible to list test results for certain host only, instead of
always listing all results from all hosts.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/oe-build-perf-report: fix handling of --history-length
Markus Lehtonen [Fri, 15 Sep 2017 12:54:51 +0000 (15:54 +0300)]
scripts/oe-build-perf-report: fix handling of --history-length

Don't crash if 'left' revision is older than the range of commits
specified with '--history-length'. In this case the 'left' revision
takes precedence.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/oe-build-perf-report: add AggregateTestData class
Markus Lehtonen [Fri, 15 Sep 2017 12:54:50 +0000 (15:54 +0300)]
scripts/oe-build-perf-report: add AggregateTestData class

Making the code a bit more readable.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/oe-build-perf-report: fix dumping buildstats
Markus Lehtonen [Fri, 15 Sep 2017 12:54:49 +0000 (15:54 +0300)]
scripts/oe-build-perf-report: fix dumping buildstats

Fix a misbehavior when some of the buildstats are missing.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoruby: CVE-2017-14064
Ovidiu Panait [Fri, 15 Sep 2017 11:36:58 +0000 (14:36 +0300)]
ruby: CVE-2017-14064

Ruby through 2.2.7, 2.3.x through 2.3.4, and 2.4.x through 2.4.1 can expose
arbitrary memory during a JSON.generate call. The issues lies in using
strdup in ext/json/ext/generator/generator.c, which will stop after
encountering a '\0' byte, returning a pointer to a string of length zero,
which is not the length stored in space_len.

Reference:
https://nvd.nist.gov/vuln/detail/CVE-2017-14064

Upstream patch:
https://github.com/flori/json/commit/8f782fd8e181d9cfe9387ded43a5ca9692266b85

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoattr: Backports to fix exported headers
Khem Raj [Fri, 15 Sep 2017 04:13:28 +0000 (21:13 -0700)]
attr: Backports to fix exported headers

Packages which depends on attr headers fail due
to uint32_t not being defined, this needed header
to include sys/types.h

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogcc-6.3.inc: Use ucontext_t not struct ucontext.
Juro Bystricky [Thu, 14 Sep 2017 23:18:08 +0000 (16:18 -0700)]
gcc-6.3.inc: Use ucontext_t not struct ucontext.

Use ucontext_t not struct ucontext in linux-unwind.h files.

Current glibc no longer gives the ucontext_t type the tag struct
ucontext, to conform with POSIX namespace rules.  This requires
various linux-unwind.h files in libgcc, that were previously using
struct ucontext, to be fixed to use ucontext_t instead.  This is
similar to the removal of the struct siginfo tag from siginfo_t some
years ago.

Backport of patches by Joseph Myers, taken from
https://gcc.gnu.org/viewcvs/gcc?limit_changes=0&view=revision&revision=249957

[YOCTO #12083]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooeqa/selftest/recipetool: use stable tarball for recipetool create test
Ross Burton [Fri, 15 Sep 2017 11:15:25 +0000 (12:15 +0100)]
oeqa/selftest/recipetool: use stable tarball for recipetool create test

GitHub dynamically generates the /archive/ tarballs but we're encoding checksums
in the test suite.  Change the URL to use a static tarball, and update the
checksums.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agologrotate: use stable download URL
Ross Burton [Fri, 15 Sep 2017 10:41:35 +0000 (11:41 +0100)]
logrotate: use stable download URL

GitHub automatically-generated tarballs from tags can and do change over time,
so change logrotate to use the uploaded tarball.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibproxy: use stable download URL
Ross Burton [Fri, 15 Sep 2017 10:41:35 +0000 (11:41 +0100)]
libproxy: use stable download URL

GitHub automatically-generated tarballs from tags can and do change over time,
so change libproxy to use the uploaded tarball.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agouseradd: don't override pseudo environment
Ross Burton [Thu, 14 Sep 2017 16:32:24 +0000 (17:32 +0100)]
useradd: don't override pseudo environment

Back in the dark days before recipe-specific-sysroots the paths being passed in
this manual construction of the pseudo environment made sense, but now they're
incorrect and result in pseudo writing to two different databases during a
single build.  The result is that pseudo doesn't follow changes to /etc/passwd
in the sysroot, and warns in the logs.

Remove the PSEUDO_LOCALSTATEDIR assignment and inherit the correct assignment in
FAKEROOTENV.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosystemd-machine-units: update LIC_FILES_CHKSUM
Robert Yang [Thu, 14 Sep 2017 09:13:18 +0000 (02:13 -0700)]
systemd-machine-units: update LIC_FILES_CHKSUM

Fixed:
WARNING: systemd-machine-units-1.0-r19 do_populate_lic: ${COREBASE}/LICENSE is not a valid license file, please use '${COMMON_LICENSE_DIR}/MIT' for a MIT License file in LIC_FILES_CHKSUM. This will become an error in the future

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoe2fsprogs: set dir's mode correctly
Robert Yang [Thu, 14 Sep 2017 09:13:17 +0000 (02:13 -0700)]
e2fsprogs: set dir's mode correctly

Fixed:
1) in pkg_postinst task set wanted file permissions:
---> chmod -R 521 "$D/opt/my_folder"
2) generate the rootfs image

Results:
my_folder hasn't correct permissions on rootfs ext4 image -> permissions are changed to 721

But it should be 521.

[YOCTO #11652]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobitbake.conf: Add default FILESYSTEM_PERMS_TABLES
Mark Hatle [Wed, 13 Sep 2017 22:40:15 +0000 (17:40 -0500)]
bitbake.conf: Add default FILESYSTEM_PERMS_TABLES

If FILESYSTEM_PERMS_TABLES was not defined, the default was selected by the
packages.bbclass.  This made it difficult for a recipe or layer to 'append'
to the default.

Copy the default into the bitbake.conf, allowing future _append and += style
actions.

Default was remove from package.bbclass.  If a value is not set, only the
built-in perms fixes will be used.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agotcp-wrappers: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 14 Sep 2017 09:06:25 +0000 (17:06 +0800)]
tcp-wrappers: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosysprof: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 14 Sep 2017 09:06:24 +0000 (17:06 +0800)]
sysprof: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agominicom: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 14 Sep 2017 09:06:23 +0000 (17:06 +0800)]
minicom: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibxml-perl: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 14 Sep 2017 09:06:22 +0000 (17:06 +0800)]
libxml-perl: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibxml-namespacesupport-perl: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 14 Sep 2017 09:06:21 +0000 (17:06 +0800)]
libxml-namespacesupport-perl: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibnotify: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 14 Sep 2017 09:06:20 +0000 (17:06 +0800)]
libnotify: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibgudev: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 14 Sep 2017 02:07:03 +0000 (10:07 +0800)]
libgudev: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoblktrace: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 14 Sep 2017 02:07:02 +0000 (10:07 +0800)]
blktrace: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodevtool: ensure recipes devtool is working on are unlocked within the eSDK
Paul Eggleton [Wed, 6 Sep 2017 09:55:01 +0000 (21:55 +1200)]
devtool: ensure recipes devtool is working on are unlocked within the eSDK

Alongside reworking the way devtool extracts source, we now need to
ensure that within the extensible SDK where task signatures are locked,
the signatures of the tasks for the recipes being worked on get unlocked
at the right time or otherwise we'll now get taskhash mismatches when
running devtool modify on a recipe that was included in the eSDK such as
the kernel (due to a separate bug). The existing mechanism for
auto-unlocking recipes was a little weak and was happening too late, so
I've reimplemented it so that:
(a) it gets triggered immediately when the recipe/append is created
(b) we avoid writing to the unlocked signatures file unnecessarily
    (since it's a global configuration file) and
(c) within the eSDK configuration we whitelist SIGGEN_UNLOCKED_RECIPES
    to avoid unnecessary reparses every time we perform one of the
    devtool operations that does need to change this list.

Fixes [YOCTO #11883] (not the underlying cause, but this manifestation
of the issue).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
7 years agodevtool: rework source extraction so that dependencies are handled
Paul Eggleton [Mon, 4 Sep 2017 22:56:18 +0000 (10:56 +1200)]
devtool: rework source extraction so that dependencies are handled

Since it was first implemented, devtool's source extraction (as used by
the devtool modify, extract and upgrade subcommands) ignored other recipe
dependencies - so for example if you ran devtool modify on a recipe that
fetches from svn or is compressed using xz then it would fail if those
dependencies hadn't been built first. Now that we can execute tasks in
the normal way (i.e. tinfoil.build_targets()) then we can rework it to
use that. This is slightly tricky in that the source extraction needs to
insert some logic in between tasks; luckily we can use a helper class
that conditionally adds prefuncs to make that possible.

Some side-effects / aspects of this change worth noting:
* Operations are a little slower because we have to go through the task
  dependency graph generation and other startup processing. There's not
  really any way to avoid this though.
* devtool extract didn't used to require a workspace, now it does
  because it needs to create a temporary bbappend for the recipe. (As
  with other commands the workspace be created on the fly if it doesn't
  already exist.)
* I want any existing sysroot files and stamps to be left alone during
  extraction since we are running the tasks off to the side, and
  especially devtool extract should be able to be used without touching
  these. However, this was hampered by the automatic removal process in
  sstate.bbclass triggered by bb.event.ReachableStamps when the task
  signatures change, thus I had to introduce a way to disable this
  removal on a per-recipe basis (we still want it to function for any
  dependencies that we aren't working on). To implement this I elected
  to use a file written to tmp/sstate-control which gets deleted
  automatically after reading so that there's less chance of stale files
  affecting future sessions. I could have used a variable but this would
  have needed to be whitelisted and I'd have to have poked its value in
  using the setVariable command.

Fixes [YOCTO #11198].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
7 years agoovmf: fix do_compile error when len(tmp)=410
Dengke Du [Tue, 12 Sep 2017 01:20:09 +0000 (21:20 -0400)]
ovmf: fix do_compile error when len(tmp)=410

[YOCTO #11354]

(From OE-Core rev: b6f344bd311faca36cb3a4acdafac2728409ad90)

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: accept '-' in bitbake variables
Enrico Scholz [Fri, 8 Sep 2017 17:33:01 +0000 (19:33 +0200)]
wic: accept '-' in bitbake variables

'-' is valid and common in bitbake variables (e.g. 'FOO_pn-bar'). Accept
it and other characters when reading the .env file.

Also, allow variables to be empty.

(From OE-Core rev: e688ac8e92d2bc451d8b2d437596f630bedccd2c)

Signed-off-by: Enrico Scholz <enrico.scholz@ensc.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolinux-yocto/4.9: bluetooth: CVE-2017-1000251
Bruce Ashfield [Thu, 14 Sep 2017 13:47:01 +0000 (09:47 -0400)]
linux-yocto/4.9: bluetooth: CVE-2017-1000251

Integrating the following commit:

[
    commit 16de0149674ed12d983b77a453852ac2e64584b4
    Author: Ben Seri <ben@armis.com>
    Date:   Sat Sep 9 23:15:59 2017 +0200

    Bluetooth: Properly check L2CAP config option output buffer length

    Validate the output buffer length for L2CAP config requests and
    responses to avoid overflowing the stack buffer used for building the
    option blocks.

Cc: stable@vger.kernel.org
Signed-off-by: Ben Seri <ben@armis.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolinux-yocto/4.4: bluetooth: CVE-2017-1000251
Bruce Ashfield [Thu, 14 Sep 2017 13:47:02 +0000 (09:47 -0400)]
linux-yocto/4.4: bluetooth: CVE-2017-1000251

Integrating the following commit:

[
    commit 16de0149674ed12d983b77a453852ac2e64584b4
    Author: Ben Seri <ben@armis.com>
    Date:   Sat Sep 9 23:15:59 2017 +0200

    Bluetooth: Properly check L2CAP config option output buffer length

    Validate the output buffer length for L2CAP config requests and
    responses to avoid overflowing the stack buffer used for building the
    option blocks.

Cc: stable@vger.kernel.org
Signed-off-by: Ben Seri <ben@armis.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolinux-yocto/4.12: bluetooth: CVE-2017-1000251
Bruce Ashfield [Thu, 14 Sep 2017 13:47:00 +0000 (09:47 -0400)]
linux-yocto/4.12: bluetooth: CVE-2017-1000251

Integrating the following commit:

[
    commit 16de0149674ed12d983b77a453852ac2e64584b4
    Author: Ben Seri <ben@armis.com>
    Date:   Sat Sep 9 23:15:59 2017 +0200

    Bluetooth: Properly check L2CAP config option output buffer length

    Validate the output buffer length for L2CAP config requests and
    responses to avoid overflowing the stack buffer used for building the
    option blocks.

Cc: stable@vger.kernel.org
Signed-off-by: Ben Seri <ben@armis.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolinux-yocto/4.10: bluetooth: CVE-2017-1000251
Bruce Ashfield [Thu, 14 Sep 2017 13:46:59 +0000 (09:46 -0400)]
linux-yocto/4.10: bluetooth: CVE-2017-1000251

Integrating the following commit:

[
    commit 16de0149674ed12d983b77a453852ac2e64584b4
    Author: Ben Seri <ben@armis.com>
    Date:   Sat Sep 9 23:15:59 2017 +0200

    Bluetooth: Properly check L2CAP config option output buffer length

    Validate the output buffer length for L2CAP config requests and
    responses to avoid overflowing the stack buffer used for building the
    option blocks.

Cc: stable@vger.kernel.org
Signed-off-by: Ben Seri <ben@armis.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolinux-yocto/4.12: integrate aufs4 core support
Bruce Ashfield [Thu, 14 Sep 2017 13:46:58 +0000 (09:46 -0400)]
linux-yocto/4.12: integrate aufs4 core support

The aufs4 now has a 4.12 port, so we can integrate it into the
reference kernel and stay consistent with previous releases.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolinux-yocto/4.9: update to v4.9.49
Bruce Ashfield [Thu, 14 Sep 2017 13:46:56 +0000 (09:46 -0400)]
linux-yocto/4.9: update to v4.9.49

Integrating the korg -stable updates that comprise the following commits:

   f07cb3489cff Linux 4.9.49
   8bc67f67b763 drm/bridge: adv7511: Switch to using drm_kms_helper_hotplug_event()
   8b5a7e443622 drm/bridge: adv7511: Use work_struct to defer hotplug handing to out of irq context
   7791b59153cb scsi: sg: recheck MMAP_IO request length with lock held
   b06e1abf1ff2 scsi: sg: protect against races between mmap() and SG_SET_RESERVED_SIZE
   5b9c6a54c629 cs5536: add support for IDE controller variant
   ec552ece1f25 workqueue: Fix flag collision
   25bdc516b58e drm/nouveau/pci/msi: disable MSI on big-endian platforms by default
   078866740e35 s390/mm: avoid empty zero pages for KVM guests to avoid postcopy hangs
   c193becad9ad MCB: add support for SC31 to mcb-lpc
   0e720cd70631 mwifiex: correct channel stat buffer overflows
   5c23d3ed1190 dlm: avoid double-free on error path in dlm_device_{register,unregister}
   23b7d4f52b69 iwlwifi: pci: add new PCI ID for 7265D
   747562619512 Bluetooth: Add support of 13d3:3494 RTL8723BE device
   b48f7183c64c rtlwifi: rtl_pci_probe: Fix fail path of _rtl_pci_find_adapter
   ed7a384a904f Input: trackpoint - assume 3 buttons when buttons detection fails
   90a1e2e19ed7 ath10k: fix memory leak in rx ring buffer allocation
   d8b992d93555 intel_th: pci: Add Cannon Lake PCH-LP support
   a22d561178ee intel_th: pci: Add Cannon Lake PCH-H support
   5555eb956edc driver core: bus: Fix a potential double free
   ffb58b875d24 iio: adc: ti-ads1015: add adequate wait time to get correct conversion
   ff4a98e3bcb3 iio: adc: ti-ads1015: don't return invalid value from buffer setup callbacks
   1ed4565b7c7b iio: adc: ti-ads1015: avoid getting stale result after runtime resume
   c72ad1a4fdf0 iio: adc: ti-ads1015: enable conversion when CONFIG_PM is not set
   115af6c3b155 iio: adc: ti-ads1015: fix scale information for ADS1115
   177d84e3a72a iio: adc: ti-ads1015: fix incorrect data rate setting update
   e58b04fb5b0b staging/rts5208: fix incorrect shift to extract upper nybble
   afcfe0661a74 USB: core: Avoid race of async_completed() w/ usbdev_release()
   80cdcd7f5335 USB: musb: fix external abort on suspend
   6b3b3a22ef20 usb:xhci:Fix regression when ATI chipsets detected
   99a22c84f51d usb: Add device quirk for Logitech HD Pro Webcam C920-C
   773b93f4255f USB: serial: option: add support for D-Link DWM-157 C1
   2ea91c52ff5f usb: quirks: add delay init quirk for Corsair Strafe RGB keyboard
   8a697a50c090 Linux 4.9.48
   d325f1f1e245 epoll: fix race between ep_poll_callback(POLLFREE) and ep_free()/ep_remove()
   dd2342ad6665 kvm: arm/arm64: Force reading uncached stage2 PGD
   70df301a083c drm/ttm: Fix accounting error when fail to get pages for pool
   12a70ccaa686 xfrm: policy: check policy direction value
   31decdcd8369 lib/mpi: kunmap after finishing accessing buffer
   9e2788ce8f17 wl1251: add a missing spin_lock_init()
   e2ae90bb85f8 CIFS: remove endian related sparse warning
   c5e76654a9e5 CIFS: Fix maximum SMB2 header size
   d4e7dfda905e alpha: uapi: Add support for __SANE_USERSPACE_TYPES__
   309e4dbfaf3d cpuset: Fix incorrect memory_pressure control file mapping
   da16ed52c36a cpumask: fix spurious cpumask_of_node() on non-NUMA multi-node configs
   715849268b34 ceph: fix readpage from fscache
   8cc3acff5f1a mm, madvise: ensure poisoned pages are removed from per-cpu lists
   17c564f629f4 mm, uprobes: fix multiple free of ->uprobes_state.xol_area
   9e0a64330ce5 crypto: algif_skcipher - only call put_page on referenced and used pages
   91a0e1edb80a i2c: ismt: Return EMSGSIZE for block reads with bogus length
   d22f6da47355 i2c: ismt: Don't duplicate the receive length for block reads
   31562136c8d4 irqchip: mips-gic: SYNC after enabling GIC region
   458ca52f1564 Linux 4.9.47
   529ada21ff9e lz4: fix bogus gcc warning
   c47c52cde806 scsi: sg: reset 'res_in_use' after unlinking reserved array
   4099ac938385 scsi: sg: protect accesses to 'reserved' page array
   c0c6dff92303 locking/spinlock/debug: Remove spinlock lockup detection code
   27e7506c33d0 arm64: fpsimd: Prevent registers leaking across exec
   43f776dab360 x86/io: Add "memory" clobber to insb/insw/insl/outsb/outsw/outsl
   509d8b52bbe7 arm64: mm: abort uaccess retries upon fatal signal
   3e033635b2b7 kvm: arm/arm64: Fix race in resetting stage2 PGD
   b8a1532b16fd gcov: support GCC 7.1
   47974403c9ca staging: wilc1000: simplify vif[i]->ndev accesses
   dd758f82a3bf scsi: isci: avoid array subscript warning
   f71996c3ce5d p54: memset(0) whole array

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolinux-yocto/4.4: update to v4.4.87
Bruce Ashfield [Thu, 14 Sep 2017 13:46:57 +0000 (09:46 -0400)]
linux-yocto/4.4: update to v4.4.87

Integrating the -stable update with the following commits:

   573b59e17e37 Linux 4.4.87
   d95827490c39 crypto: algif_skcipher - only call put_page on referenced and used pages
   ab3ee6b53d67 epoll: fix race between ep_poll_callback(POLLFREE) and ep_free()/ep_remove()
   628212c89fae kvm: arm/arm64: Force reading uncached stage2 PGD
   57ff696f54b5 kvm: arm/arm64: Fix race in resetting stage2 PGD
   94183009ac0e drm/ttm: Fix accounting error when fail to get pages for pool
   9b3dcc98d8df xfrm: policy: check policy direction value
   c0c2e7567a34 wl1251: add a missing spin_lock_init()
   5f08f0aebf70 CIFS: remove endian related sparse warning
   e596cc1454d4 CIFS: Fix maximum SMB2 header size
   6cdda3497db8 alpha: uapi: Add support for __SANE_USERSPACE_TYPES__
   ed48d9230e30 cpuset: Fix incorrect memory_pressure control file mapping
   15e94ec4ec21 cpumask: fix spurious cpumask_of_node() on non-NUMA multi-node configs
   857d0b3dd756 ceph: fix readpage from fscache
   043ccc9781cc i2c: ismt: Return EMSGSIZE for block reads with bogus length
   fab3229af4e5 i2c: ismt: Don't duplicate the receive length for block reads
   e119fc492de9 irqchip: mips-gic: SYNC after enabling GIC region
   cd99a4f3f43b Linux 4.4.86
   c81c4d453edf drm/i915: fix compiler warning in drivers/gpu/drm/i915/intel_uncore.c
   b7571624fe98 scsi: sg: reset 'res_in_use' after unlinking reserved array
   a4075bbb67b9 scsi: sg: protect accesses to 'reserved' page array
   823086b057aa arm64: fpsimd: Prevent registers leaking across exec
   218720fe5939 x86/io: Add "memory" clobber to insb/insw/insl/outsb/outsw/outsl
   a7a074f3a4d5 arm64: mm: abort uaccess retries upon fatal signal
   da981044d049 lpfc: Fix Device discovery failures during switch reboot test.
   389328ea1379 p54: memset(0) whole array
   5acdbe667cf4 lightnvm: initialize ppa_addr in dev_to_generic_addr()
   d255fffdb532 gcov: support GCC 7.1
   2f3e97a814c8 gcov: add support for gcc version >= 6
   41685ae5cd7b i2c: jz4780: drop superfluous init
   05429bbfd726 btrfs: remove duplicate const specifier
   9a64425945a0 ALSA: au88x0: Fix zero clear of stream->resources
   da8477a6695a scsi: isci: avoid array subscript warning

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolinux-yocto/4.12: update to v4.12.12
Bruce Ashfield [Thu, 14 Sep 2017 13:46:55 +0000 (09:46 -0400)]
linux-yocto/4.12: update to v4.12.12

Integrating the korg stable update comprising the following commits:

   6ff98e8e5d24 Linux 4.12.12
   ce4ef9346d9f rtlwifi: Fix fallback firmware loading
   21da5e36f41e rtlwifi: Fix memory leak when firmware request fails
   3ef5220bdba7 of/device: Prevent buffer overflow in of_device_modalias()
   aee0b37b710e scsi: sg: recheck MMAP_IO request length with lock held
   b0f24dc0e57b scsi: sg: protect against races between mmap() and SG_SET_RESERVED_SIZE
   1054309aca02 cs5536: add support for IDE controller variant
   e5298cd80371 ahci: don't use MSI for devices with the silly Intel NVMe remapping scheme
   f21c4eea8bb4 workqueue: Fix flag collision
   daf316ac4a6c drm/nouveau: Fix error handling in nv50_disp_atomic_commit
   75bc569a0d4b drm/nouveau/pci/msi: disable MSI on big-endian platforms by default
   e3b9fb20262f s390/mm: fix BUG_ON in crst_table_upgrade
   2ce0e0495177 s390/mm: avoid empty zero pages for KVM guests to avoid postcopy hangs
   d859d5a434f1 MCB: add support for SC31 to mcb-lpc
   f7fb789880dd mwifiex: correct channel stat buffer overflows
   0bfb078274ed dlm: avoid double-free on error path in dlm_device_{register,unregister}
   985696916329 iwlwifi: pci: add new PCI ID for 7265D
   cbe865a2e67d Bluetooth: Add support of 13d3:3494 RTL8723BE device
   7d20c5530a56 rtlwifi: rtl_pci_probe: Fix fail path of _rtl_pci_find_adapter
   a47814b210eb Input: trackpoint - assume 3 buttons when buttons detection fails
   d49ea1b6f98f ath10k: fix memory leak in rx ring buffer allocation
   270f0aadd1d2 intel_th: pci: Add Cannon Lake PCH-LP support
   d2192374b951 intel_th: pci: Add Cannon Lake PCH-H support
   055be595e016 fpga: altera-hps2fpga: fix multiple init of l3_remap_lock
   ba89dc8dce4e crypto: caam/qi - fix compilation with DEBUG enabled
   aa57cf57df95 crypto: caam/qi - fix compilation with CONFIG_DEBUG_FORCE_WEAK_PER_CPU=y
   693ef09dc616 binder: free memory on error
   bbe1a3b3d20d HID: wacom: Do not completely map WACOM_HID_WD_TOUCHRINGSTATUS usage
   af617519a8c2 driver core: bus: Fix a potential double free
   6c6c3c6bd954 iio: adc: ti-ads1015: add adequate wait time to get correct conversion
   00202ded930e iio: adc: ti-ads1015: don't return invalid value from buffer setup callbacks
   303d31eb5adf iio: adc: ti-ads1015: avoid getting stale result after runtime resume
   6c164a8ad918 iio: adc: ti-ads1015: enable conversion when CONFIG_PM is not set
   6c5595e0815d iio: adc: ti-ads1015: fix scale information for ADS1115
   1d7fadc5937f iio: adc: ti-ads1015: fix incorrect data rate setting update
   70bfcf9e319e staging/rts5208: fix incorrect shift to extract upper nybble
   ed68c935f5ae USB: core: Avoid race of async_completed() w/ usbdev_release()
   ffdb5b9e299a ANDROID: binder: add hwbinder,vndbinder to BINDER_DEVICES.
   74ffccfed38f ANDROID: binder: add padding to binder_fd_array_object.
   68596cc21060 USB: musb: fix external abort on suspend
   c927f42c8e38 usb:xhci:Fix regression when ATI chipsets detected
   0e8e379786da usb: Add device quirk for Logitech HD Pro Webcam C920-C
   c8ff3d1a47a2 USB: serial: option: add support for D-Link DWM-157 C1
   572bcfc7fbce usb: quirks: add delay init quirk for Corsair Strafe RGB keyboard
   13817987369a Linux 4.12.11
   9c2144e80db8 epoll: fix race between ep_poll_callback(POLLFREE) and ep_free()/ep_remove()
   38f5d65ad997 drm/nouveau/i2c/gf119-: add support for address-only transactions
   bdacc5fcf4f9 nvme: fix the definition of the doorbell buffer config support bit
   c6d2779d8f0d drm/ttm: Fix accounting error when fail to get pages for pool
   6c5b60edd786 xfrm: policy: check policy direction value
   6cc6f45db016 lib/mpi: kunmap after finishing accessing buffer
   a3deff1d3285 mmc: sdhci-xenon: add set_power callback
   d767ccb7c387 wl1251: add a missing spin_lock_init()
   619d31a0d247 drm/vmwgfx: Fix F26 Wayland screen update issue
   399081a50c48 dm mpath: do not lock up a CPU with requeuing activity
   77ab9e7fb431 CIFS: remove endian related sparse warning
   0627f7136685 CIFS: Fix maximum SMB2 header size
   f3e9dc4504b1 alpha: uapi: Add support for __SANE_USERSPACE_TYPES__
   ae53897e22db cpuset: Fix incorrect memory_pressure control file mapping
   fd20ca80f807 cpumask: fix spurious cpumask_of_node() on non-NUMA multi-node configs
   3d7aeba120fd ceph: fix readpage from fscache
   b3010084e111 mm, madvise: ensure poisoned pages are removed from per-cpu lists
   8c46edd78de9 mm, uprobes: fix multiple free of ->uprobes_state.xol_area
   726bd348ead3 crypto: algif_skcipher - only call put_page on referenced and used pages
   44c6b4a96625 i2c: ismt: Return EMSGSIZE for block reads with bogus length
   7a90bfae6345 i2c: ismt: Don't duplicate the receive length for block reads
   6fb972d03751 crypto: chacha20 - fix handling of chunked input
   6b31ae8707a7 Input: xpad - fix PowerA init quirk for some gamepad models
   2ed56448f555 Input: synaptics - fix device info appearing different on reconnect
   55a5a10ce349 irqchip: mips-gic: SYNC after enabling GIC region
   691208979811 x86/io: Add "memory" clobber to insb/insw/insl/outsb/outsw/outsl
   34ed350889dd arm64: mm: abort uaccess retries upon fatal signal

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolinux-yocto/meta: configuration feature additions
Bruce Ashfield [Thu, 14 Sep 2017 13:46:54 +0000 (09:46 -0400)]
linux-yocto/meta: configuration feature additions

Introducing the following configuration features:

  d67d2221cc2d bpf: add bpf kernel config
  3f9fb678aa31 sysrq: add sysrq kernel config
  729eb982ffd8 kexec/kdump: Add config fragments
  e00e63ef3068 kdump: add config fragments

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoREADME.qemu: Add from meta-yocto as it belongs in core
Richard Purdie [Thu, 14 Sep 2017 11:39:26 +0000 (12:39 +0100)]
README.qemu: Add from meta-yocto as it belongs in core

This piece makes sense in OE-Core after resutrcturing in meta-yocto.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopython*native.bbclass: suppress user site dirs
Martin Kelly [Tue, 12 Sep 2017 21:03:20 +0000 (14:03 -0700)]
python*native.bbclass: suppress user site dirs

Currently, $HOME/.local is being added into sys.path for the native
Python, causing subtle host contamination. Suppress this by exporting
PYTHONNOUSERSITE = "1" as documented in PEP 370.

Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobluez5: fix out-of-bounds access in SDP server (CVE-2017-1000250)
Ross Burton [Wed, 13 Sep 2017 19:11:52 +0000 (20:11 +0100)]
bluez5: fix out-of-bounds access in SDP server (CVE-2017-1000250)

All versions of the SDP server in BlueZ 5.46 and earlier are vulnerable to an
information disclosure vulnerability which allows remote attackers to obtain
sensitive information from the bluetoothd process memory. This vulnerability
lies in the processing of SDP search attribute requests.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo: update to go 1.9
Matt Madison [Wed, 13 Sep 2017 17:54:10 +0000 (14:54 -0300)]
go: update to go 1.9

* Rebased patches
   - dropped armhf-elf patch, should no longer be needed
   - dropped syslog patch which should not have been imported to begin with
   - reworked other patches as needed for the updated code base

* Updated native, cross, cross-canadian .inc files to
  remove some testdata directories that contain .a files
  that strip chokes on during sysroot staging

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogoarch.bbclass: set ARM_INSTRUCTION_SET to "arm"
Matt Madison [Wed, 13 Sep 2017 17:54:09 +0000 (14:54 -0300)]
goarch.bbclass: set ARM_INSTRUCTION_SET to "arm"

Go does not play well with thumb, so ensure that the
toolchain and any packages use arm, not thumb, instructions.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo.bbclass: Add ptest support
Otavio Salvador [Wed, 13 Sep 2017 17:54:08 +0000 (14:54 -0300)]
go.bbclass: Add ptest support

This adds ptest support for Go packages so its unittest content is
packaged and integrated onto the test framework.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo.bbclass: Add "ldflags" to QA skip list
Otavio Salvador [Wed, 13 Sep 2017 17:54:07 +0000 (14:54 -0300)]
go.bbclass: Add "ldflags" to QA skip list

Currently every Go package will end with GNU_HASH in the ELF binary
however adding it to every recipe is cumbersome so instead we handle
that here.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo.bbclass: add support linking against shared runtime
Matt Madison [Wed, 13 Sep 2017 17:54:06 +0000 (14:54 -0300)]
go.bbclass: add support linking against shared runtime

For architectures that support it, use the -linkshared
build option to build packages against the shared Go
runtime.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo-runtime: build the Go runtime as a shared library
Matt Madison [Wed, 13 Sep 2017 17:54:05 +0000 (14:54 -0300)]
go-runtime: build the Go runtime as a shared library

If the target architecture supports, it build the Go
runtime as a shared library in addition to building
the static libraries.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo-1.8: add patch for set soname in ELF shared objects
Matt Madison [Wed, 13 Sep 2017 17:54:04 +0000 (14:54 -0300)]
go-1.8: add patch for set soname in ELF shared objects

The go link tool does not set the soname by default, which
prevents package.bbclass's shlibs processing from seeing
shared libraries built with go.

This patch passes appropriate options to go's linker and
the external linker to set the soname.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogoarch.bbclass: identify archs with Go dynamic linking support
Matt Madison [Wed, 13 Sep 2017 17:54:03 +0000 (14:54 -0300)]
goarch.bbclass: identify archs with Go dynamic linking support

Go only supports shared libraries for some architectures, so
add a variable for use elsewhere that gets a non-null value
only for those architectures.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo-runtime: extend to nativesdk builds
Matt Madison [Wed, 13 Sep 2017 17:54:02 +0000 (14:54 -0300)]
go-runtime: extend to nativesdk builds

Missed this when addding SDK support.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agometa/conf/layers.conf: Add ca-certificates as ABISAFE
Mark Hatle [Wed, 13 Sep 2017 15:15:05 +0000 (10:15 -0500)]
meta/conf/layers.conf: Add ca-certificates as ABISAFE

meta-oe was doing this before, but it was triggering a yocto-compat-script
failure during the signature checking.

The ca-certificates changing is ABISAFE, as the certificates themselves do
not modify the compiles behavior of the applications.  This should permit
easier upgrades without as much rebuilding.

The original value was set in meta-oe by commit
ff7a4b13c4efeffc5853a93c6ff7265fa3d6c143.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoinsane: consider INSANE_SKIP without package-specifier too
Ross Burton [Wed, 13 Sep 2017 10:25:09 +0000 (11:25 +0100)]
insane: consider INSANE_SKIP without package-specifier too

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolinux-firmware: package Marvell PCIe WiFi firmwares
Stefan Agner [Wed, 13 Sep 2017 00:07:51 +0000 (17:07 -0700)]
linux-firmware: package Marvell PCIe WiFi firmwares

Add packages for Marvell Avastar 88W8897 and 88W8997 PCIe WiFi
chips.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoinsane: don't pass skip list to functions which don't respect it
Ross Burton [Wed, 13 Sep 2017 09:58:09 +0000 (10:58 +0100)]
insane: don't pass skip list to functions which don't respect it

When these functions are being called INSANE_SKIP has already been taken into
account, so don't confuse the code by passing the skip list.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agou-boot: Upgrade to 2017.09
Otavio Salvador [Mon, 11 Sep 2017 20:30:56 +0000 (17:30 -0300)]
u-boot: Upgrade to 2017.09

This upgrades the U-Boot to the 2017.09 release.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agom4: Add HOMEPAGE info into recipe file.
Huang Qiyu [Tue, 12 Sep 2017 07:51:14 +0000 (15:51 +0800)]
m4: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoat-spi2-core: Add HOMEPAGE info into recipe file.
Huang Qiyu [Tue, 12 Sep 2017 07:51:13 +0000 (15:51 +0800)]
at-spi2-core: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoat-spi2-atk: Add HOMEPAGE info into recipe file.
Huang Qiyu [Tue, 12 Sep 2017 07:51:12 +0000 (15:51 +0800)]
at-spi2-atk: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodevtool/standard: set a preferred provider when adding a new recipe with devtool
Juan M Cruz Alcaraz [Fri, 8 Sep 2017 13:34:34 +0000 (06:34 -0700)]
devtool/standard: set a preferred provider when adding a new recipe with devtool

A recipe added with "devtool add" requires to be able to take precedence on recipes
previously defined with PREFERRED_PROVIDER.

By adding the parameter "--provides" to "devtool add" it is possible to specify
an element to be provided by the recipe. A devtool recipe can override a previous
PREFERRED_PROVIDER using the layer configuration file in the workspace.

E.g.
    devtool add my-libgl git@git://my-libgl-repository --provides virtual/libgl

[YOCTO #10415]

Signed-off-by: Juan M Cruz Alcaraz <juan.m.cruz.alcaraz@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agohostap-utils: use w1.fi for SRC_URI
Maxin B. John [Mon, 11 Sep 2017 11:37:41 +0000 (14:37 +0300)]
hostap-utils: use w1.fi for SRC_URI

epitest.fi is down and hostap-utils source is now available in
w1.fi. So, move SRC_URI to https://w1.fi

Since hostap-utils is only meant for old Intersil Prism2/2.5/3 wifi cards,
this recipe will be removed from oe-core in future (most likely to
meta-handheld)

[YOCTO #12051]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>