Commit Graph

31330 Commits

Author SHA1 Message Date
Ross Burton 814e960d37 boost: port boost-python to Python 3
As Python 3 is the default Python version, change Boost to build against Python
3 instead of Python 2 if enabled.  It's not simple to support both, so this
means that support for building boost-python against Python 2 has been removed.

This involves backporting a number of patches upstream to fix Python 3 support,
and telling Boost precisely where to find the Python headers and libraries so
that it doesn't try to invoke the host Python to determine these values.

[ YOCTO #11104 ]

(From OE-Core rev: 0f5418eb0ce12811b16d2e3c28c28140a509f685)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-27 08:15:06 +01:00
Armin Kuster d51913264f tzdata: update to 2017b
(From OE-Core rev: 07aee884efee75568b4a7b7d6bbfe3255ed65ef5)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-27 08:15:06 +01:00
Armin Kuster 33f311b00a tzcode: update to 2017b
Briefly: Haiti has resumed DST.

  Changes to past and future time stamps

    Haiti resumed observance of DST in 2017.  (Thanks to Steffen Thorsen.)

  Changes to past time stamps

    Liberia changed from -004430 to +00 on 1972-01-07, not 1972-05-01.

    Use "MMT" to abbreviate Liberia's time zone before 1972, as "-004430"
    is one byte over the POSIX limit.  (Problem reported by Derick Rethans.)

(From OE-Core rev: 70ff7cfa8a7ffb537da19aeca026032bab55a00d)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-27 08:15:06 +01:00
Robert Yang c085688a5b targetcontrol.py: use logger.info to replace of bb.note
The bb.note prints multiple same lines when invoke this class again, but
if we set mainlogger.propagate = False, nothing would be printed,
according to logging's document:

https://docs.python.org/3/library/logging.html
Note
If you attach a handler to a logger and one or more of its ancestors, it
may emit the same record multiple times. In general, you should not need
to attach a handler to more than one logger - if you just attach it to
the appropriate logger which is highest in the logger hierarchy, then it
will see all events logged by all descendant loggers, provided that
their propagate setting is left set to True. A common scenario is to
attach handlers only to the root logger, and to let propagation take
care of the rest.

We may need avoid using bb.note or bb.warn in oeqa since it attaches
multiple log handlers which may cause confusions

This patch only sets "mainlogger.propagate = False" in
selftest/runqemu.py and use logger.info to replace bb.note in
targetcontrol.py to minimize the impact.

[YOCTO #10249]

(From OE-Core rev: b139790422bc8e0d80bad063bb78bc1632731bc1)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-27 08:15:06 +01:00
Robert Yang b6f5a8ab6b selftest/runqemu.py: add it to test runqemu
Usage:
$ oe-selftest -r runqemu

Current test cases:
$ runqemu nographic qemux86-64
$ runqemu nographic qemux86-64 ext4
$ runqemu nographic qemux86-64 iso
$ runqemu nographic core-image-minimal
$ runqemu nographic core-image-minimal vmdk
$ runqemu nographic core-image-minimal vdi
$ runqemu nographic tmp/deploy/images/qemux86-64
$ runqemu nographic tmp/deploy/images/qemux86-64 hddimg
$ runqemu nographic qemux86-64 slirp
$ runqemu nographic qemux86-64 slirp qcow2
$ runqemu nographic tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.qemuboot.conf
$ runqemu nographic tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.ext4

Need more later:
- Test initramfs
- Test nfs
- Test when set DEPLOY_DIR_IMAGE and OECORE_NATIVE_SYSROOT
- And others which similate runqemu runs on SDK and eSDK.

[YOCTO #10249]

(From OE-Core rev: e7073cb4786411bb71645e7d7cbc1c510910c4cc)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-27 08:15:06 +01:00
Chen Qi a5a1d4f431 qemurunner.py: fix handling of runqemuparams
The launch() doesn't need runqemuparams, we need handle it in start().

(From OE-Core rev: 16400f2b8bffc4cae0263bb597522071299b46ca)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-27 08:15:06 +01:00
Robert Yang b742fd023e oeqa/targetcontrol.py: modify it to test runqemu
Modify the following files to test runqemu:
    targetcontrol.py
    utils/commands.py
    utils/qemurunner.py

We need simulate how "runqemu" works in command line, so when test
"runqemu", the targetcontrol.py, utils/commands.py and
utils/qemurunner.py don't have to find the rootfs or set env vars.

[YOCTO #10249]

(From OE-Core rev: 9305d816bdf8837ea3a407091cb7f24a9a3ae8dc)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-27 08:15:06 +01:00
Patrick Ohly 58e6e7c204 qemurunner: configurable timeout for run_serial()
Some commands might need to run longer than the default timeout of
five seconds. If that occurred, run_serial() returned with a status
code of zero (sic!) and no other indication of what went wrong.

Now the timeout is configurable (with five still the default) and
an explicit warning ("<<< run_serial(): command timed out after 5 seconds without output >>>")
gets appended at the end of the data returned to the caller.

While at it, the logic for checking for the timeout was updated a bit
because both implementations could overshoot the timeout when entering
select() right before the final deadline.

(From OE-Core rev: accf0362f964cc9d6330b6e52e83d748d890521f)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-27 08:15:06 +01:00
Trevor Woerner 1e3f04f86a xserver-nodm-init: option to remove cursor
Add a PACKAGECONFIG option to allow the user to disable the mouse
cursor/pointer in the X server. This might be useful where a
touchscreen is used.

(From OE-Core rev: 680940250c9a1c7b43229c5e4f4fed5cc3e31033)

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-27 08:15:06 +01:00
Richard Purdie faf70253ba staging: Remove uninstalled dependencies from sysroots
Currently, if something is added to a sysroot, its hash remains unchanged,
and it continues to be buildable, it doesn't get removed from the sysroot.

This patch handles the case where something is removed from DEPENDS or
[depends].

It does introduce its own issue where something could get removed even
though some other task in parallel may have the same requirement. This
case should be extrememly rare and fixing the more common DEPENDS removal
is likely the bigger win though.

(From OE-Core rev: 06227bc5e533841ab12cde84a6ed6f8b8ddeb5cb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-24 23:43:33 +00:00
Richard Purdie ce9cbae874 staging: Update extend_recipe_sysroot vardepsexclude after code changes
Changed were made to the code but not reflected in vardepsexclude, fix this.

(From OE-Core rev: e59dc6985e22e7ac30b6afa81d448fbc372f5dab)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-24 23:43:33 +00:00
Richard Purdie 3d3194a68f staging: Drop BB_SETSCENE_VERIFY_FUNCTION2
The original description for this was:
"""
Since we clean out do_populate_sysroot if do_configure runs, don't
allow do_populate_sysroot_setscene functions if we're going to
run do_configure.
"""

With RSS, we don't need to clean do_populate_sysroot any more. Since
we no longer do that, this function also has no purpose any longer
and can also be removed.

(From OE-Core rev: 637c6d17b4a812379cbab64d340660092e046965)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-24 23:43:33 +00:00
Richard Purdie 6e74b4e031 staging: Drop do_configure clean prefunc
With recipe specific sysroots its now pointless to do this, may as well
save the cpu cycles.

(From OE-Core rev: b70c8e91e6c4240e95e8b22bcc36525a5a0703f9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-24 23:43:32 +00:00
Richard Purdie d74efb6aa9 staging: Drop BB_SETSCENE_VERIFY_FUNCTION since it was replaced
BB_SETSCENE_VERIFY_FUNCTION2 replaced BB_SETSCENE_VERIFY_FUNCTION
and due to our minimum bitbake requirements there is no point in
retaining the older version any more.

(From OE-Core rev: f08d6ccda5db9fdc81d53370aea1f599718897da)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-24 23:43:32 +00:00
Amarnath Valluri cc32ccc2fb musl: Fix issues in relative symlink creation
Make use of lnr/ln -r while creating relative symlinks than guessing the
relalive path.

(From OE-Core rev: 8205b92631bc1dcb3419c709ef5a98b2b3cd9d70)

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-24 23:43:32 +00:00
Amarnath Valluri 80c3ce22bd base-files: Replace hardcoded root paths with appropriate bitbake variables
/bin, /sbin, /lib are replaced with ${base_bindir}, ${base_sbindir} and
${base_libdir}.

(From OE-Core rev: 9b490e61938e06fda881b2213565c4de1f740f98)

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-24 23:43:32 +00:00
Khem Raj c6344d3b6a libvorbis: Contain gcc specific compiler flags using configure option
(From OE-Core rev: b6cdbf50e5c26c406e4ddecd66202ff7324f5468)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-24 23:43:32 +00:00
Khem Raj e0630bb3dc db: Fix atomic function namespace clash with clang builtins
Rename local function to avoid conflicts with compiler intrinsics

(From OE-Core rev: fcfbbae9fdda539665a1e8bfe292f917bd5a1927)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-24 23:43:32 +00:00
Andre McCurdy ce109ff89c native.bbclass: clear MACHINE_FEATURES
Try to avoid native recipes accidentally being dependent on
MACHINE_FEATURES. This simple change doesn't prevent MACHINE_FEATURES
set via MACHINE_FEATURES_BACKFILL sneaking through, but it's better
than nothing.

(From OE-Core rev: 96c20c9df714cdf3f0e9461ec566c4f5d3bdb5f1)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-24 23:43:32 +00:00
Trevor Woerner 2180349f75 core-image.bbclass: update available IMAGE_FEATURES
Update the list of available IMAGE_FEATURES with the sub-features of
'debug-tweaks' and add 'splash'.

(From OE-Core rev: 1e46220bb3901476266846447ff40533c9bffa1d)

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-24 23:43:32 +00:00
Amarnath Valluri bb8889ad0e firmware: use ${nonarch_base_libdir} for firmware installation.
Replace hardcoded '/lib' in kernel firmware installation path with
${nonarch_base_libdir}.

(From OE-Core rev: 616c9ae8e73c9b69c8ff23c64ac4c2ace1a45af0)

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-24 23:43:32 +00:00
Alexander Kanavin da1d23a6d0 expect: resolve string formatting issues
[YOCTO #9542]

(From OE-Core rev: b5fd2874cfe199703e7a5d12fa708e12ff0a2ad1)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-24 23:43:32 +00:00
Martin Jansa fcbad38193 package_manager.py: respect OPKGLIBDIR
* respect it for incremental rootfs generation
* add lists_dir option to opkg.conf
* also fix setting info_dir and status_file when they use default value, the
  problem is that self.opkg_dir is already prefixed with rootfs directory,
  comparing it with /var/lib/opkg always returned false and the options were
  appended to config file unnecessary
* with opkg 0.3.4 we can use VARDIR prefix added in:
  commit d2a8e23dc669adc398f4bb8bcfcabfcf925708f7
  Author: Florin Gherendi <floring2502@gmail.com>
  Date:   Mon Dec 19 12:25:38 2016 +0200
  libopkg: make the /var and /etc directories configurable at compile time.

(From OE-Core rev: b14c11d062872c3dcf95e03b61017005dea5b754)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-24 23:43:32 +00:00
Martin Jansa da8369b670 rootfs.py: Respect OPKGLIBDIR variable
* when OPKGLIBDIR doesn't have the default /var/lib value it will
  silently fail to copy package database from normal rootfs to debugfs
  rootfs and then when trying to install *-dbg complimentary packages
  it won't install anything, because installed_pkgs.txt file generated
  from debugfs is empty

(From OE-Core rev: bebdb056c8bd0efc056f07b275a154e5d5a3aa2b)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-24 23:43:32 +00:00
Nathan Rossi 3f46689cf1 uninative-tarball: glibc-gconv-{utf-16, cp1252} for binutils windres
The windres binutils binary which is used for Windows resource files
requires utf-16 and cp1252 encoding support in order to correctly
generate resource files with strings. As such when using uninative to
build mingw resources for a nativesdk target the windres binary is
executed on the native host, thus using the uninative libc and gconv
modules.

(From OE-Core rev: 778fb2342da55e202cfb7af04bbf120c1b68620a)

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-24 23:43:32 +00:00
Alexander Kanavin fecf58b2a5 rpm: add a "rpm-build" PROVIDES
rpm 5.x was packaging build tools separately, so we need to unbreak
things that relied on that.

[YOCTO #11167]

(From OE-Core rev: 3b5ac72bdf76ac8ff98dc3c882a4edc77c6e2c33)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-23 13:19:49 +00:00
Alexander Kanavin 4581e2c3e6 sign_rpm.bbclass: do not set/use RPM_GPG_PUBKEY
This is entirely unnecessary (we can ask the signer backend to export the
key to a file when needed), and was causing confusing selftest failures
due to the variable being set from two different places.

[YOCTO #11191]

(From OE-Core rev: 74ea979044368dc28c24325e7e77471b70aa8fe8)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-23 13:19:49 +00:00
Alexander Kanavin 0a435c7e6a oeqa: use WORKDIR/oe-testimage-repo to look for RPM packages
Using RPM deploy dir was causing errors when pre-built images were
used with these steps:
https://wiki.yoctoproject.org/wiki/Quality_Assurance_yocto_project

[YOCTO #11173]

(From OE-Core rev: f633abed51ed19522340b1d923ffc12ed7e291d6)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-23 13:19:49 +00:00
Ed Bartosh a247553bb3 oe-selftest: add test_rawcopy_plugin test case
This test case builds wic image using rawcopy plugin
running wic directly.

[YOCTO #10618]

(From OE-Core rev: acbeaa37554f3546b036ff8ef9aebfe00f2537c6)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-23 13:19:49 +00:00
Ed Bartosh 32c59203ce selftest: pylinted wic test suite.
Fixed long lines, indentation and one unused variable.

(From OE-Core rev: a6dbe6e1630067164881c8d7efb44cb650cd043c)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-23 13:19:49 +00:00
Ed Bartosh d2e0209866 oe-selftest: test wic rawcopy plugin
Added test_rawcopy_plugin_qemu test case and wks template.

This test builds ext4 rootfs image, copies it to the root
partition of the wic image using rawcopy plugin and
boots wic image in qemu.

[YOCTO #10618]

(From OE-Core rev: db1f511228e26aaeeff452427637942747bbf42b)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-23 13:19:49 +00:00
Richard Purdie 0cb6f85335 sstate: Ensure installation directory is empty before execution
When you enable the systemd DISTRO_FEATURE, opkg-native contains systemd units
which have a relocation fixme list. When systemd isn't in DISTRO_FEATURES, there
are no fixmes required. Unfortunately as sstate isn't cleaning up its installation
directory before use, if you install the systemd version, then install the
non-systemd version from sstate, it would leave behind the fixme file from the
systemd version and breakage results as it would try and fixup files which don't
exist.

The solution is to ensure the unpack/install directory is clean before use. It
does raise other questions about opkg-native, systemd and DISTRO_FEATURES but there
is an underlying sstate issue here too which would cause missing file failures.

(From OE-Core rev: d1d55041e38b12d40f896834b56475ea19a6047f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:22 +00:00
Richard Purdie 52d7d2c06b oeqa/selftest/devtool: Enable missing cleanup
Not sure why this cleanup is disabled but it clearly should be running
so enable it.

(From OE-Core rev: 83867079182d8b9e981935da2b254947a89097bb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:22 +00:00
Richard Purdie c0a2268ae8 externalsrc: Use git add -A for compatibility with all git versions
I've been debugging a selftest failure on Centos7. The problem turns out
to be the elderly git version (1.8.3.1) on those systems. It means that
the system doesn't correctly checksum changed files in the source tree,
which in turn means do_compile fails to run and this leads to the following
selftest failure:

======================================================================
FAIL [141.373s]: test_devtool_buildclean (oeqa.selftest.devtool.DevtoolTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/devtool.py", line 530, in test_devtool_buildclean
    assertFile(tempdir_mdadm, 'mdadm')
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/devtool.py", line 497, in assertFile
    self.assertTrue(os.path.exists(f), "%r does not exist" % f)
AssertionError: False is not true : '/tmp/devtoolqag88s39z8/mdadm' does not exist

The solution is to use -A on the git add commandline which matches the behaviour
in git 2.0+ versions and resolves the problem.

(From OE-Core rev: 964e8b8cae4b28e21ade12b5effb494e459b1f0f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:22 +00:00
Maciej Borzecki 19090446da wic: selftest: add tests for --fixed-size partition flags
wic has a new flag for setting a fixed parition size --fixed-size. Add
tests that verify if partition is indeed sized properly and that errors
are signaled when there is not enough space to fit partition data.

(From OE-Core rev: 84c2184546779ece3eb23c5628e4c9d177568043)

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>
2017-03-22 11:35:22 +00:00
Maciej Borzecki 17fe3eb453 wic: selftest: do not assume bzImage kernel image
Instead of assuming that bzImage is available, query bitbake enviroment
for KERNEL_IMAGETYPE.

(From OE-Core rev: d3e1d25a06dd4cb3ec80ea63352de24e50552481)

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>
2017-03-22 11:35:22 +00:00
Maciej Borzecki 00ed0d4aec wic: selftest: avoid COMPATIBLE_HOST issues
Wic tests will unconditionally attempt to build images that may require
dependencies that are incompatible with current target.

Resolve this by consulting HOST_ARCH first (which defaults to TARGET_ARCH)
before proceeding to build images that may be incompatible.

A convenience decorator only_for_arch() can be used to skip test cases for
specific architectures.

(From OE-Core rev: ff46125082f08eb93cc549bbe1d79c3b8f9cba64)

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>
2017-03-22 11:35:22 +00:00
Maciej Borzecki 4453c21d68 selftest: wic: replace directdisk with wictestdisk where possible
Use wictestdisk instead of directdisk thus allowing more tests to be run on
non-x86 compatible machines.

(From OE-Core rev: 071785b01cdaa0d35808fa0b7308162cfebf54f1)

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>
2017-03-22 11:35:22 +00:00
Mikko Rapeli c52fe3a77a buildhistory.bbclass: add layer name to source recipe data
It is useful to know which layer provided a given recipe and its
binary packages.

Many projects combine a number of layers and some of them
also provide same recipe names in which case bitbake
can prioritize between them. buildhistory can record
the decision by saving the layer from where the recipe
was taken from.

Also, if a project is split to sub projects which maintain
recipes in different meta layers, then meta layer specific
summaries of e.g. disk usage can be calculated if
source recipes meta layer name is recorded for example in
buildhistory.

If source layer is not in build history, then layer providing
the recipe can be exported from build environment using
'bitbake-layers show-recipes', but it takes a long time to execute
since all recipes are parsed again and requires full source tree
with correct build configuration.

This patch exports the name of layer as configured in BBFILE_COLLECTIONS
append of its layer.conf. 'bitbake-layers show-recipes' exports the
meta layers directory path name. For several open source layers
these are different, e.g. meta-openembedded/meta-perl/conf/layer.conf
is perl-layer, poky/meta/conf/layer.conf is core,
poky/meta-skeleton/conf/layer.conf is skeleton etc.

(From OE-Core rev: d8e59d1f840e4282859ad14397d1c06516b8eb11)

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:22 +00:00
Patrick Ohly 11aa390288 ovmf: fix toolchain selection
For the native tools, a static patch inserted gcc/g++/ld/ar while later
adding BUILD_LDFLAGS and BUILD_CFLAGS with sed. Now it's all done with sed,
which has the advantage that it uses the actual compile variables. However,
in practice those are the same.

More importantly, picking the build tools for the target was
broken. ovmf-native tried to insert TARGET_PREFIX into the tools
definition file, but that variable is empty in a native recipe. As a
result, "gcc" was used instead of "${HOST_PREFIX}gcc", leading to an
undesirable dependency on the host compiler and potentially
(probably?!) causing some of the build issues that were seen for ovmf.

The new approach is to override the tool selection in ovmf-native so
that the HOST_PREFIX env variable is used, which then gets exported
during do_compile for the target.

While at it, Python code that gets appened to do_patch only to call
shell functions gets replaced with the do_patch[postfuncs] mechanism.

Incremental builds now always use the tools definition from the
current ovmf-native; previously, only the initial build copied the
template file.

Probably the entire split into ovmf-native and ovmf could be
removed. This merely hasn't been attempted yet.

(From OE-Core rev: 23a12d87a6e82f80f4ccc1a01c707faa89ff7abd)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:22 +00:00
Khem Raj 853a154850 libcomps: Fix/optimize building with clang
(From OE-Core rev: aa30853693a8b6092e1ea9785d64267858454d17)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:22 +00:00
Khem Raj c8e8e50bc3 go-native: Install bootstrap binaries with 1.4 suffix
Currently, bin/go and bin/gofmt collide between go-native
and go-bootstrap-native packages, these are scripts anyway
which call the go compiler proper from right install, in
this case create go1.4 and gofmt1.4 names for these scripts
to avoid namespace collision

(From OE-Core rev: c46faa132d39d3dc235a019d9abf6e46f74e3bae)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:21 +00:00
Khem Raj 63bdd90acc acpitests: Point Makefile CC to use OE synthesized CC
Default CC is same as used here, there is no need to
duplicate it, as a plus it helps in compiling acpitests with
non-gcc cross compilers

(From OE-Core rev: e23601390833fe93d58ca61a7158458dfdbd6fac)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:21 +00:00
Khem Raj 231fae32d3 openssl: Fix build with clang
(From OE-Core rev: c8da8cec9007f77396f873f1cd56fc78bf83b19a)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:21 +00:00
Ross Burton b799e4a033 oeqa/selftest: remove test_sanity_unsafe_binary_references
This test was attempting to exercise a broken test, for some reason this broke
with patches under review but investigation revealed that the test itself is
broken.  The test has been removed, so there's no need to test it.

(From OE-Core rev: 4f5f552cd6601ba244ef4efc782616bc477e1340)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:21 +00:00
Ross Burton 3a1e31d714 insane: remove broken unsafe-references-in-binaries test
This test aims to detect binaries in /bin which link to libraries in /usr/lib,
for the case where the user has /usr on a separate filesystem to /.

However it doesn't scan both image/ and the sysroot, so if a binary in /bin
links to a library in /usr/lib that was built by the same recipe then it will
error out.

This test isn't enabled by default, and because of this serious bug I suspect
nobody else is enabling it either.  As /usr being on a separate partition to /
is a very rare configuration these days I think we should delete the test: if
someone cares sufficiently they should write a test that actually works.

(From OE-Core rev: a6af5bbf3dad6f0951c67a0aae13ef86a8906893)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:21 +00:00
Peter Kjellerstedt fc3ae0cb2a package.bbclass: Add PRIVATE_LIBS to list of package specific variables
Changes to PRIVATE_LIBS should change the sstate checksum. To make
that happen, it needs to be listed in the list of package specific
variables, therefore add it.

(From OE-Core rev: 1a6555dfd17e180b81dec407095787d8a72a9edd)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:21 +00:00
Peter Kjellerstedt 7c73e9b336 gpgme: Avoid requiring a host C++ compiler with C++11 support
Building the C++ bindings for native requires a host C++ compiler with
C++11 support. Since these bindings are currently not needed, we can
disable them and thus avoid increasing the requirement for the host C++
compiler.

(From OE-Core rev: 052547561f3b2c13d357da87061716c6eb968fb9)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:21 +00:00
Patrick Ohly ff73130718 image-buildinfo.bbclass: configurable location for build file
In a stateless image, /etc is not a good place for the "build"
file. By definining the location with a variable it becomes possible
to have the file created elsewhere on a per-image basis. The default
is the same as before.

(From OE-Core rev: 6750ea8160edccb156cb2ab68548adfc1c789895)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:21 +00:00
Daniel Schultz f38c551e6e e2fsprogs: Fix wrong error code after optimization
fsck.ext will return an error code of 1 if a file systems was checked
and successfully repaired. Even when an optimization was performed it
will return this error code.

This patch will change the error code to 0 if only optimizations had
changed the file systems.

The reason for this patch is a question I asked at the ext4 ML:
http://www.spinics.net/lists/linux-ext4/msg55700.html

Backport from git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
    Based on commit bf9f3b6d5b10d19218b4ed904c12b22e36ec57dd

(From OE-Core rev: 8341ee45d721cf07b19d50c249bb3a77ef1bf100)

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:21 +00:00
Jose Lamego 4ad1148e68 python-3.3-multilib.patch: Fixes getpath on multilib configurations
When using multilib configurations either on arm/arm64 and x86/x86-64
python3 failed to execute due to a failure when looking for its
platform independent and dependent libraries.

This patch fixes this issue by assigning lib_python to the appropriate
macro.

[YOCTO #10812]

(From OE-Core rev: 9e99897f17d9c62ca5da208751d6560fc98927b6)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
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>
2017-03-22 11:35:21 +00:00
Paul Eggleton 258f98a27c oe-selftest: tinfoil: add tests for recently enabled datastore operations
A recent patch to bitbake fixes these datastore operations so that they
actually affect the server end, so we should test that they work.

(For full disclosure, some of these tests would probably pass without
those fixes, since the operation would be done on the client side
instead - but we are at least exercising the code paths.)

(From OE-Core rev: 4eb3c705b9cadccacdb191ae89f5242a00f397f3)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:21 +00:00
brian avery af994bfcfd bitbake.conf: remove vi from HOSTTOOLS list
Having changes the sdk test to cpio from cvs, we no longer require an
editor to be present. This patch removes vi from the list of required
tools.

(From OE-Core rev: cca2ccb6d77a433e9d7c535344c4fc1e04589bc0)

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:21 +00:00
brian avery c0970e0af9 meta/lib/oeqa: change sdk test from cvs to cpio
We currently fetch,configure,build, and install cvs as our test for the
sdk.  cvs unfortunately, requires a default editor in order to run.  The
change in 94790a8254 that checks to see if you have something like vi
installed is fragile since you may have a different default editor. This
patch switches from using cvs as a test to using cpio. cpio also uses
autotools so the functionality tested is equivalent.

(From OE-Core rev: 233d36b0382a8b2e430c3377e50885d1a0c3ba21)

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:21 +00:00
Patrick Ohly 3c8d045d79 rm_work.bbclass: re-enable recursive do_rm_work_all
When rewriting the do_rm_work injection, do_rm_work_all had been
removed because it seemed obsolete, as do_build now always triggers
do_rm_work.

However, do_build does not get triggered for all recipes and thus
do_rm_work was not called for recipes that got built only
partially. For example, zlib depends indirectly on
zlib-native:do_populate_sysroot.  Because of that dependency,
zlib-native got compiled, but do_rm_work was never called for it.

Re-introducing do_rm_work_all fixes that by making do_build depend on
do_rm_work_all, which then recursively depends on do_rm_work of all
dependencies. This has the unintended side-effect that do_rm_work then
also triggers additional work (like do_populate_lic) that normally
doesn't need to be done for a build. This seems like the lesser evil,
compared to an incomplete cleanup because it mostly enables the
lighter tasks after do_populate_sysroot.

The real solution would be to have two kinds of relationships: a weak
ordering relationship ("if A and B are enabled, A must run before B,
but B can also run without A") and hard dependencies ("B cannot run
unless A has run before").

(From OE-Core rev: b3de5d5795767a4b8c331fa5040166e7e410eeec)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:21 +00:00
Patrick Ohly e4b5771409 image_types_wic.bbclass: tighten dependency to help do_rm_work_all
Depending on wic-tools:do_build pulls a lot of additional, indirect
dependencies into the image sysroot during do_image_wic as soon as
rm_work.bbclass is active, because then we have
do_build->do_rm_work_all->[all dependencies]. One of those
dependencies is libgcc-initial, which clashes with libgcc itself,
leading to errors in extend_recipe_sysroot like this:

   Exception: FileExistsError: [Errno 17] File exists: '.../tmp/sysroots-components/corei7-64/glibc-initial/usr/include/fstab.h' -> '.../tmp/work/intel_corei7_64-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot/usr/include/fstab.h'

As the image recipe only needs the sysroot of wic-tools and does not
need to wait for the build of wic-tools to finish, depending on
do_populate_sysroot is the better choice and happens to avoid
the problem above.

(From OE-Core rev: a678f54e710e46b3cf674ffa41d6432b22effbdf)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:21 +00:00
Florian Wickert 1ec405ef5d kernel-fitimage: dtb sections named by their filenames and one config section for each dtb
Before this, dtb sections were named by their position index in KERNEL_DEVICETREE. Also there was only one item in the config section, so only the first dtb was seen by the bootloader.
This patch adds a config section for each dtb named by the dtb filename. This is what bootloaders usually know about the machine they run on.

(From OE-Core rev: cd2ed7f80b555add07795cc0cbaee866e6c193a3)

Signed-off-by: Florian Wickert <fw@javox-solutions.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:21 +00:00
Khem Raj 938d077ca5 ltp: Fix __sighandler_t for mips
mips definition of kernel_sigaction was added later
and the patch did not apply to mips part which ended
in ltp failing to compile on mips parts

In file included from rt_sigaction01.c:42:0:
../../../../include/lapi/rt_sigaction.h:39:2: error: unknown type name '__sighandler_t'
  __sighandler_t k_sa_handler;
  ^~~~~~~~~~~~~~

(From OE-Core rev: 74f4dcfd447fb528ab230e67e3f7ab37e8f93898)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:20 +00:00
Amarnath Valluri 87c2bef1b9 lsb: Make use of appropriate bitbake variables.
Using of bitbake environment variables in-place of hardcoded strings makes this
recipe portable to all environments.

(From OE-Core rev: 61135e4134b7e0b42b57a87a9a30c32002cb1067)

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:20 +00:00
Amarnath Valluri 63b62e5d80 mdadm: Avoid using hardocded sbin path
Use appropriate bitbake variable inplace of hardcoded sbin path in Makefile

(From OE-Core rev: 9e01148176341916b1fcfebe46d70b75b42777d5)

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:20 +00:00
Amarnath Valluri 4ef916ba24 lttng-modules: Replace '/lib' with ${nonarch_base_libdir}
Do not assume '/lib' for kernel modules location, instead use
${nonarch_base_libdir}. When 'usrmerge' is enabled, kernel modules are not
located in /lib/modules, but /usr/lib/modules.

(From OE-Core rev: d0f99c7f264fb99e7a940e9b02d27a418bafad27)

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:20 +00:00
Amarnath Valluri 89c41301f0 net-tools: Place package content as per bitbake environment.
net-tools Makefile was hardcoded sbin, bin installation paths to /bin and /sbin
respectively.  This change moves the installed files to appropriate location as
per configured bitbake environment.

This might be solved much better way by patching Makefile, but that causing
build issues, as net-tools recipe is using pre-generated config.{h/status}.

(From OE-Core rev: 8be0740f8cc8d909a8983b499f200b99261124c4)

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:20 +00:00
Amarnath Valluri d582e406ba mktemp: Move installed files only when needed
Move binary(ies) only when ${base_bindir} != ${bindir}.

When usrmerge is enabled they both can point to same location.

(From OE-Core rev: 3a571f24b183ba0bb0795b9df2b2c9bad331d715)

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:20 +00:00
Amarnath Valluri 8c13f318ae firmware: use ${nonarch_base_libdir} for firmware installation.
Replace hardcoded '/lib' in kernel firmware installation path with
${nonarch_base_libdir}.

(From OE-Core rev: eebf0028f5cb30468fe5cd273a01b004a3936e21)

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:20 +00:00
Amarnath Valluri 0decf1cc1c kernel: use ${nonarch_base_libdir} for kernel modules installation.
Replace hardcoded '/lib' in kernel modules installation path with
${nonarch_base_libdir}, which is meant exactly for this.

(From OE-Core rev: 22f5ba7154fcbe826d0a3283740903312b2aab46)

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:20 +00:00
Amarnath Valluri 6a2e06e5d4 util-linux,shadow: Make 'nologin' alternative command
Both shadow and util-linux packages provides 'nologin' binary in ${base_sbindir}
and ${sbindir} respectively, this leads to conflict when 'usrmerge' feature is
enabled, where ${sbindir} == ${base_sbindir}. Hance, handle this to alternative
system to resolve the conflict.

(From OE-Core rev: 07d6d0fb4dc689008bb0022d7d2ecc890c9159e5)

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:20 +00:00
Amarnath Valluri f808bce13f util-linux: Make sure '${base_bindir}/reset' is part of util-linux-reset package.
update-alternative.bbclass might rename the 'reset' binary when LINK_NAME ==
TARGET, This is true (${base_bindir} == ${bindir}) in 'usrmerge' distros.
Hence, suffix with * to properly package the renamed binary.

(From OE-Core rev: ebf5cc1a6fecb0761fd88e113fac785b49bc1a45)

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:20 +00:00
Amarnath Valluri b45a6993e9 systemd: Do not add libnss_* to systemd package
libnss_* files should be part of corresponding sub-packages, the split happens
by do_package_split(). By adding ${libdir}/libnss_* to FILES_${PN}, those files
end up in the systemd package when ${libdir} == ${base_libdir}.

(From OE-Core rev: 46046880e42ae924548eb5c0ec53f9448f6f932e)

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:20 +00:00
Amarnath Valluri b350ef0cea attr/acl: Do not create broken static library link when not needed
Stop creating the static library archive(liba(ttr|cl).a) when --disable-static
configure option used.

(From OE-Core rev: 2c84649139059b810f28babe9d8d82035fde19ee)

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:20 +00:00
Jussi Kukkonen ac8db9b30d util-linux: Fix packaging with "usrmerge"
Make sure fsck.cramfs is packaged before fsck so the latter
does not steal the fsck.cramfs binary when building with usrmerge.

(From OE-Core rev: 333e959448c2bc0d2c472e0b7d1dab606ab723e6)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:20 +00:00
Jussi Kukkonen fada531cb2 glibc: Ensure ldconfig is packaged into glibc
If base_bindir=bindir, /usr/sbin/ldconfig gets packaged into glibc-utils instead
of glibc: Switch PACKAGES order to prevent this.

(From OE-Core rev: 2794b1cc12af051db404d46aea4db4c74e8e1fe3)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:20 +00:00
Peter Kjellerstedt b2cd8759b1 useradd-staticids.bbclass: Always fail/warn for missing IDs
Previously, with USERADD_ERROR_DYNAMIC set to error/warn, if a static
UID/GID was specified in the recipe, then no error/warning would be
issued even if no ID was specified in the passwd/groups files.

(From OE-Core rev: 8e4b4e28a7c3a9dbd6b9298bea5d2c1328b3f24a)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:20 +00:00
Peter Kjellerstedt 6b5502566f useradd-staticids.bbclass: Support recipes specifying static IDs
If this bbclass is used and a recipe specifies a static ID for a
user/group as part of the USERADD_PARAM_${PN} or GROUPADD_PARAM_${PN},
the build would fail with and error like this if there was no
corresponding ID in the passwd/group files specified via
USERADD_UID_TABLES/USERADD_GID_TABLES:

  ERROR: meta-oe/recipes-support/postgresql/postgresql_9.4.11.bb:
  meta-oe/recipes-support/postgresql/postgresql_9.4.11.bb inherits
  useradd but doesn't set USERADD_PARAM, GROUPADD_PARAM or
  GROUPMEMS_PARAM for package postgresql

(From OE-Core rev: e744fac05fc5cc19cabc59c1e79ff4c1b3ee396d)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:20 +00:00
Anders Darander b1f10b18ea classes/npm: allow installation of devDependencies
Often, eg when using angular2, there's a need to install also
the devDependencies.

The default is to keep the old behaviour, to not install
devDependencies.

(From OE-Core rev: 9377d16751aeff0a913e754d711bca6e4e4d9df1)

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:20 +00:00
Andre McCurdy 2b52d7ebc0 busybox: ignore the largefile distro feature ( always enable LFS )
(From OE-Core rev: f16723f66837a2acad3c114e4064e0ab1cb3a7a6)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:20 +00:00
Andre McCurdy c13eb4ff7c feature-arm-thumb.inc: fix ARM_THUMB_SUFFIX for armv8
The current definition for ARM_THUMB_SUFFIX doesn't consider armv8
and will therefore cause TUNE_PKGARCH to be set incorrectly for
machines which inherit arch-armv8 and don't include aarch64 in
TUNE_FEATURES (ie when building for 32bit ARMv8).

Also fix typo in comments and improve TUNEVALID[thumb] wording.

(From OE-Core rev: 3691fd7dbe7f01ca29c14fc603c6946864af3b3c)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:19 +00:00
Jose Perez Carranza b641052961 selftest/devtool: Add test to verify "modify virtual/kernel"
The purpose of this test case is to verify that
devtool modify works correctly when building
the kernel.

[YOCTO #10817]

(From OE-Core rev: 0fa3d331df7d5a5fbd8431febc75efe6bcc6f96b)

Signed-off-by: Jose Perez Carranza <jose.perez.carranza@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:19 +00:00
Joshua Lock cc2744267f meta: replace uses of bb.data.expand(VARNAME, d) with d.expand(VARNAME)
bb.data.expand(x, d) is deprecated API.

[YOCTO #10678]

(From OE-Core rev: a361babe443da635aed83be46679067457fd6a58)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:19 +00:00
Ed Bartosh d60ede3315 bitbake.conf: add sudo to HOSTTOOLS_NONFATAL
runqemu is using sudo to configure tap networking. Without sudo
in HOSTTOOLS_NONFATAL it may cause bitbake -c testimage to fail
with this error:
    runqemu - INFO - Setting up tap interface under sudo
    /bin/sh: sudo: command not found

(From OE-Core rev: 716e0524cfbcac2eb272be1014280833b74bc5c4)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:19 +00:00
Ed Bartosh 0e4ccf1734 qemurunner: configure guest networking
Configured guest network interface through serial connection
when kernel is not run by qemu.

This should make it possible to test wic images with testimage.

[YOCTO #10833]

(From OE-Core rev: 2032d9be26b539bf867622c0090fb4696209eba9)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:19 +00:00
Ed Bartosh 62dc9d964f qemurunner: get network params from runqemu output
Parsed runqemu output to get guest network configuration
if it's not present in runqemu command line.

[YOCTO #10833]

(From OE-Core rev: d4d7ed48c1cff1351ddc2f60bcfa153c373a8ab8)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:19 +00:00
Ed Bartosh e7ce3c7f62 image_types: increase filesystem size for BTRFS
16777216 bytes is a minimal possible filesystem size for BTRFS.
mkfs.btrfs fails to create a filesystem if rootfs size is too small.

Increased filesystem size to make it possible for mkfs.btrfs
to create an image for small rootfs directories,
e.g. for core-image-minimal.

[YOCTO #11163]

(From OE-Core rev: 17c2b1ca8a4e2023583645840db61bbde22bf65e)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:19 +00:00
Richard Purdie 9fc3fec449 Revert "file: update SRCREV for 5.30 to fix fetch fail on missing commit"
This reverts commit adb71e06768adadda7b69c3b5e81ca3ad67237f4.

Upstream restored the original hashes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-21 22:39:17 +00:00
Ross Burton 69d3d55ea7 binutils: disable gold on mingw
oe-core 759eed (binutils: Enable threading when gold is enabled and is not
default linker) causes linking in mingw SDKs to fail:

.../work/i686-nativesdk-mingw32-pokysdk-mingw32/binutils-cross-canadian-x86-64/2.28-r0
/recipe-sysroot-native/usr/bin/i686-pokysdk-mingw32/../../libexec/i686-pokysdk-mingw32/gcc/i686-pokysdk-mingw32/6.3.0/ld:
cannot find -lpthread

Work around this by disabling gold entirely in mingw SDKs.

(From OE-Core rev: b5a595a4be09756b88e91f3353e3b221b165ab44)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-21 22:39:17 +00:00
Jussi Kukkonen a1eb378771 neard: Fix parallel build issue
This only started showing up now for some reason but it does seem like
a legitimate bug in Makefile.am.

(From OE-Core rev: f43290f6e302dbacf5581d1fe1c6c991dd387779)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-21 22:39:17 +00:00
brian avery 7e0985bab6 nativesdk-packagegroup-sdk-host.bb: add cmake
The Eclipse plugin uses cmake from the SDK and currently has issues
because cmake is not installed as a host tool.  This patch adds cmake as
a host tool for the sdk/esdk.

(From OE-Core rev: b1ccab95464855877558972c4523956be32dee36)

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:06 +00:00
Mike Crowe e987f62009 ccache: Disable CCACHE_HASHDIR by default
As of ccache-3.3, ccache tries to ensure that the paths in the debug
information are always correct. It does this by including the current
directory in the hash if debug output is enabled. It includes support for
detecting remapping via a single -fdebug-prefix-map argument uses the
remapped directory in the hash instead.

The DEBUG_PREFIX_MAP in bitbake.conf remaps the source directory, target
sysroot and native sysroot separately which results in multiple
-fdebug-prefix-map arguments. Although ccache passes all these arguments
through to the compiler, it only enables the special behaviour described
above if the last one matches the current directory. (See
https://github.com/ccache/ccache/issues/163 )

Even if ccache did correctly honour each of the remapping arguments, the
hashes would still be different every time ${PV} or ${PR} change because
the default DEBUG_PREFIX_MAP contains maps to paths including them.

So it seems that for ccache to be of any use with this configuration,
CCACHE_NOHASHDIR needs to be set.

(From OE-Core rev: fb7a5cdcff19bb44a25a51e20de0440c1ebcc057)

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Helped-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:06 +00:00
Denys Dmytriyenko b6971f52dc u-boot-fw-utils: reuse the same override HOSTCC patch as u-boot-mkimage
(From OE-Core rev: 2815f819c1a620949213fa952557c03f7d594ed6)

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:06 +00:00
Leonardo Sandoval 0c6ab4cd2e gettext: split recipe's description
Split long recipe description into multiple lines.

(From OE-Core rev: 13cf0df0252941b9575da613488cbc141e043a8a)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:06 +00:00
Leonardo Sandoval 37785b9fdb uninative.bbclass: split long command
Single long commands are difficult to read and maintain. Split it to make
it more human-friendly.

(From OE-Core rev: c93b3b18f8daa8b419cc65b52cb5ceccfb1c142d)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:06 +00:00
Robert Yang 1accf1f221 autogen-native: config/libopts.m4
It was out of date compared to config/libopts.def, so regenerate it via
"autogen config/libopts.def" command.

(From OE-Core rev: 221403f6e73c2bea327f3df4e8b76c11e5dd8aa7)

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>
2017-03-17 16:53:05 +00:00
Robert Yang 08dfb89301 oe/path.py: fix for "Argument list too long"
Issue: LIN9-1648

Fixed when len(TMPDIR) = 410:
$ bitbake core-image-sato-sdk
[snip]
Subprocess output:
/bin/sh: /bin/cp: Argument list too long

ERROR: core-image-sato-sdk-1.0-r0 do_rootfs: Function failed: do_rootfs
[snip]

This is because "copyhardlinktree(src, dst)" does "cp -afl src/* dst",
while src/* is expanded to "src/file1 src/file2, src/file3..." which
causes the "Argument list too long", use ./* as src and change cwd in
subprocess.check_output() to fix the problem.

(From OE-Core rev: a3dc93eb25fba32109edd1db6e8766074fb52e4b)

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>
2017-03-17 16:53:05 +00:00
Robert P. J. Day 8c1ac497da classes: Fix "U-boot", use proper spelling of "U-Boot".
U-Boot people are amazingly pedantic in their insistence on proper
spelling of "U-Boot", so humour them.

(From OE-Core rev: f346a9bdc372ec477bafcda358f9339ff4e4c79d)

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:05 +00:00
José Bollo 39858da230 shadow: 'useradd' copies root's extended attributes
The copy of extended attributes is interesting for
Smack systems because it allows to set the security
template of the user's home directories without
modifying the tools (useradd here). But the version
of useradd that copies the extended attributes doesn't
copy the extended attributes of the root. This can make
use of homes impossible! This patch corrects the issue
by copying the extended attributes of the root directory:
/home/user will get the extended attributes of /etc/skel.

The patch is submitted upstream (see
http://lists.alioth.debian.org/pipermail/pkg-shadow-commits/2017-March/003804.html)

The existing patch specific to open-embedded is updated:
  0001-useradd.c-create-parent-directories-when-necessary.patch

Also, attr are activated for native tools.
This is needed when users are created during image creation.

(From OE-Core rev: eed66e85af5ca6bbdd80cc3d5cf8453e8d8880bc)

Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:05 +00:00
Chen Qi 36f3c88970 gcc-target.inc: create symlinks for gcov and gcov-tool
Create symlinks for gcov and gcov-tool and that they can be used trivially
on target.

(From OE-Core rev: 5b5a506a6d81095c967304fe4ec38a4bc3dc1edd)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:05 +00:00
Robert P. J. Day f420e4a071 fs-perms.txt: Two cleanup tweaks for consistency.
* Remove duplicate entry for /srv already defined earlier in file.
* Use "${localstatedir}" rather than "/var" for consistency.

(From OE-Core rev: 0cb3a4b299506b4503c5728a0f0c80db8d603e91)

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:05 +00:00
Olof Johansson 8f1d763adc openssl: Disable make's -e flag without breaking ${AR}
The OpenSSL recipe tried to workaround the -e make flag (overriding
variables from the environment). And when the -e flag was dropped as
the global default, it was specifically added for OpenSSL. This is
unnecessary, as only the value of ${AR} seems to be affected, and that
can be handled correctly by OpenSSL's build system if we just let it.

(From OE-Core rev: 537a404cfbb811fcb526cdb5f2e059257de6ef13)

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:05 +00:00
Peter Kjellerstedt 12cc4f550a toaster.bbclass: Correct parsing of installed-package-sizes.txt
The recent change in buildhistory.bbclass to use a tab in
installed-package-sizes.txt between "KiB" and the package name caused
toaster_buildhistory_dump() to fail since it parses the file and
expected a space there.

(From OE-Core rev: 7b3692f57628b33840f6dbcddbe05ae56c24b98e)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:05 +00:00
Ismo Puustinen 5c9dc408aa gcc: move cc1 binary file to package cpp.
The file /usr/libexec/gcc/.../cc1 has been installed in package gcc
instead of package cpp, because FILES statements for both packages match
the cc1 binary. Move the file to package cpp and add cpp to RDEPENDS_gcc
to fix the dependency.

Having the cc1 binary in cpp fixes errors such as: "cpp: error trying to
exec 'cc1': execvp: No such file or directory".

(From OE-Core rev: 4bf84edeb6cf4ba82a21bc7ceb1da4f59d839064)

Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:05 +00:00
Chen Qi 3e1b79a762 procps: fix ALTERNATIVE_PRIORITY to avoid conflict
Previously, 'pidof' utility has two providers, sysvinit and procps, and
both have the same priority 200. Fix procps to lower the priority of its
'pidof' to 150 to avoid conflict.

(From OE-Core rev: 468f9c9899016c46635c9f39eef3483303a5be81)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:05 +00:00
Martin Jansa 8c0b432d2e bitbake.conf: Add few more binaries to HOSTTOOLS_NONFATAL
* add: join nl size yes zcat

join    - netcf               - http://errors.yoctoproject.org/Errors/Details/135208/
join    - fontforge           - http://errors.yoctoproject.org/Errors/Details/135209/
nl      - dash                - http://errors.yoctoproject.org/Errors/Details/135215/
nl      - klibc               - http://errors.yoctoproject.org/Errors/Details/135198/
size    - iptraf              - http://errors.yoctoproject.org/Errors/Details/135204/
yes     - libnet-ssleay-perl  - http://errors.yoctoproject.org/Errors/Details/135197/
zcat    - scsirastools        - http://errors.yoctoproject.org/Errors/Details/135205/

(From OE-Core rev: 83dfb69b37c2465d09eb9544d487f1674b06f9c0)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:05 +00:00
Khem Raj 27ba0db9db go: Remove mips32r2 from mips
mips32r1 is only one supported for mips32

(From OE-Core rev: d39b819579c767aa7892835624540fd6509db201)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:05 +00:00
Paul Gortmaker 2102b8c9b6 file: update SRCREV for 5.30 to fix fetch fail on missing commit
Machines that cloned a while ago will have the commit, but new
deployments won't because it seems the upstream changed/rebased
and the old commit ID has been garbage-collected away.  Hence
the fetch fails to check out the named commit ID.

Both the old (gone) commit, and the "new" commit show the same
dates and commit log and point at 5.30, so hopefully this is
the right thing to do.  A git diff of the two seems to only show
a blanket uprev of CVS tags and deletion of a couple autogen'd
files, and no real source changes.

Cc: Christos Zoulas <christos@zoulas.com>
(From OE-Core rev: adb71e06768adadda7b69c3b5e81ca3ad67237f4)

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:05 +00:00
Joe Slater 602e96e2b6 build-compare: add date to PV
We want PV values to be easily ordered, so
use the latest entry in build-compare.changes which
will also match the date of SRCREV.

(From OE-Core rev: c796cd4ac39e704e0795385c9b4ec9a2d73459b5)

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:05 +00:00
Khem Raj 17e7ff4be9 webkitgtk: Fix build on aarch64
Do not try to do runtime tests during cross compile
Fixes

| CMake Error at Source/cmake/OptionsCommon.cmake:73 (math):
|   math cannot parse the expression: "-1": syntax error, unexpected exp_MINUS,
|   expecting exp_OPENPARENT or exp_NUMBER (1)

(From OE-Core rev: 528006009dddd876a830e0a8f248658182a37f37)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:05 +00:00
Khem Raj ed602b58ed musl: Update to latest
Rich Felker (11):
      fix ld-behavior-dependent crash in ppc64 ldso startup
      rework ldso handling of global symbol table for consistency
      reorder addend handling before symbol lookup in relocation code
      emulate lazy relocation as deferrable relocation
      fix free of uninitialized buffer pointer on error in regexec
      in static dl_iterate_phdr, fix use of possibly-uninitialized aux data
      fix possible fd leak, unrestored cancellation state on dns socket fail
      fix wide scanf's use of a compound literal past its lifetime
      fix one-byte overflow in legacy getpass function
      avoid loading of multiple libc versions via explicit pathname
      remove unused refcnt field for shared libraries

Szabolcs Nagy (1):
      treat STB_WEAK and STB_GNU_UNIQUE like STB_GLOBAL in find_sym

(From OE-Core rev: 2b1e9ddb10d4766cc4f8be3e55e4fc3d2810bbcb)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:05 +00:00
Khem Raj 422e94cd06 xserver-xf86-config: Remove X server module preload
This was a solution needed for musl but now musl has
got lazy loading.

(From OE-Core rev: 6ea72c6bd0aeaed694d58d68ede4de70d96b7e4b)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:05 +00:00
Khem Raj 56b2f19ca1 binutils: Enable threading when gold is enabled and is not default linker
Currently we enable threaded linking feature of gold linker only
when its used as default ld. There is no need to restrict it when
its not default linker either. As long as gold is enabled, which
is the case here, we should be able to do threaded linking.

(From OE-Core rev: 759eed2b02e0a7b5c8b19d4b087d9151c009eed4)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:05 +00:00
Khem Raj 12afe700f3 go: Fix packaging for target go
We need all packaging tasks when building
go for target

(From OE-Core rev: 8f504a7737d5e6be6ec61f9ce8728a2c74102a8a)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:04 +00:00
Khem Raj 342a45317b mesa-gl: Drop MESA_CRYPTO from PACKAGECONFIG
with mesa 17 crypto packageconfig has been removed

(From OE-Core rev: 7df24c84999048f863428f4e442922e60ce776a5)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:04 +00:00
Khem Raj c873d0bc1d mesa: Contain configure search for llvm
Configure has an unbridled check for llvm and
when distro provided llvm is installed on build host it
will use that from /usr/bin to poke for llvm libs
and configs. This would result in a subtle errors
however do_qa_configure catches it as a host include/lib
contamination during configure checks

ERROR: mesa-gl-2_17.0.1-r0 do_configure: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities.
Rerun configure task after fixing this.

This is correct because when configure detects build host provided
llvm then it add the include/lib paths to compiler cmdline which are
looking into /usr/include and /usr/lib

(From OE-Core rev: df53927b9c07bc45ce8a756217c07ce306ed5bbe)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:04 +00:00
Paul Gortmaker 52d2faad9f package_manager: fix "exlcude" vs. "exclude" typo
Which results in:

 --------------------------------
      0557:        package_exclude = self.d.getVar('PACKAGE_EXCLUDE')
  *** 0558:        exclude_pkgs = (bad_recommendations.split() if bad_recommendations else []) + (package_exlcude.split() if package_exclude else [])
      0559:
      0560:        output = self._invoke_dnf((["--skip-broken"] if attempt_only else []) +
      0561:                         (["-x", ",".join(exclude_pkgs)] if len(exclude_pkgs) > 0 else []) +
      0562:                         (["--setopt=install_weak_deps=False"] if self.d.getVar('NO_RECOMMENDATIONS') == 1 else []) +
 Exception: NameError: name 'package_exlcude' is not defined
 ERROR: cube-builder-initramfs-1.0-r0 do_rootfs: Function failed: do_rootfs
 ---------------------------------

Cc: Alexander Kanavin <alexander.kanavin@linux.intel.com>
(From OE-Core rev: cee1bdc09f4bbfedcd7cac06b48ba9d195c29e62)

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:04 +00:00
Jussi Kukkonen f8007417ea kexec-tools: Add patches to enable format-security
Also remove the override from security_flags.inc

(From OE-Core rev: 33d084a66a371fb10e26a0a23c639c69ddd3f1e5)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:04 +00:00
Jussi Kukkonen 6dcf5c6e6e cmake: Backport fix to enable -Wformat-security
Backport build fix that removes -Wformat-security for specific tests.
Enable "-Wformat-security" for cmake in security_flags.inc.

(From OE-Core rev: b00f9c77ebd211578ba133c28abcbc5752305e25)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:04 +00:00
Paul Gortmaker a861ee210c sysklogd: use update-alternatives for more manpages
To fix:

   file /usr/share/man/man8/syslogd.8 conflicts between attempted installs
   of inetutils-doc-1.9.4-r0.core2_64 and sysklogd-doc-1.5.1-r0.core2_64

(From OE-Core rev: d08cfe3d3de01c529dda1a60f42870dd3132c256)

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:04 +00:00
Paul Gortmaker 33162228c6 net-tools: use update-alternatives for more manpages
To fix:

  file /usr/share/man/man1/dnsdomainname.1 conflicts between attempted installs
  of inetutils-doc-1.9.4-r0.core2_64 and net-tools-doc-1.60+26-r0.core2_64

(From OE-Core rev: 412d6b31b23b30f71b8acf2ecd37463f770cd8be)

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:04 +00:00
Paul Gortmaker c6532a199a util-linux: use update-alternatives for more manpages
To fix:

   file /usr/share/man/man1/eject.1 conflicts between attempted installs
   of util-linux-doc-2.29.1-r0.core2_64 and eject-doc-2.1.5-r1.core2_64

and

   file /usr/share/man/man1/logger.1 conflicts between attempted installs
   of util-linux-doc-2.29.1-r0.core2_64 and inetutils-doc-1.9.4-r0.core2_64

(From OE-Core rev: a65e69d006bceacb042b377f2cd0dd8a3e72ea62)

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:04 +00:00
Paul Gortmaker 4a660aa437 which: fix it so the manpage will respect alternatives
To fix:

  file /usr/share/man/man1/which.1 conflicts between attempted installs
  of debianutils-doc-4.8.1-r0.core2_64 and which-doc-2.21-r3.core2_64

(From OE-Core rev: ba304046307cd741694b25215b562d5f05c9c7a5)

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:04 +00:00
Paul Gortmaker 5686689408 gdb: don't bundle bfd.info -- leave that to binutils.
We see:

  file /usr/share/info/bfd.info conflicts between attempted installs
  of gdb-doc-7.12.1-r0.core2_64 and binutils-doc-2.28-r0.core2_64

You can't really have gdb and not binutils, so there is no need
to do alternatives here ; just clobber the one from gdb and let
the binutils one be the default.

(From OE-Core rev: 19a825a578e2e705e5502982b787cff54d021359)

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:04 +00:00
Alexander Kanavin aa66e8782e dnf: add /usr/bin/dnf symlink that points to /usr/bin/dnf-2
All documentation refers to dnf binary as 'dnf' yet make install
does not create one - it's done by Fedora's spec file when building
the rpm. Let's replicate this behavior.

(From OE-Core rev: 456c4a8ffc9a292d7a3e036d92baf4a8f14d1f45)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:04 +00:00
Alexander Kanavin fd04d16568 selftest/signing.py: verify that images can be created from signed packages
(From OE-Core rev: e53b93181ea1723ddeeb75c4195e9412e64721c0)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:04 +00:00
Markus Lehtonen 9a548edb0f lib/oe/package_manager: import rpm signing key to rpmdb
Import the gpg key used in rpm signing into rpmdb. This makes it
possible again to create images when rpm signing is enabled.

Also, instruct dnf to enforce signature check if rpm signing is enabled.

(From OE-Core rev: f30c1653cc5ef9daf594cbd3faad329b9fa08ab7)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:04 +00:00
Alexander Kanavin 2b77735c72 rpm: add support for remote package feeds via PACKAGE_FEED_URIS variable
I've used a previous patch (which was never merged) by
Humberto Ibarra <humberto.ibarra.lopez@intel.com> as a model
for how to do runtime testing of this feature (e.g. we need to boot
an image, run dnf on it, and check that it is indeed able to
access the remote repo over http). Here's his original commit message:

=====
Testing that feeds specified with PACKAGE_FEED_URIS var are set
correctly has two parts. First a build with this var set is required,
and then smart update needs to be issued in the running taget.

The previous is not a common selftest practice because this is a
simple test, but requires building and running a specific image,
which takes a lot of time. testimage is not a good fit either,
since the images tested there do not have the PACKAGE_FEED_URIS
var set.

For this test, the runtime-test module is being used, which is a
selftest module but runs a testimage command. The var and test
environment were set in runtime-perf.py and the actual test is
done in a new testcase added to meta-selftest layer.
=====

[YOCTO #10872]

(From OE-Core rev: 3a9e2fdef9316e24b52ce99ac355fc2b09786c72)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:04 +00:00
Peter Kjellerstedt cb05db0d03 package.bbclass: Add SKIP_FILEDEPS to list of package specific variables
Changes to SKIP_FILEDEPS should change the sstate checksum. To make
that happen, it needs to be listed in the list of package specific
variables, therefore add it.

(From OE-Core rev: 4d9fb8414300c0adc003f2d77041713a17b49bd4)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-17 16:53:04 +00:00
Paul Eggleton bbdbdcaf06 packagegroup-core-lsb: avoid rebuilding when changing layer config
It's regrettable that code in here is referring to BBFILE_COLLECTIONS,
but it is, and the result is that this packagegroup will rebuild simply
by adding or removing a layer which may be completely unrelated to
whether you've got meta-qt4 or not. Add BBFILE_COLLECTIONS to
vardepsexclude for the function to avoid this. (This was flagged up when
testing the new yocto-compat-layer script - it understandably but
undesirably reports it as a change caused by a layer).

(From OE-Core rev: 10dc69467677a4ce2a26aa670bbb9c1d7d783a0e)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-16 22:11:32 +00:00
Paul Eggleton 8aebe890fd classes/base: reformat HOSTTOOLS error
Adjust the message slightly to make it clearer, in particular mentioning
the HOSTTOOLS variable.

(From OE-Core rev: e022b27d189c1dcc7b3baea2b99dba8d724e6e2b)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-16 22:11:32 +00:00
Jussi Kukkonen ec1f1c4abe kexec-tools: Remove unused patch
The patch was removed from SRC_URI as merged upstream in 587778e24c9.

(From OE-Core rev: 818dced4e4409c112b35022b86b830b0c2a2a7da)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-16 22:11:32 +00:00
Jussi Kukkonen cd85351240 gstreamer1.0-vaapi: Remove unused patch
This patch has seemingly never been applied in the recipe (even when
it lived in meta-intel). I don't think we should have unused patches
in the repo: If the patch is useful it could be reintroduced so that
the binaries are packaged into a separate package.

(From OE-Core rev: cd33ae2f21547354e1ef9776b2c4ebcea4eb7e99)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-16 22:11:32 +00:00
Jussi Kukkonen 209bb1bc3d gstreamer1.0-omx: Remove unused patch
The patch was only used in the ancient and recently removed git recipe.

(From OE-Core rev: 2d2d4c31d04f5f29250a307c1f3da739ab351ecd)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-16 22:11:32 +00:00
Jussi Kukkonen f751a52a58 opkg-utils: Remove unused patches
0001-update-alternatives-warn-when-multiple-providers-hav.patch was
removed from SRC_URI without mention in commit 60c9a9704.

001-Makefile-use-defined-bindir-and-mandir-as-installati.patch was
removed from SRC_URI in d6b04e121.

Current opkg does not need either patch.

(From OE-Core rev: 789ec510495ca6eab379ec829e3013c977236966)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-16 22:11:32 +00:00
Jussi Kukkonen f3d8addbef gcc: Remove unused patch
CVE-2016-4490 applied to gcc < 6.1.1, our version is 6.3

(From OE-Core rev: d8329861bf6f48f6e541a04062b8d1f373dfcd78)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-16 22:11:32 +00:00
Jussi Kukkonen 7f60b7c474 python-native: Remove unused patch
avoid_parallel_make_races_on_pgen.patch was removed from SRC_URI as
handled in upstream in db9508891b.

(From OE-Core rev: 7e2a5a213535bfac14f0b2e3a3b7857b7fdcaffc)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-16 22:11:32 +00:00
Jussi Kukkonen 82311dcf1f python: Remove unused patches
CVE-2016-5636.patch and avoid_parallel_make_races_on_pgen.patch were
removed from SRC_URI as handled upstream in adf4266524.

(From OE-Core rev: 53c0d1f18d4a11b0130e54466c91320acf4f5b18)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-16 22:11:32 +00:00
Jussi Kukkonen 82d817826c python3: Remove unused patches
CVE-2016-5636.patch and use_packed_importlib.patch were removed from
SRC_URI as handled in upstream in b192bc02bb.

(From OE-Core rev: 71c539483350a4b45fb5d397d29b6ebcfc863e2f)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-16 22:11:32 +00:00
Jussi Kukkonen 3d0ac9b8af xf86-input-mouse: Remove unused patch
The patch has not been used since the ancient git version was removed.

(From OE-Core rev: 292f519dad5ed9e4389f2a3ad2307c168328a038)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-16 22:11:32 +00:00
Jussi Kukkonen f8f015b13b readline: Remove unused patch
config-dirent-symbols.patch was removed from SRC_URI as "already
applied in upstream" in 983a4986947.

(From OE-Core rev: 43e764a54458c9c6665bb7734b1fc7e7956bffdc)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-16 22:11:32 +00:00
Jussi Kukkonen a6707eda1d qemu: Remove uuid PACKAGECONFIG
--enable-uuid no longer exists: There's a uuid implementation in
libqemuutil.

(From OE-Core rev: 9da623d569ae552b1772a3b3a06df3cbf76cd573)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-16 22:11:32 +00:00
Richard Purdie 3bbd7ae2a1 bitbake.conf: Drop pip3 from HOSTTOOLS_NONFATAL
Now that pip3-native is used by build-appliance, we should no longer
need this host tool.

(From OE-Core rev: 096f943d4b7a7cf5d4c3d45f34be5ddcd2475790)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-16 22:11:32 +00:00
Juro Bystricky 0d8ce95782 build-appliance-image: ensure pod2man present in BA
"pod2man" went missing from BA, but it is required.
This patch fixes the Toaster error:

<...>
ERROR: These tools appear to be unavailable in PATH, please install
   them in order to proceed:
       pod2man
<...>

[YOCTO#11144]

(From OE-Core rev: 562c184d52db2182eafde3cf9866606145784deb)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-16 22:11:32 +00:00
Juro Bystricky 86bf67a4a5 build-appliance-image: fix build errors
Remove any symlinks before creating new ones to avoid potential build
errors such as:

FileExistsError: [Errno 17] File exists: '../../usr/src/kernel' -> ... '

(From OE-Core rev: 376aa835dd70e646a00706272db6f5ac7f419ce7)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-16 22:11:32 +00:00
Juro Bystricky 5674a08ca5 build-appliance-image: use pip3-native
Do not rely on pip3 being installed on the host.
Use pip3-native instead.

[YOCTO#10909]
[YOCTO#11022]

(From OE-Core rev: 0c349f06b6b026e9bbd3e9a8188e3d8645fd00d9)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-16 22:11:32 +00:00
Juro Bystricky 8fc9d8e9a6 python3-pip: support native builds
Add native pip3 support.

[YOCTO#11049]
[YOCTO#11022]

(From OE-Core rev: cb2073658305b605cccc60439b62c1dc515d9a8d)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-16 22:11:32 +00:00
Juro Bystricky ab2caed31a sanity.bbclass: modify check for shell
Due to the recently implemented update-alternatives for bash binary,
sanity checker may end up with a (false-positive) error such as:

Error, /bin/sh links to /bin/bash.bash, must be dash or bash

This patch modifies the test: presence of "/bash" or "/dash" in shell binary
name results in pass.

[YOCTO#11108]

(From OE-Core rev: ef51746cdd12e6b08109e9bd90a0a465c3f9f93c)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-16 22:11:32 +00:00
Richard Purdie 3fa7239679 selftest: Disable SSTATE_MIRRORS for sstate signing test
Building ed into an sstate mirror, then leaving it enabled for
oe-selftest -r signing.Signing.test_signing_sstate_archive results in:

NOTE: recipe ed-1.14.1-r0: task do_populate_lic_setscene: Started
WARNING: ed-1.14.1-r0 do_populate_lic_setscene: Failed to fetch URL file://29/sstate:ed::1.14.1:r0::3:290bbc39f3b25cc27028dafce4b5aa48_populate_lic.tgz.sig;downloadfilename=29/sstate:ed::1.14.1:r0::3:290bbc39f3b25cc27028dafce4b5aa48_populate_lic.tgz.sig, attempting MIRRORS if available
ERROR: ed-1.14.1-r0 do_populate_lic_setscene: Fetcher failure: Unable to find file file://29/sstate:ed::1.14.1:r0::3:290bbc39f3b25cc27028dafce4b5aa48_populate_lic.tgz.sig;downloadfilename=29/sstate:ed::1.14.1:r0::3:290bbc39f3b25cc27028dafce4b5aa48_populate_lic.tgz.sig anywhere. The paths that were searched were:
    /media/build1/poky/build/test-sstate
    /media/build1/poky/build/test-sstate
WARNING: ed-1.14.1-r0 do_populate_lic_setscene: Cannot verify signature on sstate package /media/build1/poky/build/test-sstate/29/sstate:ed::1.14.1:r0::3:290bbc39f3b25cc27028dafce4b5aa48_populate_lic.tgz
NOTE: recipe ed-1.14.1-r0: task do_populate_lic_setscene: Succeeded

so we need to disable SSTATE_MIRRORS for this test.

(From OE-Core rev: 2ce9962851fe58c099599679340fd87e90f426ec)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-16 22:11:31 +00:00
Mikko Ylinen 4a3d0eda4e bitbake.conf: whitelist socat as non-fatal host tool
oe-git-proxy depends on socat host tool but it's not
whitelisted and triggers a 'binary not in PATH' error.

Whitelist socat but make it a HOSTTOOLS_NONFATAL since
it's not a hard dependency.

(From OE-Core rev: 97f979ee61a06349139ccc47feaf051bdbcf0e16)

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-16 17:35:08 +00:00
Maciej Borzecki 6e20b31d5d wic: selftest: account for occasional newline in debugfs file names
Debugfs output may contain a newline in file names in 'ls -p' output. Make sure
that output is correctly split into lines by matching '/\n' and newlines are
removed from file names.

Fixes the following error appearing in AB tests:

   Traceback (most recent call last):
     File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/wic.py", line 388, in test_exclude_path
       files = [line.split('/')[5] for line in res.output.split('\n')]
     File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/wic.py", line 388, in <listcomp>
       files = [line.split('/')[5] for line in res.output.split('\n')]
   IndexError: list index out of range

(From OE-Core rev: 477805b913a6c4b4b630e42f08cd9e59f1e4e254)

Signed-off-by: Maciej Borzecki <maciej.borzecki@rndity.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:18 +00:00
Khem Raj 49c4fb941e go: add native recipes for 1.8
(From OE-Core rev: 13a5c3dac4b5b0ccb4c5dfebf79b468acd8e1983)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:18 +00:00
Khem Raj c46c25dcfe go: Enable on musl
Working fine for musl targets now

(From OE-Core rev: 1bab5be8133f62cdae251e66db6f472c3c37297c)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:18 +00:00
Ross Burton 500a5e44a9 openssl: actually apply Use-SHA256-not-MD5-as-default-digest.patch
This patch was added to fix a CVE, but wasn't actually added to SRC_URI:

    CVE: CVE-2004-2761
    The MD5 Message-Digest Algorithm is not collision resistant,
    which makes it easier for context-dependent attackers to
    conduct spoofing attacks, as demonstrated by attacks on the
    use of MD5 in the signature algorithm of an X.509 certificate.

(From OE-Core rev: 8791800f84321b3f46772bc2d9e4f754e6213946)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:18 +00:00
Bruce Ashfield 9e404449ab linux-yocto/4.4: update to v4.4.53
Updating from v4.4.41 to v4.4.53, with the following list of changes:

   49616e715061 Linux 4.4.53
   9cee69465035 scsi: lpfc: Correct WQ creation for pagesize
   1d316060cad5 MIPS: IP22: Fix build error due to binutils 2.25 uselessnes.
   4dd29050e46e MIPS: IP22: Reformat inline assembler code to modern standards.
   15959b728d07 powerpc/xmon: Fix data-breakpoint
   afee78f03ee6 dmaengine: ipu: Make sure the interrupt routine checks all interrupts.
   79a7ff1443bd bcma: use (get|put)_device when probing/removing device driver
   5a1f03f1ee91 md linear: fix a race between linear_add() and linear_congested()
   037cd23726b3 rtc: sun6i: Switch to the external oscillator
   ee360e99dae0 rtc: sun6i: Add some locking
   a0378b5bfc27 NFSv4: fix getacl ERANGE for some ACL buffer sizes
   5d23e89065cd NFSv4: fix getacl head length estimation
   52fb4bdcea4c NFSv4: Fix memory and state leak in _nfs4_open_and_get_state
   3ee4f442e5b3 nfsd: special case truncates some more
   6030493a3422 nfsd: minor nfsd_setattr cleanup
   781e6a08381d rtlwifi: rtl8192c-common: Fix "BUG: KASAN:
   6e10c33cb87a rtlwifi: Fix alignment issues
   70a09029b7be gfs2: Add missing rcu locking for glock lookup
   44dd30e04c1f rdma_cm: fail iwarp accepts w/o connection params
   88326fe95f59 RDMA/core: Fix incorrect structure packing for booleans
   f414af249f1e Drivers: hv: util: Backup: Fix a rescind processing issue
   9b45ab285388 Drivers: hv: util: Fcopy: Fix a rescind processing issue
   abaeda7f709a Drivers: hv: util: kvp: Fix a rescind processing issue
   862d2b7d21d3 hv: init percpu_list in hv_synic_alloc()
   374907e8d116 hv: allocate synic pages for all present CPUs
   80190fcc48f6 usb: gadget: udc: fsl: Add missing complete function.
   61e9e9bcfd7b usb: host: xhci: plat: check hcc_params after add hcd
   900466a746f5 usb: musb: da8xx: Remove CPPI 3.0 quirk and methods
   89eb5ed1536e w1: ds2490: USB transfer buffers need to be DMAable
   1df66c452471 w1: don't leak refcount on slave attach failure in w1_attach_slave_device()
   20bc8a897e48 can: usb_8dev: Fix memory leak of priv->cmd_msg_buffer
   3584716db12a iio: pressure: mpl3115: do not rely on structure field ordering
   2ab6b8c7172c iio: pressure: mpl115: do not rely on structure field ordering
   e83a28c521a6 arm/arm64: KVM: Enforce unconditional flush to PoC when mapping to stage-2
   d4a8db66b946 fuse: add missing FR_FORCE
   434ed4aff140 crypto: testmgr - Pad aes_ccm_enc_tv_template vector
   7666ef1a36cc ath9k: use correct OTP register offsets for the AR9340 and AR9550
   1aeced70f77d ath9k: fix race condition in enabling/disabling IRQs
   dc7bbf895e43 ath5k: drop bogus warning on drv_set_key with unsupported cipher
   6af0acc0b69f target: Fix multi-session dynamic se_node_acl double free OOPs
   4a3c526ced41 target: Obtain se_node_acl->acl_kref during get_initiator_node_acl
   da259399e487 samples/seccomp: fix 64-bit comparison macros
   6ad4196f1952 ext4: return EROFS if device is r/o and journal replay is needed
   9a79248c083d ext4: preserve the needs_recovery flag when the journal is aborted
   6ec4583e9b03 ext4: fix inline data error paths
   9d636818dbac ext4: fix data corruption in data=journal mode
   8774c73cf696 ext4: trim allocation requests to group size
   a3068b3e8066 ext4: do not polute the extents cache while shifting extents
   3daefdae5f8b ext4: Include forgotten start block on fallocate insert range
   cd3db55c64ae loop: fix LO_FLAGS_PARTSCAN hang
   356d71df7398 block/loop: fix race between I/O and set_status
   973f40f368f7 jbd2: don't leak modified metadata buffers on an aborted journal
   c0ef1f537a97 Fix: Disable sys_membarrier when nohz_full is enabled
   ea240cfed99b sd: get disk reference in sd_check_events()
   33950b56d2c2 scsi: use 'scsi_device_from_queue()' for scsi_dh
   2dc9a859eb89 scsi: aacraid: Reorder Adapter status check
   18dbfcae65a3 scsi: storvsc: properly set residual data length on errors
   80bccab34a57 scsi: storvsc: properly handle SRB_ERROR when sense message is present
   5cdc8193ac38 scsi: storvsc: use tagged SRB requests if supported by the device
   6a284310d5dd dm stats: fix a leaked s->histogram_boundaries array
   fdea1f972158 dm cache: fix corruption seen when using cache > 2TB
   f0ae01568e0c ipc/shm: Fix shmat mmap nil-page protection
   c5c893e7c44e mm: do not access page->mapping directly on page_endio
   66f43a576879 mm: vmpressure: fix sending wrong events on underflow
   612e4679b865 mm/page_alloc: fix nodes for reclaim in fast path
   31dac0e870dd iommu/vt-d: Tylersburg isoch identity map check is done too late.
   07852563dba6 iommu/vt-d: Fix some macros that are incorrectly specified in intel-iommu
   5cc0cd0e3a5a regulator: Fix regulator_summary for deviceless consumers
   272d60bfce0e staging: rtl: fix possible NULL pointer dereference
   8c8f42c9a4a7 ALSA: hda - Fix micmute hotkey problem for a lenovo AIO machine
   cd585d3ba5c8 ALSA: hda - Add subwoofer support for Dell Inspiron 17 7000 Gaming
   003aa343724f ALSA: seq: Fix link corruption by event error handling
   70dbc00f7e11 ALSA: ctxfi: Fallback DMA mask to 32bit
   9879f9d01a3c ALSA: timer: Reject user params with too small ticks
   b9bf1f0657c5 ALSA: hda - fix Lewisburg audio issue
   1f4f37076d52 ALSA: hda/realtek - Cannot adjust speaker's volume on a Dell AIO
   6b1d7b6f54c7 ARM: dts: at91: Enable DMA on sama5d2_xplained console
   be83ed085fcd ARM: dts: at91: Enable DMA on sama5d4_xplained console
   b401418c6cc3 ARM: at91: define LPDDR types
   f3a0b2004080 media: fix dm1105.c build error
   b0bde9f6a057 uvcvideo: Fix a wrong macro
   5988e7320179 am437x-vpfe: always assign bpp variable
   ab7546e49100 MIPS: Handle microMIPS jumps in the same way as MIPS32/MIPS64 jumps
   cc387ae0898e MIPS: Calculate microMIPS ra properly when unwinding the stack
   d75d675a0552 MIPS: Fix is_jump_ins() handling of 16b microMIPS instructions
   72a0cfae59b4 MIPS: Fix get_frame_info() handling of microMIPS function size
   2998bf60d385 MIPS: Prevent unaligned accesses during stack unwinding
   0d45490221a2 MIPS: Clear ISA bit correctly in get_frame_info()
   f1be0f5814a6 MIPS: Lantiq: Keep ethernet enabled during boot
   093292b8f8f7 MIPS: OCTEON: Fix copy_from_user fault handling for large buffers
   b32e43cf3f74 MIPS: BCM47XX: Fix button inversion for Asus WL-500W
   5636da7aba4d MIPS: Fix special case in 64 bit IP checksumming.
   faf6aa4b129d samples: move mic/mpssd example code from Documentation
   dd4534d88b93 Linux 4.4.52
   c171caf7be28 kvm: vmx: ensure VMCS is current while enabling PML
   e0913cc300c7 Revert "usb: chipidea: imx: enable CI_HDRC_SET_NON_ZERO_TTHA"
   151d4c0fb55b rtlwifi: rtl_usb: Fix for URB leaking when doing ifconfig up/down
   de5634875b60 block: fix double-free in the failure path of cgwb_bdi_init()
   15696979d80f goldfish: Sanitize the broken interrupt handler
   d7f97304a485 x86/platform/goldfish: Prevent unconditional loading
   67f47e57f9ca USB: serial: ark3116: fix register-accessor error handling
   b04a2ca5c4b3 USB: serial: opticon: fix CTS retrieval at open
   06b1cf346a4d USB: serial: spcp8x5: fix modem-status handling
   22034ee5dab8 USB: serial: ftdi_sio: fix line-status over-reporting
   cfad0817222d USB: serial: ftdi_sio: fix extreme low-latency setting
   af82872b65e0 USB: serial: ftdi_sio: fix modem-status error handling
   bcea8e993772 USB: serial: cp210x: add new IDs for GE Bx50v3 boards
   1ae570ab1c06 USB: serial: mos7840: fix another NULL-deref at open
   04fae8abfaef tty: serial: msm: Fix module autoload
   49ed6307508e net: socket: fix recvmmsg not returning error from sock_error
   ce9ecb8d7f3c ip: fix IP_CHECKSUM handling
   353dd7290025 irda: Fix lockdep annotations in hashbin_delete().
   a95df078e866 dccp: fix freeing skb too early for IPV6_RECVPKTINFO
   fe41cfb48f2d packet: Do not call fanout_release from atomic contexts
   abd672deb170 packet: fix races in fanout_add()
   2b3eb43342a0 net/llc: avoid BUG_ON() in skb_orphan()
   e8330cb5ae47 blk-mq: really fix plug list flushing for nomerge queues
   f0414c1f8bb7 rtc: interface: ignore expired timers when enqueuing new timers
   a82ac399bcf2 rtlwifi: rtl_usb: Fix missing entry in USB driver's private data
   f1924ac09c96 Linux 4.4.51
   5a86b1150f6c mmc: core: fix multi-bit bus width without high-speed mode
   6f26f0ba2435 bcache: Make gc wakeup sane, remove set_task_state()
   aee7d0412f17 ntb_transport: Pick an unused queue
   c6c6851adbaf NTB: ntb_transport: fix debugfs_remove_recursive
   efa061998d22 printk: use rcuidle console tracepoint
   6787d3ecbef7 ARM: 8658/1: uaccess: fix zeroing of 64-bit get_user()
   e6394c7d1c19 futex: Move futex_init() to core_initcall
   906bb56e3a12 drm/dp/mst: fix kernel oops when turning off secondary monitor
   b32128386bf8 drm/radeon: Use mode h/vdisplay fields to hide out of bounds HW cursor
   c6cbae45a57f Input: elan_i2c - add ELAN0605 to the ACPI table
   65de8bfbbe20 Fix missing sanity check in /dev/sg
   8107096d243d scsi: don't BUG_ON() empty DMA transfers
   d7b146c69229 fuse: fix use after free issue in fuse_dev_do_read()
   385a592dc7ce siano: make it work again with CONFIG_VMAP_STACK
   f9400118b015 vfs: fix uninitialized flags in splice_to_pipe()
   c50b74d88661 Linux 4.4.50
   b9dee56027ae l2tp: do not use udp_ioctl()
   afb4feb8bfef ping: fix a null pointer dereference
   9117c897c9aa packet: round up linear to header len
   58691e5b4f27 net: introduce device min_header_len
   6f99825e7632 sit: fix a double free on error path
   a4226c7ebfb5 sctp: avoid BUG_ON on sctp_wait_for_sndbuf
   f46f344841ec mlx4: Invoke softirqs after napi_reschedule
   0db25098cb6c macvtap: read vnet_hdr_size once
   625bd9e43b3b tun: read vnet_hdr_sz once
   82e9f6b90a0e tcp: avoid infinite loop in tcp_splice_read()
   96ada0a978fa ipv6: tcp: add a missing tcp_v6_restore_cb()
   eaa3a58f4503 ip6_gre: fix ip6gre_err() invalid reads
   13c3646dac70 netlabel: out of bound access in cipso_v4_validate()
   2d9c2e011fd3 ipv4: keep skb->dst around in presence of IP options
   22449a01baa5 net: use a work queue to defer net_disable_timestamp() work
   f3ece3b38437 tcp: fix 0 divide in __tcp_select_window()
   3f5b5134ec7c ipv6: pointer math error in ip6_tnl_parse_tlv_enc_lim()
   41e07a7e01d9 ipv6: fix ip6_tnl_parse_tlv_enc_lim()
   e6c654c9c092 can: Fix kernel panic at security_sock_rcv_skb
   702c0ce9a7c7 Linux 4.4.49
   5b0465dd4ad4 drm/i915: fix use-after-free in page_flip_completed()
   a44ca389a736 ALSA: seq: Don't handle loop timeout at snd_seq_pool_done()
   e5f20a3fd6db ALSA: seq: Fix race at creating a queue
   010ada0cfcb9 xen-netfront: Delete rx_refill_timer in xennet_disconnect_backend()
   1c0da0ac217b scsi: mpt3sas: disable ASPM for MPI2 controllers
   4d6bdf7c73e7 scsi: aacraid: Fix INTx/MSI-x issue with older controllers
   52e02d6bf304 scsi: zfcp: fix use-after-free by not tracing WKA port open/close on failed send
   f2d256a2d49f netvsc: Set maximum GSO size in the right place
   b9c29d45f980 mac80211: Fix adding of mesh vendor IEs
   2f46791849be ARM: 8642/1: LPAE: catch pending imprecise abort on unmask
   04ed4a9e21f5 target: Fix COMPARE_AND_WRITE ref leak for non GOOD status
   0c863accadb0 target: Fix early transport_generic_handle_tmr abort scenario
   ee44e73832c2 target: Use correct SCSI status during EXTENDED_COPY exception
   44d03b9280ed target: Don't BUG_ON during NodeACL dynamic -> explicit conversion
   fcc038db5959 ARM: 8643/3: arm/ptrace: Preserve previous registers for short regset write
   cc187c6200f8 hns: avoid stack overflow with CONFIG_KASAN
   3b7ff5ed114f cpumask: use nr_cpumask_bits for parsing functions
   fd96835e205d Revert "x86/ioapic: Restore IO-APIC irq_chip retrigger callback"
   e72c13d93e9e selinux: fix off-by-one in setprocattr
   e871ea6bcf99 ARC: [arcompact] brown paper bag bug in unaligned access delay slot fixup
   6a1bd9063246 Linux 4.4.48
   87ebcc534d47 base/memory, hotplug: fix a kernel oops in show_valid_zones()
   374d06699537 x86/irq: Make irq activate operations symmetric
   94c0517fd0cb USB: serial: option: add device ID for HP lt2523 (Novatel E371)
   9cf89ade1afd usb: gadget: f_fs: Assorted buffer overflow checks.
   e4c1e6648298 USB: Add quirk for WORLDE easykey.25 MIDI keyboard
   b4b3442e5032 USB: serial: pl2303: add ATEN device ID
   244e7f00035d USB: serial: qcserial: add Dell DW5570 QDL
   f4f09b79a0c4 KVM: x86: do not save guest-unsupported XSAVE state
   8b51676d6cd9 HID: wacom: Fix poor prox handling in 'wacom_pl_irq'
   b3c8c31ed24c percpu-refcount: fix reference leak during percpu-atomic transition
   3a8e217851c9 mmc: sdhci: Ignore unexpected CARD_INT interrupts
   85fb980acb01 can: bcm: fix hrtimer/tasklet termination in bcm op removal
   4025ab36c81c mm, fs: check for fatal signals in do_generic_file_read()
   e86a8769579e mm/memory_hotplug.c: check start_pfn in test_pages_in_a_zone()
   920bba109299 cifs: initialize file_info_lock
   7aeb95ceb84b zswap: disable changing params if init fails
   5dadebc67586 svcrpc: fix oops in absence of krb5 module
   2b4e56fde91b NFSD: Fix a null reference case in find_or_create_lock_stateid()
   f584bb6df7a2 powerpc: Add missing error check to prom_find_boot_cpu()
   9b993e2c3df6 powerpc/eeh: Fix wrong flag passed to eeh_unfreeze_pe()
   db18e92ceb8d libata: apply MAX_SEC_1024 to all CX1-JB*-HP devices
   579a917538f1 ata: sata_mv:- Handle return value of devm_ioremap.
   d49d465d178f perf/core: Fix PERF_RECORD_MMAP2 prot/flags for anonymous memory
   72bb4b549085 crypto: arm64/aes-blk - honour iv_out requirement in CBC and CTR modes
   ae7d33f53a56 crypto: api - Clear CRYPTO_ALG_DEAD bit before registering an alg
   c4305f00852c drm/nouveau/nv1a,nv1f/disp: fix memory clock rate retrieval
   2a3797ef69c5 drm/nouveau/disp/gt215: Fix HDA ELD handling (thus, HDMI audio) on gt215
   e21a3cad35bc ext4: validate s_first_meta_bg at mount time
   62e546b2d3a0 PCI/ASPM: Handle PCI-to-PCIe bridges as roots of PCIe hierarchies
   4686ea264f1d Linux 4.4.47
   384e4bf0def9 net: dsa: Bring back device detaching in dsa_slave_suspend()
   74a7c39ec627 qmi_wwan/cdc_ether: add device ID for HP lt2523 (Novatel E371) WWAN card
   0492a033fb71 af_unix: move unix_mknod() out of bindlock
   e674c70bafe7 r8152: don't execute runtime suspend if the tx is not empty
   980b9afd9ecc bridge: netlink: call br_changelink() during br_dev_newlink()
   8f9e4ad8d7f3 tcp: initialize max window for a new fastopen socket
   8051bf2890e9 ipv6: addrconf: Avoid addrconf_disable_change() using RCU read-side lock
   8a066a87025e net: phy: bcm63xx: Utilize correct config_intr function
   6fec199362c4 net: fix harmonize_features() vs NETIF_F_HIGHDMA
   4f5e54bdd052 ax25: Fix segfault after sock connection timeout
   062b7f35ff6c ravb: do not use zero-length alignment DMA descriptor
   7d691d89eed0 openvswitch: maintain correct checksum state in conntrack actions
   b82981fb273d tcp: fix tcp_fastopen unaligned access complaints on sparc
   ec9e993f30f6 net: systemport: Decouple flow control from __bcm_sysport_tx_reclaim
   40e7c725ab0f net: ipv4: fix table id in getroute response
   2e84b8ce6fc3 net: lwtunnel: Handle lwtunnel_fill_encap failure
   290db2cd517e mlxsw: pci: Fix EQE structure definition
   811bb1b9d9ab mlxsw: switchx2: Fix memory leak at skb reallocation
   9edb2d75d81b mlxsw: spectrum: Fix memory leak at skb reallocation
   595ac452c451 r8152: fix the sw rx checksum is unavailable
   6c1ed78cb074 Linux 4.4.46
   d0721893214e mm, memcg: do not retry precharge charges
   14b97492d6e1 platform/x86: intel_mid_powerbtn: Set IRQ_ONESHOT
   d430c37db796 pinctrl: broxton: Use correct PADCFGLOCK offset
   5ddaf6804e24 s5k4ecgx: select CRC32 helper
   5288474d2f48 IB/umem: Release pid in error and ODP flow
   e114e66eec3d IB/ipoib: move back IB LL address into the hard header
   800a78f9e62b drm/i915: Don't leak edid in intel_crt_detect_ddc()
   d79e41188a1e SUNRPC: cleanup ida information when removing sunrpc module
   edef1086bf09 NFSv4.0: always send mode in SETATTR after EXCLUSIVE4
   0f64f22c0686 nfs: Don't increment lock sequence ID after NFS4ERR_MOVED
   bde741e9cc23 parisc: Don't use BITS_PER_LONG in userspace-exported swab.h header
   acb63c8b576d ARC: [arcompact] handle unaligned access delay slot corner case
   42ad7663677d ARC: udelay: fix inline assembler by adding LP_COUNT to clobber list
   bca1a95c9e20 can: ti_hecc: add missing prepare and unprepare of the clock
   63fe33a78428 can: c_can_pci: fix null-pointer-deref in c_can_start() - set device pointer
   bae49e72f951 s390/ptrace: Preserve previous registers for short regset write
   8637de3a318d RDMA/cma: Fix unknown symbol when CONFIG_IPV6 is not enabled
   d65032ab06f4 ISDN: eicon: silence misleading array-bounds warning
   d1b232c2ce53 sysctl: fix proc_doulongvec_ms_jiffies_minmax()
   f11e8bf8e99b mm/mempolicy.c: do not put mempolicy before using its nodemask
   c83ad9703e71 drm: Fix broken VT switch with video=1366x768 option
   23bc4e136bca tile/ptrace: Preserve previous registers for short regset write
   63db7c91a3c0 fbdev: color map copying bounds checking
   ef30573ef2b1 Linux 4.4.45
   8323d0555fe3 arm64: avoid returning from bad_mode
   6e65a4c698cf selftest/powerpc: Wrong PMC initialized in pmc56_overflow test
   a5291c1a9eae dmaengine: pl330: Fix runtime PM support for terminated transfers
   238623ce487f ite-cir: initialize use_demodulator before using it
   b02d7a8219bc blackfin: check devm_pinctrl_get() for errors
   a4d2fa085b9a ARM: 8613/1: Fix the uaccess crash on PB11MPCore
   baa2610c4962 ARM: ux500: fix prcmu_is_cpu_in_wfi() calculation
   68664ae14535 ARM: dts: imx6qdl-nitrogen6_max: fix sgtl5000 pinctrl init
   c55f8aaf4a19 arm64/ptrace: Reject attempts to set incomplete hardware breakpoint fields
   4c87fc7f2059 arm64/ptrace: Avoid uninitialised struct padding in fpr_set()
   03ee97d68d8b arm64/ptrace: Preserve previous registers for short regset write - 3
   d8263f1753ce arm64/ptrace: Preserve previous registers for short regset write - 2
   76e08d2966a9 arm64/ptrace: Preserve previous registers for short regset write
   41a9abb0e06b ARM: dts: da850-evm: fix read access to SPI flash
   62c3d36309d3 ceph: fix bad endianness handling in parse_reply_info_extra
   abfa5e8ae937 ARM: 8634/1: hw_breakpoint: blacklist Scorpion CPUs
   294b0aadc8c2 svcrdma: avoid duplicate dma unmapping during error recovery
   098b62b757a4 clocksource/exynos_mct: Clear interrupt when cpu is shut down
   a07563c3cf05 ubifs: Fix journal replay wrt. xattr nodes
   7ea1eb731453 qla2xxx: Fix crash due to null pointer access
   86915782ff65 x86/ioapic: Restore IO-APIC irq_chip retrigger callback
   212bab3c5b0b mtd: nand: xway: disable module support
   80aeb7bf5ca0 ieee802154: atusb: do not use the stack for buffers to make them DMA able
   8f6f508f70ff mmc: mxs-mmc: Fix additional cycles after transmission stop
   75c60df15c85 HID: corsair: fix control-transfer error handling
   0f37d20fdc70 HID: corsair: fix DMA buffers on stack
   4740d1d7d429 PCI: Enumerate switches below PCI-to-PCIe bridges
   dc4e372f9a47 fuse: clear FR_PENDING flag when moving requests out of pending queue
   6f3002c22087 svcrpc: don't leak contexts on PROC_DESTROY
   3b434ca8592a x86/PCI: Ignore _CRS on Supermicro X8DTH-i/6/iF/6F
   36672b8b99e2 tmpfs: clear S_ISGID when setting posix ACLs
   39d7c9ce35a1 ARM: dts: imx31: fix AVIC base address
   d2e4968e3c0d ARM: dts: imx31: move CCM device node to AIPS2 bus devices
   280d00a94293 ARM: dts: imx31: fix clock control module interrupts description
   2ba399c693c0 perf scripting: Avoid leaking the scripting_context variable
   aa02f29e95f3 IB/IPoIB: Remove can't use GFP_NOIO warning
   ea470497eb31 IB/mlx4: When no DMFS for IPoIB, don't allow NET_IF QPs
   f1c9169478ca IB/mlx4: Fix port query for 56Gb Ethernet links
   c7a40c48f7a5 IB/mlx4: Fix out-of-range array index in destroy qp flow
   1be54a4ec45a IB/mlx4: Set traffic class in AH
   4ffb36efe22c IB/mlx5: Wait for all async command completions to complete
   97085e2a386a ftrace/x86: Set ftrace_stub to weak to prevent gcc from using short jumps to it
   a7dd347a67c0 Linux 4.4.44
   45611fb9e0af pinctrl: sh-pfc: Do not unconditionally support PIN_CONFIG_BIAS_DISABLE
   ef6eadbf7b16 powerpc/ibmebus: Fix device reference leaks in sysfs interface
   488e7b2c5b6a powerpc/ibmebus: Fix further device reference leaks
   4d1b5086f7e2 bus: vexpress-config: fix device reference leak
   6e8210ad2585 blk-mq: Always schedule hctx->next_cpu
   ddf0c377bf82 ACPI / APEI: Fix NMI notification handling
   4af7970b3593 block: cfq_cpd_alloc() should use @gfp
   2c1dd423a567 cpufreq: powernv: Disable preemption while checking CPU throttling state
   33ebdfe913fd NFSv4.1: nfs4_fl_prepare_ds must be careful about reporting success.
   11804232d1ad NFS: Fix a performance regression in readdir
   8ff851bf2240 pNFS: Fix race in pnfs_wait_on_layoutreturn
   7aae6e3c0c52 pinctrl: meson: fix gpio request disabling other modes
   f0382c090a20 btrfs: fix error handling when run_delayed_extent_op fails
   205e997acde7 btrfs: fix locking when we put back a delayed ref that's too new
   68b97d287e28 x86/cpu: Fix bootup crashes by sanitizing the argument of the 'clearcpuid=' command-line option
   0cf23324af1c USB: serial: ch341: fix modem-control and B0 handling
   1d25a05642c8 USB: serial: ch341: fix resume after reset
   a1a0612b7dde drm/radeon: drop verde dpm quirks
   b9d6631395a1 sysctl: Drop reference added by grab_header in proc_sys_readdir
   ca81117b7432 sysrq: attach sysrq handler correctly for 32-bit kernel
   075f493a974e tty/serial: atmel_serial: BUG: stop DMA from transmitting in stop_tx
   4a6716f16517 mnt: Protect the mountpoint hashtable with mount_lock
   836fd7c9e6e6 vme: Fix wrong pointer utilization in ca91cx42_slave_get
   d5fcd719e889 xhci: fix deadlock at host remove by running watchdog correctly
   ae76af251806 i2c: fix kernel memory disclosure in dev interface
   f64b9acc368c i2c: print correct device invalid address
   085f4ebec797 Input: elants_i2c - avoid divide by 0 errors on bad touchscreen data
   214a8e98e6bc USB: serial: ch341: fix open and resume after B0
   802b4ef3b989 USB: serial: ch341: fix control-message error handling
   bc74606d8d80 USB: serial: ch341: fix open error handling
   e29f709c2f56 USB: serial: ch341: fix initial modem-control state
   3ef5bc0b385f USB: serial: kl5kusb105: fix line-state error handling
   4a1ecf37a59f nl80211: fix sched scan netlink socket owner destruction
   9d3875c0c462 KVM: x86: Introduce segmented_write_std
   3490e72ad6d0 KVM: x86: emulate FXSAVE and FXRSTOR
   d9c4c1e7c2cf KVM: x86: add asm_safe wrapper
   4fa0090249fb KVM: x86: add Align16 instruction flag
   1fc673d96f9d KVM: x86: flush pending lapic jump label updates on module unload
   3d27cd4b2527 jump_labels: API for flushing deferred jump label updates
   34a55c9d4a2d KVM: eventfd: fix NULL deref irqbypass consumer
   816307c80d4d KVM: x86: fix emulation of "MOV SS, null selector"
   1a46e6ecf896 mm/hugetlb.c: fix reservation race when freeing surplus pages
   6bbb8ff3b68e ocfs2: fix crash caused by stale lvb with fsdlm plugin
   70429b970bde mm: fix devm_memremap_pages crash, use mem_hotplug_{begin, done}
   6de62ec07d2a selftests: do not require bash for the generated test
   2deaeea23fbd selftests: do not require bash to run netsocktests testcase
   2e2679a168fe Input: i8042 - add Pegatron touchpad to noloop table
   51377793758a Input: xpad - use correct product id for x360w controllers
   d9ea51a9bea4 Linux 4.4.43
   e21901d7a5eb mm/init: fix zone boundary creation
   e3f77bb158f9 ALSA: usb-audio: Add a quirk for Plantronics BT600
   a1c81f839c6f spi: mvebu: fix baudrate calculation for armada variant
   dfd64d112a02 ARM: OMAP4+: Fix bad fallthrough for cpuidle
   04dc1be104fe ARM: zynq: Reserve correct amount of non-DMA RAM
   bed280bbc995 powerpc: Fix build warning on 32-bit PPC
   fa48a1607580 ALSA: firewire-tascam: Fix to handle error from initialization of stream data
   a2f727149ee4 HID: hid-cypress: validate length of report
   70e05a9f2f4f net: vrf: do not allow table id 0
   c177d491a948 net: ipv4: Fix multipath selection with vrf
   67b21973ecf4 gro: Disable frag0 optimization on IPv6 ext headers
   db7119eaacf4 gro: use min_t() in skb_gro_reset_offset()
   5169043e9722 gro: Enter slow-path if there is no tailroom
   0d3b9c2746d3 r8152: fix rx issue for runtime suspend
   c31a3c79928b r8152: split rtl8152_suspend function
   807cac887d95 ipv4: Do not allow MAIN to be alias for new LOCAL w/ custom rules
   0d431f94c181 igmp: Make igmp group member RFC 3376 compliant
   14e8d568f14f drop_monitor: consider inserted data in genlmsg_end
   81e7916476ca drop_monitor: add missing call to genlmsg_end
   1ff0308f33ce net/mlx5: Avoid shadowing numa_node
   18d971f84c84 net/mlx5: Check FW limitations on log_max_qp before setting it
   3f2847608cb9 net: stmmac: Fix race between stmmac_drv_probe and stmmac_open
   67bce5821c9a net, sched: fix soft lockup in tc_classify
   58d0d7a45ef8 ipv6: handle -EFAULT from skb_copy_bits
   6ac0b3810cdc net: vrf: Drop conntrack data after pass through VRF device on Tx
   1e5298d4c82b ser_gigaset: return -ENOMEM on error instead of success
   33c7b0f74c57 netvsc: reduce maximum GSO size
   49c4446a2e13 Linux 4.4.42
   adf640eaefac usb: gadget: composite: always set ep->mult to a sensible value
   f108b2de9cd0 Revert "usb: gadget: composite: always set ep->mult to a sensible value"
   6053479cbbc5 tick/broadcast: Prevent NULL pointer dereference
   af817b3fc6e5 drm/radeon: Always store CRTC relative radeon_crtc->cursor_x/y values
   9205be7fa632 cx23885-dvb: move initialization of a8293_pdata
   6b59fb520123 net: vxge: avoid unused function warnings
   8003ac65d0a5 net: ti: cpmac: Fix compiler warning due to type confusion
   becfb50c66cb cred/userns: define current_user_ns() as a function
   f5a636fd416f staging: comedi: dt282x: tidy up register bit defines
   8f251525da14 powerpc/pci/rpadlpar: Fix device reference leaks
   ccd7bd29c2e6 md: MD_RECOVERY_NEEDED is set for mddev->recovery
   1d3124821f3a crypto: arm64/aes-ce - fix for big endian
   5b21c5489206 crypto: arm64/aes-xts-ce: fix for big endian
   abca9c2d2cab crypto: arm64/sha1-ce - fix for big endian
   83f8a200af45 crypto: arm64/aes-neon - fix for big endian
   bd17e2d36615 crypto: arm64/aes-ccm-ce: fix for big endian
   bed5c78798e1 crypto: arm/aes-ce - fix for big endian
   4c575a30db8c crypto: arm64/ghash-ce - fix for big endian
   820c2ac4c9f4 crypto: arm64/sha2-ce - fix for big endian
   6119edd2d87a s390/crypto: unlock on error in prng_tdes_read()
   85baf9416b7e mmc: mmc_test: Uninitialized return value
   b0cb7f60998c PM / wakeirq: Fix dedicated wakeirq for drivers not using autosuspend
   fc44d3d05478 irqchip/bcm7038-l1: Implement irq_cpu_offline() callback
   69dc8473b750 target/iscsi: Fix double free in lio_target_tiqn_addtpg()
   e57c830c9041 scsi: mvsas: fix command_active typo
   079c4b43e1fe ASoC: samsung: i2s: Fixup last IRQ unsafe spin lock call
   83882724eb65 iommu/vt-d: Flush old iommu caches for kdump when the device gets context mapped
   91bc81b9661c iommu/vt-d: Fix pasid table size encoding
   dc78a9e1b4f8 iommu/amd: Fix the left value check of cmd buffer
   b54dcc3b68ef iommu/amd: Missing error code in amd_iommu_init_device()
   46105512474f clk: imx31: fix rewritten input argument of mx31_clocks_init()
   f371ee85268d clk: clk-wm831x: fix a logic error
   92e993abb928 hwmon: (g762) Fix overflows and crash seen when writing limit attributes
   fd504f529160 hwmon: (nct7802) Fix overflows seen when writing into limit attributes
   5e351caeaa96 hwmon: (ds620) Fix overflows seen when writing temperature limits
   fbab1832e7e8 hwmon: (amc6821) sign extension temperature
   07c05622f63d hwmon: (scpi) Fix module autoload
   9453d46a12ba cris: Only build flash rescue image if CONFIG_ETRAX_AXISFLASHMAP is selected
   8353a5deec10 ath10k: use the right length of "background"
   56ef587b77fd stable-fixup: hotplug: fix unused function warning
   acb7df233b72 usb: dwc3: ep0: explicitly call dwc3_ep0_prepare_one_trb()
   ecd4ad9ab7e9 usb: dwc3: ep0: add dwc3_ep0_prepare_one_trb()
   efcd2e082f0f usb: dwc3: gadget: always unmap EP0 requests
   7927c0314060 staging: iio: ad7606: fix improper setting of oversampling pins
   3e4302f99aed mei: bus: fix mei_cldev_enable KDoc
   e94800df8c1f USB: serial: io_ti: bind to interface after fw download
   1224bb23fe15 USB: phy: am335x-control: fix device and of_node leaks
   d36d0122ff51 ARM: dts: r8a7794: Correct hsusb parent clock
   de2cf4998a52 USB: serial: kl5kusb105: abort on open exception path
   f5531856c2c7 ALSA: usb-audio: Fix bogus error return in snd_usb_create_stream()
   d576c36a3e1f usb: musb: blackfin: add bfin_fifo_offset in bfin_ops
   e675483ee2f1 usb: hub: Move hub_port_disable() to fix warning if PM is disabled
   02ef64ac647f usb: musb: Fix trying to free already-free IRQ 4
   60dffc173220 usb: dwc3: pci: add Intel Gemini Lake PCI ID
   59185ef00b46 xhci: Fix race related to abort operation
   ce737ba8e23e xhci: Use delayed_work instead of timer for command timeout
   b07b4fa72500 usb: xhci-mem: use passed in GFP flags instead of GFP_KERNEL
   3e3f05182b39 USB: serial: mos7720: fix parallel probe
   5c83e07c3c8b USB: serial: mos7720: fix parport use-after-free on probe errors
   2f525ed5efb8 USB: serial: mos7720: fix use-after-free on probe errors
   f2e8b37a9970 USB: serial: mos7720: fix NULL-deref at open
   857757872704 USB: serial: mos7840: fix NULL-deref at open
   1b1fdc715807 USB: serial: kobil_sct: fix NULL-deref in write
   b60b91268cd0 USB: serial: cyberjack: fix NULL-deref at open
   b835f4cd6700 USB: serial: oti6858: fix NULL-deref at open
   374250ed9b26 USB: serial: io_edgeport: fix NULL-deref at open
   ad4de3d91872 USB: serial: ti_usb_3410_5052: fix NULL-deref at open
   f0bdd7e0ccb2 USB: serial: garmin_gps: fix memory leak on failed URB submit
   e3d6a0da47e6 USB: serial: iuu_phoenix: fix NULL-deref at open
   11743d704e51 USB: serial: io_ti: fix I/O after disconnect
   7ef8807cce7d USB: serial: io_ti: fix another NULL-deref at open
   33a5d0cc25f4 USB: serial: io_ti: fix NULL-deref at open
   0243498813d2 USB: serial: spcp8x5: fix NULL-deref at open
   65d107038ec6 USB: serial: keyspan_pda: verify endpoints at probe
   c6aa86222ec5 USB: serial: pl2303: fix NULL-deref at open
   4e106709060f USB: serial: quatech2: fix sleep-while-atomic in close
   7b5d7880019c USB: serial: omninet: fix NULL-derefs at open and disconnect
   d88f0f6c5ba0 usb: xhci: hold lock over xhci_abort_cmd_ring()
   f286c2513ba6 xhci: Handle command completion and timeout race
   86bb666386ee usb: host: xhci: Fix possible wild pointer when handling abort command
   3447b3772934 usb: xhci: fix return value of xhci_setup_device()
   2d1b4fcba4a7 xhci: free xhci virtual devices with leaf nodes first
   b303a108541e usb: xhci: apply XHCI_PME_STUCK_QUIRK to Intel Apollo Lake
   b4b404b99177 xhci: workaround for hosts missing CAS bit
   e224b8b7215f usb: xhci: fix possible wild pointer
   438efb640e83 usb: dwc3: core: avoid Overflow events
   96a21e702606 usb: gadget: composite: Test get_alt() presence instead of set_alt()
   bd4e78bbc93f USB: dummy-hcd: fix bug in stop_activity (handle ep0)
   7cc00abef071 USB: fix problems with duplicate endpoint addresses
   f6ff9981743c USB: gadgetfs: fix checks of wTotalLength in config descriptors
   74e36bffe645 USB: gadgetfs: fix use-after-free bug
   fe75330a27fc USB: gadgetfs: fix unbounded memory allocation bug
   10a4380ea145 usb: gadgetfs: restrict upper bound on device configuration size
   9cc601b40d76 usb: storage: unusual_uas: Add JMicron JMS56x to unusual device
   96175db0a647 usb: musb: dsps: implement clear_ep_rxintr() callback
   2a0e2a89cc41 usb: musb: core: add clear_ep_rxintr() to musb_platform_ops
   e72575d2d76e KVM: MIPS: Flush KVM entry code from icache globally
   7b95f36fc6fa KVM: x86: reset MMU on KVM_SET_VCPU_EVENTS
   9b73f43fcef4 mac80211: initialize fast-xmit 'info' later
   6e28a02f0e86 ARM: davinci: da850: don't add emac clock to lookup table twice
   bb1cacd88e07 ALSA: usb-audio: Fix irq/process data synchronization
   16b968a1ca96 ALSA: hda - Apply asus-mode8 fixup to ASUS X71SL
   b87483c27624 ALSA: hda - Fix up GPIO for ASUS ROG Ranger

(From OE-Core rev: bf00e5e265d3f878d2af36a48d597ce477bd6f4f)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:18 +00:00
Bruce Ashfield 9afb397b31 linux-yocto/4.10: update to v4.10.2
Integrating the korg -stable update, which contains the following changes:

   1e4d47787a21 Linux 4.10.2
   92d90f089848 ceph: update readpages osd request according to size of pages
   519f6fa2addb scsi: lpfc: Correct WQ creation for pagesize
   209cf1f25d0d MIPS: IP22: Fix build error due to binutils 2.25 uselessnes.
   b647284905d6 MIPS: IP22: Reformat inline assembler code to modern standards.
   84c131c8c9d0 module: fix memory leak on early load_module() failures
   cf1c6beafa75 powerpc/mm/hash: Always clear UPRT and Host Radix bits when setting up CPU
   543fd2ab74dc powerpc/mm: Add MMU_FTR_KERNEL_RO to possible feature mask
   4ffde229727e powerpc/xmon: Fix data-breakpoint
   737af93c3dce xprtrdma: Reduce required number of send SGEs
   387fb7dc3fde xprtrdma: Disable pad optimization by default
   5d53884b2c1b xprtrdma: Per-connection pad optimization
   921fe03af2b5 xprtrdma: Fix Read chunk padding
   143ac52c3ba8 dmaengine: ipu: Make sure the interrupt routine checks all interrupts.
   700c30c5179d mtd: nand: ifc: Fix location of eccstat registers for IFC V1.0
   6c12c1cec4bd bcma: use (get|put)_device when probing/removing device driver
   fe83da6961f8 md linear: fix a race between linear_add() and linear_congested()
   3c1afb4c72be rtc: sun6i: Switch to the external oscillator
   5fcdc5edafc2 rtc: sun6i: Add some locking
   c45b4fe3ca45 rtc: sun6i: Disable the build as a module
   b97cb8ece888 f2fs: Fix zoned block device support
   e8917cd860db f2fs: avoid to issue redundant discard commands
   c85fc3f1d59f f2fs: add ovp valid_blocks check for bg gc victim to fg_gc
   f213a0f926de f2fs: fix multiple f2fs_add_link() calls having same name
   88cf812869fd f2fs: fix a problem of using memory after free
   fd414a3e7d2c NFSv4: fix getacl ERANGE for some ACL buffer sizes
   ca83d7a97e36 NFSv4: fix getacl head length estimation
   81df387e03e0 Revert "NFSv4.1: Handle NFS4ERR_BADSESSION/NFS4ERR_DEADSESSION replies to OP_SEQUENCE"
   ad2ce81eeeb0 pNFS/flexfiles: If the layout is invalid, it must be updated before retrying
   7776aaacda12 NFSv4: Fix reboot recovery in copy offload
   607137e3f171 NFSv4: Fix memory and state leak in _nfs4_open_and_get_state
   982898d7f97a nfsd: special case truncates some more
   8defb389140f nfsd: minor nfsd_setattr cleanup
   11596d936ec4 VME: restore bus_remove function causing incomplete module unload
   031fad61741f rtlwifi: rtl8192c-common: Fix "BUG: KASAN:
   d0ff495de343 rtlwifi: Fix alignment issues
   28cd8db6a715 remoteproc: qcom: mdt_loader: Don't overwrite firmware object
   8e2b7672b43e gfs2: Add missing rcu locking for glock lookup
   6baafeb34b87 rdma_cm: fail iwarp accepts w/o connection params
   fc11f49a6a46 RDMA/core: Fix incorrect structure packing for booleans
   93919359467c Drivers: hv: util: Backup: Fix a rescind processing issue
   48dc52df9155 Drivers: hv: util: Fcopy: Fix a rescind processing issue
   f38bcff39862 Drivers: hv: util: kvp: Fix a rescind processing issue
   ec6f27bd19e0 Drivers: hv: vmbus: Fix a rescind handling bug
   42b0681b7fe9 Drivers: hv: vmbus: Prevent sending data on a rescinded channel
   f791a7b4a7ae hv: don't reset hv_context.tsc_page on crash
   a34da99e9468 hv: init percpu_list in hv_synic_alloc()
   aa2765857f74 hv: allocate synic pages for all present CPUs
   d03229ccf262 usb: gadget: f_hid: fix: Move IN request allocation to set_alt()
   ae1756eb2af9 usb: gadget: f_hid: Use spinlock instead of mutex
   b1d6621ad636 usb: gadget: f_hid: fix: Prevent accessing released memory
   afa9556b5fe6 usb: gadget: f_hid: fix: Free out requests
   6be8bf7cbcc2 usb: gadget: udc: fsl: Add missing complete function.
   0d95b60e8e9e usb: gadget: udc-core: Rescan pending list on driver unbind
   3afb5a0bd1f1 usb: host: xhci: plat: check hcc_params after add hcd
   8fd8890d42fc usb: dwc3: gadget: skip Set/Clear Halt when invalid
   fed46b526628 usb: musb: da8xx: Remove CPPI 3.0 quirk and methods
   53021fb71918 w1: ds2490: USB transfer buffers need to be DMAable
   1d1b1e1738ef w1: don't leak refcount on slave attach failure in w1_attach_slave_device()
   c903cc53f760 can: usb_8dev: Fix memory leak of priv->cmd_msg_buffer
   e9394d5a762d can: gs_usb: Don't use stack memory for USB transfers
   8d0db6065243 iio: pressure: mpl3115: do not rely on structure field ordering
   bab740787fd1 iio: pressure: mpl115: do not rely on structure field ordering
   615b1dc4f615 Revert "arm64: mm: set the contiguous bit for kernel mappings where appropriate"
   b6c72c4e3d93 KVM: arm/arm64: vgic: Stop injecting the MSI occurrence twice
   68b83bee9b90 arm64: fix erroneous __raw_read_system_reg() cases
   c5d1e9cc2879 arm64: dma-mapping: Fix dma_mapping_error() when bypassing SWIOTLB
   91dc54c352c4 arm/arm64: KVM: Enforce unconditional flush to PoC when mapping to stage-2
   6039863d6c97 x86/pkeys: Check against max pkey to avoid overflows
   f7e1174b9d53 fuse: add missing FR_FORCE
   f5e2e7ca6e6a crypto: vmx - Use skcipher for xts fallback
   1fd2ec10d3e1 crypto: vmx - Use skcipher for cbc fallback
   e7fa3bd29e07 crypto: api - Add crypto_requires_off helper
   ddde9085f58c crypto: xts - Propagate NEED_FALLBACK bit
   d5b190f8689c crypto: testmgr - Pad aes_ccm_enc_tv_template vector
   0c2f646b90b7 crypto: xts - Add ECB dependency
   0fd8c1cb80a1 Drivers: hv: vmbus: Raise retry/wait limits in vmbus_post_msg()
   2c849a5c6a83 PCI: altera: Fix TLP_CFG_DW0 for TLP write
   bc4c9766324a pci/hotplug/pnv-php: Disable MSI and PCI device properly
   91f5bce789d9 PCI: hv: Fix wslot_to_devfn() to fix warnings on device removal
   1306371f6cac ath9k: use correct OTP register offsets for the AR9340 and AR9550
   5bdf880b74c3 ath9k: fix race condition in enabling/disabling IRQs
   a5294659a572 ath5k: drop bogus warning on drv_set_key with unsupported cipher
   21b7618b6a79 ath10k: fix boot failure in UTF mode/testmode
   8fbc16143918 mei: remove support for broken parallel read
   8655a4538d01 samples/seccomp: fix 64-bit comparison macros
   4c30d59d397e ext4: fix fencepost in s_first_meta_bg validation
   b1062240132b ext4: return EROFS if device is r/o and journal replay is needed
   9605f3406975 ext4: preserve the needs_recovery flag when the journal is aborted
   5dda2495d85f ext4: fix inline data error paths
   c9bcbdfebb1f ext4: fix use-after-iput when fscrypt contexts are inconsistent
   c8f246b40261 ext4: fix data corruption in data=journal mode
   c4fbdc012479 ext4: trim allocation requests to group size
   011fe6ade610 ext4: do not polute the extents cache while shifting extents
   ac870011b6dc ext4: Include forgotten start block on fallocate insert range
   cdc13a3e453e loop: fix LO_FLAGS_PARTSCAN hang
   d957eb76b468 block/loop: fix race between I/O and set_status
   94cbe6f239a8 jbd2: don't leak modified metadata buffers on an aborted journal
   f4639f7eef3c Fix: Disable sys_membarrier when nohz_full is enabled
   112db4f65c53 power: reset: at91-poweroff: timely shutdown LPDDR memories
   c2990d648cf2 scsi: use 'scsi_device_from_queue()' for scsi_dh
   9acc751068e8 scsi: aacraid: Reorder Adapter status check
   154f7a1523b7 scsi: qla2xxx: Fix Regression introduced by pci_alloc_irq_vectors_affinity call.
   699abe249b0e scsi: qla2xxx: Fix response queue count for Target mode.
   cf9d91108064 scsi: qla2xxx: Cleaned up queue configuration code.
   e5fbe2328cc5 scsi: storvsc: properly set residual data length on errors
   0aeb049529f3 scsi: storvsc: properly handle SRB_ERROR when sense message is present
   99b3ba253c8b scsi: storvsc: use tagged SRB requests if supported by the device
   4517ad77e7e6 dm raid: fix data corruption on reshape request
   37ce3ec1e70b dm round robin: revert "use percpu 'repeat_count' and 'current_path'"
   72ea8179bc80 dm stats: fix a leaked s->histogram_boundaries array
   d18f5797ecf3 dm cache: fix corruption seen when using cache > 2TB
   ae74de54c982 PM / devfreq: Fix wrong trans_stat of passive devfreq device
   f1aa0ed61368 PM / devfreq: Fix available_governor sysfs
   45c01d51bb34 ima: fix ima_d_path() possible race with rename
   87d1f686d6bf ipc/shm: Fix shmat mmap nil-page protection
   7d24d588d82e sigaltstack: support SS_AUTODISARM for CONFIG_COMPAT
   97ddabf533f7 mm, vmscan: consider eligible zones in get_scan_count
   e2338022cded mm, vmscan: cleanup lru size claculations
   3b156aab44c9 mm balloon: umount balloon_mnt when removing vb device
   e560c8b23c3b mm: do not access page->mapping directly on page_endio
   67b5c7997148 mm: vmpressure: fix sending wrong events on underflow
   6fd7a425d925 mm/page_alloc: fix nodes for reclaim in fast path
   d0e2f86dff3a mm, devm_memremap_pages: hold device_hotplug lock over mem_hotplug_{begin, done}
   069634bd9e51 CIFS: Fix splice read for non-cached files
   9d654322f85e iommu/vt-d: Tylersburg isoch identity map check is done too late.
   1f8d55b2050c iommu/vt-d: Fix some macros that are incorrectly specified in intel-iommu
   b54dc49d8c4f tpm_tis: fix the error handling of init_tis()
   c15aff9ef901 tpm_tis: use default timeout value if chip reports it as zero
   992b0ac79a12 regulator: Fix regulator_summary for deviceless consumers
   2eb4d8daec86 coresight: fix kernel panic caused by invalid CPU
   91b8d5b2f2e3 coresight: STM: Balance enable/disable
   805c95a692ed staging: rtl: fix possible NULL pointer dereference
   f2bdb905fec2 staging/lustre/lnet: Fix allocation size for sv_cpt_data
   d43004bdde3f staging: greybus: loopback: fix broken udelay
   75225bc818b0 hwmon: (it87) Ensure that pwm control cache is current before updating values
   3b43f4161a5f hwmon: (it87) Do not overwrite bit 2..6 of pwm control registers
   3d2c16ca46bd ALSA: hda - Fix micmute hotkey problem for a lenovo AIO machine
   dfd8367d0c85 ALSA: hda - Add subwoofer support for Dell Inspiron 17 7000 Gaming
   80ed6047658c ALSA: seq: Fix link corruption by event error handling
   7b1c5904ad8d ALSA: ctxfi: Fallback DMA mask to 32bit
   cff10ccb6060 ALSA: timer: Reject user params with too small ticks
   a517802c5b33 ALSA: hda - fix Lewisburg audio issue
   3895ed1823d4 ALSA: hda/realtek - Cannot adjust speaker's volume on a Dell AIO
   75cf4b6b6e29 ARM: dts: at91: Enable DMA on sama5d2_xplained console
   67f1dd02b98d ARM: dts: at91: Enable DMA on sama5d4_xplained console
   55015e149d5b ARM: at91: define LPDDR types
   8e07d34fd09c spi: s3c64xx: fix inconsistency between binding and driver
   7cf6b709b641 ext4: fix deadlock between inline_data and ext4_expand_extra_isize_ea()
   c4b6ff75838f media: Properly pass through media entity types in entity enumeration
   81d5066323a8 lirc_dev: LIRC_{G,S}ET_REC_MODE do not work
   1a0fc4b1d6ae dvb-usb: don't use stack for firmware load
   aa315c9614c8 cxd2820r: fix gpio null pointer dereference
   a1403c576b0b media: fix dm1105.c build error
   0dafb0204953 uvcvideo: Fix a wrong macro
   895bff918136 am437x-vpfe: always assign bpp variable
   4dc455047ef2 mmc: sdhci-acpi: support deferred probe
   70d4818d1c89 MIPS: Handle microMIPS jumps in the same way as MIPS32/MIPS64 jumps
   6f6914d77b18 MIPS: Calculate microMIPS ra properly when unwinding the stack
   f4ab4d6fd79b MIPS: Fix is_jump_ins() handling of 16b microMIPS instructions
   6ec5e28dfb8d MIPS: Fix get_frame_info() handling of microMIPS function size
   f9bba20eaae7 MIPS: Prevent unaligned accesses during stack unwinding
   953f805442e1 MIPS: Clear ISA bit correctly in get_frame_info()
   734696a238da MIPS: Lantiq: Keep ethernet enabled during boot
   1764303e5e5a MIPS: OCTEON: Fix copy_from_user fault handling for large buffers
   f2b15d500123 MIPS: BCM47XX: Fix button inversion for Asus WL-500W
   890fb4e3c3e1 MIPS: Fix special case in 64 bit IP checksumming.
   87592def9b31 MIPS: pic32mzda: Fix linker error for pic32_get_pbclk()

(From OE-Core rev: b4fae40422f7fe0022bfe51623b6daf8222563bb)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:18 +00:00
Bruce Ashfield 6aa6f94eab linux-yocto/4.1: update to v4.1.38
Updating to the korg 4.1.38 -stable release with the following changes:

   f40b3cc69de8 Linux 4.1.38
   d8435bb5e8fb gro: Allow tunnel stacking in the case of FOU/GUE
   066b300e5be4 tunnels: Don't apply GRO to multiple layers of encapsulation.
   b11e1542feca net: ipv4: Convert IP network timestamps to be y2038 safe
   5023ae270216 ipip: Properly mark ipip GRO packets as encapsulated.
   3e3267311e3b sg_write()/bsg_write() is not fit to be called under KERNEL_DS
   363f1a90b7f3 fs: exec: apply CLOEXEC before changing dumpable task flags
   c63e64ae7665 IB/cma: Fix a race condition in iboe_addr_get_sgid()
   6242668e855c Revert "ALSA: usb-audio: Fix race at stopping the stream"
   dd5035276792 kvm: nVMX: Allow L1 to intercept software exceptions (#BP and #OF)
   6fdb4af13f9f drivers/gpu/drm/ast: Fix infinite loop if read fails
   d1b9fb84c423 target/user: Fix use-after-free of tcmu_cmds if they are expired
   bbe48c2f932e kernel/debug/debug_core.c: more properly delay for secondary CPUs
   1b51fce881b2 scsi: avoid a permanent stop of the scsi device's request queue
   f413092ea8e0 IB/multicast: Check ib_find_pkey() return value
   8c84816cedcb IPoIB: Avoid reading an uninitialized member variable
   5eba61298b74 block_dev: don't test bdev->bd_contains when it is not stable
   25e9e2367457 btrfs: limit async_work allocation and worker func duration
   ced9b7a66a35 mm/vmscan.c: set correct defer count for shrinker
   a62e45871b7b Input: drv260x - fix input device's parent assignment
   e1589b27ffb9 libceph: verify authorize reply on connect
   ed21b94ebbf4 ALSA: hiface: Fix M2Tech hiFace driver sampling rate change
   f8c36e2b98b7 s390/vmlogrdr: fix IUCV buffer allocation
   0848a2672eb3 kconfig/nconf: Fix hang when editing symbol with a long prompt
   7b53fb41d447 SUNRPC: fix refcounting problems with auth_gss messages.
   14927595fec9 ext4: return -ENOMEM instead of success
   576cfe615feb nfs_write_end(): fix handling of short copies
   77f3c11c13dd fgraph: Handle a case where a tracer ignores set_graph_notrace
   29955c9a00d5 timekeeping_Force_unsigned_clocksource_to_nanoseconds_conversion
   951f4b1f13a7 USB: serial: option: add dlink dwm-158
   0c4f2f61d68f USB: serial: option: add support for Telit LE922A PIDs 0x1040, 0x1041
   0a32f5b4f72d ALSA: usb-audio: Add QuickCam Communicate Deluxe/S7500 to volume_control_quirks
   1d53a630766e dm space map metadata: fix 'struct sm_metadata' leak on failed create
   67bcfac25cb8 arm/xen: Use alloc_percpu rather than __alloc_percpu
   d09b66f9e70b drm/radeon: add additional pci revision to dpm workaround
   e9631583d6c0 drm/radeon: Hide the HW cursor while it's out of bounds
   beeda93356ae drm/radeon: Always store CRTC relative radeon_crtc->cursor_x/y values
   7198dbbaa242 drm/radeon: Also call cursor_move_locked when the cursor size changes
   15a12fbbf365 CIFS: Fix a possible memory corruption during reconnect
   51fce08b64ec CIFS: Fix a possible memory corruption in push locks
   7f16769173df CIFS: Fix missing nls unload in smb2_reconnect()
   0ee8faf89305 USB: cdc-acm: add device id for GW Instek AFG-125
   a2080cc28041 mmc: sdhci: Fix recovery from tuning timeout
   2a1dc36fdc71 ALSA: usb-audio: Fix race at stopping the stream
   93f5b2b5d28b xfs: set AGI buffer type in xlog_recover_clear_agi_bucket
   73e7d7aef06c block: protect iterate_bdevs() against concurrent close
   a6d0744b18ae ASoC: intel: Fix crash at suspend/resume without card registration
   90604ed2f10c Btrfs: fix tree search logic when replaying directory entry deletes
   575b6eddbf73 Btrfs: fix deadlock caused by fsync when logging directory entries
   32a27da220fb powerpc/ps3: Fix system hang with GCC 5 builds
   07340eaf0743 USB: serial: kl5kusb105: fix open error path
   b4fa7414cb79 thermal: hwmon: Properly report critical temperature in sysfs
   3225aec938da md/raid5: limit request size according to implementation limits
   93da0de16c94 firmware: fix usermode helper fallback loading
   d7a1bfa59593 xen/gntdev: Use VM_MIXEDMAP instead of VM_IO to avoid NUMA balancing
   315419538d84 tpm xen: Remove bogus tpm_chip_unregister
   fee2ddaee775 f2fs: set ->owner for debugfs status file's file_operations
   f52d439916f0 ALSA: hda - fix headset-mic problem on a Dell laptop
   506d7d521174 dm crypt: mark key as invalid until properly loaded
   4a7036809383 KVM: PPC: Book3S HV: Don't lose hardware R/C bit updates in H_PROTECT
   ec05ce11c1e9 KVM: PPC: Book3S HV: Save/restore XER in checkpointed register state
   b1a758009739 ext4: add sanity checking to count_overhead()
   31eb998aa42d ext4: use more strict checks for inodes_per_block on mount
   526cfedac0b3 ext4: sanity check the block and cluster size at mount time
   c2404d06b82e usb: hub: Fix auto-remount of safely removed or ejected USB-3 devices
   2861b336b594 ssb: Fix error routine when fallback SPROM fails
   44ef406441e2 ath9k: Really fix LED polarity for some Mini PCI AR9220 MB92 cards.
   be733405b057 staging: comedi: ni_mio_common: fix M Series ni_ai_insn_read() data mask
   9d45d2e79800 ext4: fix stack memory corruption with 64k block size
   d6ddc9cf431b ext4: fix mballoc breakage with 64k block size
   b3409ef1849b loop: return proper error from loop_queue_rq()
   9e19c28455b3 crypto: caam - fix AEAD givenc descriptors
   332086b806ac regulator: stw481x-vmmc: fix ages old enable error
   9e4033f56d3d USB: UHCI: report non-PME wakeup signalling for Intel hardware
   257cb82ee6d7 PCI: Check for PME in targeted sleep state
   78ef3e710efd scsi: megaraid_sas: For SRIOV enabled firmware, ensure VF driver waits for 30secs before reset
   28a8e88f1d2f drm/gma500: Add compat ioctl
   6ec54b062038 usb: gadget: composite: correctly initialize ep->maxpacket
   33166482bf49 drm/i915: Unalias obj->phys_handle and obj->userptr
   d7633e23c7f6 drm/i915/gen9: fix the WaWmMemoryReadLatency implementation

(From OE-Core rev: b60f1f2e0a5db22b466c8c812dea1716787c0d9a)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:18 +00:00
Bruce Ashfield 802b695c53 linux-yocto/4.9/4.10: add Intel Memory Protection Extensions
This commit adds a kernel feature to have the kernel support
for Intel Memory Protection Extensions (MPX).

A quote from kernel arch/x86/Kconfig:

"MPX provides hardware features that can be used in conjuction
with compiler-instrumented code to check memory references. It
is designed to detect buffer overflow or underflow bugs."

Intel MPX is available, e.g., on Skylake and on Goldmont (e.g.,
Intel 570x).

(From OE-Core rev: 12cd5bb61de6f254d34cc070816adeacdbe39d5c)

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:18 +00:00
Bruce Ashfield bb3904583e linux-yocto/4.9: integrate -rt9
Paul Gortmaker made the -rt9 integration available for the 4.9
linux-yocto kernel.

This updates our SRCREVs to pull in that content.

(From OE-Core rev: 6812934630a68deca76177c55fb0b153e17d6058)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:18 +00:00
Bruce Ashfield a67ec6f869 linux-yocto/4.10: update to v4.10.1
Integrating the korg -stable release with the following change summary:

  d23a9821d397 Linux 4.10.1
  289ab6e9b7ce xfs: clear delalloc and cache on buffered write failure
  c1f105b5dc83 rtlwifi: rtl_usb: Fix for URB leaking when doing ifconfig up/down
  dea972f381a1 block: fix double-free in the failure path of cgwb_bdi_init()
  96081d826cb3 ACPICA: Linuxize: Restore and fix Intel compiler build
  8ab75da134c1 netfilter: nf_ct_helper: warn when not applying default helper assignment
  910c3e4d118d goldfish: Sanitize the broken interrupt handler
  adf7f1350a0c x86/platform/goldfish: Prevent unconditional loading
  33b11454af5d USB: serial: console: fix uninitialised spinlock
  122b5f43f6ea USB: serial: ark3116: fix register-accessor error handling
  199d9b3e02b2 USB: serial: opticon: fix CTS retrieval at open
  ecf5c9f1e5ea USB: serial: spcp8x5: fix modem-status handling
  2a503750ae13 USB: serial: ftdi_sio: fix line-status over-reporting
  c9b8c246fa3a USB: serial: ftdi_sio: fix extreme low-latency setting
  4f53d5eaccab USB: serial: ftdi_sio: fix modem-status error handling
  b9296dd8a66a USB: serial: cp210x: add new IDs for GE Bx50v3 boards
  4f91f13d483e USB: serial: mos7840: fix another NULL-deref at open
  8e5eb8e9ad74 tty: serial: msm: Fix module autoload
  cc8937cd74f9 net: socket: fix recvmmsg not returning error from sock_error
  7e963e31ded6 ip: fix IP_CHECKSUM handling
  ccff0ed8c48c ptr_ring: fix race conditions when resizing

(From OE-Core rev: 8ec83eb8fe6993351c2427709e11df055af37529)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:18 +00:00
Bruce Ashfield db1da3bdcb linux-yocto/4.9: bump to v4.9.13
Change summary is as follows:

  3737a5f72234 Linux 4.9.13
  d00400605597 xfs: clear delalloc and cache on buffered write failure
  57d759622aa7 rtlwifi: rtl_usb: Fix for URB leaking when doing ifconfig up/down
  1cb3de83ab74 block: fix double-free in the failure path of cgwb_bdi_init()
  62c153f346fe ACPICA: Linuxize: Restore and fix Intel compiler build
  8f9872be6db9 netfilter: nf_ct_helper: warn when not applying default helper assignment
  e6bdd8d2fffc goldfish: Sanitize the broken interrupt handler
  2709c2a1b016 x86/platform/goldfish: Prevent unconditional loading
  fef3fdf2d83c USB: serial: console: fix uninitialised spinlock
  960a38eae80a USB: serial: ark3116: fix register-accessor error handling
  a2ce74e35d5f USB: serial: opticon: fix CTS retrieval at open
  a1fc6fb5f31e USB: serial: spcp8x5: fix modem-status handling
  26805681a45d USB: serial: ftdi_sio: fix line-status over-reporting
  a1510a8c0ded USB: serial: ftdi_sio: fix extreme low-latency setting
  f3d56f7a586e USB: serial: ftdi_sio: fix modem-status error handling
  4420e0f8fddf USB: serial: cp210x: add new IDs for GE Bx50v3 boards
  308a96c857cc USB: serial: mos7840: fix another NULL-deref at open
  9ab870e7425c tty: serial: msm: Fix module autoload
  1a0e2594ef76 net: socket: fix recvmmsg not returning error from sock_error
  481aedf869fb ip: fix IP_CHECKSUM handling
  7c56012e92b5 ptr_ring: fix race conditions when resizing
  c2219da51664 irda: Fix lockdep annotations in hashbin_delete().
  f23fd87e154f vxlan: fix oops in dev_fill_metadata_dst
  171d92a9d915 dccp: fix freeing skb too early for IPV6_RECVPKTINFO
  6c854afc5399 net: neigh: Fix netevent NETEVENT_DELAY_PROBE_TIME_UPDATE notification
  9206efc8a1f7 packet: Do not call fanout_release from atomic contexts
  722737f27774 packet: fix races in fanout_add()
  e0cb28247882 net: ethernet: ti: cpsw: fix cpsw assignment in resume
  42b52783a59c net/llc: avoid BUG_ON() in skb_orphan()
  859900c24bff net/mlx5e: Disable preemption when doing TC statistics upcall
  90aa7993d5c7 kcm: fix a null pointer dereference in kcm_sendmsg()
  1409935400aa kcm: fix 0-length case for kcm_sendmsg()
  ae7d43192ff2 Linux 4.9.12
  7b0712345376 videodev2.h: go back to limited range Y'CbCr for SRGB and, ADOBERGB
  8629aed2387c bcache: Make gc wakeup sane, remove set_task_state()
  68214ad3926c ntb_transport: Pick an unused queue
  f42026015094 ntb: ntb_perf missing dmaengine_unmap_put
  43325382fc7a NTB: ntb_transport: fix debugfs_remove_recursive
  215d4d62ccfd timekeeping: Use deferred printk() in debug code
  7ee210365adf printk: use rcuidle console tracepoint
  5c3765bbc1db PCI/PME: Restore pcie_pme_driver.remove
  48a415827882 Revert "i2c: designware: detect when dynamic tar update is possible"
  17c443421458 ARM: 8658/1: uaccess: fix zeroing of 64-bit get_user()
  808de347ebd4 futex: Move futex_init() to core_initcall
  dfe8f5757ec4 drm/dp/mst: fix kernel oops when turning off secondary monitor
  7499da90c0cc drm/radeon: Use mode h/vdisplay fields to hide out of bounds HW cursor
  19d2d869d00e Input: elan_i2c - add ELAN0605 to the ACPI table
  a975e8e81e55 Fix missing sanity check in /dev/sg
  a026c97e8824 scsi: don't BUG_ON() empty DMA transfers
  920b60aa3cc2 powerpc/64: Disable use of radix under a hypervisor
  ef746a305de3 mmc: core: fix multi-bit bus width without high-speed mode
  80a0477665d0 fuse: fix uninitialized flags in pipe_buffer
  7283448f8273 fuse: fix use after free issue in fuse_dev_do_read()
  6cf921be8fb9 siano: make it work again with CONFIG_VMAP_STACK
  166a2464cdcf vfs: fix uninitialized flags in splice_to_pipe()
  eee1550b3e89 Linux 4.9.11
  724aedaa5ca6 x86/fpu/xstate: Fix xcomp_bv in XSAVES header
  0d4c19ee68c9 tcp: don't annotate mark on control socket from tcp_v6_send_response()
  0e0751cdfa46 net/mlx5: Don't unlock fte while still using it
  7c4c32a2976e tcp: fix mark propagation with fwmark_reflect enabled
  16a3fbe5239a igmp, mld: Fix memory leak in igmpv3/mld_del_delrec()
  53a76d633b86 mld: do not remove mld souce list info when set link down
  5b1bb4cbd7ec l2tp: do not use udp_ioctl()
  12758a282435 net: dsa: Do not destroy invalid network devices
  a700cf26a3be ping: fix a null pointer dereference
  82849541895f packet: round up linear to header len
  6ebde312a8ed net: introduce device min_header_len
  4cd0362114c8 sit: fix a double free on error path
  2b7f50d67f5d lwtunnel: valid encap attr check should return 0 when lwtunnel is disabled
  00eff2ebbd22 sctp: avoid BUG_ON on sctp_wait_for_sndbuf
  4400acce6881 mlx4: Invoke softirqs after napi_reschedule
  970390fd5d53 catc: Use heap buffer for memory size test
  61bf9f381c38 catc: Combine failure cleanup code in catc_probe()
  e898f6f008aa rtl8150: Use heap buffers for all register access
  878b015bcc72 pegasus: Use heap buffers for all register access
  b90cb484c068 macvtap: read vnet_hdr_size once
  26989c9d9904 tun: read vnet_hdr_sz once
  0f895f51a831 tcp: avoid infinite loop in tcp_splice_read()
  1e340bb22af3 ipv6: tcp: add a missing tcp_v6_restore_cb()
  ae1768bbbc46 ip6_gre: fix ip6gre_err() invalid reads
  66cdd4347573 netlabel: out of bound access in cipso_v4_validate()
  f5b54446630a ipv4: keep skb->dst around in presence of IP options
  d5b6fd77519d net: use a work queue to defer net_disable_timestamp() work
  455a457780b6 stmmac: Discard masked flags in interrupt status register
  ca876dff1e8c tcp: fix 0 divide in __tcp_select_window()
  e6fbace87c7b ipv6: pointer math error in ip6_tnl_parse_tlv_enc_lim()
  a7fe4e5d0633 ipv6: fix ip6_tnl_parse_tlv_enc_lim()
  6c8556f6e114 net/sched: matchall: Fix configuration race
  64cc7ef5cf1d net/mlx5e: Fix update of hash function/key via ethtool
  adf86d59bb9b can: Fix kernel panic at security_sock_rcv_skb

(From OE-Core rev: fb86863ce3164fa412555da98c8c0de4dd112337)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:18 +00:00
Richard Purdie c90246caeb package: Fix various rpmdeps relocation issues
There are several issues with rpmdeps after the rpm v5 -> v4 transition:
 * _rpmfc_magic_path  is an invalid option for rpm4
 * --rpmpopt is an invalid option for rpm4
 * we need to use the path to rpmrc since otherwise it poitns at the
   original build path
 * we need to set MAGIC in the environment so libmagic can find its
   files.

This patch addresses those and ensures rpmdeps works in relocated builds
from sstate (or with rm_work).

(From OE-Core rev: 806e37264d7102ae982867350ad8363ed3e5f475)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:18 +00:00
Richard Purdie 4c09a95767 bitbake.conf: Add nc to HOSTTOOLS_NONFATAL
This is used by some of our proxy scripts but isn't required for all
builds so add to HOSTTOOLS_NONFATAL.

(From OE-Core rev: 4837b8cc3248c07f77a91745b80e6129ec3dfa1f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:18 +00:00
Richard Purdie d97a6eeaed testimage: Don't use systemd.log_level=debug logging
This causes MBs of log messages which overload the standard 200kb syslog limit
used by busybox syslog by default. This means some tests which rely on messages
being detected in syslog, e.g.
rpm.RpmInstallRemoveTest.test_check_rpm_install_removal_log_file_size
fail (AssertionError: 54 not greater than or equal to 80 : Cound not find sufficient
amount of rpm entries in /var/log/messages, found 54 entries).

We enabled this to aid debugging of some systemd race issues, those are
now resolved so we can disable this. Leave the log level parameter as a
comment to save others having to look it up if they need debugging.

(From OE-Core rev: 84d4daffaebcb4816d597671b287329e8a472f59)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:18 +00:00
Richard Purdie 4ca2fff32c u-boot: Update patch to match upstream
After discussions with upstream this version of the patch was proposed
and is being submitted to upstream u-boot. Update to that version
(which is better than my workaround).

(From OE-Core rev: 048af2455aa65b25fd74bfe0e6d3a0af7562b42f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:18 +00:00
Alexander Kanavin 3dadb9722e security_flags.inc: update to reflect smart->dnf transition
(From OE-Core rev: 0f3c57e9aca490c0f8d94117c915c075fd112b65)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:18 +00:00
Alexander Kanavin 226cc7396a package.bbclass: don't exclude package groups from runtime mapping
This ensures that remapping happens correctly, particularly
when package groups list noarch packages, and multilib is in use. Previously
this was masked by rpm doing *another* layer of remapping on top of this.

(From OE-Core rev: ad0e32014e846d20a1449de76e152e5f06812685)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:17 +00:00
Alexander Kanavin 44e229c995 package_rpm.bbclass: do not strip multilib prefixes from package names, do not add multilib prefix to package arch
This is done for reasons I cannot establish, and greatly complicates the code
that installs packages into rootfs.

(From OE-Core rev: d9ea9003677d195f64eb4b3202e1c5d37d21b330)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:17 +00:00
Alexander Kanavin 778ce1b8f0 nspr: do not use shared library symbol resolution with musl
It breaks rpm 4.x because musl is printing an error message
when the symbol is not found, and rpm takes it as an actual error.

(From OE-Core rev: ff750c42e2eb5e9ddb5ef438e571d708ec0adf77)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:17 +00:00
Alexander Kanavin b45765d7ac package_rpm.bbclass: do not set the OS dynamically when building rpms
Packages need to contain just one value for the os field, otherwise
rpm will refuse to install them if they don't match what is in
/etc/rpm/platform.

(From OE-Core rev: 580ba965f5f38f6718a83f690bbe23a63fbcd3dd)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:17 +00:00
Alexander Kanavin 1cf9dd6492 package_rpm.bbclass: add a /bin/sh Provides for nativesdk- packages
nativesdk-* rpm packages all require /bin/sh because postinst scriptlets
are run with it. We can either teach rpm4 and dnf to ignore that dependency
(a lot of non-upstreamable work), or add auto-satisfy the dependency
in each package. I've chosen to do the latter.

(From OE-Core rev: b18c32ab6bc9c4f1953e9f79aa39bc92d1c4e30d)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:17 +00:00
Alexander Kanavin 529244ee21 run-postinsts: simplify the logic of whether to install it to images
The logic is scattered all over the place, but amounts to
"install, unless the rootfs is read only". Let's express that directly.

(From OE-Core rev: 697804229a172125ce7d3bfc9b343812d6fe3240)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:17 +00:00
Alexander Kanavin 55928d1237 oe-selftest: no need to parse gpg output to determine the name of the signing key
The parsing fails on my machine, and we use a key with a hardcoded name,
and so can provide it directly.

(From OE-Core rev: b69bad2c4e51a24868422f39619a0598fd2a0533)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:17 +00:00
Alexander Kanavin 5a3e1290cb gpg_sign.py: fix signing of rpm files using gpg
This means
a) calling rpmkeys and rpmsign instead of rpm
b) instructing gpg to run non-interactively; otherwise on my machine
it pops up windows requesting a key passphrase

(From OE-Core rev: f82f270df2da59702026721612563aea57cd77eb)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:17 +00:00
Alexander Kanavin f72bc777fa selftest: update output checks in incremental image test to match what dnf prints
(From OE-Core rev: 6c434a711c0d281ecc9aeff488b63b80a338b229)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:17 +00:00
Alexander Kanavin 648a5d6c49 selftest: do not perform a full build in test_continue
This was fetching and building the toolchain and everything else
against empty download dir and sstate cache, and so was enormously slow.
The test does not need that, it only checks that one fetch task fails and
another succeeds when using bitbake's -k option.

(From OE-Core rev: 19cdac1a625189eb4a41ce5a7a204b08729c1b92)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:17 +00:00
Alexander Kanavin d94b98fe30 package_rpm.bbclass: instruct rpm to not remove the buildroot directory
This is the ${W}/package directory which may be reused in subsequent builds.

Also clean up various default directories rpm 4 creates.

(From OE-Core rev: bdebe0d50a210438730ee7797968eafe169ded23)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:17 +00:00
Alexander Kanavin ea4bac7e45 testimage.bbclass: fix runtime test for rpm, port smart tests to dnf
(From OE-Core rev: 749a496d273f9fd378588e309cf976294584ca5f)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:17 +00:00
Alexander Kanavin dfa2987623 package_rpm.bbclass: no need to specify the magic file location
It's handled by the rpm wrapper command, created in rpm recipe.

(From OE-Core rev: 8f331db8136c8bf28ceea7f8ae410eb9d83225ad)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:17 +00:00
Alexander Kanavin 5445f03975 package_rpm.bbclass: replace createrepo reference with createrepo_c
(From OE-Core rev: de6ed676712f79e54a32000a1b090eb918c939b9)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:17 +00:00
Alexander Kanavin 67615e0175 rootfs_rpm.bbclass: migrate image creation to dnf
To properly look at this patch, you probably need a side-by-side diff viewing tool.

(From OE-Core rev: 65581c68d130fa74d703f6c3c92560e053857ac7)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:17 +00:00
Alexander Kanavin d4efcded26 nativesdk-packagegroup-sdk-host: replace smartpm with dnf
(From OE-Core rev: 45b97161915ce7872ef7161451a5c83507072a72)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:17 +00:00
Alexander Kanavin df3734551f package_rpm.bbclass: correctly map RRECOMMENDS and RSUGGESTS to rpm tags
Previously they were swapped, not sure why. Their meaning, as far as rpm
world goes, is different:

- Recommends is a soft dependency and will be installed by default; there is
an option not to do that.

- Suggests is a suggestion to be picked up and presented to end user by
package management tools; it has no special meaning otherwise.

OE packages use RRECOMMENDS, which should be mapped to Recommends rpm tag,
so that the packages will be picked up as dependencies.

(From OE-Core rev: 06270f20ba4312d20d0fd348595adf1b239bcac5)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:17 +00:00
Alexander Kanavin b9c550dd6e package_manager.py: improve the API for insert_feed_uris()
No need to store the configuration as class members,
just pass it directly into the method.

(From OE-Core rev: a5cc38481be3c5e6ccbecf951f9fdc049e5101d5)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:17 +00:00
Alexander Kanavin cf7e0baffa package_rpm.bbclass: make architecture-independent .rpm packages "noarch" instead of "all"
Too many places in dnf/rpm4 stack make that assumption; let's not fight against it.

(From OE-Core rev: 341810aff923ace6b1cc1e15e19383c4f8773b51)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:17 +00:00
Alexander Kanavin f033bba14a db: remove the 6.x recipe
Version 6.x of Berkeley DB has been rejected by open source community due to its hostile
AGPLv3 license; both Fedora and Debian are sticking with db 5.x - and by extension,
all the open source projects are still developed and tested with db 5.x

In oe-core the only thing that was requiring db 6.x was rpm 5.x, and so there's no reason
to continue carrying db 6.x in oe-core. If someone needs API features that are only available in
db 6.x, it can be re-added to meta-oe.

(From OE-Core rev: 2694de76542840f79e3953c546d07b8ae479b8a1)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:16 +00:00
Alexander Kanavin 372bcd3c97 python-smartpm: remove the recipe
(From OE-Core rev: 9ff0e8b4012f1e68f6caebc3027f9d1bada00f13)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:16 +00:00
Alexander Kanavin b70f96a17f dnf: add a recipe
This is replacing Smart package manager, which is unsupported upstream, and has a growing
amount of issues (lack of python 3.x support in particular). We identified dnf as
the only feasible replacement.

(From OE-Core rev: 2da1f03ad5957fc130f9d4fac30f0048873e9d7c)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:16 +00:00
Alexander Kanavin 374494e746 libdnf: add a recipe
libdnf is required by dnf.

(From OE-Core rev: 8ac3fb682928aeb076c8f78fb429936ae747bc77)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:16 +00:00
Alexander Kanavin bbddf83f65 rpm: remove 5.x recipe
(From OE-Core rev: d0365f35303db3595688a6e5290677e02a72c54e)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:16 +00:00
Alexander Kanavin 27d56eeebd rpm: add a 4.x recipe
The dnf stack is written and tested against rpm 4.x. So if we want to use dnf for packaging,
we should also use rpm 4 - there's simply too much work involved in making rpm 5 work with it due
to significant API differences, and supporting that going forward.

(From OE-Core rev: 2358e786ec8d1199d90e181eb5d8d00816f669b4)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:16 +00:00
Alexander Kanavin 381c8e634c createrepo: remove the recipe
(From OE-Core rev: b842c9bf5cabb1af538720269f13946a87822f98)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:16 +00:00
Alexander Kanavin 4ab1f76064 createrepo-c: add a recipe
This is the current C reimplementation/replacement of the original createrepo.
https://github.com/rpm-software-management/createrepo_c/wiki

(From OE-Core rev: 30e0bec70f7793a5f923fc22c56b12bc1d06027d)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:16 +00:00
Alexander Kanavin c3df454357 rpmresolve: remove the recipe
The source code is incompatible with rpm4 API - let's use rpm
binary itself for now.

(From OE-Core rev: 127112fa05c7102dacda4173adf380c557bacecb)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:16 +00:00
Alexander Kanavin 989a6423fc libsolv: enable rpm support
This is required by libdnf.

(From OE-Core rev: c1d008066f36701b8a8f36ddaeaa626ca6427aed)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:16 +00:00
Alexander Kanavin a1180e91d0 package.bbclass: fix locations of debugedit and rpmdeps utilities
rpm4 installs them in different locations than rpm5. This also replaces
our custom rpmdeps-oecore with standard rpmdeps; I'm not seeing a
significant performance penalty.

(From OE-Core rev: ec20cda53caeebfdf95e2871d5da8b926e84d2aa)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-14 14:42:16 +00:00
Jack Mitchell 3e5f3cfe81 u-boot: add option to specify FDT argument in extlinux.conf
Also fixes a use before defined bug with localdata.

(From OE-Core rev: 86b09a7ed67a43a45c805f44778bed0bfdf57361)

Signed-off-by: Jack Mitchell <jack@embed.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-13 09:43:14 +00:00
Jack Mitchell 156571fad3 u-boot: fix extlinux creation race
There was a race condition in the uboot-extlinux bbclass where
only a half written extlinux.conf would be put in the deploy
directory. Fix this by adding the deploy task after the do_install
rather than after the do_compile.

(From OE-Core rev: 60c90398580998b2379bb438f0f75b29285135a5)

Signed-off-by: Jack Mitchell <jack@embed.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-13 09:43:14 +00:00
Richard Purdie 8406db9e11 terminal: Use original PATH for terminals
Now that we filter out PATH to only the utilities we rely upon, the devshel
terminal was broken since it can no longer find the terminals. Even if
we fix that, the user couldn't access any of their commands within
devshell which somewhat defeats its purpose.

Add the original PATH back to the environment to restore that behaviour
since this is more in line with user expectations and it wouldn't be possible
(or desireable) to whitelist all the commands a user might want to use from
the shell.

(From OE-Core rev: 67d7ea2db8bce766daf3419feae3cd8045af5114)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-13 09:42:09 +00:00
Alexander Kanavin b3d13e058a libcomps: add a recipe
libcomps is required by dnf.

(From OE-Core rev: a47e64d985a610535449730806651f5bfd75d9ec)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-11 16:09:14 +00:00
Alexander Kanavin a2b6910d14 librepo: add a recipe
librepo is needed by dnf and libdnf.

(From OE-Core rev: 64dd708d14f8eadb25c3b590bfdc894e2cbb246e)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-11 16:09:14 +00:00
Alexander Kanavin 5892bb7577 python-backports-lzma: add a recipe
It is needed by dnf, and only when using Python 2.x, so can
be dropped after moving dnf/rpm4 stack to Python 3.x.

(From OE-Core rev: e58f876acdac8fff24ecd3076287eda61ef1e4d3)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-11 16:09:14 +00:00
Alexander Kanavin 647dd10215 python-iniparse: add a recipe
python-iniparse is required by dnf.

(From OE-Core rev: 6c6f1b318005f4f2e21027b308ab6cb89aefdd19)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-11 16:09:14 +00:00
Alexander Kanavin 63904f6d11 python-pygpgme: add a recipe
python-pygpgme is required by dnf.

(From OE-Core rev: 20004b271eb4faf5f91f30ec3565a73ee62df7c6)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-11 16:09:14 +00:00
Alexander Kanavin 5765e1981d security_flags.inc: Update for new python modules
(From OE-Core rev: 544d96d37e32a0e08af4d91da48c9f9ef296a515)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-11 16:09:14 +00:00