]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
7 years agovala: upgrade to 0.36.4
Alexander Kanavin [Mon, 24 Jul 2017 14:28:13 +0000 (17:28 +0300)]
vala: upgrade to 0.36.4

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoepiphany: upgrade to 3.24.3
Alexander Kanavin [Mon, 24 Jul 2017 14:28:11 +0000 (17:28 +0300)]
epiphany: upgrade to 3.24.3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobash-completion: upgrade to 2.7
Alexander Kanavin [Mon, 24 Jul 2017 14:28:10 +0000 (17:28 +0300)]
bash-completion: upgrade to 2.7

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobtrfs-tools: upgrade to 4.11.1
Alexander Kanavin [Mon, 24 Jul 2017 14:28:09 +0000 (17:28 +0300)]
btrfs-tools: upgrade to 4.11.1

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoicu: update to 59.1
Alexander Kanavin [Mon, 24 Jul 2017 14:28:08 +0000 (17:28 +0300)]
icu: update to 59.1

License checksum change due to copyright year update.

Latest icu will not compile with anything less than C++11, so
drop the enforcement of an earlier C++ version. This should be okay,
as there is now a fix in place for the problem of mixing native gcc 4/5
compiled code:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=c21cec84886d9c70396e9be0ceb9a8ef300b54be

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomirrors.bbclass: provide git repo fallbacks using the https protocol
Andre McCurdy [Wed, 26 Jul 2017 00:18:36 +0000 (17:18 -0700)]
mirrors.bbclass: provide git repo fallbacks using the https protocol

Use MIRRORS to provide git repo fallbacks using the https protocol,
for cases where git native protocol fetches may fail due to local
firewall rules, etc.

