]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
7 years agobase-files: profile: Simplify setting variables conditionally
Peter Kjellerstedt [Mon, 3 Apr 2017 12:48:27 +0000 (14:48 +0200)]
base-files: profile: Simplify setting variables conditionally

It is preferred to use `[ "$FOO" ] || ...` instead of
`[ -z "$FOO" ] && ...` as the latter leaves $? set to 1.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooeqa/selftest: add test for package manager version comparison
Ross Burton [Tue, 2 May 2017 12:42:08 +0000 (13:42 +0100)]
oeqa/selftest: add test for package manager version comparison

This test case verifies that opkg, dpkg, and rpm all have the same behaviour for
version ordering, specifically the behaviour of ~ which should be sorting
*before* nothing:

  1.0 < 2.0~pre < 2.0 < 2.0-fix

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooeqa/selftest: relax whitespace matches in search regex
Ross Burton [Mon, 15 May 2017 11:11:58 +0000 (12:11 +0100)]
oeqa/selftest: relax whitespace matches in search regex

Latest DNF has changed the amount of whitespace it outputs so use matches
instead of hardcoding the exact number of spaces.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoselftest/runtime-test: Split the config values
Leonardo Sandoval [Thu, 27 Apr 2017 20:36:23 +0000 (13:36 -0700)]
selftest/runtime-test: Split the config values

Split the configuration values (common and specific) so it is easier to read
what goes into the config file. Also the specific configurations are
set in every loop so these do not append on each iteration.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agorootfs-postcommands.bbclass: Check if "/etc/fstab" exists
Panagiotis Tamtamis [Fri, 28 Apr 2017 07:09:27 +0000 (10:09 +0300)]
rootfs-postcommands.bbclass: Check if "/etc/fstab" exists

Using "read-only-rootfs" feature in minimal or special
purpose images (eg mounted images) makes build to fail
because ${IMAGE_ROOTFS}/etc/fstab file does not exist.

Signed-off-by: Panagiotis Tamtamis <panagiotis.tamtamis@unify.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agocmake.bbclass: remove unneded cd ${B}
Cody P Schafer [Thu, 4 May 2017 17:50:41 +0000 (13:50 -0400)]
cmake.bbclass: remove unneded cd ${B}

The default dir for do_compile & do_configure is already ${B}, no need
to cd (other than broken appends)

CC: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Cody P Schafer <dev@codyps.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoimage.bbclass: allow override of image LICENSE
Pascal Bach [Wed, 3 May 2017 15:28:40 +0000 (17:28 +0200)]
image.bbclass: allow override of image LICENSE

Currently the LICENSE of every image is hard set to MIT.
This allows this to be overriden in derived images.

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoimage.bbclass: Set ROOTFS_RO_UNNEEDED correctly
David Vincent [Wed, 26 Apr 2017 09:30:39 +0000 (11:30 +0200)]
image.bbclass: Set ROOTFS_RO_UNNEEDED correctly

Use a weak assignment for ROOTFS_RO_UNNEEDED to let users define their
own list overriding defaults.

Signed-off-by: David Vincent <freesilicon@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agorunqemu: Automatically add a TFTP directory for slirp boot
Alistair Francis [Fri, 24 Mar 2017 20:38:57 +0000 (13:38 -0700)]
runqemu: Automatically add a TFTP directory for slirp boot

When booting QEMU with slirp networking we want to use QEMUs TFTP server
to make the images in deploy accessible to the guest.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooe.lsb: add get_os_release()
Markus Lehtonen [Thu, 27 Apr 2017 08:17:33 +0000 (11:17 +0300)]
oe.lsb: add get_os_release()

Move get_os_release() from oeqa.utils.metadata to oe.lsb, merging the
code with release_dict_osr() from oe.lsb. This removes some code
duplication and makes get_os_release() more robust.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agouseradd: Create lib/oe/useradd function library
Richard Purdie [Fri, 12 May 2017 10:05:41 +0000 (12:05 +0200)]
useradd: Create lib/oe/useradd function library

The code in useradd-staticids is generally useful for user addition
functionality but is not reusable in its current form. Refactor the
code into a set of library functions.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopopulate_sdk_ext: Avoid build failures where sstate was used
Richard Purdie [Wed, 8 Mar 2017 14:22:30 +0000 (14:22 +0000)]
populate_sdk_ext: Avoid build failures where sstate was used

If sstate was used to populate the build and one of the universal-4.8
or universal-4.9 mirror urls was used, the sstate checks during eSDK
construction could fail as it would zero out the SSTATE_MIRRORs
variable.

Use the same mirrors variable setting as the eSDK would end up using
to perform the checks to avoid this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogcc-configure/gcc-target: Move arm6/7 config to target only
Richard Purdie [Wed, 9 Mar 2016 23:04:48 +0000 (23:04 +0000)]
gcc-configure/gcc-target: Move arm6/7 config to target only

