]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
6 years agorecipes: Update git.gnome.org addresses after upstream changes
Richard Purdie [Thu, 30 Aug 2018 09:03:52 +0000 (10:03 +0100)]
recipes: Update git.gnome.org addresses after upstream changes

git.gnome.org is no more. It has ceased to be. It's an ex-git.

Please see here:
https://about.gitlab.com/2018/05/31/welcome-gnome-to-gitlab/

Note that gitlab does not support git://, only https:// (and ssh).

[Commit message from Alexander Kanavin]

(From OE-Core rev: 8382cdc0888ca645a44aacaac1155afb8dcde979)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixup for sumo context]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agocryptodev: Fix build errors with v4.17+
He Zhe [Thu, 21 Jun 2018 11:08:45 +0000 (04:08 -0700)]
cryptodev: Fix build errors with v4.17+

Backport from upstream to update internal syscall function usage.
https://github.com/cryptodev-linux/cryptodev-linux
f60aa08c63fc02780554a0a12180a478ca27d49f

(From OE-Core rev: 270a1e9bcf26a43f5cbdc5b901c4c6f79495311d)

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agoshadow: CVE-2016-6252
Armin Kuster [Mon, 24 Sep 2018 15:42:11 +0000 (08:42 -0700)]
shadow: CVE-2016-6252

Backport patch from the upstream
https://github.com/shadow-maint/shadow/commit/
1d5a926cc2d6078d23a96222b1ef3e558724dad1

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agoshadow: update ownership and permission of /var/spool/mail
Kai Kang [Fri, 25 May 2018 02:48:23 +0000 (10:48 +0800)]
shadow: update ownership and permission of /var/spool/mail

Update shadow to change ownership of /var/spool/mail from root:root to
root:mail and permission from 0755 to 0775 just as in most popular
distributions such as fedora and debian(It also set setgid bit in debian
but we don't need it).

(From OE-Core rev: b3ab5fe359c38cdd5cd86cb8ffe076d7a2baac18)

(From OE-Core rev: a77eff19be1d5812999bf584364000440f218fbb)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agoshadow: CVE-2018-7169
Jagadeesh Krishnanjanappa [Wed, 22 Aug 2018 11:41:48 +0000 (17:11 +0530)]
shadow: CVE-2018-7169

newgidmap: enforce setgroups=deny if self-mapping a group

This is necessary to match the kernel-side policy of "self-mapping in a
user namespace is fine, but you cannot drop groups" -- a policy that was
created in order to stop user namespaces from allowing trivial privilege
escalation by dropping supplementary groups that were "blacklisted" from
certain paths.

This is the simplest fix for the underlying issue, and effectively makes
it so that unless a user has a valid mapping set in /etc/subgid (which
only administrators can modify) -- and they are currently trying to use
that mapping -- then /proc/$pid/setgroups will be set to deny. This
workaround is only partial, because ideally it should be possible to set
an "allow_setgroups" or "deny_setgroups" flag in /etc/subgid to allow
administrators to further restrict newgidmap(1).

We also don't write anything in the "allow" case because "allow" is the
default, and users may have already written "deny" even if they
technically are allowed to use setgroups. And we don't write anything if
the setgroups policy is already "deny".

Ref: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1729357
Fixes: CVE-2018-7169
Affects shadow <= 4.5

(From OE-Core rev: a875522540372a4fa6658885692e564dfd729f54)

Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agoshadow: fix CVE-2017-2616
Andrej Valek [Tue, 24 Jul 2018 11:08:29 +0000 (13:08 +0200)]
shadow: fix CVE-2017-2616

(From OE-Core rev: 94a1e2794df15f0f2cb62ae030cd81e6c0798b1f)

(From OE-Core rev: 8894c70ae5a44974f74434d251def3148818a866)

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolicense.bbclass: be a bit more strict when searching ${PN}-${LICENSE_PACKAGE_SUFFIX...
Martin Jansa [Sun, 8 Apr 2018 20:16:00 +0000 (20:16 +0000)]
license.bbclass: be a bit more strict when searching ${PN}-${LICENSE_PACKAGE_SUFFIX} in packages

* linux-firmware contains ${PN}-license package since this commit:
  commit 1ee083da0730408fffdbbf5f29abc299c0e61be9
  Author: Jackie Huang <jackie.huang@windriver.com>
  Date:   Mon Apr 13 10:17:21 2015 +0800

    linux-firmware: fix the mess of licenses
* LICENSE_CREATE_PACKAGE functionality in license.bbclass when enabled
  adds new package with suffix:
  LICENSE_PACKAGE_SUFFIX ??= "-lic"
  but then it checks if ${PN}-${LICENSE_PACKAGE_SUFFIX} is included
  in PACKAGES before adding it and when found it shows:
  WARNING: linux-firmware-1_0.0+gitAUTOINC+4c0bf113a5-r0 do_package: linux-firmware-lic package already existed in linux-firmware.
  and doesn't add the ${PN}-lic to PACKAGES and causes another warning:
  WARNING: linux-firmware-1_0.0+gitAUTOINC+4c0bf113a5-r0 do_package: QA Issue: linux-firmware: Files/directories were installed but not shipped in any package:
  /usr
  /usr/share
  /usr/share/licenses
  /usr/share/licenses/linux-firmware

  that's because it was searching ${PN}-lic in PACKAGES as a string
  so it found ${PN}-lic as a substring of ${PN}-license, add a split
  to search in an list

(From OE-Core rev: 9b9897fc034819385a9d4ce591cc79dd458f3f24)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Yocto 12572]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolicense.bbclass: Minor simplification of get_deployed_dependencies()
Peter Kjellerstedt [Fri, 6 Apr 2018 18:26:57 +0000 (20:26 +0200)]
license.bbclass: Minor simplification of get_deployed_dependencies()

Since ${SSTATE_ARCHS} now contains ${PACKAGE_EXTRA_ARCHS} there is no
longer any need to add those extra architectures to the list of
architectures handled in get_deployed_dependencies().

(From OE-Core rev: e55e6df4f1434458cdfa0e2d3610b48119e5a782)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agopatch: fix CVE-2018-6952
Hongxu Jia [Wed, 22 Aug 2018 12:10:40 +0000 (20:10 +0800)]
patch: fix CVE-2018-6952

(From OE-Core rev: 1314a6953aa647706107557faaba8574e307d2bd)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agomultilib_header: recognize BPF as a target
Daniel Díaz [Tue, 14 Aug 2018 14:47:03 +0000 (09:47 -0500)]
multilib_header: recognize BPF as a target

When building with `clang -target bpf` using the
multilib_header, a recursion was unavoidable because
bits/wordsize.h would #include itself, still lacking
a definition for __MHWORDSIZE or __WORDSIZE.

(From OE-Core rev: 70b41b3c335a80b4ac243f468f22331d261299db)

(From OE-Core rev: 58abe666d3bad7a915c244c61085482e94b3d549)

Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython2: Fix build with gcc8
Ross Burton [Mon, 30 Jul 2018 21:59:06 +0000 (23:59 +0200)]
python2: Fix build with gcc8

(From OE-Core rev: 910f68c9c8dc26e12d28ef29e956af63d100f121)

(From OE-Core rev: 04c2d53ef48a09747d0577d9ec1ffa548d247615)

Signed-off-by: Ross Burton <ross.burton@intel.com>
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>
Signed-off-by: Martin Hundebøll <martin@geanix.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agopython-native: add dependency for gdbm and db native packages
Derek Straka [Tue, 30 Jan 2018 03:04:39 +0000 (22:04 -0500)]
python-native: add dependency for gdbm and db native packages

These two packages are required to ensure the manifest files contain
all of the generated packages.  Without this, the db and gdbm packages
will not contain the .so files as they are skipped during the compilation steps

(From OE-Core rev: 912c06615269f42230db2d93d70db2b340ed270a)

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agopython: Upgrade both python and python-native to 2.7.14
Derek Straka [Fri, 26 Jan 2018 19:25:31 +0000 (14:25 -0500)]
python: Upgrade both python and python-native to 2.7.14

Rebased:
  - python/01-use-proper-tools-for-cross-build.patch
  - python/fix-makefile-for-ptest.patch
  - python/parallel-makeinst-create-bindir.patch

Removed Upstreamed Patch:
  - python/Don-t-use-getentropy-on-Linux.patch

Updated license checksum for changes in the copyright date.  The license
terms remain unchanged

Added an extra do_compile item to create the native pgen that no longer
gets compiled by default

(From OE-Core rev: 9f2de4f9cf1eb6de75dc789bd0549f45c7a68c55)

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Bug fix release only]
CVE-2017-9233
CVE-2016-0718
CVE-2012-0876
CVE-2016-4472

Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolibvorbis: CVE-2018-10392
Jagadeesh Krishnanjanappa [Sat, 28 Jul 2018 04:50:08 +0000 (10:20 +0530)]
libvorbis: CVE-2018-10392