These rules should cover all git native repos used by recipes within
oe-core, with the exception of mtd-utils, for which there's currently
no upstream alternative to the git native protocol for anonymous
access ( see http://git.infradead.org/mtd-utils.git ).

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agognu-config: update SRC_URI to new savannah.gnu.org hostname
Andre McCurdy [Wed, 26 Jul 2017 00:18:35 +0000 (17:18 -0700)]
gnu-config: update SRC_URI to new savannah.gnu.org hostname

http://sv.gnu.org/ now redirects to http://savannah.gnu.org/

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-devsrc: Remove .kernel-meta from package
sweeaun [Wed, 26 Jul 2017 00:25:00 +0000 (17:25 -0700)]
kernel-devsrc: Remove .kernel-meta from package

[YOCTO #11730]

Include .kernel-meta directory in the prune list of the find to
prevent .kernel-meta directory included into installable package.

Signed-off-by: sweeaun <swee.aun.khor@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoeudev: update to 3.2.2
Alexander Kanavin [Wed, 26 Jul 2017 10:41:02 +0000 (13:41 +0300)]
eudev: update to 3.2.2

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoharfbuzz: upgrade to 1.4.7
Maxin B. John [Wed, 26 Jul 2017 13:47:27 +0000 (16:47 +0300)]
harfbuzz: upgrade to 1.4.7

1.4.6 -> 1.4.7

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo: centralize definition of COMPATIBLE_HOST
Joe Slater [Wed, 26 Jul 2017 22:14:23 +0000 (15:14 -0700)]
go: centralize definition of COMPATIBLE_HOST

Put it in goarch.bbclass which all go related recipes inherit.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoimage_types_wic: add dependency to e2fsprogs-native
Ed Bartosh [Wed, 26 Jul 2017 16:21:30 +0000 (19:21 +0300)]
image_types_wic: add dependency to e2fsprogs-native

Added e2fsprogs-native to the list of default dependencies for
wic (WKS_FILE_DEPENDS_DEFAULT) as all fs-related utilities
have to be in this list.

Thanks to Patrick Ohly for noticing this.

[YOCTO #11817]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooe-selftest: wic: change mkfs.btrfs options
Ed Bartosh [Wed, 26 Jul 2017 16:22:29 +0000 (19:22 +0300)]
oe-selftest: wic: change mkfs.btrfs options

test_mkfs_extraopts test case fails on ab with error caused
by using -K --mixed options:
 output: extent-tree.c:2696: btrfs_reserve_extent: BUG_ON `ret` triggered, value -28

For this test case it's not important to use particular options,
so changing options to anything less influential is OK.

Changed extra options for mkfs.btrfs to '--quiet' to fix the failure.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agorpm: allow to enable RPM file signing
Lans Zhang [Thu, 27 Jul 2017 06:03:42 +0000 (14:03 +0800)]
rpm: allow to enable RPM file signing

RPM file signing is enabled with --with-imaevm during configuration.
If enabled, the RPM signing tool rpmsign will call libimaevm.so provided
by the recipe ima-evm-utils.

Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
Signed-off-by: Jia Zhang <lans.zhang2008@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic-tools: add dependency to e2fsprogs-native
Ed Bartosh [Thu, 27 Jul 2017 06:54:04 +0000 (09:54 +0300)]
wic-tools: add dependency to e2fsprogs-native

Added e2fsprogs-native to the list of dependencies for wic-tools
as all fs-related utilities have to be in this list.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agorunqemu: chmod 0o777 for lockdir
Robert Yang [Wed, 12 Apr 2017 02:04:31 +0000 (02:04 +0000)]
runqemu: chmod 0o777 for lockdir

Multi-users may run qemu on the same host, all of them should be able to
create or remove lock in lockdir, so set lockdir's mode to 0o777.

Note, os.mkdir()'s mode is default to 0o777, but the current umask value is
first masked out, so use os.chmod() to set it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
7 years agorunqemu: validate combos
Robert Yang [Thu, 13 Jul 2017 08:09:34 +0000 (01:09 -0700)]
runqemu: validate combos

Error out ealier if the combos is invalid, e.g.:
$ runqemu tmp/deploy/images/qemux86/bzImage-qemux86.bin tmp/deploy/images/qemux86/core-image-minimal-qemux86.wic

This will fail at kernel panic, no we check and error out early. We can
add other checkings in the future.

[YOCTO #11286]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
7 years agorunqemu: check tar.bz2 and .tar.gz
Robert Yang [Thu, 13 Jul 2017 07:31:17 +0000 (00:31 -0700)]
runqemu: check tar.bz2 and .tar.gz

Handle them as nfs, so that cmd like the following can be boot:
$ runqemu tmp/deploy/images/qemux86/core-image-minimal-qemux86.tar.bz2

[YOCTO #11286]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
7 years agorunqemu: check qbconfload before running bitbake
Robert Yang [Thu, 13 Jul 2017 07:28:46 +0000 (00:28 -0700)]
runqemu: check qbconfload before running bitbake

If qbconfload (.qemuboot.conf is found) is present, we can get
DEPLOY_DIR_IMAGE from it rather than "bitbake -e".

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
7 years agorunqemu: add --debug and --quiet
Robert Yang [Thu, 13 Jul 2017 06:05:47 +0000 (23:05 -0700)]
runqemu: add --debug and --quiet

And move some debug info into logger.debug(), this can make it easy to
read key messages like errors or warnings.

I checked meta/lib/oeqa/ they don't depend on these messages. And I have
run "oe-selftest -a", it doesn't break anything.

[YOCTO #10474]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
7 years agognome-themes-standard: Fix packages so dev-pkgs image generation works
Richard Purdie [Wed, 26 Jul 2017 08:52:43 +0000 (09:52 +0100)]
gnome-themes-standard: Fix packages so dev-pkgs image generation works

A change from Ross removed the dual -dev/-dbg packages but this broke
deb/ipk rootfs constuction due to a dependency on a package which doesn't
exist (for dev-pkgs images). Remove the dependency on that package to
allow images to build.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoimage: Fix "metadata is not deterministic" when chaining 2+ CONVERSION_CMDs
Tom Rini [Tue, 25 Jul 2017 19:58:09 +0000 (15:58 -0400)]
image: Fix "metadata is not deterministic" when chaining 2+ CONVERSION_CMDs

When we have more than one CONVERSION_CMD being used, for example
ext4.gz.sha256sum we will see errors about "metadata is not
deterministic".  This is because we do not have a stable order of
intermediate files that will be removed in the generated shell command.
We fix this by calling sorted() on the set of rm_tmp_images so that we
will have a stable hash again.

Cc: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/buildperf: Add 'bitbake -m' on sync function to ensure bitbake is unloaded
Jose Perez Carranza [Tue, 25 Jul 2017 20:06:28 +0000 (13:06 -0700)]
oeqa/buildperf: Add 'bitbake -m' on sync function to ensure bitbake is unloaded

Add 'bitbake -m' to the sync method and ensure all process related to
bitbake are correctly unloaded before doing the different measurements.
Also add a call to sync funtion on Test4 before final measurment of
eSDK deploy dir disk usage.

Signed-off-by: Jose Perez Carranza <jose.perez.carranza@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agovalgrind: fix upstream version check
Alexander Kanavin [Mon, 24 Jul 2017 14:28:18 +0000 (17:28 +0300)]
valgrind: fix upstream version check

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>
7 years agooprofile: fix upstream version check
Alexander Kanavin [Mon, 24 Jul 2017 14:28:16 +0000 (17:28 +0300)]
oprofile: fix upstream version check

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>
7 years agoimage_types.bbclass: Make u-boot signed images more versatile
Tom Rini [Fri, 21 Jul 2017 22:06:34 +0000 (18:06 -0400)]
image_types.bbclass: Make u-boot signed images more versatile

With the introduction of chaining compression/conversion support we can
convert the old image_types_uboot.bbclass code that did a hand-chaining
of a set of ${filesystem}.${compression} into generic and arbitrary
support to sign whatever the user wants to sign for their image.

This, for the record, does remove setting a valid compression type in
the record in favour of just saying none.  This is not a generally
useful feature in U-Boot and I believe being versatile in terms of being
able to pass in arbitrary compressions is more important.

Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoimage.bbclass: Correct chaining compression support
Tom Rini [Fri, 21 Jul 2017 22:06:33 +0000 (18:06 -0400)]
image.bbclass: Correct chaining compression support

When chaining of compression/conversion types was added, we had a new
way to handle doing things like "ext4.bz2.sha256sum" or
"ext2.gz.u-boot".  However, because the U-Boot image class isn't
included normally, it wasn't properly converted at the time.  After the
support was added the "clean" argument that the .u-boot code uses no
longer functions.  The fix for this inadvertently broke chaining
compression/conversion.  First, correct the u-boot conversion code.

Fixes: 46bc438374de ("image.bbclass: do exact match for rootfs type")
Cc: Zhenhua Luo <zhenhua.luo@nxp.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_rpm.bbclass: disable generation of .build-id links
Alexander Kanavin [Mon, 24 Jul 2017 15:27:03 +0000 (18:27 +0300)]
package_rpm.bbclass: disable generation of .build-id links

As we're not using them and they're getting in the way of
reproducibility.

[YOCTO #11718]

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>
7 years agognome-themes-standard: don't generate multiple -dev and -dbg packages
Ross Burton [Tue, 25 Jul 2017 11:51:52 +0000 (12:51 +0100)]
gnome-themes-standard: don't generate multiple -dev and -dbg packages

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibpng: use SourceForge mirror
Ross Burton [Mon, 24 Jul 2017 20:34:49 +0000 (21:34 +0100)]
libpng: use SourceForge mirror

The Gentoo mirror also deletes old versions when they're not used, so revert
back to the canonical SourceForge site, adding /older-releases/ to MIRRORS to
handle new releases moving the version we want.

Original idea by Maxin B. John <maxin.john@intel.com>.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoelfutils: use HTTP instead of FTP to fetch
Ross Burton [Mon, 24 Jul 2017 14:17:38 +0000 (15:17 +0100)]
elfutils: use HTTP instead of FTP to fetch

FTP is inferiour to HTTP is all respects, so use the HTTP URL for the tarball.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoexternalsrc: place copy of git index into /tmp and do not use copyfile2
Enrico Scholz [Mon, 24 Jul 2017 11:14:02 +0000 (13:14 +0200)]
externalsrc: place copy of git index into /tmp and do not use copyfile2

Using shutil.copy2() to copy .git/index to a temporary file tries to
copy SELinux attributes which might fail for confined users in SELinux
environments.

E.g. our builders are running in docker containers and modification of
sources (inclusive updated of .git/index) is done outside.  Trying to
copy .git/index fails with

| $ python3 -c 'import shutil; shutil.copy2("index", "a")'
| ...
| PermissionError: [Errno 13] Permission denied: 'a'

and an AVC like

| denied  { relabelto } for  pid=18043 comm="python3" name="a" dev="dm-29" ino=1067553 scontext=system_u:system_r:container_t:s0:c39,c558 tcontext=unconfined_u:object_r:build_file_t:s0 tclass=file permissive=0

is created.  This can not be solved by adapting the SELinux policy because
this is a very deep constraint violation:

| constrain file { create relabelfrom relabelto } ((u1 == u2 -Fail-)  or (t1 == can_change_object_identity -Fail-) ); Constraint DENIED
|
| Possible cause is the source user (system_u) and target user (unconfined_u) are different.

I do not see much sense in using 'shutil.copy2()' here; 'shutil.copyfile()'
seems to be a better choice (target file is created in a secure way by
tempfile.NamedTemporaryFile()).

By placing the tempfile into /tmp we avoid potential problems related to
git's 'core.sharedRepository'.  As a (positive) side effect, the source
tree will not be modified anymore (at least by this part of code) which
prevented to mount it read-only from somewhere else.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobuildtools-tarball: drop deltask package/packagedata
Ming Liu [Mon, 24 Jul 2017 05:01:25 +0000 (07:01 +0200)]
buildtools-tarball: drop deltask package/packagedata

They are redundant since nopackages are being inherited.

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agouninative-tarball: drop deltask package/packagedata
Ming Liu [Mon, 24 Jul 2017 04:59:12 +0000 (06:59 +0200)]
uninative-tarball: drop deltask package/packagedata

They are redundant since nopackages are being inherited.

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage-index: inherit nopackages
Ming Liu [Mon, 24 Jul 2017 04:55:52 +0000 (06:55 +0200)]
package-index: inherit nopackages

Drop deltask do_package* syntax, inheriting nopackages instead.

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic-tools: ensure pseudo is available
Paul Eggleton [Tue, 25 Jul 2017 09:12:10 +0000 (11:12 +0200)]
wic-tools: ensure pseudo is available

wic will attempt to use pseudo from the wic-tools sysroot to run, but it
was only sure to be in there if do_install had executed - which is not
the case if it had been restored from sstate, in which case it failed
horribly as seen when running the wic.Wic.test_fs_types and
test_mkfs_extraopts tests on the Yocto Project autobuilder recently. Add
an explicit dependency on pseudo-native to ensure it's always there.

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>
7 years agolinux-yocto: only suggest default kernel type
Joe Slater [Thu, 20 Jul 2017 23:19:51 +0000 (16:19 -0700)]
linux-yocto: only suggest default kernel type

The distro should set a default kernel type (?=) which could be
overriden by local.conf (=) or extensions (templates).  The kernel itself
should only use "??=" to provide a value which allows builds to succeed.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agocve-check.bbclass: use "+git" as separator in PV instead of "git+"
Mikko Rapeli [Thu, 20 Jul 2017 13:23:11 +0000 (16:23 +0300)]
cve-check.bbclass: use "+git" as separator in PV instead of "git+"

PV is the recipe major version number. cve-check tries to map that to
NVD database release versions of the component. If the recipe sources
are taken from git, the PV can be automatically modified to include
git details, but the syntax is like 233+gitAUTOINC+a1e2ef7ec9.
In CVE checks we want to remove the git details and just use the major
version information, in this example 233.

Thus use "+git" as the separator and use the first part before the separator
as SW product version number in CVE check.

Fixes version number for e.g. systemd recipe. If systemd PV is
233+gitAUTOINC+a1e2ef7ec9 there will be no matches from CVE database where
latest release mentioned is plain 233. If the filter is set to +git, then
CVE PV is 233 and issues like this are detected by do_cve_check:

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

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogstreamer1.0-python: add new recipe
Martin Kelly [Tue, 18 Jul 2017 18:46:54 +0000 (11:46 -0700)]
gstreamer1.0-python: add new recipe

Previously, we had a gst-python recipe, but it supported only GStreamer
0.1. After GStreamer switched the Python bindings to use GObject
introspection, we were no longer able to build the bindings, and they
were dropped in this patch:

https://patchwork.openembedded.org/patch/93793/

However, at this point, we have a gobject-introspection class, so we can
use the bindings again, this time with GStreamer 1.0.

Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoffmpeg: fix pkg-config utilization
Nicolas Dechesne [Thu, 20 Jul 2017 14:55:11 +0000 (16:55 +0200)]
ffmpeg: fix pkg-config utilization

in config.log we can see:
WARNING: aarch64-linaro-linux-pkg-config not found, library detection may fail.

ffmpeg configure script is not looking for pkg-config at the rigt place since it
is assuming cross compilation. let's force its value in the recipe.

This patches 'fixes' library detection, so it also adds:

--disable-libxcb
--disable-libxcb-shm
--disable-libxcb-xfixes
--disable-libxcb-shape

Which were dangling configure options, which started to be enabled after the
pkg-config fix, so they need now to be explicitely disabled. Follow up patch
will enable these options when DISTRO_FEATURES has x11.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoovmf-shell-image.bb: simplify dependencies
Patrick Ohly [Fri, 21 Jul 2017 06:25:13 +0000 (08:25 +0200)]
ovmf-shell-image.bb: simplify dependencies

The image consists only of the EFI system partition, therefore
we can avoid depending on the default wic tools.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoffmpeg: add PACKAGECONFIG for sdl2
Nicolas Dechesne [Thu, 20 Jul 2017 20:56:34 +0000 (22:56 +0200)]
ffmpeg: add PACKAGECONFIG for sdl2

Enabling sdl2 will bring ffplay applications, which can be handy when working
with ffmpeg.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agokernel.bbclass: set CVE_PRODUCT to linux_kernel if not set by recipe
Mikko Rapeli [Thu, 20 Jul 2017 13:23:10 +0000 (16:23 +0300)]
kernel.bbclass: set CVE_PRODUCT to linux_kernel if not set by recipe

It is used by NVD database CVE's like:

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

Setting this in kernel.bbclass fixes CVE reporting for all users of
the class.

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agocve-check.bbclass: use weak assignment for default CVE_PRODUCT
Mikko Rapeli [Thu, 20 Jul 2017 13:23:09 +0000 (16:23 +0300)]
cve-check.bbclass: use weak assignment for default CVE_PRODUCT

This way also bbclasses can override it. For example kernel.bbclass
could set CVE_PRODUCT to linux_kernel for all users of the class
which compile Linux kernels.

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowpa-supplicant_2.6.bb: set CVE_PRODUCT to wpa_supplicant
Mikko Rapeli [Thu, 20 Jul 2017 13:23:08 +0000 (16:23 +0300)]
wpa-supplicant_2.6.bb: set CVE_PRODUCT to wpa_supplicant

It is used in NVD database CVE's like:

https://nvd.nist.gov/vuln/detail/CVE-2015-1863

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosqlite3.inc: set CVE_PRODUCT to sqlite
Mikko Rapeli [Thu, 20 Jul 2017 13:23:07 +0000 (16:23 +0300)]
sqlite3.inc: set CVE_PRODUCT to sqlite

It is used in NVD for CVE's like:

https://nvd.nist.gov/vuln/detail/CVE-2016-6153

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoquota_4.03.bb: set CVE_PRODUCT to linux_diskquota
Mikko Rapeli [Thu, 20 Jul 2017 13:23:06 +0000 (16:23 +0300)]
quota_4.03.bb: set CVE_PRODUCT to linux_diskquota

It is used in NVD for CVE's like:

https://nvd.nist.gov/vuln/detail/CVE-2012-3417

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolttng-ust_2.9.1.bb: set CVE_PRODUCT to ust
Mikko Rapeli [Thu, 20 Jul 2017 13:23:05 +0000 (16:23 +0300)]
lttng-ust_2.9.1.bb: set CVE_PRODUCT to ust

It is used in NVD for CVE's like:

https://nvd.nist.gov/vuln/detail/CVE-2010-3386

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopython.inc: set CVE_PRODUCT to python
Mikko Rapeli [Thu, 20 Jul 2017 13:23:04 +0000 (16:23 +0300)]
python.inc: set CVE_PRODUCT to python

All python versions are just python in NVD like this CVE
for python 3.4.4:

https://nvd.nist.gov/vuln/detail/CVE-2016-5699

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agonspr_4.14.bb: set CVE_PRODUCT to netscape_portable_runtime
Mikko Rapeli [Thu, 20 Jul 2017 13:23:03 +0000 (16:23 +0300)]
nspr_4.14.bb: set CVE_PRODUCT to netscape_portable_runtime

This is used in NVD database entries like CVE:

https://nvd.nist.gov/vuln/detail/CVE-2016-1951

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibsndfile1_1.0.28.bb: set CVE_PRODUCT to libsndfile
Mikko Rapeli [Thu, 20 Jul 2017 13:23:02 +0000 (16:23 +0300)]
libsndfile1_1.0.28.bb: set CVE_PRODUCT to libsndfile

It is used in NVD to CVE's like:

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

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibsamplerate0_0.1.9.bb: set CVE_PRODUCT to libsamplerate
Mikko Rapeli [Thu, 20 Jul 2017 13:23:01 +0000 (16:23 +0300)]
libsamplerate0_0.1.9.bb: set CVE_PRODUCT to libsamplerate

It is used in NVD for CVE's like:

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

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibpcre2_10.23.bb: set CVE_PRODUCT to pcre2
Mikko Rapeli [Thu, 20 Jul 2017 13:23:00 +0000 (16:23 +0300)]
libpcre2_10.23.bb: set CVE_PRODUCT to pcre2

It is used in NVD as product name for CVE's like:

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

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibpcre_8.40.bb: set CVE_PRODUCT to prce
Mikko Rapeli [Thu, 20 Jul 2017 13:22:59 +0000 (16:22 +0300)]
libpcre_8.40.bb: set CVE_PRODUCT to prce

It is used in NVD for CVE's like:

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

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoicu.inc: set CVE_PRODUCT to international_components_for_unicode
Mikko Rapeli [Thu, 20 Jul 2017 13:22:58 +0000 (16:22 +0300)]
icu.inc: set CVE_PRODUCT to international_components_for_unicode

NVD uses it for CVE's like:

https://nvd.nist.gov/vuln/detail/CVE-2014-8146

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoglibc-common.inc: set CVE_PRODUCT to glibc
Mikko Rapeli [Thu, 20 Jul 2017 13:22:57 +0000 (16:22 +0300)]
glibc-common.inc: set CVE_PRODUCT to glibc

All recipes which include this .inc map to glibc NVD component.

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoglib.inc: set CVE_PRODUCT to glib
Mikko Rapeli [Thu, 20 Jul 2017 13:22:56 +0000 (16:22 +0300)]
glib.inc: set CVE_PRODUCT to glib

NVD uses product glib and vendor gnome for CVE's like:

https://nvd.nist.gov/vuln/detail/CVE-2016-6855

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogcc-common.inc: set CVE_PRODUCT to gcc
Mikko Rapeli [Thu, 20 Jul 2017 13:22:55 +0000 (16:22 +0300)]
gcc-common.inc: set CVE_PRODUCT to gcc

All recipes which include this are using gcc as product name in NVD like

https://nvd.nist.gov/vuln/detail/CVE-2015-5276

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoflac_1.3.1.bb: set CVE_PRODUCT to libflac
Mikko Rapeli [Thu, 20 Jul 2017 13:22:54 +0000 (16:22 +0300)]
flac_1.3.1.bb: set CVE_PRODUCT to libflac

NVD uses product name libflac for CVE's like:

https://nvd.nist.gov/vuln/detail/CVE-2014-8962

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoeglinfo.inc: set CVE_PRODUCT to eglinfo
Mikko Rapeli [Thu, 20 Jul 2017 13:22:53 +0000 (16:22 +0300)]
eglinfo.inc: set CVE_PRODUCT to eglinfo

Upstream is called eglinfo no matter how the recipes are named.
There are no existing CVE's for eglinfo in NVD yet.

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobluez5.inc: set CVE_PRODUCT to bluez
Mikko Rapeli [Thu, 20 Jul 2017 13:22:52 +0000 (16:22 +0300)]
bluez5.inc: set CVE_PRODUCT to bluez

bluez is the product name in NVD database for CVE's like:

https://nvd.nist.gov/vuln/detail/CVE-2016-7837

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoacpid.inc: set CVE_PRODUCT to acpid2
Mikko Rapeli [Thu, 20 Jul 2017 13:22:51 +0000 (16:22 +0300)]
acpid.inc: set CVE_PRODUCT to acpid2

It is used in NVD database for CVE's like:

https://nvd.nist.gov/vuln/detail/CVE-2011-4578

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoglibc-package.inc: add support for armeb of multilib
zhengrq [Thu, 20 Jul 2017 15:03:47 +0000 (23:03 +0800)]
glibc-package.inc: add support for armeb of multilib

Add support for armeb of multilib.

Signed-off-by: zhengrq <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agorpm/dnf: fix Upstream-Status to reflect upstream submission status
Alexander Kanavin [Thu, 20 Jul 2017 12:27:08 +0000 (15:27 +0300)]
rpm/dnf: fix Upstream-Status to reflect upstream submission status

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodhcp: add dhclient.service
Chen Qi [Thu, 20 Jul 2017 07:33:58 +0000 (15:33 +0800)]
dhcp: add dhclient.service

Add dhclient.service. This service file mainly comes from meta-systemd,
with modifications to take nfs boot into consideration.

While using eth0 as the nfsboot interface, we'd like dhclient service
to skip it like what ifup and connman do in sysvinit.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoglibc: fix upstream-status tag in a patch
Ross Burton [Thu, 20 Jul 2017 12:36:40 +0000 (13:36 +0100)]
glibc: fix upstream-status tag in a patch

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibffi: Support musl-x32 build
sweeaun [Wed, 19 Jul 2017 20:29:42 +0000 (13:29 -0700)]
libffi: Support musl-x32 build

Added target musl-x32 in configure.ac to support musl-x32 build in libffi.

Signed-off-by: sweeaun <swee.aun.khor@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopython*-setuptools: upgrade to 36.2.0
Jose Lamego [Wed, 19 Jul 2017 17:20:26 +0000 (12:20 -0500)]
python*-setuptools: upgrade to 36.2.0

Both python-setuptools and python3-setuptools need to be
upgraded to latest upstream version.

license checksum is now targeted to be performed over the actual
license text at license file.

These changes were tested using qemux86 with core-image-minimal.

Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomkelfimage: Fix build on x86_64 with hardening
Khem Raj [Wed, 19 Jul 2017 02:50:55 +0000 (19:50 -0700)]
mkelfimage: Fix build on x86_64 with hardening

We get linking errors on some hosts like
| ld -static --warn-multiple-gp --warn-common -T linux-i386/convert.lds -o objdir/linux-i386/convert ob
jdir/linux-i386/head.o objdir/linux-i386/convert_params.o
| objdir/linux-i386/convert_params.o: In function `printf':
| convert_params.c:(.text+0x1fd): undefined reference to `__stack_chk_fail_local'

This is because the build system is defaulting to host linker when building
32bit binaries and it may not have same defaults as OE toolchain and issue
gets highlighted.

fix it by using cross linker for 32bit links when building on x86_64

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopatchelf: fix segfault for binaries linked by gold
Ed Bartosh [Fri, 21 Jul 2017 11:48:13 +0000 (14:48 +0300)]
patchelf: fix segfault for binaries linked by gold

Due to a bug in calculating adresses of modified program
headers patchelf breaks executables linked by Gold linker
causing them to segfault, e.g.
$ tmp/sysroots-components/x86_64/m4-native/usr/bin/m4 --help
Segmentation fault

This is reproducible only in some cases and only for executables
of ET_DYN type produced by Gold or by ld linked with pie.

This should be solved by fix-adjusting-startPage.patch that
fixes calculation logic.

[YOCTO #11785]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopatchelf: change patch status
Ed Bartosh [Fri, 21 Jul 2017 11:54:19 +0000 (14:54 +0300)]
patchelf: change patch status

The patch has been accepted upstream.
Changed patch status Pending -> Accepted.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobluez5: upgrade to 5.46
Maxin B. John [Thu, 20 Jul 2017 12:22:35 +0000 (15:22 +0300)]
bluez5: upgrade to 5.46

5.45 -> 5.46

This includes the new testing utility "advtest"

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopython3-git: upgrade to 2.1.5
Jose Lamego [Wed, 19 Jul 2017 16:50:02 +0000 (11:50 -0500)]
python3-git: upgrade to 2.1.5

python3-git needs to be upgraded to latest upstream version.

"git" is added as RDEPENDS.

These changes were tested using qemux86 with core-image-minimal.

Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopython3-mako: update to 1.0.7
Jose Lamego [Wed, 19 Jul 2017 16:12:17 +0000 (11:12 -0500)]
python3-mako: update to 1.0.7

python3-mako need to be upgraded to latest upstream version.
This change was tested using qemux86 with core-image-minimal

Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibtirpc: upgrade to 1.0.2
Maxin B. John [Wed, 19 Jul 2017 15:01:25 +0000 (18:01 +0300)]
libtirpc: upgrade to 1.0.2

1.0.1 -> 1.0.2

Remove these Backported and upstreamed patches:
        1. 0001-Fix-for-CVE-2017-8779.patch
        2. libtirpc-0.2.1-fortify.patch
        3. libtirpc-1.0.2-rc3.patc

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosqlite3: upgrade to 3.19.3
Maxin B. John [Wed, 19 Jul 2017 15:01:24 +0000 (18:01 +0300)]
sqlite3: upgrade to 3.19.3

3.19.2 -> 3.19.3

Fixes a bug associated with auto_vacuum that can lead to database
corruption.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoorc: upgrade to 0.4.27
Maxin B. John [Wed, 19 Jul 2017 15:01:22 +0000 (18:01 +0300)]
orc: upgrade to 0.4.27

0.4.26 -> 0.4.27

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibsolv: upgrade to 0.6.28
Maxin B. John [Wed, 19 Jul 2017 15:01:21 +0000 (18:01 +0300)]
libsolv: upgrade to 0.6.28

0.6.27 -> 0.6.28

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibjpeg-turbo: upgrade to 1.5.2
Maxin B. John [Wed, 19 Jul 2017 15:01:20 +0000 (18:01 +0300)]
libjpeg-turbo: upgrade to 1.5.2

1.5.1 -> 1.5.2

Remove this backported patch:
        1. fix-mips.patch

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscreen: 4.5.1 -> 4.6.0
Bian Yaqin [Tue, 18 Jul 2017 15:48:28 +0000 (08:48 -0700)]
screen: 4.5.1 -> 4.6.0

Update screen from 4.5.1 to 4.6.0

Signed-off-by: Bian Yaqin <bianyq@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobase.bbclass: Make .jar file depend on unzip-native
Ricardo Ribalda Delgado [Tue, 18 Jul 2017 11:01:53 +0000 (13:01 +0200)]
base.bbclass: Make .jar file depend on unzip-native

Unzip is required for jar files. Without this patch:
ERROR: junit4-4.3.1-r0 do_unpack: Unpack failure for URL:
'http://downloads.sourceforge.net/junit/junit-4.3.1-src.jar'. Unpack
command
PATH="/var/lib/jenkins/workspace/qt5122-dyspro/build/tmp/sysroots-uninative/x86_64-linux/usr/bin ......."
unzip -q -o '/var/lib/yocto/downloads/junit-4.3.1-src.jar' failed with
return value 127

Suggested-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosystemd-bootchart: Fix build with glibc 2.26
Jussi Kukkonen [Tue, 18 Jul 2017 10:52:29 +0000 (13:52 +0300)]
systemd-bootchart: Fix build with glibc 2.26

xlocale.h is no more, don't include it.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoacl: reduce local pending patches
Dengke Du [Tue, 18 Jul 2017 07:56:57 +0000 (03:56 -0400)]
acl: reduce local pending patches

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoat: reduce local pending patches
Dengke Du [Tue, 18 Jul 2017 07:56:56 +0000 (03:56 -0400)]
at: reduce local pending patches

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agovulkan-demos: Rename ${bindir}/screenshot
Jussi Kukkonen [Tue, 18 Jul 2017 07:32:10 +0000 (10:32 +0300)]
vulkan-demos: Rename ${bindir}/screenshot

This conflicts with sato-screenshot.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomesa: Upgrade to 17.1.5 release
Otavio Salvador [Mon, 17 Jul 2017 18:40:49 +0000 (15:40 -0300)]
mesa: Upgrade to 17.1.5 release

This is a stable bugfix release. Following upstream bugs were fixed:

Bug 100242 - radeon buffer allocation failure during startup of Factorio
Bug 101657 - strtod.c:32:10: fatal error: xlocale.h: No such file or directory
Bug 101666 - bitfieldExtract is marked as a built-in function on OpenGL ES 3.0, but was added in OpenGL ES 3.1
Bug 101703 - No stencil buffer allocated when requested by GLUT

Also, the following patches were included in this release and as such
deleted:

- etnaviv_fix-shader-miscompilation.patch

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooe-selftest: wic: add test_mkfs_extraopts test case
Ed Bartosh [Thu, 6 Jul 2017 11:32:35 +0000 (14:32 +0300)]
oe-selftest: wic: add test_mkfs_extraopts test case

Test new wks option --mkfs-extraopts with all filesystems
supported by wic.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: add description of --mkfs-extraopts
Ed Bartosh [Thu, 6 Jul 2017 11:32:34 +0000 (14:32 +0300)]
wic: add description of --mkfs-extraopts

Updated help contents with the description of new
wks option --mkfs-extraopts

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: implement wks option --mkfs-extraopts
Ed Bartosh [Thu, 6 Jul 2017 11:32:33 +0000 (14:32 +0300)]
wic: implement wks option --mkfs-extraopts

This option specifies extra options to pass to mkfs.<fstype> utilities.

[YOCTO #11709]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopkgconfig: allow kernel to be build with esdk
Saul Wold [Mon, 17 Jul 2017 16:20:15 +0000 (09:20 -0700)]
pkgconfig: allow kernel to be build with esdk

When the kernel's menuconfig target is called while using the esdk or an
esdk-based container, the pkg-config info that is found is not correct.
The pkg-config info is for the target, but we need the eSDK's information
in order to build the host based menuconfig.

The new pkg-config-esdk script checks both that it's in SDK and being
called from the check-lxdialog script in order to limit the scope of when
the pkg-config automagically switches to pkg-config-native.

The pkg-config-esdk is only installed as pkg-config inside the eSDK, which
is why we use the sstate post install script and check for if we are in the
esdk environment using the WITHIN_EXT_SDK

[YOCTO #11155]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopopulate_sdk_ext: Add variable to indicate running in eSDK
Saul Wold [Mon, 17 Jul 2017 16:20:14 +0000 (09:20 -0700)]
populate_sdk_ext: Add variable to indicate running in eSDK

This allows for other scripts to know that they are being executed in
the context of the eSDK in order to provide different behaviour as
needed.

[YOCTO #11155]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoicecc.bbclass: prevent nativesdk builds depending on target specific KERNEL_CC
Martin Jansa [Mon, 17 Jul 2017 14:04:50 +0000 (16:04 +0200)]
icecc.bbclass: prevent nativesdk builds depending on target specific KERNEL_CC

* without this we cause nativesdk-linux-libc-headers to depend
  on target specific KERNEL_CC (through icecc_get_tool ->
  icecc_is_kernel -> KERNEL_CC -> HOST_CC_KERNEL_ARCH ->
  TARGET_CC_KERNEL_ARCH -> TUNE_FEATURES(thumb) as shown by
  bitbake-diffsigs:

  OE qemux86@ ~/build/oe-core $ ls /OE/build/oe-core/tmp-glibc/sstate-diff/1499859497/qemu*/*sdk*/*/*do_configure.sigdata*
  /OE/build/oe-core/tmp-glibc/sstate-diff/1499859497/qemuarm/x86_64-nativesdk-oesdk-linux/nativesdk-linux-libc-headers/4.10-r0.do_configure.sigdata.3a9a423878d56524e0ee8e42eba1804f
  /OE/build/oe-core/tmp-glibc/sstate-diff/1499859497/qemux86/x86_64-nativesdk-oesdk-linux/nativesdk-linux-libc-headers/4.10-r0.do_configure.sigdata.401071dbaa88903ece37d35a47965ff2

  OE qemux86@ ~/build/oe-core $ bitbake-diffsigs /OE/build/oe-core/tmp-glibc/sstate-diff/1499859497/qemu*/*sdk*/*/*do_configure.sigdata*
  basehash changed from 39774238b66763c598153132e87a2c1a to aa2d66e770bf533e312536eb0a401c4c
  Variable TARGET_CC_KERNEL_ARCH value changed from '${@bb.utils.contains('TUNE_FEATURES', 'thumb', '-mno-thumb-interwork-marm', '', d)} TUNE_FEATURES{thumb} = Set' to ''

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolicenses.conf: enable CDDLv1 license
Martin Kelly [Mon, 10 Jul 2017 22:18:33 +0000 (15:18 -0700)]
licenses.conf: enable CDDLv1 license

The CDDL license is now used by open-vm-tools in meta-openembedded, so
we need to add it in order to prevent warnings.

Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoinitscripts: start bootmisc.sh at 36 instead of 55
David Vincent [Mon, 10 Jul 2017 10:45:33 +0000 (12:45 +0200)]
initscripts: start bootmisc.sh at 36 instead of 55

bootmisc.sh is responsible for setting the system date to a sane
default. Currently, it is the last script to be run from the rcS
runlevel.

Problem is that the files created before appear to have been created
on 1/1/1970. Most notably, /var/log/dmesg created in dmesg.sh cannot be
properly rotated with logrotate which does not consider it a valid date
and stops processing.

There is no blocker on moving this script right before populating
volatiles because it just requires the local and virtual filesystems to
be mounted to work.

Signed-off-by: David Vincent <freesilicon@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agologrotate: Add systemd support
Romain Perier [Tue, 11 Jul 2017 06:46:06 +0000 (08:46 +0200)]
logrotate: Add systemd support

Currently, this recipe only supports daily scheduling via a cron job.
This commit adds support for systemd in the recipe, as the feature is
already supported on upstream. When the corresponding distro feature is
enabled the systemd variant will be used. The timer granularity and its
accuracy are also configurable.

Signed-off-by: Romain Perier <romain.perier@collabora.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agologrotate: Bump to 3.12.3
Romain Perier [Tue, 11 Jul 2017 06:46:05 +0000 (08:46 +0200)]
logrotate: Bump to 3.12.3

This commit updates the recipe to the last upstream tag. Then, as the
tarball no longer contains the pre-generated Makefile, inherit from
autotools

Signed-off-by: Romain Perier <romain.perier@collabora.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodevtool: standard: enable options for PREMIRRORS and MIRRORS
Chang Rebecca Swee Fun [Thu, 13 Jul 2017 03:33:55 +0000 (11:33 +0800)]
devtool: standard: enable options for PREMIRRORS and MIRRORS

Since we have provide an option to manually enable PREMIRRORS and MIRRORS
in recipetool, we need to make sure devtool is having the same options
as devtool uses recipetool in creating new recipes.

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodevtool: find-recipe: enable new subcommand for devtool
Chang Rebecca Swee Fun [Wed, 28 Jun 2017 01:59:19 +0000 (09:59 +0800)]
devtool: find-recipe: enable new subcommand for devtool

devtool find-recipe will prints out the path to the recipe
in a workspace.

This subcommand can also help to find recipe outside of
current workspace using "-a" or "--any-recipe" option.

This enhancement helps developer to get the recipe path
when working with devtool.

[YOCTO #11434]

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscriptutils: pass in logger as parameter
Chang Rebecca Swee Fun [Wed, 28 Jun 2017 01:59:18 +0000 (09:59 +0800)]
scriptutils: pass in logger as parameter

logger was not defined in scriptutils.py based on the
observation in python traceback.

Traceback (most recent call last):
  File "/workdir/poky/scripts/devtool", line 351, in <module>
    ret = main()
  File "/workdir/poky/scripts/devtool", line 338, in main
    ret = args.func(args, config, basepath, workspace)
  File "/workdir/poky/scripts/lib/devtool/utilcmds.py", line 55, in
edit_recipe
    return scriptutils.run_editor(find_recipe(args, config, basepath,
workspace))
  File "/workdir/poky/scripts/lib/scriptutils.py", line 141, in
run_editor
    logger.error("Execution of '%s' failed: %s" % (editor, exc))
NameError: name 'logger' is not defined

We pass in logger as parameter to run_editor() from where it has
been called (devtool/utilcmds.py and recipetool/newappend.py),
which both modules already has logger setup.

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscriptutils: exit politely when no text editor available
Chang Rebecca Swee Fun [Wed, 28 Jun 2017 01:59:17 +0000 (09:59 +0800)]
scriptutils: exit politely when no text editor available

devtool edit-recipe now has ugly tracebacks if executed without an
editor available. This happens in the build containers whenever no
text editor is available.

subprocess.check_call will run text editing command with recipe path
provided. It will wait for command to complete. If the return code
was zero then return, otherwise raise CalledProcessError exception.

This enhancement will suppress the traceback by catching the exception
and prompt the error messages in a proper manner shown below:

pokyuser@59c99c507238:/workdir/docker-dbg$ devtool edit-recipe ifupdown
/bin/sh: 1: vi: not found
ERROR: Execution of 'vi' failed: Command 'vi
"/workdir/docker-dbg/workspace/recipes/ifupdown/ifupdown_0.8.16.bb"'
returned non-zero exit status 127

[YOCTO #11434]

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>