We only build one gcc-cross per architecture and having target specific
flags means gcc-cross would rebuild. These flags are really for the
on target case, so they should be set in gcc-target only.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoglibc: Avoid errors if you accidentally create a git symlink in the glibc source dir
Richard Purdie [Tue, 7 Mar 2017 20:10:31 +0000 (20:10 +0000)]
glibc: Avoid errors if you accidentally create a git symlink in the glibc source dir

If you accidentally create symlinks in the glibc sources directory, it
fails in very hard to understand ways. Whilst most people don't do this,
since I debugged it, specifify the list of plugins we use to avoid
this biting anyone else.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobase: Simplify BASEDEPENDS construction
Richard Purdie [Wed, 11 May 2016 15:29:05 +0000 (16:29 +0100)]
base: Simplify BASEDEPENDS construction

This code dates from distant times before we had class overrides.
The comments are also rather stale. Rewrite this code using class
overrides which makes it safer, more modern and more easily
understandable.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopython*-git: Upgrade to version 2.1.3
Jose Lamego [Mon, 13 Mar 2017 17:40:50 +0000 (11:40 -0600)]
python*-git: Upgrade to version 2.1.3

Both python-git and python3-git need to be upgraded to latest
upstream
version.
This change was tested using qemux86 with core-image-sato.

Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibunwind: update to 1.2
Alexander Kanavin [Fri, 21 Apr 2017 12:39:59 +0000 (15:39 +0300)]
libunwind: update to 1.2

Switch to using tarballs as git is unreliable (not responding right now).

LICENSE file is gone; COPYING has an additional line on top with
copyright attribution, the license text that follows has not changed.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agocurl: upgrade to 7.54.0
Oleksandr Kravchuk [Fri, 21 Apr 2017 12:12:33 +0000 (14:12 +0200)]
curl: upgrade to 7.54.0

Signed-off-by: Oleksandr Kravchuk <oleksandr.kravchuk@pelagicore.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomesa: Update to version 17.0.4
Fabio Berton [Thu, 20 Apr 2017 20:22:16 +0000 (17:22 -0300)]
mesa: Update to version 17.0.4

This commit apply bug fixes found in both mesa 17.0.2 and mesa 17.0.3
releases.

  - Mesa 17.0.4 is a bug fix release which fixes the following bugs
    found since the 17.0.3 release:

      Bug 99515  - SIGSEGV MAPERR on Android nougat-x86 with mesa 17.0.0rc
      Bug 100391 - SachaWillems deferredmultisampling asserts
      Bug 100452 - push_constants host memory leak when resetting command buffer
      Bug 100582 - [GEN8+] piglit.spec.arb_stencil_texturing.glblitframebuffer
                   corrupts state.gl_texture* assertions

  - Mesa 17.0.3 is a bug fix release which fixes the following bugs
    found since the 17.0.2 release:

      Bug 96743  - [BYT, HSW, SKL, BXT, KBL] GPU hangs with GfxBench 4.0 CarChase
      Bug 99246  - [d3dadapter+radeonsi & bisect] EVE-Online : hang on wormhole sight
      Bug 100061 - LODQ instruction generated with invalid dst mask
      Bug 100182 - Flickering in The Talos Principle on Sky Lake GT4.
      Bug 100201 - Windows scons build with MSVC toolchain and LLVM 4.0 fails

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobash: CVE-2016-0634
Zhixiong Chi [Thu, 20 Apr 2017 07:04:54 +0000 (15:04 +0800)]
bash: CVE-2016-0634

A vulnerability was found in a way bash expands the $HOSTNAME.
Injecting the hostname with malicious code would cause it to run
each time bash expanded \h in the prompt string.

Porting patch from <https://ftp.gnu.org/gnu/bash/bash-4.3-patches/
bash43-047> to solve CVE-2016-0634

CVE: CVE-2016-0634

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibepoxy: 1.4.0 -> 1.4.1
Huang Qiyu [Thu, 20 Apr 2017 01:30:35 +0000 (09:30 +0800)]
libepoxy: 1.4.0 -> 1.4.1

Upgrade libepoxy from 1.4.0 to 1.4.1.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobyacc: 20161202 -> 20170201
Huang Qiyu [Fri, 14 Apr 2017 05:20:01 +0000 (13:20 +0800)]
byacc: 20161202 -> 20170201

1)Upgrade byacc from 20161202 to 20170201.
2)License checksum changed,since the copyright years were updated.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogdk-pixbuf:2.36.5 -> 2.36.6
Huang Qiyu [Fri, 14 Apr 2017 02:04:56 +0000 (10:04 +0800)]
gdk-pixbuf:2.36.5 -> 2.36.6

Upgrade gdk-pixbuf from 2.36.5 to 2.36.6.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agocoreutils: don't use version-specific patch directory
Ross Burton [Fri, 21 Apr 2017 13:37:52 +0000 (14:37 +0100)]
coreutils: don't use version-specific patch directory