Sanity check number of channels in setup.

Fixes #2335.
Link: https://gitlab.xiph.org/xiph/vorbis/issues/2335
Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolibvorbis: CVE-2017-14160 CVE-2018-10393
Jagadeesh Krishnanjanappa [Sun, 22 Jul 2018 06:41:27 +0000 (12:11 +0530)]
libvorbis: CVE-2017-14160 CVE-2018-10393

CVE-2017-14160: fix bounds check on very low sample rates.

Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agobzip2: use Yocto Project mirror for SRC_URI
Ross Burton [Mon, 13 Aug 2018 23:59:39 +0000 (00:59 +0100)]
bzip2: use Yocto Project mirror for SRC_URI

The bzip.org domain expired and is now a holding site for adverts, so we can't
trust a tarball that appears on that site (luckily we have source checksums to
detect this).

For now, point SRC_URI at the tarball in the Yocto Project source mirror, but
set HOMEPAGE and UPSTREAM_CHECK_URI to the sourceware.org/bzip2/ page which
apparently will be resurrected as the new canonical home page.

(From OE-Core rev: 9e291d9923efc988abe8689c64bafbb29da06339)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agoclasses: sanity-check LIC_FILES_CHKSUM
Ross Burton [Mon, 13 Aug 2018 17:20:54 +0000 (18:20 +0100)]
classes: sanity-check LIC_FILES_CHKSUM

We assume that LIC_FILES_CHKSUM is a file: URI but don't actually verify this,
which can lead to problems if you have a URI that resolves to a path of / as
Bitbake will then dutifully checksum / recursively.