As we only ship one version of coreutils, having this directory be versioned
just complicates upgrades.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agocoreutils: 8.26 -> 8.27
Huang Qiyu [Tue, 11 Apr 2017 08:52:29 +0000 (16:52 +0800)]
coreutils: 8.26 -> 8.27

Upgrade coreutils from 8.26 to 8.27.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoopenssh: upgrade to 7.5p1
Dengke Du [Tue, 11 Apr 2017 02:01:59 +0000 (22:01 -0400)]
openssh: upgrade to 7.5p1

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoat-spi2-core: 2.22.0 -> 2.24.0
Huang Qiyu [Mon, 10 Apr 2017 09:01:15 +0000 (17:01 +0800)]
at-spi2-core: 2.22.0 -> 2.24.0

Upgreade at-spi2-core from 2.22.0 to 2.24.0.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoat-spi2-atk : 2.22.0 -> 2.24.0
Huang Qiyu [Mon, 10 Apr 2017 08:55:30 +0000 (16:55 +0800)]
at-spi2-atk : 2.22.0 -> 2.24.0

Upgrade at-spi2-atk from 2.22.0 to 2.24.0.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolz4: update to lastest 1.7.4
Armin Kuster [Sat, 1 Apr 2017 20:06:44 +0000 (13:06 -0700)]
lz4: update to lastest 1.7.4

update SRC_URI: as of 1.7.3, repo changed. same owner
Renamed recipe to reflect PV and added Epoch
Added ptest, tests added v1.7.3
updated LICENSE to be more accurate.

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowebkitgtk: Upgrade to 2.16.1
Khem Raj [Fri, 21 Apr 2017 15:09:12 +0000 (08:09 -0700)]
webkitgtk: Upgrade to 2.16.1

Fix build with gcc7
Move all patches to webkit folder
Drop patches that were backports or have been upstreamed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoboost: Upgrade to 1.64.0
Khem Raj [Thu, 20 Apr 2017 18:20:24 +0000 (11:20 -0700)]
boost: Upgrade to 1.64.0

drop upstreamed patches

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agojson-c: Upgrade to 0.12.1 release
Khem Raj [Thu, 20 Apr 2017 02:31:44 +0000 (19:31 -0700)]
json-c: Upgrade to 0.12.1 release

Backport fix for gcc7 warning along the way

Remove --disable-rpath as this configure doesn't support it anymore [RB].

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agonss: Update to 3.29.1
Khem Raj [Thu, 20 Apr 2017 02:31:43 +0000 (19:31 -0700)]
nss: Update to 3.29.1

Also fix build with gcc7 along

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibdrm: 2.4.75 -> 2.4.80
Huang Qiyu [Wed, 19 Apr 2017 04:52:07 +0000 (12:52 +0800)]
libdrm: 2.4.75 -> 2.4.80

Upgrade libdrm from 2.4.75 to 2.4.80.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopackage_ipk/deb: Tweak functions for better cleanup and layout
Richard Purdie [Fri, 31 Mar 2017 14:28:07 +0000 (15:28 +0100)]
package_ipk/deb: Tweak functions for better cleanup and layout

This uses more modern formatting to handle the lockfiles and control
file cleanup with try/finally, taking advantage of the previous
extra indentation.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_deb: Split do_package_write_deb into two functions
Richard Purdie [Fri, 31 Mar 2017 12:34:24 +0000 (13:34 +0100)]
package_deb: Split do_package_write_deb into two functions

This prepares the way to parallelise deb generation and splits the iteration
over packages and the package generation into separate functions. Whitespace
indentation is unchanged deliberately and is fixed in a followup patch. There
should be no functional change.

Some checks on variables are removed as they were pointless when you looked
at the code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_ipk: Split into two functions
Richard Purdie [Thu, 30 Mar 2017 21:02:08 +0000 (22:02 +0100)]
package_ipk: Split into two functions

This prepares the way to parallelise ipk generation and splits the iteration
over packages and the package generation into separate functions. Whitespace
indentation is unchanged deliberately and is fixed in a followup patch. There
should be no functional change.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agostaging: Allow BB_LIMITEDDEPS to avoid BB_TASKDEPDATA
Richard Purdie [Mon, 8 May 2017 10:56:22 +0000 (11:56 +0100)]
staging: Allow BB_LIMITEDDEPS to avoid BB_TASKDEPDATA

In the limited dependency case we don't use any of the data from
BB_TASKDEPDATA. Restructure the code so this variable doesn't have
to be set. This allows the function to be called from other contexts
without creating artificial constructs. There should be no functional
change, behaviour remains unchanged.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosstate: Ensure native/cross recipes have relocation of HOSTTOOLS_DIR
Richard Purdie [Thu, 4 May 2017 10:59:14 +0000 (11:59 +0100)]
sstate: Ensure native/cross recipes have relocation of HOSTTOOLS_DIR

The previous change to relocate HOSTTOOLS wasn't complete as some files,
particularly in gcc stashed build directories were not being correctly
relocated. This patch addresses the issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopython.inc: Fix python2/3 hosttools path references
Richard Purdie [Thu, 4 May 2017 10:58:05 +0000 (11:58 +0100)]
python.inc: Fix python2/3 hosttools path references

Both native and target versions of this file reference mkdir and install
in hosttools paths. Use the version from PATH instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agorpm: Ensure macros file doesn't reference HOSTTOOLS
Richard Purdie [Thu, 4 May 2017 10:56:25 +0000 (11:56 +0100)]
rpm: Ensure macros file doesn't reference HOSTTOOLS

Currently the file encodes full paths to various host tools in the
HOSTTOOLS directory which is bad in native and target cases. We can
simply use the versions from PATH quite safely in OE.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agotcf-agent: enable default target debugging features
Gernot Hillier [Wed, 26 Apr 2017 10:57:45 +0000 (12:57 +0200)]
tcf-agent: enable default target debugging features

A number of features were disabled in OE due to historic problems
on ARM. In tcf-agent 1.4, they compile cleanly on all architectures
besides mips and libc-musl. These features are required for target
debugging with Eclipse Neon, CDT and TCF plugins - for example used
by Xilinx Vivado SDK 2016.4.

For MIPS and libc-musl, at least re-enable SERVICE_Symbols and
SERVICE_LineNumbers which compile cleanly.

Signed-off-by: Gernot Hillier <gernot.hillier@siemens.com>
Signed-off-by: Tim Offermann <tim.offermann@siemens.com>
Acked-by: Eugene Tarassov <eugene.tarassov@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agotcf-agent: fix machine setting for arm64 build
Gernot Hillier [Wed, 26 Apr 2017 10:57:44 +0000 (12:57 +0200)]
tcf-agent: fix machine setting for arm64 build

tcf-agent uses "a64", not "aarch64", see agent/Makefile.inc. This fix
allows to re-enable features like SERVICE_Breakpoints and SERVICE_
MemoryMap on arm64.

Signed-off-by: Gernot Hillier <gernot.hillier@siemens.com>
Acked-by: Eugene Tarassov <eugene.tarassov@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibcap: clean up gperf enabling logic
Ross Burton [Tue, 25 Apr 2017 16:07:08 +0000 (17:07 +0100)]
libcap: clean up gperf enabling logic

There's no need to sed the Makefile (especially the wrong Makefile) when there's
a variable we can pass.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agognutls: move BBCLASSEXTEND from gnutls.inc into the gnutls recipe
Andre McCurdy [Mon, 24 Apr 2017 19:13:16 +0000 (12:13 -0700)]
gnutls: move BBCLASSEXTEND from gnutls.inc into the gnutls recipe

There may be alternative gnutls recipes outside oe-core which include
gnutls.inc but which don't want BBCLASSEXTEND = "native nativesdk".

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopython3: add python3 metapackage
Ross Burton [Mon, 24 Apr 2017 14:43:57 +0000 (15:43 +0100)]
python3: add python3 metapackage

Many new users add "python3" to their image using IMAGE_INSTALL and are then
surprised that they can't import any of the standard library. This is because we
split up the standard library into a number of packages, and python3-core (the
interpreter and essential modules only) RPROVIDES 'python3'.

Solve this by moving the RPROVIDES of 'python3' to python3-modules, so that the
entire Python standard library is installed.