[ YOCTO #12883 ]

(From OE-Core rev: e2b8a3d5a10868f9c0dec8d7b9f5f89fdd100fc8)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agomodule-base.bbclass: fix out-of-tree module builds with custom EXTRA_OEMAKE
Denys Dmytriyenko [Thu, 16 Aug 2018 01:22:27 +0000 (21:22 -0400)]
module-base.bbclass: fix out-of-tree module builds with custom EXTRA_OEMAKE

Commit d2aa88a6a92985f21414fceea2dc0facbf7f8779 was meant to backport build
dependencies on bc-native and openssl-native, but it also changed execution
of do_make_scripts() from calling make directly to using oe_runmake. That
change was made in master/sumo as part of a separate make-mod-scripts recipe.

Unfortunately, that doesn't work here in rocko in the context of module-base
class, as it gets executed inside out-of-tree module environment. Quite often
those out-of-tree modules provide own Makefile with custom EXTRA_OEMAKE var
defined. But do_make_scripts() gets executed within STAGING_KERNEL_DIR and
cannot simply use custom EXTRA_OEMAKE set by a module.

Move back to calling make and passing HOSTCC/HOSTCPP directly w/o using
EXTRA_OEMAKE.

For more details please see:
http://lists.openembedded.org/pipermail/openembedded-core/2018-August/154189.html

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Anuj Mittal <anuj.mittal@intel.com>
Cc: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agolibxcursor: CVE-2017-16612
Jagadeesh Krishnanjanappa [Mon, 30 Jul 2018 10:02:36 +0000 (15:32 +0530)]
libxcursor: CVE-2017-16612

affects: <= 1.1.14

CVE-2017-16612: Fix heap overflows when parsing malicious files

It is possible to trigger heap overflows due to an integer overflow
while parsing images and a signedness issue while parsing comments.

The integer overflow occurs because the chosen limit 0x10000 for
dimensions is too large for 32 bit systems, because each pixel takes 4 bytes.
Properly chosen values allow an overflow which in turn will lead to less
allocated memory than needed for subsequent reads.

The signedness bug is triggered by reading the length of a comment
as unsigned int, but casting it to int when calling the function
XcursorCommentCreate. Turning length into a negative value allows the
check against XCURSOR_COMMENT_MAX_LEN to pass, and the following
addition of sizeof (XcursorComment) + 1 makes it possible to allocate
less memory than needed for subsequent reads.

Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agodevtool/sdk.py: error out in case of downloading file failure
Chen Qi [Mon, 14 May 2018 08:35:22 +0000 (16:35 +0800)]
devtool/sdk.py: error out in case of downloading file failure

It's possible that downloading file from updateserver fails. In
this case, we should error out instead of continue.

We have users reporting unexpected behavior of 'devtool sdk-update'.
When an invalid url is supplied, e.g., `devtool sdk-update http://invalid',
the program reports 'Note: Already up-to-date'.

This is obviously not expected. We should error out in such case.

(From OE-Core rev: 449564783dfb162536a2f772b3a8704973221e0f)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agoperf: disable parallelism for 'make clean'
Rasmus Villemoes [Fri, 6 Jul 2018 07:48:36 +0000 (09:48 +0200)]
perf: disable parallelism for 'make clean'

Whenever perf got rebuilt, I was consistently getting errors such as

| find: '[...]/perf/1.0-r9/perf-1.0/plugin_mac80211.so': No such file or directory
| find: '[...]/perf/1.0-r9/perf-1.0/plugin_mac80211.so': No such file or directory
| find: find: '[...]/perf/1.0-r9/perf-1.0/libtraceevent.a''[...]/perf/1.0-r9/perf-1.0/libtraceevent.a': No such file or directory: No such file or directory
|
[...]
| find: cannot delete '/mnt/xfs/devel/pil/yocto/tmp-glibc/work/wandboard-oe-linux-gnueabi/perf/1.0-r9/perf-1.0/util/.pstack.o.cmd': No such file or directory

breaking the whole build. The root cause seems to be that the implicit
'make clean' done during do_configure ends up running in parallel, and
thus multiple find commands attempt to stat and/or delete the same
file.

A patch disabling parallelism for the clean target has been ack'ed
upstream (lkml.kernel.org/r/20180705134955.GB3686@krava), but it should
be harmless to pass JOBS=1 even with a fixed kernel. This can be removed
if and when all relevant -stable kernels have that patch.

(From OE-Core rev: bb58203b668df42fd08c2e5fa4a172cf63e37369)

(From OE-Core rev: d12722681a4c13c1a6bc9c965cc43c4544ce7aa9)

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agoglibc: Update 2.26 to tip
Armin Kuster [Thu, 9 Aug 2018 00:44:21 +0000 (17:44 -0700)]
glibc: Update 2.26 to tip

CVES: CVE-2018-11236, CVE-2017-18269,  CVE-2018-11237

LIC_FILES_CHKSUM for LICENSE changed do to removal of
"stdio-common/tst-printf.c is copyright C E Chew" text

changelog:
c9570bd x86: Populate COMMON_CPUID_INDEX_80000001 for Intel CPUs [BZ #23459]
86e0996 x86: Correct index_cpu_LZCNT [BZ #23456]
cf6deb0 conform/conformtest.pl: Escape literal braces in regular expressions
b12bed3 stdio-common/tst-printf.c: Remove part under a non-free license [BZ #23363]
20dc7a9 libio: Add tst-vtables, tst-vtables-interposed
4b10e69 Synchronize support/ infrastructure with master
762e9d6 NEWS: Reorder out-of-order bugs
2781bd5 libio: Disable vtable validation in case of interposition [BZ #23313]
74d16a5 Check length of ifname before copying it into to ifreq structure.
3aaf8bd getifaddrs: Don't return ifa entries with NULL names [BZ #21812]
f958b45 Use _STRUCT_TIMESPEC as guard in <bits/types/struct_timespec.h> [BZ #23349]
81b994b Fix parameter type in C++ version of iseqsig (bug 23171)
7b52c8a libio: Avoid _allocate_buffer, _free_buffer function pointers [BZ #23236]
4df8479 Add NEWS entry for CVE-2018-11236
a5bc5ec Add references to CVE-2018-11236, CVE-2017-18269
58ad5f8 Add a test case for [BZ #23196]
6b4362f Don't write beyond destination in __mempcpy_avx512_no_vzeroupper (bug 23196)
af7519f Fix path length overflow in realpath [BZ #22786]
365722a Fix stack overflow with huge PT_NOTE segment [BZ #20419]
be056fa Fix blocking pthread_join. [BZ #23137]
02f0dd8 Fix signed integer overflow in random_r (bug 17343).
3241353 i386: Fix i386 sigaction sa_restorer initialization (BZ#21269)
677e6d1 [BZ #22342] Fix netgroup cache keys.
71d339c Fix i386 memmove issue (bug 22644).
31e2d15 Fix crash in resolver on memory allocation failure (bug 23005)
1f7c474 getlogin_r: return early when linux sentinel value is set
7e7a5f0 resolv: Fully initialize struct mmsghdr in send_dg [BZ #23037]

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agocryptodev: refresh patches
Ross Burton [Fri, 9 Mar 2018 18:56:10 +0000 (20:56 +0200)]
cryptodev: refresh patches

The patch tool will apply patches by default with "fuzz", which is where if the
hunk context isn't present but what is there is close enough, it will force the
patch in.

Whilst this is useful when there's just whitespace changes, when applied to
source it is possible for a patch applied with fuzz to produce broken code which
still compiles (see #10450).  This is obviously bad.

We'd like to eventually have do_patch() rejecting any fuzz on these grounds. For
that to be realistic the existing patches with fuzz need to be rebased and
reviewed.

(From OE-Core rev: cecd562742c94f223c92bf5426148967fc9a8054)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agocryptodev: switch SRC_URI to git
Alexander Kanavin [Mon, 12 Feb 2018 11:05:12 +0000 (13:05 +0200)]
cryptodev: switch SRC_URI to git

One of the tarball mirrors is down; the other is blocked by Intel's corporate proxy
for being deemed 'suspicious' (the same problem might pop up in other
companies as well). Let's just take the source from github.

(From OE-Core rev: 69f60f6ef9061760643d6b4e378052ddad424754)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agocryptodev: Fix build errors with v4.13+
Daniel Schultz [Fri, 5 Jan 2018 14:37:52 +0000 (15:37 +0100)]
cryptodev: Fix build errors with v4.13+

Without this compiles of 4.13 and later kernels fail.

Backport from https://github.com/cryptodev-linux/cryptodev-linux
Based on commit f0d69774afb27ffc62bf353465fba145e70cb85a

(From OE-Core rev: 317fd9814653ee22496dda63a02e628e8a16899b)

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agoovmf: set PARALLEL_MAKE for target as well
Christopher Larson [Thu, 21 Jun 2018 21:07:34 +0000 (02:07 +0500)]
ovmf: set PARALLEL_MAKE for target as well

This can fail for target, not just native.

(From OE-Core rev: 747c7dc8702d2241475894876d06a2f1f2b29fed)

(From OE-Core rev: 0d4ccd6eac41c878b5a9eec10e1a00b76241b846)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agoovmf: Fix build with gcc8
Khem Raj [Sun, 13 May 2018 02:33:19 +0000 (19:33 -0700)]
ovmf: Fix build with gcc8

(From OE-Core rev: 278b00ddccb274150ed85e48e984675b40fc9aaa)

(From OE-Core rev: 2e4a05879f56e96bcdc0770d3fe27abc8b9af35e)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agoovmf: refresh patches
Ross Burton [Wed, 15 Nov 2017 16:47:41 +0000 (16:47 +0000)]
ovmf: refresh patches

The patch tool will apply patches by default with "fuzz", which is where if the
hunk context isn't present but what is there is close enough, it will force the
patch in.

Whilst this is useful when there's just whitespace changes, when applied to
source it is possible for a patch applied with fuzz to produce broken code which
still compiles (see #10450).  This is obviously bad.

We'd like to eventually have do_patch() rejecting any fuzz on these grounds. For
that to be realistic the existing patches with fuzz need to be rebased and
reviewed.

(From OE-Core rev: 68d567bd64debc3dfb37df3c814287549da56a3b)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoperf: fix build with kernel older than 4.8
Martin Jansa [Thu, 24 May 2018 14:56:01 +0000 (14:56 +0000)]
perf: fix build with kernel older than 4.8

* perf is failing to build for me since this oe-core commit:
  commit 9b38c824961fc9dce51bda95c25dac91a69fc64f
  Author: Hongxu Jia <hongxu.jia@windriver.com>
  Date:   Tue Apr 24 11:33:47 2018 +0800

    perf: make a copy of kernel source to perf workdir

  the problem is that perf sources in kernel older than 4.8 (in my case
  4.4) are depending on the "global" include headers outside tools
  directory, e.g. swab.h in:
  kernel-source/tools$ git grep swab.h
  perf/MANIFEST:include/linux/swab.h
  perf/MANIFEST:include/uapi/linux/swab.h
  perf/util/include/asm/byteorder.h:#include "../../../../include/uapi/linux/swab.h"

  this was resolved in 4.8 with:
  commit 7e3f36411342a54f1981fa97b43550b8406a3d69
  Author: Arnaldo Carvalho de Melo <acme@redhat.com>
  Date:   Mon Jul 18 17:42:16 2016 -0300

    perf tools: Remove tools/perf/util/include/asm/byteorder.h

    Not used anymore. This also stops include linux/swab.h directly
    from the kernel sources, remove that reference from the MANIFEST.

  and few more changes to make tools/include more complete and standalone:
  tools/include in 4.15:
  asm  asm-generic  linux  tools  trace  uapi

  tools/include in 4.4:
  asm  asm-generic  linux  tools

  but copying the include header even for kernels which don't really
  need it doesn't add big overhead, so just copy include to perf sources
  for all kernels.

(From OE-Core rev: 19fb2d11a8bb3c6dfdd5edc1b9155d642dc0f5e0)

(From OE-Core rev: 7950b1ed077eaecff1523221c297158aa54b7ecf)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agoperf: make a copy of kernel source to perf workdir
Hongxu Jia [Tue, 24 Apr 2018 03:33:47 +0000 (11:33 +0800)]
perf: make a copy of kernel source to perf workdir

Since perf contaminates linux shared workdir, it probably caused
kernel-devsrc compile failure at world build.
...
|0 blocks
|cpio: ./tools/perf/arch/arm/util/sedr7ORqk: Cannot stat:
No such file or directory
|0 blocks
...
cpio tried to find a file at ${S}/tools/perf and failed
if the input list is not valid.

Make a copy of kernel shared source directory into a perf workdir
could fix the issue.

Drop `Fix for rebuilding' which is obsolete

[YOCTO #10880]

(From OE-Core rev: 9b38c824961fc9dce51bda95c25dac91a69fc64f)

(From OE-Core rev: 1a39330bf79f3d36a1a0f6d34b421de53ff36405)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agoperf: enable support for libaudit
Anuj Mittal [Thu, 15 Mar 2018 03:41:20 +0000 (11:41 +0800)]
perf: enable support for libaudit

perf needs audit-python to be able to show syscall names and for
'perf trace' to work.

Enable dependency on audit-python if present in PACKAGECONFIG. It's
disabled by default since audit as of now is in meta-selinux.

Fixes [YOCTO #3343]
Fixes [YOCTO #3358]

(From OE-Core rev: c386abacae89a148e77ffa51630c7917e90406f9)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agoBinutils: Security fix for CVE-2018-7642
Armin Kuster [Wed, 8 Aug 2018 21:05:09 +0000 (14:05 -0700)]
Binutils: Security fix for CVE-2018-7642

Affects: <= 2.30

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agoBinutils: Security fix for CVE-2018-7569
Armin Kuster [Wed, 8 Aug 2018 20:53:40 +0000 (13:53 -0700)]
Binutils: Security fix for CVE-2018-7569

Affects: <= 2.30

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agoBinutils: Security fix for CVE-2018-7568
Armin Kuster [Wed, 8 Aug 2018 20:47:28 +0000 (13:47 -0700)]
Binutils: Security fix for CVE-2018-7568

Affects: <= 2.30

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agoBinutils: Security fix for CVE-2018-7208
Armin Kuster [Wed, 8 Aug 2018 20:20:03 +0000 (13:20 -0700)]
Binutils: Security fix for CVE-2018-7208

Affects: <= 2.30

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agoBinutils: Security fix for CVE-2018-6759
Armin Kuster [Wed, 8 Aug 2018 20:14:17 +0000 (13:14 -0700)]
Binutils: Security fix for CVE-2018-6759

Affects: <= 2.30

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agoBinutils: Security fix for CVE-2018-6323
Armin Kuster [Wed, 8 Aug 2018 20:07:41 +0000 (13:07 -0700)]
Binutils: Security fix for CVE-2018-6323

Affected: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agoBinutils: Security fix for CVE-2018-13033
Armin Kuster [Wed, 8 Aug 2018 19:07:35 +0000 (12:07 -0700)]
Binutils: Security fix for CVE-2018-13033

Affects: <= 2.30

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agoBinutils: Security fix for CVE-2018-10535
Armin Kuster [Wed, 8 Aug 2018 18:47:09 +0000 (11:47 -0700)]
Binutils: Security fix for CVE-2018-10535

Affects: <= 2.30

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agoBinutils: Security fix for CVE-2018-10534
Armin Kuster [Wed, 8 Aug 2018 18:35:23 +0000 (11:35 -0700)]
Binutils: Security fix for CVE-2018-10534

Affects: <= 2.30

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agoBinutils: Security fix for CVE-2018-10373
Armin Kuster [Wed, 8 Aug 2018 18:14:51 +0000 (11:14 -0700)]
Binutils: Security fix for CVE-2018-10373

Affects: <= 2.30

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agoBinutils: Security fix for CVE-2018-10372
Armin Kuster [Wed, 8 Aug 2018 18:10:29 +0000 (11:10 -0700)]
Binutils: Security fix for CVE-2018-10372

Affects: <= 2.30

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutils: Security fix for CVE-2017-17123
Armin Kuster [Wed, 8 Aug 2018 16:26:11 +0000 (09:26 -0700)]
binutils: Security fix for CVE-2017-17123

Affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix for CVE-2017-17125
Armin Kuster [Wed, 8 Aug 2018 04:20:03 +0000 (21:20 -0700)]
binutls: Security fix for  CVE-2017-17125

Affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix for CVE-2017-17122
Armin Kuster [Wed, 8 Aug 2018 04:14:28 +0000 (21:14 -0700)]
binutls: Security fix for CVE-2017-17122

Affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agoBinutils: Security fix for CVE-2017-17121
Armin Kuster [Wed, 8 Aug 2018 04:00:50 +0000 (21:00 -0700)]
Binutils: Security fix for CVE-2017-17121

Affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix for CVE-2017-17080
Armin Kuster [Tue, 7 Aug 2018 23:33:02 +0000 (16:33 -0700)]
binutls: Security fix for CVE-2017-17080

Affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix for CVE-2017-16832
Armin Kuster [Tue, 7 Aug 2018 23:22:27 +0000 (16:22 -0700)]
binutls: Security fix for  CVE-2017-16832

Affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix for CVE-2017-16831
Armin Kuster [Tue, 7 Aug 2018 23:16:58 +0000 (16:16 -0700)]
binutls: Security fix for  CVE-2017-16831

Affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix for CVE-2017-16830
Armin Kuster [Tue, 7 Aug 2018 23:06:49 +0000 (16:06 -0700)]
binutls: Security fix for CVE-2017-16830

Affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix for CVE-2017-16829
Armin Kuster [Tue, 7 Aug 2018 22:55:30 +0000 (15:55 -0700)]
binutls: Security fix for CVE-2017-16829

Affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix for CVE-2017-16828
Armin Kuster [Tue, 7 Aug 2018 22:52:10 +0000 (15:52 -0700)]
binutls: Security fix for CVE-2017-16828

Affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix for CVE-2017-16827
Armin Kuster [Tue, 7 Aug 2018 02:52:12 +0000 (19:52 -0700)]
binutls: Security fix for CVE-2017-16827

Affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix for CVE-2017-16826
Armin Kuster [Tue, 7 Aug 2018 02:47:00 +0000 (19:47 -0700)]
binutls: Security fix for CVE-2017-16826

Affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix for CVE-2017-15996
Armin Kuster [Tue, 7 Aug 2018 02:41:18 +0000 (19:41 -0700)]
binutls: Security fix for CVE-2017-15996

Affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix for CVE-2017-15939
Armin Kuster [Tue, 7 Aug 2018 02:36:12 +0000 (19:36 -0700)]
binutls: Security fix for CVE-2017-15939

affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix for CVE-2017-15225
Armin Kuster [Tue, 7 Aug 2018 02:29:45 +0000 (19:29 -0700)]
binutls: Security fix for CVE-2017-15225

Affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix for CVE-2017-15025
Armin Kuster [Tue, 7 Aug 2018 02:27:19 +0000 (19:27 -0700)]
binutls: Security fix for CVE-2017-15025

Affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix for CVE-2017-15024
Armin Kuster [Tue, 7 Aug 2018 02:21:59 +0000 (19:21 -0700)]
binutls: Security fix for CVE-2017-15024

Affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix for CVE-2017-15023
Armin Kuster [Tue, 7 Aug 2018 01:53:37 +0000 (18:53 -0700)]
binutls: Security fix for CVE-2017-15023

affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix for CVE-2017-15022
Armin Kuster [Tue, 7 Aug 2018 01:31:55 +0000 (18:31 -0700)]
binutls: Security fix for CVE-2017-15022

Affected: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix for CVE-2017-15021
Armin Kuster [Tue, 7 Aug 2018 01:21:26 +0000 (18:21 -0700)]
binutls: Security fix for CVE-2017-15021

Affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutils: Security fix for CVE-2017-14940
Armin Kuster [Tue, 7 Aug 2018 01:00:44 +0000 (18:00 -0700)]
binutils: Security fix for CVE-2017-14940

Affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix for CVE-2017-14939
Armin Kuster [Mon, 6 Aug 2018 22:29:00 +0000 (15:29 -0700)]
binutls: Security fix for CVE-2017-14939

Affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix for CVE-2017-14938
Armin Kuster [Mon, 6 Aug 2018 21:16:09 +0000 (14:16 -0700)]
binutls: Security fix for CVE-2017-14938

Affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix CVE-2017-14934
Armin Kuster [Mon, 6 Aug 2018 21:09:04 +0000 (14:09 -0700)]
binutls: Security fix CVE-2017-14934

Affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix CVE-2017-14933
Armin Kuster [Mon, 6 Aug 2018 21:02:09 +0000 (14:02 -0700)]
binutls: Security fix CVE-2017-14933

Affects: <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutls: Security fix CVE-2017-14932
Armin Kuster [Mon, 6 Aug 2018 20:56:36 +0000 (13:56 -0700)]
binutls: Security fix CVE-2017-14932

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutils: Secuirty fix CVE-2017-14930
Armin Kuster [Mon, 6 Aug 2018 20:16:48 +0000 (13:16 -0700)]
binutils: Secuirty fix CVE-2017-14930

affects <= 2.29.1

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutils: Security fix CVE-2017-12967
Armin Kuster [Mon, 6 Aug 2018 20:15:23 +0000 (13:15 -0700)]
binutils: Security fix CVE-2017-12967

affects: <= 2.29.1

[v2]
Fix patch header typo
Rename 2017-12967 to 2017-17124

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agobinutils: Update to tip of 2.29 branch
Armin Kuster [Mon, 6 Aug 2018 22:40:43 +0000 (15:40 -0700)]
binutils: Update to tip of 2.29 branch

mostly bug fixes

Signed-off-by: Armin Kuster <akuster@mvista.com>
6 years agolinux-yocto-tiny/4.9: update to 4.9.113
Armin Kuster [Sun, 15 Jul 2018 14:59:24 +0000 (07:59 -0700)]
linux-yocto-tiny/4.9: update to 4.9.113

Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-yocto-rt/4.9: update to 4.9.113
Armin Kuster [Mon, 6 Aug 2018 15:06:16 +0000 (08:06 -0700)]
linux-yocto-rt/4.9: update to 4.9.113

Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-yocto/4.9: update to 4.9.113
Armin Kuster [Sun, 15 Jul 2018 14:39:53 +0000 (07:39 -0700)]
linux-yocto/4.9: update to 4.9.113

Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-stable-tiny/4.4: update to 4.4.141
Armin Kuster [Sun, 5 Aug 2018 22:18:44 +0000 (15:18 -0700)]
linux-stable-tiny/4.4: update to 4.4.141

Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-yocto-rt/4.4: update to 4.4.141
Armin Kuster [Sun, 5 Aug 2018 22:16:32 +0000 (15:16 -0700)]
linux-yocto-rt/4.4: update to 4.4.141

Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-yocto/4.4: update to 4.4.141
Armin Kuster [Sun, 5 Aug 2018 22:13:35 +0000 (15:13 -0700)]
linux-yocto/4.4: update to 4.4.141

Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agoyocto-uninative: Upgrade to version 2.2
Richard Purdie [Wed, 25 Jul 2018 21:29:57 +0000 (22:29 +0100)]
yocto-uninative: Upgrade to version 2.2

This version adds nativesdk-libnss-nis to resolve glibc symbol issues

We need this to avoid symbol mismatch issues for binaries that use this
on newer systems which then won't run on older ones where it isn't present.

(From OE-Core rev: 98c7ab9cf32765d604c35dc69bc7bd90e94fc8f3)

(From OE-Core rev: 026408c9d90e6241ce1b3d4cadefc48b7aba1734)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agoyocto-uninative: Update to version 2.1
Richard Purdie [Fri, 15 Jun 2018 07:51:07 +0000 (07:51 +0000)]
yocto-uninative: Update to version 2.1

This fixes issues with fontforge-native.

(From OE-Core rev: cec85a6fcadc24fd266fa34631cb095e0a773c1a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolsof: Update SRC_URI
Ovidiu Panait [Fri, 27 Jul 2018 06:51:35 +0000 (09:51 +0300)]
lsof: Update SRC_URI

lsof 4.89 archive has been moved to OLD directory and turned into tar.gz,
so update SRC_URI and checksums.

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agomake-mod-scripts: add build requirements for external modules
Bruce Ashfield [Sat, 28 Jul 2018 08:49:50 +0000 (16:49 +0800)]
make-mod-scripts: add build requirements for external modules

Newer kernels (4.14/v4.15+) have dependencies for the build of
modules (and hence external modules). Without these dependencies
explicitly in the build chain, you can end up with build failures like:

  work-shared/qemux86/kernel-source/scripts/extract-cert.c:21:25: fatal
  error: openssl/bio.h: No such file or directory
  |  #include <openssl/bio.h>
  |                          ^
  | compilation terminated.
  | make[2]: *** [scripts/extract-cert] Error 1
  | make[1]: *** [scripts] Error 2

To ensure that these headers are in place, and that the scripts use
our build environment flags, we add a dependency on openssl-native
and use oe_make to invoke the build.

Older kernels have no issues with the extra dependency, so there's no
need to make this conditional.

(From OE-Core rev: 916cb2029d3c97bf12ebf03832b9ba980451dbcf)

Fixes [YOCTO #12860]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Tweaked to have changes in module*.bbclass instead from where
make-mod-scripts was split in sumo]
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agomake-mod-scripts/kernel-devsrc: Fix objtool issues
Richard Purdie [Sat, 28 Jul 2018 08:49:49 +0000 (16:49 +0800)]
make-mod-scripts/kernel-devsrc: Fix objtool issues

Kernels which use tools/objtool can now fail when building external modules
due to objtool being missing, the generated files can also cause problems
for kernel-devsrc.

Ensure objtool is generated in make-mod-scripts by also calling
"make prepare".

For devsrc, delete the generated binaries since they'd be native
binaries and unsuitable for the target.

The oeqa kernel module tests also need to have the additional "make prepare"
step added.

(From OE-Core rev: 52fd2993784b4218f5df4f343e7da45d964df305)

Fixes [YOCTO #12860]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Tweaked to add "make prepare" to module-base.bbclass instead of
make-mod-scripts.bb]
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agowic: if we can't get from ioctl, try from os.stat()
Dogukan Ergun [Tue, 9 Jan 2018 13:35:24 +0000 (16:35 +0300)]
wic: if we can't get from ioctl, try from os.stat()

Under some conditions, ioctl FIGETBSZ can't return real value.
We can try to use fallback via os.stat() to get block size.

Source of patch:
https://github.com/intel/bmap-tools/commit/17365f4fe9089df7ee9800a2a0ced177ec4798a4

(From OE-Core rev: d8f7cf2d38934c248be91101236f7537d0d31ea7)

Signed-off-by: Dogukan Ergun <dogukan.ergun@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-firmware: package rtl8168 firmware
Liwei Song [Wed, 30 May 2018 09:24:18 +0000 (05:24 -0400)]
linux-firmware: package rtl8168 firmware

Add package for rtl8168 firmware which is required by Realtek
Ethernet Controller.

(From OE-Core rev: e5315d5d820cb1b164c75a0cab3804f6c69b5ba9)

(From OE-Core rev: 9910484a101279060cd0c9bc3e8b8af8700ba255)

Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-firmware: upgrade to 8fc2d4e5 revision
Otavio Salvador [Mon, 21 May 2018 21:50:49 +0000 (18:50 -0300)]
linux-firmware: upgrade to 8fc2d4e5 revision

8fc2d4e Merge git://git.marvell.com/mwifiex-firmware
e1abab6 linux-firmware: update Marvell USB8997 firmware image to add WPA2 vulnerability fix
c38c231 linux-firmware: update Marvell SD8897-B0 firmware image to add WPA2 vulnerability fix
0686ec7 Merge branch 'firmware-update' of https://github.com/intel/opa-firmware
bb7f773 Update Intel OPA hfi1 firmware
397a604 qed: Add firmware 8.33.12.0
40d4117 linux-firmware: Add firmware file for Intel Bluetooth,9560
bf3934f linux-firmware: Add firmware file for Intel Bluetooth,9260
f865934 linux-firmware: Update firmware file for Intel Bluetooth,8265
7dab503 Merge branch 'for-upstream' of git://git.chelsio.net/pub/git/linux-firmware
0caed67 cxgb4: update firmware to revision 1.19.1.0
0783fb9 nfp: add symlink for mixed mode Agilio CX 2x25GbE cards
380957e nfp: update Agilio SmartNIC flower firmware to rev 5701
b562d2f linux-firmware: update wil6210 firmware to 5.2.0.18
c1aa76a linux-firmware: rsi: update firmware images for Redpine 9113 chipset
1621614 Merge tag 'iwlwifi-fw-2018-04-06' of git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/linux-firmware
50c1323 iwlwifi: update firmwares for 3160, 3168 and 7265
c711ea5 iwlwifi: add some new FW versions and update older ones
8c1e439 amdgpu: update vce firmware for Polaris
31accdf linux-firmware: Add firmware file for Intel Bluetooth,9560
89139e8 linux-firmware: Add firmware file for Intel Bluetooth,9260
58cdb52 linux-firmware: Update firmware file for Intel Bluetooth,8265
9cb49be linux-firmware: Update firmware patch for Intel Bluetooth 8260
a3be6d4 Merge https://github.com/Netronome/linux-firmware into netro

License-Update: new files and version update. Same terms.
(From OE-Core rev: 8c0ee2072d493ecd09284c27fc8d627e3e6c5ae8)

(From OE-Core rev: 1325518f8f2dafc09acd1bef5f93aa3550063306)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-firmware: upgrade to 4c0bf11 revision
Otavio Salvador [Fri, 16 Mar 2018 21:45:22 +0000 (18:45 -0300)]
linux-firmware: upgrade to 4c0bf11 revision

License-Update: new releases and copyright years updated.
(From OE-Core rev: cf757ca67325415a26555c67a098f168453339a4)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-firmware: fix typo
Nicolas Dechesne [Tue, 27 Feb 2018 06:10:07 +0000 (07:10 +0100)]
linux-firmware: fix typo

(From OE-Core rev: 6dddf0151d486c474cbf522ced8c5ad96ae290fd)

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-firmware: package all ibt-17-x-x.sfi/ddc firmware
Liwei Song [Thu, 1 Feb 2018 06:40:49 +0000 (01:40 -0500)]
linux-firmware: package all ibt-17-x-x.sfi/ddc firmware

All ibt-17-x-x.sfi/ddc firmware are use to support Intel Bluetooth 9560
they are needed in different version of Bluetooth driver since
4.14 kernel version.

commit b77bb7afe513 ("linux-firmware: package ibt-17-16-1 firmware")
only package one of the ibt-17 series firmware.

As the Bluetooth driver's update, to avoid packaging the ibt-17 firmware
one by one, install them in one package ibt-17.

(From OE-Core rev: f6110c0213064c324397476f3eae3851328790dd)

Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-firmware: package ibt-17-16-1 firmware
Liwei Song [Wed, 17 Jan 2018 09:50:35 +0000 (04:50 -0500)]
linux-firmware: package ibt-17-16-1 firmware

Package ibt-17-16-1 firmware for Bluetooth device 9460/9560

(From OE-Core rev: b77bb7afe5131d9157be9dfebda4d4185a98a820)

Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-firmware: package iwlwifi-9000 series fimware
Liwei Song [Wed, 17 Jan 2018 09:50:34 +0000 (04:50 -0500)]
linux-firmware: package iwlwifi-9000 series fimware

Add package for 9000 seires Intel wireless firmware.

(From OE-Core rev: 7e6891e71d8da85371909925bbcb6baf816f3289)

Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-firmware: add packaging for QCOM firmware for APQ8016 and APQ8096
Nicolas Dechesne [Fri, 12 Jan 2018 10:05:07 +0000 (11:05 +0100)]
linux-firmware: add packaging for QCOM firmware for APQ8016 and APQ8096

Firmware files for VPU and GPU found on various Qualcomm based devices, such as
Dragonboard 410c and/or Dragonboard 820c.

* venus-1.8 and adreno-a3xx firmware are VPU and GPU for Qualcomm APQ8016 SoC
* venus-4.2 and adreno-a530 firmware are VPU and GPU for Qualcomm APQ8096 SoC

(From OE-Core rev: 687d71982a88f1db91316d646ecaeaf07ab88e7a)

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-firmware: Bump revision to 65b1c68c
Otavio Salvador [Wed, 10 Jan 2018 17:31:29 +0000 (15:31 -0200)]
linux-firmware: Bump revision to 65b1c68c

The bump includes following changes:

65b1c68 wl18xx: update firmware file 8.9.0.0.76
8650396 wl127x/wl128x: update firmwares
2eefafb rtlwifi: rtl8723de: Add firmware for new driver/device
4a77cab linux-firmware: DMC firmware for cannonlake v1.07
2567e09 nvidia: add GP108 signed firmware
2451bb2 linux-firmware: liquidio: add v1.7.0 vswitch firmware
7f93c9d brcm: add CYW4373 firmwares and Cypress license file
fdee922 linux-firmware: Update firmware patch for Intel Bluetooth 8260
9a843a1 linux-firmware: Update firmware file for Intel Bluetooth 8265
97339b3 linux-firmware: Add firmware file for Intel Bluetooth 9260
db9964e linux-firmware: Add firmware file for Intel Bluetooth 9560
e4252cf Revert commits a42f895c113d33041aff873d13b5
a42f895 linux-firmware: Update firmware patch for Intel Bluetooth 8260
c113d33 linux-firmware: Update firmware file for Intel Bluetooth 8265
041aff8 linux-firmware: Add firmware file for Intel Bluetooth 9260
73d13b5 linux-firmware: Add firmware file for Intel Bluetooth 9560
30946b9 amdgpu: add firmware for Raven
71a4800 amdgpu: update vega10 vce firmware
89c6211 linux-firmware: intel: Add Cannonlake audio firmware
b39260f nfp: add firmware for tc-flower
c752e24 nfp: change firmware directory layout
00a92a3 nfp: update firmware for Agilio CX SmartNICs
02d857e linux-firmware: DMC firmware for skylake v1.27
17e6288 brcm: update firmware for bcm4358
1841cec brcm: update firmware for bcm4356
b3f4e74 brcm: update firmware for bcm4354
cd86989 brcm: introduce firmware for bcm43430 revision 0
5ee46c2 brcm: update firmware for bcm4339
8e864c2 Mellanox: Add new mlxsw_spectrum firmware 13.1530.152
fd45000 WHENCE: Add missing entry for mlxsw_spectrum firmware
7f9bbc7 WHENCE: Fix typo in entry for iwlwifi-8265-34.ucode
284de20 s2255drv: f2255usb: firmware version 1.2.8
7c705a4 amdgpu: add new CP firmware for polaris chips
5582ca4 qed: Add firmware 8.33.1.0
e721933 qcom: add venus firmware files for v4.2
f36a8e2 qcom: add firmware files for Adreno a530
85313b4 iwlwifi: add firmware version 34 for new 9000 series
6c161c5 linux-firmware: liquidio: update firmware to v1.7.0
b964279 linux-firmware: intel: Update Geminilake audio firmware
c4276b6 iwlwifi: add firmware version 33 for new 9000 series
5a05332 iwlwifi: add new firmware version 34 for 8000C and 8265
1a5fd94 iwlwifi: update firmwares for 3160, 3168, 7260, 7265 and 7265D
796c912 iwlwifi: update firmwares for 3160, 3168, 7265D, 8000C and 8265
1156e62 linux-firmware: DMC firmware for kabylake v1.04
db3e185 linux-firmware: update Marvell PCIe-USB8997 firmware image
de81715 linux-firmware: GuC firmware for kabylake v9.39
434e712 linux-firmware: GuC firmware for Broxton v9.29
0aebd9f linux-firmware: GuC firmware for Skylake v9.33
de5b4c2 linux-firmware/i915: Add Cannonlake DMC version 1.06
8e7c787 linux-firmware/i915: Add Geminilake DMC version 1.04
e0494e9 linux-firmware: update Marvell PCIe-USB8997 firmware image
11db131 linux-firmware: update Marvell PCIe-USB8897-A2 firmware image

Included in those changes, two license checksums has been changed:

 - LICENCE.Netronome: minimal change dropping a word in license name;
 - WHENCE: adjustments due the new firmware versions;

(From OE-Core rev: 4facc572380daf5b7e6294b388a657fa0a44a6f2)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agosystemd: remove the group 'lock'
Hannu Lounento [Fri, 25 May 2018 06:50:24 +0000 (06:50 +0000)]
systemd: remove the group 'lock'

The upstream commit 61f32bff6130a44d077886d38cff89ad161bf177 included in
the release v229 removed the use of the group:

    commit 61f32bff6130a44d077886d38cff89ad161bf177
    Author: Martin Pitt <martin.pitt@ubuntu.com>
    Date:   Mon Feb 1 12:09:34 2016 +0100

        tmpfiles: drop /run/lock/lockdev

        Hardly any software uses that any more, and better locking mechanisms like
        flock() have been available for many years.

        Also drop the corresponding "lock" group from sysusers.d/basic.conf.in, as
        nothing else is using this.

    [...]
    diff --git a/sysusers.d/basic.conf.in b/sysusers.d/basic.conf.in
    index 823d6cb20..b2dc5ebd4 100644
    --- a/sysusers.d/basic.conf.in
    +++ b/sysusers.d/basic.conf.in
    @@ -19,7 +19,6 @@ g wheel   -     -            -

     # Access to certain kernel and userspace facilities
     g kmem    -     -            -
    -g lock    -     -            -
     g tty     @TTY_GID@     -            -
     g utmp    -     -            -
    [...]

The upstream documentation doc/UIDS-GIDS.md says that basic.conf.in is "the
precise list of the currently defined groups":

    ## Special `systemd` GIDs

    `systemd` defines no special UIDs beyond what Linux already defines (see
    above). However, it does define some special group/GID assignments, which are
    primarily used for `systemd-udevd`'s device management. The precise list of the
    currently defined groups is found in this `sysusers.d` snippet:
    [basic.conf](https://raw.githubusercontent.com/systemd/systemd/master/sysusers.d/basic.conf.in)

    It's strongly recommended that downstream distributions include these groups in
    their default group databases.

Removing the creation of the group also avoids the need to define a GID
for it when using static ids.

(From OE-Core rev: da3659155cd1825a4a8d3d7c5288b4273714de15)

Signed-off-by: Hannu Lounento <hannu.lounento@vaisala.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agominicom: change SRC_URI to use Debian mirrors
Ross Burton [Fri, 15 Jun 2018 14:43:07 +0000 (15:43 +0100)]
minicom: change SRC_URI to use Debian mirrors

Alioth is dead and the minicom project on Salsa (the replacement for Alioth)
doesn't actually have any files in, so just use the Debian mirror instead.

(From OE-Core rev: b0338efcdabeec79c568c74b6888d7d523e8e9dc)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agomirrors: add Debian snapshot mirror for 2018
Ross Burton [Fri, 15 Jun 2018 14:36:02 +0000 (15:36 +0100)]
mirrors: add Debian snapshot mirror for 2018

Add a Debian snapshot mirror from 2018 (specifically, 10th March, the date 9.4
was released) to DEBIAN_MIRRORS.

(From OE-Core rev: f3f394913b4e4a7c601ad1158faaf8b9d493e1c7)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agoshadow: update SRC_URI now Alioth is down
Ross Burton [Fri, 15 Jun 2018 13:29:31 +0000 (14:29 +0100)]
shadow: update SRC_URI now Alioth is down

Alioth is dead so we can't use it for SRC_URI anymore.  There is a shadow
repository on GitHub which is the new upstream, but for some reason it is
missing the 4.2.1 tag and tarball that we use.  Also 4.2.1 was never uploaded
into Debian itself, so we can't use their mirror network either.

For now point SRC_URI at the Yocto Project source mirror and set
UPSTREAM_CHECK_URI so that we get nagged to upgrade to 4.6.

(From OE-Core rev: b3e246fef166030f327b5a852718ea907ada1759)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agochrpath: Alioth is dead, use DEBIAN_MIRROR
Ross Burton [Fri, 15 Jun 2018 13:07:41 +0000 (14:07 +0100)]
chrpath: Alioth is dead, use DEBIAN_MIRROR

The previous host of chrpath, Alioth, is dead.  chrpath hasn't yet moved to
Salsa, so download the tarball from the Debian mirrors.

(From OE-Core rev: a8a2c5ec891286a1e7fd5ebdd33565f9ae3965c2)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agopopt: update SRC_URI
Armin Kuster [Mon, 11 Jun 2018 17:22:57 +0000 (10:22 -0700)]
popt: update SRC_URI

It appears the rpm5.org has been down for some time, switch to fossies

WARNING: popt-native-1.16-r3 do_fetch: Failed to fetch URL http://rpm5.org/files/popt/popt-1.16.tar.gz, attempting MIRRORS if available

(From OE-Core rev: 347ee336dcc94e6fa4e4788117013615b90abd70)

(From OE-Core rev: 9e3bf0ce4ebb885ca0ede0e636d80e032c29e744)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 50804c06633f8402fb9ac905882353f746afd1cb)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agocommon-licenses: Add BSD-1-Clause
André Draszik [Fri, 19 Jan 2018 12:36:28 +0000 (12:36 +0000)]
common-licenses: Add BSD-1-Clause

Some projects are starting to use it.
  https://spdx.org/licenses//BSD-1-Clause.html

(From OE-Core rev: 77f692ecb39d880b2cb420850a31534860eb2cc5)

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 77f692ecb39d880b2cb420850a31534860eb2cc5)
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolibxml2: fix makefile for ptests
Anuj Mittal [Sat, 13 Jan 2018 10:02:37 +0000 (18:02 +0800)]
libxml2: fix makefile for ptests

Changes to Makefile in latest version mean when "make -k runtests" is executed,
it leads to errors like:

| make: *** No rule to make target 'runtest.c', needed by 'runtest.o'.
| make: *** No rule to make target 'SAX.c', needed by 'SAX.lo'.
| make: *** No rule to make target 'entities.c', needed by 'entities.lo'.
| make: *** No rule to make target 'encoding.c', needed by 'encoding.lo'.

Make sure that we don't try to check and compile the tests again on the target.

(From OE-Core rev: 5cf92ca436e1a1ba60fec8b30b6cb3cfd4842bc8)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>