[ YOCTO #11182 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoclasses/image_live: allow different filesystems to be used for live images
Ming Liu [Sun, 23 Apr 2017 09:22:59 +0000 (11:22 +0200)]
classes/image_live: allow different filesystems to be used for live images

The idea is copied from commit df0b217f3df2c36a32e5c4afaec36a28bfc77bbb:
[ classes/image_vm: allow different filesystems to be used for VM images ]

The same logic should apply to image_live.bbclass, to allow other
filesystems to be used vs just ext4. The default value of ext4 is kept
so there is no functional change unless LIVE_ROOTFS_TYPE is set in the
inherting recipe.

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoparselogs: whitelist failed to enable keyboard error on intel-corei7-64
California Sullivan [Fri, 21 Apr 2017 22:18:36 +0000 (15:18 -0700)]
parselogs: whitelist failed to enable keyboard error on intel-corei7-64

This error is seen on the Braswell RVP platform we have been using for
testing. The error is caused by atkbd.c keyboard driver, which is only
for AT and PS/2 keyboards. I tested a PS/2 keyboard with the board,
which worked fine, and the board does not have a separate AT connector,
so this error won't cause any functional issues.

[YOCTO #10110].

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoparselogs: whitelist bluetooth firmware load error for intel-corei7-64
California Sullivan [Fri, 21 Apr 2017 22:18:35 +0000 (15:18 -0700)]
parselogs: whitelist bluetooth firmware load error for intel-corei7-64

The NUC6 has issues bringing up Bluetooth early in the boot sequence. We
see:

[    4.091790] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[    4.097326] Bluetooth: hci0: Found device firmware: intel/ibt-11-5.sfi
[    4.145317] Bluetooth: hci0: Failed to send firmware data (-38)

Followed by this later on:

[   11.509870] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[   11.509988] Bluetooth: hci0: Found device firmware: intel/ibt-11-5.sfi
[   13.090308] Bluetooth: hci0: Waiting for firmware download to complete
[   13.090829] Bluetooth: hci0: Firmware loaded in 1549114 usecs
[   13.090987] Bluetooth: hci0: Waiting for device to boot
[   13.101958] Bluetooth: hci0: Device booted in 10818 usecs

Bluetooth does successfully come up and the firmware is loaded. This
behavior is consistent across all kernels I've tested.

[YOCTO #10628].

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibxml2: move python module to Python 3
Alexander Kanavin [Fri, 21 Apr 2017 12:39:54 +0000 (15:39 +0300)]
libxml2: move python module to Python 3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agocreate-pull-request: add "-t in-reply-to" option
Jose Lamego [Tue, 4 Apr 2017 21:45:09 +0000 (16:45 -0500)]
create-pull-request: add "-t in-reply-to" option

The create-patch-request script creates patches as replies to a cover
letter, in the form of an email thread. If further revisions are sent to
the mailing list without referencing to the first revision, these new
revisions are not identified at the mailing list as part of the original
thread, but as a new thread instead.

This change adds the "[-t in_reply_to]" option, where "in_reply_to" is
the original cover letter's Message-Id, so this reference is added
to the new cover letter to ensure the thread continuity.

[YOCTO #11294]

Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolttng-modules: work around GCC 7 changes
Nathan Lynch [Tue, 25 Apr 2017 22:33:55 +0000 (17:33 -0500)]
lttng-modules: work around GCC 7 changes

Avoid using LTTng's BUILD_RUNTIME_BUG_ON macro, as it appears to run
into a similar problem as Linux experienced with __builtin_constant_p
and dead code elimination.

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibiconv: fix linker failure under GCC 7
Ross Burton [Tue, 25 Apr 2017 09:59:41 +0000 (10:59 +0100)]
libiconv: fix linker failure under GCC 7

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodiffutils: Fix build with gcc7
Khem Raj [Sun, 16 Apr 2017 14:57:44 +0000 (07:57 -0700)]
diffutils: Fix build with gcc7

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoovmf: Fix build with gcc7
Khem Raj [Fri, 21 Apr 2017 20:55:22 +0000 (20:55 +0000)]
ovmf: Fix build with gcc7

backport a patch which fixing warnings with gcc7

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agovalgrind: Fix arm build with gcc7
Khem Raj [Fri, 21 Apr 2017 19:23:08 +0000 (12:23 -0700)]
valgrind: Fix arm build with gcc7

Add function to remove -mcpu compiler options on arm

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopuzzles: Add -Wno-error=format-overflow if compiler supports it
Khem Raj [Fri, 21 Apr 2017 19:23:07 +0000 (12:23 -0700)]
puzzles: Add -Wno-error=format-overflow if compiler supports it

Fixes build with gcc7 in such a way that it keeps working
with older compilers who dont support -Wno-error=format-overflow=
option

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agognu-efi: Fix build with gcc7
Khem Raj [Thu, 20 Apr 2017 18:20:28 +0000 (11:20 -0700)]
gnu-efi: Fix build with gcc7

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogstreamer1.0-libav: Fix build with gcc7
Khem Raj [Thu, 20 Apr 2017 18:20:27 +0000 (11:20 -0700)]
gstreamer1.0-libav: Fix build with gcc7

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomdadm: Backport and make fixes for building with gcc7
Khem Raj [Thu, 20 Apr 2017 02:31:47 +0000 (19:31 -0700)]
mdadm: Backport and make fixes for building with gcc7

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoaspell: Fix build with gcc7
Khem Raj [Thu, 20 Apr 2017 02:31:46 +0000 (19:31 -0700)]
aspell: Fix build with gcc7

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopax: Fix build with gcc7
Khem Raj [Thu, 20 Apr 2017 02:31:45 +0000 (19:31 -0700)]
pax: Fix build with gcc7

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibtirpc: Enable des APIs for musl
Khem Raj [Tue, 18 Apr 2017 16:40:13 +0000 (09:40 -0700)]
libtirpc: Enable des APIs for musl

Use memset() API instead of __bzero()
Drop the patch removing des_* functions for musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibtirpc: Expose key_secretkey_is_set API
Khem Raj [Wed, 19 Apr 2017 16:45:45 +0000 (09:45 -0700)]
libtirpc: Expose key_secretkey_is_set API

libnsl needs this API

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibidn: Fix build with gcc7
Khem Raj [Wed, 19 Apr 2017 01:58:39 +0000 (18:58 -0700)]
libidn: Fix build with gcc7

Replace a local patch for format warning with the one
that got committed upstream

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agorpcbind: Remove uneeded patches
Khem Raj [Wed, 19 Apr 2017 01:58:38 +0000 (18:58 -0700)]
rpcbind: Remove uneeded patches

We were carrying patches which are no longer
needed when building rpcbind for musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibtirpc: Backport fixes from 1.0.2rc3
Khem Raj [Wed, 19 Apr 2017 01:58:35 +0000 (18:58 -0700)]
libtirpc: Backport fixes from 1.0.2rc3

These fixes are needed for it to work with gcc7

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibsolv: switch on ENABLE_COMPLEX_DEPS
Alexander Kanavin [Fri, 21 Apr 2017 12:39:55 +0000 (15:39 +0300)]
libsolv: switch on ENABLE_COMPLEX_DEPS

This is required by recent versions of libdnf.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoGNU_MIRROR: switch from ftp to https
Maxin B. John [Tue, 9 May 2017 16:19:22 +0000 (19:19 +0300)]
GNU_MIRROR: switch from ftp to https

Based on the same reason behind DEBIAN's switch from ftp:
https://www.debian.org/News/2017/20170425

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoDEBIAN_MIRROR: switch from ftp to http
Maxin B. John [Tue, 9 May 2017 16:19:21 +0000 (19:19 +0300)]
DEBIAN_MIRROR: switch from ftp to http

All public-facing debian.org FTP services will be shut down on November 1, 2017
The mirrors should just be accessed using HTTP instead.

https://www.debian.org/News/2017/20170425

Fixes [YOCTO #11413]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agouseradd: remove preinst script referring to recipe sysroot
Maxin B. John [Tue, 9 May 2017 16:19:20 +0000 (19:19 +0300)]
useradd: remove preinst script referring to recipe sysroot

Remove recipe-specific-sysroot details from the preinst scripts
generated by useradd.bbclass.

This was added to match the default from bitbake.conf. Unlike the default
case, the dependencies used by useradd mean that a default passwd/group
file is always present. This means we don't need the native sysroot fallback.

Fixes [YOCTO #11460]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agouseradd.bbclass: Handle COMPONENTS_DIR when restoring state
Peter Kjellerstedt [Wed, 3 May 2017 21:13:39 +0000 (23:13 +0200)]
useradd.bbclass: Handle COMPONENTS_DIR when restoring state

The export of PSEUDO in useradd_sysroot() contains references to
${COMPONENTS_DIR}. These need to be handled when restoring
postinst-useradd-${PN} from the sstate cache.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake.conf: Add COMPONENTS_DIR for ${STAGING_DIR}-components
Peter Kjellerstedt [Wed, 3 May 2017 21:13:38 +0000 (23:13 +0200)]
bitbake.conf: Add COMPONENTS_DIR for ${STAGING_DIR}-components

The path to where to install and find the sysroot components is used
in many places. This warrants it to get its own variable.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild-appliance-image: Update to master head revision 2017-04 2017-04-pyro yocto-2.3
Richard Purdie [Mon, 1 May 2017 07:56:43 +0000 (08:56 +0100)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosstate.bbclass, staging.bbclass: Handle HOSTTOOLS_DIR when restoring state
Peter Kjellerstedt [Fri, 28 Apr 2017 15:01:02 +0000 (17:01 +0200)]
sstate.bbclass, staging.bbclass: Handle HOSTTOOLS_DIR when restoring state

Paths to host tools that have been copied to ${HOSTTOOLS_DIR} may end
up in the sstate cache. They thus need to be corrected when restoring
from the sstate cache.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake.conf: Add HOSTTOOLS_DIR for ${TMPDIR}/hosttools
Peter Kjellerstedt [Fri, 28 Apr 2017 15:01:01 +0000 (17:01 +0200)]
bitbake.conf: Add HOSTTOOLS_DIR for ${TMPDIR}/hosttools

The path to where to install and find the tools copied from the host
environment is already used in a couple of places. This warrants it to
get its own variable.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Sat, 29 Apr 2017 10:17:55 +0000 (11:17 +0100)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Sat, 29 Apr 2017 10:17:31 +0000 (11:17 +0100)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage_deb.bbclass: Avoid writing empty custom fields
Andreas Oberritter [Fri, 28 Apr 2017 18:38:22 +0000 (20:38 +0200)]
package_deb.bbclass: Avoid writing empty custom fields

Avoids parser errors if PACKAGE_ADD_METADATA_DEB is set to an
empty value.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage_deb.bbclass: Fix multi-line package descriptions
Andreas Oberritter [Fri, 28 Apr 2017 18:38:21 +0000 (20:38 +0200)]
package_deb.bbclass: Fix multi-line package descriptions

In deb control files, each line of a long description starts with
a single space. Empty lines are represented by a single space
followed by a single full stop character.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobusybox: make bash a valid login shell if enabled
Andreas Oberritter [Fri, 28 Apr 2017 18:31:29 +0000 (20:31 +0200)]
busybox: make bash a valid login shell if enabled

Add bash to /etc/shells if busybox is built with bash applet anabled
to fix login via dropbear.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogst-player: Disable visualizations as workaround
Jussi Kukkonen [Fri, 28 Apr 2017 11:54:34 +0000 (14:54 +0300)]
gst-player: Disable visualizations as workaround

Audio playback in gtk-play is broken with vaapi because the
visualizations do not work: disable visualizations as workaround.
This should be reverted as soon as [YOCTO #11410] is fixed.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibxml2: CVE-2016-9318
Catalin Enache [Fri, 14 Apr 2017 08:43:32 +0000 (11:43 +0300)]
libxml2: CVE-2016-9318

libxml2 2.9.4 and earlier, as used in XMLSec 1.2.23 and earlier
and other products, does not offer a flag directly indicating that
the current document may be read but other files may not be opened,
which makes it easier for remote attackers to conduct XML External
Entity (XXE) attacks via a crafted document.

Reference:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-9318

Upstream patch:
https://git.gnome.org/browse/libxml2/commit/?id=2304078555896cf1638c628f50326aeef6f0e0d0

Signed-off-by: Catalin Enache <catalin.enache@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoghostscript : CVE-2016-10219, CVE-2016-10220, CVE-2017-5951
Catalin Enache [Fri, 21 Apr 2017 12:04:17 +0000 (15:04 +0300)]
ghostscript : CVE-2016-10219, CVE-2016-10220, CVE-2017-5951

The intersect function in base/gxfill.c in Artifex Software, Inc. Ghostscript
9.20 allows remote attackers to cause a denial of service (divide-by-zero
error and application crash) via a crafted file.

The gs_makewordimagedevice function in base/gsdevmem.c in Artifex Software, Inc.
Ghostscript 9.20 allows remote attackers to cause a denial of service (NULL
pointer dereference and application crash) via a crafted file that is
mishandled in the PDF Transparency module.

The mem_get_bits_rectangle function in base/gdevmem.c in Artifex Software, Inc.
Ghostscript 9.20 allows remote attackers to cause a denial of service (NULL
pointer dereference and application crash) via a crafted file.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-10219
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-10220
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-5951

Upstream patches:
http://git.ghostscript.com/?p=ghostpdl.git;h=4bef1a1d32e29b68855616020dbff574b9cda08f
http://git.ghostscript.com/?p=ghostpdl.git;h=daf85701dab05f17e924a48a81edc9195b4a04e8
http://git.ghostscript.com/?p=ghostpdl.git;h=bfa6b2ecbe48edc69a7d9d22a12419aed25960b8

Signed-off-by: Catalin Enache <catalin.enache@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobind: Security fix CVE-2016-6170
Yi Zhao [Thu, 13 Apr 2017 05:48:13 +0000 (13:48 +0800)]
bind: Security fix CVE-2016-6170

CVE-2016-6170: ISC BIND through 9.9.9-P1, 9.10.x through 9.10.4-P1, and
9.11.x through 9.11.0b1 allows primary DNS servers to cause a denial of
service (secondary DNS server crash) via a large AXFR response, and
possibly allows IXFR servers to cause a denial of service (IXFR client
crash) via a large IXFR response and allows remote authenticated users
to cause a denial of service (primary DNS server crash) via a large
UPDATE message.

External References:
https://nvd.nist.gov/vuln/detail/CVE-2016-6170

Patch from:
https://source.isc.org/cgi-bin/gitweb.cgi?p=bind9.git;a=commit;h=1bbcfe2fc84f57b1e4e075fb3bc2a1dd0a3a851f

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobind: Security fix CVE-2016-8864
Yi Zhao [Thu, 13 Apr 2017 05:48:12 +0000 (13:48 +0800)]
bind: Security fix CVE-2016-8864

CVE-2016-8864: named in ISC BIND 9.x before 9.9.9-P4, 9.10.x before
9.10.4-P4, and 9.11.x before 9.11.0-P1 allows remote attackers to cause
a denial of service (assertion failure and daemon exit) via a DNAME
record in the answer section of a response to a recursive query,
related to db.c and resolver.c.

External References:
https://nvd.nist.gov/vuln/detail/CVE-2016-8864

Patch from:
https://source.isc.org/cgi-bin/gitweb.cgi?p=bind9.git;a=commit;h=c1d0599a246f646d1c22018f8fa09459270a44b8

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolinux-libc-headers: fix upstream version check
Alexander Kanavin [Mon, 24 Apr 2017 13:15:51 +0000 (16:15 +0300)]
linux-libc-headers: fix upstream version check

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibproxy: speed up upstream version check
Alexander Kanavin [Mon, 24 Apr 2017 13:15:49 +0000 (16:15 +0300)]
libproxy: speed up upstream version check

Something in the fetched webpage made the default regex matching really slow.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoboost: fix upstream version check
Alexander Kanavin [Mon, 24 Apr 2017 13:15:48 +0000 (16:15 +0300)]
boost: fix upstream version check

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopython3-iniparse: fix upstream version check
Alexander Kanavin [Fri, 21 Apr 2017 12:40:01 +0000 (15:40 +0300)]
python3-iniparse: fix upstream version check

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoacpica: fix upstream version check
Alexander Kanavin [Fri, 21 Apr 2017 12:40:00 +0000 (15:40 +0300)]
acpica: fix upstream version check

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolsbtest: add option --ignoreos to rpm install command
Dengke Du [Fri, 21 Apr 2017 04:15:53 +0000 (12:15 +0800)]
lsbtest: add option --ignoreos to rpm install command

After change to the rpm4, the rpm packages in lsbtest, such as:

    lsb-setup-4.1.0-1.noarch.rpm
    lsb-dist-checker-5.0.0.1-1.x86_64.rpm
    ......
    lsb-cmdchk-5.0.3-1.x86_64.rpm

When install above rpm packages, the error log appears:

    package lsb-setup-4.1.0-1.noarch is intended for a different operating system
    ......

So we should add option "--ignoreos" to the rpm install command in LSB_Test.sh
in ./meta/recipes-extended/lsb/lsbtest directory. In this way we can make sure
the correct installation of those rpm packages.

The YOCTO bug #11224 didn't create logs, this is because the above test rpm
packages didn't install.

[YOCTO #11224]

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agorpm: properly relocate additional native tools
Alexander Kanavin [Fri, 21 Apr 2017 08:55:32 +0000 (11:55 +0300)]
rpm: properly relocate additional native tools

These tools are not currently used for anything, but we should
still provide working versions of them.

[YOCTO #11400]

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibcap: drop obsolete attr PACKAGECONFIG option and libattr dependency
Andre McCurdy [Thu, 20 Apr 2017 23:28:02 +0000 (16:28 -0700)]
libcap: drop obsolete attr PACKAGECONFIG option and libattr dependency

In the 2.25 release, libcap dropped its dependency on an external
libattr library:

  https://git.kernel.org/pub/scm/linux/kernel/git/morgan/libcap.git/commit/?id=85f38a573fc47472ab792e813b6f6b6f0b1df112

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocmake.bbclass: use weakest ??= assignment for default OECMAKE_SOURCEPATH
Andre McCurdy [Thu, 27 Apr 2017 23:50:29 +0000 (16:50 -0700)]
cmake.bbclass: use weakest ??= assignment for default OECMAKE_SOURCEPATH

Make it slightly easier to support situations where the default path
needs to be over-ridden more than once.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocmake.bbclass: Do not use bitbake variable syntax for shell variables
Peter Kjellerstedt [Wed, 19 Apr 2017 16:57:09 +0000 (18:57 +0200)]
cmake.bbclass: Do not use bitbake variable syntax for shell variables

Using bitbake variable syntax (i.e., ${FOO}) for shell variables is
bad practice. First of all it is confusing, but more importantly it
can lead to weird problems if someone actually defines a bitbake
variable with the same name as the shell variable.

Also use lower case for local shell variables.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agorunqemu: support virtio drive type
Patrick Ohly [Thu, 13 Apr 2017 20:32:51 +0000 (22:32 +0200)]
runqemu: support virtio drive type

Setting QB_DRIVE_TYPE=/dev/vd selects virtio without triggering any
warnings. Previously, that was only possible by setting an unknown
value and relying on the fallback to virtio, which caused some
warnings to be printed.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobitbake.conf: Add python2 to HOSTTOOLS
Diego Rondini [Thu, 27 Apr 2017 13:28:40 +0000 (13:28 +0000)]
bitbake.conf: Add python2 to HOSTTOOLS

Add python2 to HOSTTOOLS as, according to
https://www.python.org/dev/peps/pep-0394/, the command "python2" should be the
one used in scripts that are not yet ported to Python 3.

Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake.conf: Add pr to list of hosttools
Khem Raj [Thu, 20 Apr 2017 18:20:26 +0000 (11:20 -0700)]
bitbake.conf: Add pr to list of hosttools

pr is used by gstreamer1.0-libav during configure

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodevtool: Avoid touch sstates when cleaning linux-yocto environment
Jose Perez Carranza [Wed, 26 Apr 2017 05:54:00 +0000 (05:54 +0000)]
devtool: Avoid touch sstates when cleaning linux-yocto environment

sstates are cleaned when ruining  test_devtool_virtual_kernel_modify to
have a clean environment but this is affecting eSDK test that are
dependent of those sstates, hence “cleansstate” is replaced for
“clean”.

[YOCTO #11300]

Signed-off-by: Jose Perez Carranza <jose.perez.carranza@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>