]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agouninative: don't try to relocate static binaries
Ross Burton [Thu, 24 Mar 2016 15:43:48 +0000 (15:43 +0000)]
uninative: don't try to relocate static binaries

patchelf will understandably error out if there isn't a .interp section to
relocate, so don't try to relocate static binaries.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/oe/qa: add method to check if static or dynamic linked
Ross Burton [Thu, 24 Mar 2016 15:43:47 +0000 (15:43 +0000)]
lib/oe/qa: add method to check if static or dynamic linked

It's useful to know if a binary is statically or dynamically linked, so add a
method to determine this.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouninative: ensure patchelf errors are visible
Ross Burton [Thu, 24 Mar 2016 15:43:46 +0000 (15:43 +0000)]
uninative: ensure patchelf errors are visible

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibmad: remove use of obsolete _thumb over-ride
Andre McCurdy [Wed, 23 Mar 2016 18:00:25 +0000 (11:00 -0700)]
libmad: remove use of obsolete _thumb over-ride

The _thumb over-ride was first used by the libmad recipe in 2006 [1],
but should have been removed in 2007, when the libmad recipe dropped
support for building for thumb [2].

 [1] http://git.openembedded.org/openembedded-core/commit/?id=f1f8c5a6a7234a7b618f98efbb3d28e414890fa9
 [2] http://git.openembedded.org/openembedded-core/commit/?id=1aa801ac7b991790dce9cb2618d0816700e52a16

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoperf: package python modules into perf-python
Bruce Ashfield [Wed, 23 Mar 2016 15:09:04 +0000 (11:09 -0400)]
perf: package python modules into perf-python

The scripts that are part of perf require python and supporting modules.
The existing perf-pyton dependency only brought in core python, which
left us unable to actually execute the scripts on target.

With this additional runtime dependency, we can now execte the sample
analysis scripts when perf-scripting is availble.

This is a partial fix for [YOCTO #9069], since there are still scripts
looking for non-existent modules, and those will be dealt with in
future releases.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoperf: fix python scripts QA errors
Bruce Ashfield [Wed, 23 Mar 2016 15:09:03 +0000 (11:09 -0400)]
perf: fix python scripts QA errors

Two QA warnings were being generated from perf, due to the location of
python scripts changing in the kernel build:

WARNING: perf-1.0-r9 do_package_qa: QA Issue:
  /usr/libexec/perf-core/scripts/python/call-graph-from-postgresql.py contained
  in package perf-python requires /usr/bin/python2, but no providers found in RDEPENDS_perf-python? [file-rdeps]

WARNING: QA Issue: /usr/libexec/perf-core/tests/attr.py_perf contained in package
  perf requires /usr/bin/python, but no providers found in its RDEPENDS [file-rdeps]

By adding libexec dir to both the tests and scripts packaging, we get the
appropriate RDEPENDS on the packages that actually contain the python scripts
(without making perf-core depend on python).

We also tweak any python scripts to use '/usr/bin/env python', rather than a
version specific python, since it won't be provided and generate a QA error.

[YOCTO #8991]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/4.1: MFD backports
Bruce Ashfield [Wed, 23 Mar 2016 15:09:02 +0000 (11:09 -0400)]
linux-yocto/4.1: MFD backports

Integrating the following series of MFD backports:

  e9b00f938e99 driver core: platform: Add support for built-in device properties
  a63ef2c57b90 mfd: core: propagate device properties to sub devices drivers
  a7e1dabefaf8 klist: implement klist_prev()
  2da2857b20b9 PM / QoS: Make it possible to expose device latency tolerance to userspace
  36b2a287373a driver core: implement device_for_each_child_reverse()
  a6c7cb3da8e7 mfd: intel-lpss: Pass HSUART configuration via properties
  1f0da901349b mfd: intel-lpss: Pass SDA hold time to I2C host controller driver
  391ec7713003 mfd: intel-lpss: Add support for passing device properties
  fe9fb6da9164 mfd: lpss: Add Broxton ACPI IDs
  702a4f1f13fd mfd: lpss: Add Intel Broxton PCI IDs
  982bcf977be4 mfd: intel-lpss: Use writeq() helper
  d35dbf0dbaa7 mfd: Add support for Intel Sunrisepoint LPSS devices

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/4.1: device property : Backport device property patches
Bruce Ashfield [Wed, 23 Mar 2016 15:09:01 +0000 (11:09 -0400)]
linux-yocto/4.1: device property : Backport device property patches

Integrating the following mainline commits for Apollo Lake/Broxton support:

  568c4910b938 device property: always check for fwnode type
  bd2ac1821e91 device property: fallback to pset when gettng one string
  44a76bd61eed ACPI / property: Extend fwnode_property_* to data-only subnodes
  76f301877fab ACPI / property: Add support for data-only subnodes
  95010db1e8f9 ACPI / property: Add routine for extraction of _DSD properties
  3d257abeae4d device property: Return -ENXIO if there is no suitable FW interface
  15f7db3cd1d0 device property: attach 'else if' to the proper 'if'
  effb3f07966e ACPI / OF: Rename of_node() and acpi_node() to to_of_node() and to_acpi_node()
  30aa0ae9ebf0 ACPI / scan: Parse _CCA and setup device coherency
  c8b4218d1523 ACPI / property: Define a symbol for PRP0001
  3d20c5d27e99 ACPI / property: Refine consistency check for PRP0001
  f753cbe35057 device property: avoid allocations of 0 length
  6985a3d56431 device property: the secondary fwnode needs to depend on the primary
  6c23f8de37ff device property: add spaces to PROPERTY_ENTRY_STRING macro
  216b251c170c include/linux/property.h: fix build issues with gcc-4.4.4
  c579da0b4812 device property: Take a copy of the property set
  e0c7ce6ec1eb device property: Fallback to secondary fwnode if primary misses the property
  a657577af2af device property: improve readability of macros
  599f18f62daf device property: Add fwnode_property_match_string()
  03599b274370 device property: helper macros for property entry creation
  5247e6af02d6 device property: keep single value inplace
  c12af01cf0d4 device property: refactor built-in properties support
  1390c21efa11 device property: rename helper functions

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto: ktypes/standard: Add tmpfs-posix-acl feature
Bruce Ashfield [Wed, 23 Mar 2016 15:09:00 +0000 (11:09 -0400)]
linux-yocto: ktypes/standard: Add tmpfs-posix-acl feature

This enables the CONFIG_TMPFS_POSIX_ACL, which is wanted by things like
systemd. We also explicitly enable the features's dependencies and
options selected by the feature for clarity.

[YOCTO #9269]

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-firmware: Break out some additional firmware
Saul Wold [Wed, 23 Mar 2016 21:36:24 +0000 (14:36 -0700)]
linux-firmware: Break out some additional firmware

This breaks out new firmware from the iwlwifi firmware along with the i915 graphics firmware.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-firmware: Clean-up and sync license data
Saul Wold [Wed, 23 Mar 2016 14:52:14 +0000 (07:52 -0700)]
linux-firmware: Clean-up and sync license data

This re-orders the licenses to be alpha by Firmware-* license name, not by LICEN*E name.
This adds licneses that had not been in the list before.

     Firmware-adsp_sst
     Firmware-amdgpu
     Firmware-atmel
     Firmware-cavium
     Firmware-e100
     Firmware-hfi1_firmware
     Firmware-i915
     Firmware-kaweth
     Firmware-moxa
     Firmware-nvidia
     Firmware-qla1280
     Firmware-ti-keystone

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-firmware: Collapse iwlwifi firmware blobs for 7260 and 7265
Saul Wold [Wed, 23 Mar 2016 14:52:13 +0000 (07:52 -0700)]
linux-firmware: Collapse iwlwifi firmware blobs for 7260 and 7265

There are newer blobs that are not include since we currently package
blobs independtly, this will ensure that future updates are correctly
added to the packages.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-firmware: Update to latest HEAD
Saul Wold [Wed, 23 Mar 2016 14:52:12 +0000 (07:52 -0700)]
linux-firmware: Update to latest HEAD

5f8ca0c Sherry Hurwitz linux-firmware: Update AMD microcode patch firmware
f6cd3d8 Kyle McMartin Merge branch 'master' of git://people.freedesktop.org/~vivijim/linux-firmware-i915
fa9baa0 Kyle McMartin Merge branch 'skl' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/firmware
0a0c976 Tom O'Rourke linux-firmware/i915: Major GuC release for Skylake - ver 6.1
780f4ee Vinod Koul linux-firmware: intel: Update Skylake audio firmware
deb1d83 Kyle McMartin Merge branch 'master' of git://git.ti.com/wilink8-wlan/linux-firmware
9be9ff2 Emmanuel Grumbach iwlwifi: add -21.ucode to WHENCE
a9ad059 Kyle McMartin Merge tag 'iwlwifi-fw-2016-03-09' of git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/linux-firmware
69a250d Yaniv Machani wl18xx: update firmware file
a2c354e Emmanuel Grumbach iwlwifi: add new -21.ucode for 7265D, 8260, 3168 and 8265 devices
8d1fd61 Alexandre Courbot nvidia: Add GM20B signed firmware
c4f6a36 Alexandre Courbot nvidia: Add GM200, GM204 and GM206 signed firmware
f66ecca John Fleck Update Intel OPA hfi1 firmware
b2deae5 Dmitry Tunin linux-firmware: Add AR3012 firmware
4f11252 Kyle McMartin Merge branch 'master' of git://people.freedesktop.org/~vivijim/linux-firmware-i915
2394c7d Kyle McMartin Merge branch 'skl' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/firmware
c44bc5b Rodrigo Vivi linux-firmware: New minor DMC release for Skylake - ver1_26
f799665 Vinod Koul linux-firmware: intel: Update Skylake audio firmware
91d5dd1 Jes Sorensen rtlwifi: v19 firmware for rtl8192eu
7b1a5cb Tedd Ho-Jeong An linux-firmware: Update firmware patch for Intel Bluetooth 7260 (B3/B4)
ede3068 Tedd Ho-Jeong An linux-firmware: Update firmware patch for Intel Bluetooth 7260 (B5/B6)
4592e37 Tedd Ho-Jeong An linux-firmware: Update firmware patch for Intel Bluetooth 7265 (C0/D0)
c713cb2 Vinod Koul linux-firmware: intel: add symbolic link and file versions

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoarchiver.bbclass: Fix tar name for git repositories
Mariano Lopez [Tue, 22 Mar 2016 14:04:03 +0000 (14:04 +0000)]
archiver.bbclass: Fix tar name for git repositories

When archiving the original source, the git repositories have the name as
they are in the $DL_DIR plus the source revision; i.e.
"git.yoctoproject.org.linux-yocto-4.4.git.89419d8b90_dadb436904.tar.gz".
This change set the tar name to $PF.tar.gz instead, to have consistency with
the others archives created by the class.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoarchiver.bbclass: Fix gcc-source corner case
Mariano Lopez [Tue, 22 Mar 2016 14:04:02 +0000 (14:04 +0000)]
archiver.bbclass: Fix gcc-source corner case

Bitbake couldn't add the task ar_configured when
trying to archive the configured source for
gcc-source-${PV} recipes. This is because the task
depended in the do_configure and this task doesn't
exist for gcc-source.

This fix allows to archive configured gcc-source recipe.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoarchiver.bbclass: Fix use of ARCHIVER_WORKDIR and ARCHIVER_OUTDIR
Mariano Lopez [Tue, 22 Mar 2016 14:04:01 +0000 (14:04 +0000)]
archiver.bbclass: Fix use of ARCHIVER_WORKDIR and ARCHIVER_OUTDIR

Currently do_unpack_and_patch() and do_ar_configured() are using
the ARCHIVER_OUTDIR as the ARCHIVER_WORKDIR, this lead to have
duplicated files inside the tars when using the archiver class
for patched and configured source.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoarchiver.bbclass: Don't expand python functions in dumpdata
Mariano Lopez [Tue, 22 Mar 2016 14:04:00 +0000 (14:04 +0000)]
archiver.bbclass: Don't expand python functions in dumpdata

Currently the dumpdata task expands python data in the datastore, in
some functions this causes a silent error and the task will fail.

The change also rewrite the function to make a bit clearer.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobind: /var/cache/bind
Joe Slater [Tue, 22 Mar 2016 20:36:19 +0000 (13:36 -0700)]
bind: /var/cache/bind

Change the ownership of /var/cache/bind to bind rather than root.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosysvinit: downgrade ALTERNATIVE_PRIORITY[mountpoint]
Richard Tollerton [Tue, 22 Mar 2016 14:49:03 +0000 (16:49 +0200)]
sysvinit: downgrade ALTERNATIVE_PRIORITY[mountpoint]

sysvinit is objectively less maintained than util-linux or busybox, each
of which may supply its own mountpoint implementation. Adjust the
ALTERNATIVE_PRIORITY to select the sysvinit implementation as the last
resort.

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoutil-linux: split out util-linux-mountpoint
Richard Tollerton [Tue, 22 Mar 2016 14:49:01 +0000 (16:49 +0200)]
util-linux: split out util-linux-mountpoint

Allow mountpoint to be installed separately from the rest of util-linux,
to conserve disk space, and to minimize the impact of switching to/from
this version of mountpoint.

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogconf: fix buildpaths QA issue
Hongxu Jia [Tue, 22 Mar 2016 12:12:44 +0000 (08:12 -0400)]
gconf: fix buildpaths QA issue

The build paths come from debug mode, and GConf is effectively
unmaintained these days anyway. So explicitly disable debug
to fix build paths QA issue.

The minimum still keeps Glib check and assert which can result in
crashes if bad data is passed to the API.

[YOCTO #7058]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopython-pygobject: use Python 2 instead of Python 3
Ross Burton [Tue, 22 Mar 2016 20:53:51 +0000 (20:53 +0000)]
python-pygobject: use Python 2 instead of Python 3

Ideally this would be an option but that means conditional inherits.  For now
Python 2 is clearly the default Python in oe-core so switch to Python 2 instead
of 3.

This stops python3 being pulled inadvertently into builds, and appearing in
images that have ptest-pkgs installed (via dbus-test).

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosanity.bbclass: check host tool dependencies on change in NATIVELSBSTRING
Bill Randle [Tue, 22 Mar 2016 17:23:18 +0000 (10:23 -0700)]
sanity.bbclass: check host tool dependencies on change in NATIVELSBSTRING

When a user upgrades their host distro, it may no longer have all the
required tools installed, but this won't be caught by bitbake resulting
in possible build errors. Rather than check for installed tools on every
startup, use the NATIVELSBSTRING change as indicator to rescan for host
tool dependencies. Store the NATIVELSBSTRING in the sanity_info file.

[YOCTO #8585]

Signed-off-by: Bill Randle <william.c.randle@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibunwind: Fix build with fstack-protector on musl
Khem Raj [Tue, 22 Mar 2016 17:06:07 +0000 (17:06 +0000)]
libunwind: Fix build with fstack-protector on musl

libunwind makery inserts -nostdlib during linking
which fails the build on musl when security flags are enabled
since it remove ssp from linking, so add them explicitly
to SECURITY_LDFLAGS

disable tests for musl targets, tests use obsolete
posix APIs e.g. getcontext

patchout x86_local_resume() on x86, gets a working
linunwind on x86, it seems that it wont work even
in glibc case but lets leave it as it is for glibc
and apply the patch only for musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoltp: Fix build on x86/musl
Khem Raj [Tue, 22 Mar 2016 15:54:23 +0000 (15:54 +0000)]
ltp: Fix build on x86/musl

In last patch it covered out the non-glibc case well
but did not define else case, when __GLIBC__ is not
defined, as a result errors like

| getcpu01.c:107:41: error: use of undeclared identifier 'sys_support'
|         if (((tst_kvercmp(2, 6, 20)) < 0) || !(sys_support)) {

appeared, fixed it with this updated patch

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopackage.bbclass: Treat .node files same as .so when checking what to strip
Brendan Le Foll [Tue, 22 Mar 2016 09:53:34 +0000 (09:53 +0000)]
package.bbclass: Treat .node files same as .so when checking what to strip

Typically in a node/npm compiled modules the module is named .node. This is a
binary module without a wrapper so it can actually be relatively large if
unstripped.

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobootimg.bbclass: only inherit syslinux when pcbios
Robert Yang [Tue, 22 Mar 2016 09:48:21 +0000 (02:48 -0700)]
bootimg.bbclass: only inherit syslinux when pcbios

syslinux.bbclass should not be seen when use efi.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogrub-efi.bbclass: make it can build vm and live together
Robert Yang [Tue, 22 Mar 2016 09:48:20 +0000 (02:48 -0700)]
grub-efi.bbclass: make it can build vm and live together

* Make it can build vm and live (e.g., iso + vmdk) together as we did
  for syslinux.
* GRUBCFG -> GRUB_CFG as other GRUB_FOO vars

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobootimg.bbclass: fix settings for grub-efi.bbclass
Robert Yang [Tue, 22 Mar 2016 09:48:19 +0000 (02:48 -0700)]
bootimg.bbclass: fix settings for grub-efi.bbclass

Fixed:
- Found potential conflicted var LABELS ...
  Set LABELS to "boot install" would build out broken images when build
  vm + live together, use set_live_vm_vars() to fix the problem.

- Use ROOT and LABEL in boot-directdisk.bbclass and image-foo.bbclass,
  they are not only used by syslinux.bbclass, but also grub-efi.bbclass,
  add "SYSLINUX_" prefix would mislead users.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopixz: Fix build on big-endian/musl systems
Khem Raj [Tue, 22 Mar 2016 07:56:17 +0000 (07:56 +0000)]
pixz: Fix build on big-endian/musl systems

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosanity.bbclass cleanup
Bill Randle [Mon, 21 Mar 2016 20:24:33 +0000 (13:24 -0700)]
sanity.bbclass cleanup

Limit search for a version var name to start at the beginning of a line,
otherwise, if the var name is used in a comment, that comment line will
be replaced, rather than the desired assignment line.
Move bblayer update message into function where it's actually updated,
rather than assuming all successful config file update are to the
bblayers.conf file.
Replace a stray tab with spaces for consistency.

[Fixes YOCTO #9318]

Signed-off-by: Bill Randle <william.c.randle@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomatchbox-wm: Update to fix XChangeProperty datatype issue
Jussi Kukkonen [Mon, 21 Mar 2016 19:43:18 +0000 (21:43 +0200)]
matchbox-wm: Update to fix XChangeProperty datatype issue

This brings us to master HEAD and adds a single commit
compared to the previous version:
  8178e70 ewmh: Fix data type of a few XChangeProperty calls

This fixes broken Home-button in matchbox panel on mips64 (and
probably other platforms).

[YOCTO #9284]

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomatchbox-panel-2: Fix Home-button icon load issue
Jussi Kukkonen [Mon, 21 Mar 2016 19:43:17 +0000 (21:43 +0200)]
matchbox-panel-2: Fix Home-button icon load issue

Home (showdesktop) button sometimes did not load the icon because
the active state was never initialized. Backport fix for this issue.

[YOCTO #9026]

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogstreamer1.0: fix introspection support also for git recipes
Alexander Kanavin [Mon, 21 Mar 2016 16:40:09 +0000 (18:40 +0200)]
gstreamer1.0: fix introspection support also for git recipes

This is generally done by moving necessary patches to common
include files, and a few other fixes.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogstreamer1.0-plugins-bad: fix incorrect handling of Cflags in gstreamer-gl.pc file
Alexander Kanavin [Mon, 21 Mar 2016 16:40:08 +0000 (18:40 +0200)]
gstreamer1.0-plugins-bad: fix incorrect handling of Cflags in gstreamer-gl.pc file

Cflags had GL_CFLAGS appended, which contained full sysroot path to libdrm include;
generally such dependencies should be handled by pkgconfig's Requires facility.
It's unlikely that this .pc file is used by anything, but it was causing a QA error.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agox86-base.inc: suggest the latest kernel
Maxin B. John [Mon, 21 Mar 2016 15:57:08 +0000 (17:57 +0200)]
x86-base.inc: suggest the latest kernel

Use latest 4.x kernel instead of 3.x version

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoat: fix configure option with/without-selinux
Wenzong Fan [Mon, 21 Mar 2016 02:10:19 +0000 (22:10 -0400)]
at: fix configure option with/without-selinux

without-selinux doesn't work since WITH_SELINUX is always be defined no
matter which option is given: with-selinux, without-selinux.

This causes build errors if '--without-selinux' is used and libselinux
is not buildable in project:

  atd.c:87:29: fatal error: selinux/selinux.h: No such file or directory

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agono-static-libs: just like target and native, nativesk-libcap doesn't like unrecognise...
Ross Burton [Wed, 16 Mar 2016 14:01:42 +0000 (14:01 +0000)]
no-static-libs: just like target and native, nativesk-libcap doesn't like unrecognised options

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolinux-firmware: package firmware for Marvell 88W8688
Jens Rehsack [Wed, 16 Mar 2016 09:35:18 +0000 (10:35 +0100)]
linux-firmware: package firmware for Marvell 88W8688

According to error messages from guruplug

[   35.826441] btmrvl_sdio mmc0:0001:2: Direct firmware load for mrvl/sd8688_helper.bin failed with error -2
[   35.903291] Bluetooth: request_firmware(helper) failed, error code = -2
[   35.909942] Bluetooth: Failed to download helper!
[   36.052820] Bluetooth: Downloading firmware failed!
...
[  764.422739] libertas_sdio: Libertas SDIO driver
[  764.438213] libertas_sdio: Copyright Pierre Ossman
[  764.461186] libertas_sdio mmc0:0001:1: Direct firmware load for libertas/sd8688_helper.bin failed with error -2
[  764.488234] libertas_sdio mmc0:0001:1: Direct firmware load for sd8688_helper.bin failed with error -2
[  764.507382] libertas_sdio: failed to find firmware (-2)

and http://wiki.beyondlogic.org/index.php?title=GuruPlug_Libertas_SD8688,
package the firmware files for Marvell 88W8688, too.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotune-arm926ejs: Handle missing thumb suffix
Jens Rehsack [Wed, 16 Mar 2016 09:34:22 +0000 (10:34 +0100)]
tune-arm926ejs: Handle missing thumb suffix

When enabling tune for arm926ejs, poky optionally appends suffixes for
thumb and dsp support. Since sometimes arm926ejse (ARM code) and sometime
arm926ejste (thumb code) is used in PACKAGE_ARCH, allow both.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agonativesdk-coreutils: a lot of warnings fixed
Dengke Du [Wed, 16 Mar 2016 02:49:13 +0000 (22:49 -0400)]
nativesdk-coreutils: a lot of warnings fixed

When we create nativesdk-coreutils, a lot of warnings appear,it
show many files can't find. Because in the coreutils recipe, it
didn't contain the do_install for the nativesdk, so when the
alternative system check the files in the following process, it
can't find the files. So we should add the do_install for the
nativesdk, change the function do_install_append_class-target() to
do_install_append() in the file:
meta/recipes-core/coreutils/coreutils_8.25.bb
in this way, the alternative system can find the files, the warnings
disappear.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorunqemu-internal: split the code into functions
Robert Yang [Thu, 10 Mar 2016 02:09:19 +0000 (18:09 -0800)]
runqemu-internal: split the code into functions

Use config_<machine> to split the code into separate functions, so that
different machines won't affect each other, and they will have a better
structure.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agorunqemu-internal: cleanup unsed code
Robert Yang [Thu, 3 Mar 2016 03:37:45 +0000 (19:37 -0800)]
runqemu-internal: cleanup unsed code

* remove akita and spitz related code
  They are not supported by runqemu anymore:
  $ runqemu spitz
  Error: unable to classify arg [spitz]
  So remove related code.

* Remove checking of 256M for qemuarm, qemu can check it, for example:
  $ runqemu qemuarm qemuparams="-m 1024"
  [snip]
  qemu: Too much memory for this machine: 1024 MB, maximum 256 MB
  [snip]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agorunqemu: simplify checking for iso and ramfs
Robert Yang [Thu, 3 Mar 2016 01:50:05 +0000 (17:50 -0800)]
runqemu: simplify checking for iso and ramfs

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agorunqemu: add support for qcow2 and vdi
Robert Yang [Wed, 2 Mar 2016 08:45:04 +0000 (00:45 -0800)]
runqemu: add support for qcow2 and vdi

[YOCTO #9168]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agorunqemu: remove ISO and RAMFS from help text
Robert Yang [Wed, 2 Mar 2016 09:01:23 +0000 (01:01 -0800)]
runqemu: remove ISO and RAMFS from help text

They don't work, and the script can check the type correctly.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agorunqemu: simplify the checking for vm images
Robert Yang [Wed, 2 Mar 2016 07:40:40 +0000 (23:40 -0800)]
runqemu: simplify the checking for vm images

* So that we can add more image support easliy.
* I think that wic should be vm images.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agorunqemu: fix ROOTFS for vmdk
Robert Yang [Fri, 26 Feb 2016 02:06:26 +0000 (18:06 -0800)]
runqemu: fix ROOTFS for vmdk

* Make it can boot scsi and virtio block drive such as root=/dev/sdX and
  /dev/vdX.

* Drop VM from help info, id doesn't work, and the script can check
  whether it is a vm disk or not.

* Make it can be run by:
  $ runqemu tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.vmdk
  or:
  $ runqemu qemux86-64 vmdk

[YOCTO #9170]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agopython(3): Disable tkinter
Martin Jansa [Mon, 21 Mar 2016 10:01:28 +0000 (11:01 +0100)]
python(3): Disable tkinter

* restore changes from:
  http://git.openembedded.org/openembedded-core/commit/?id=53ae544cfdac22c82af452b8c7ebe6664296bd9b
* which were shamelessly removed in upgrade to 2.7.9:
  http://git.openembedded.org/openembedded-core/commit/?id=d4ad95f0d5f08891637c644e85b09da9c4585059
  and then spread to python3 as well
* fixes following issues reported by test-dependencies
  WARN: python3: python3-tkinter rdepends on glibc, but it isn't a build dependency?
  WARN: python3: python3-tkinter rdepends on libpython3, but it isn't a build dependency?
  WARN: python3: python3-tkinter rdepends on tcl-lib, but it isn't a build dependency?

  WARN: python: python-tkinter rdepends on glibc, but it isn't a build dependency?
  WARN: python: python-tkinter rdepends on libpython2, but it isn't a build dependency?
  WARN: python: python-tkinter rdepends on tcl-lib, but it isn't a build dependency?

  and following QA warnings in normal builds:
  python-2.7.11: python-tkinter rdepends on tcl-lib, but it isn't a build dependency, missing tcl in DEPENDS or PACKAGECONFIG? [build-deps]
  python-2.7.11: /usr/lib/python2.7/lib-dynload/_tkinter.so contained in package python-tkinter requires libtk8.6.so, but no providers found in RDEPENDS_python-tkinter? [file-rdeps]
  python3-3.5.1: python3-tkinter rdepends on tcl-lib, but it isn't a build dependency, missing tcl in DEPENDS or PACKAGECONFIG? [build-deps]
  python3-3.5.1: /usr/lib/python3.5/lib-dynload/_tkinter.cpython-35m-arm-linux-gnueabi.so contained in package python3-tkinter requires libtk8.6.so, but no providers found in RDEPENDS_python3-tkinter? [file-rdeps]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoselftest/signing.py: RPM_GPG_PASSPHRASE_FILE -> RPM_GPG_PASSPHRASE
Robert Yang [Mon, 21 Mar 2016 09:25:51 +0000 (02:25 -0700)]
selftest/signing.py: RPM_GPG_PASSPHRASE_FILE -> RPM_GPG_PASSPHRASE

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogpg_sign.py: get rid of pexpect
Robert Yang [Mon, 21 Mar 2016 09:25:50 +0000 (02:25 -0700)]
gpg_sign.py: get rid of pexpect

The python-expect is not installed on the distro such as Ubuntu by
default, and we can get rid of it.

Use RPM_GPG_PASSPHRASE to replace of RPM_GPG_PASSPHRASE_FILE which is
more straightforward.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorpm: check _gpg_passphrase before ask for input
Robert Yang [Mon, 21 Mar 2016 09:25:49 +0000 (02:25 -0700)]
rpm: check _gpg_passphrase before ask for input

rpm always asked for pass phrasae when add signature, which made it
can't work non-interactively, this patch fix the problem. It will work
non-interactively if _gpg_passphrase is defined, and work as before if
not.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-publish-sdk: fix remote publishing
Paul Eggleton [Mon, 21 Mar 2016 05:14:08 +0000 (18:14 +1300)]
oe-publish-sdk: fix remote publishing

A typo in the command prevented the last part of the publish from
succeeding.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-publish-sdk: improve help output slightly
Paul Eggleton [Mon, 21 Mar 2016 05:14:07 +0000 (18:14 +1300)]
oe-publish-sdk: improve help output slightly

This was just copy-and-pasted from devtool - set a reasonable
description and tweak the sdk parameter help text.

Also add a copyright statement and drop the opening comment describing
the command-line syntax that duplicated the help output (with at least
one mistake in it).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-publish-sdk: drop SDK installer file from published output
Paul Eggleton [Mon, 21 Mar 2016 05:14:06 +0000 (18:14 +1300)]
oe-publish-sdk: drop SDK installer file from published output

We don't really need the SDK installer in the published output, for two
reasons:

1) The directory produced is for the consumption of devtool sdk-update,
   and the installer isn't used by that at all
2) It wouldn't really make sense to point users at the update directory
   to download the SDK installer because it contains a bunch of things
   that aren't meant for manual download, so it wouldn't be very tidy.

Leaving the file present can mislead you into thinking the opposite of
both of the above.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: add: create git repository if URL specified as positional argument
Paul Eggleton [Mon, 21 Mar 2016 05:14:05 +0000 (18:14 +1300)]
devtool: add: create git repository if URL specified as positional argument

When we add from a fetched URL we are supposed to turn the resulting
source tree into a git repository (if it isn't already one). However, we
were using the older deprecated option name here instead of the
positional argument, so "devtool add -f <url>" resulted in the repo
being created but "devtool add <url>" didn't, which was wrong.

Also update the oe-selftest tests to check that this worked.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: add: delete externalsrc files on npm recipe do_install
Paul Eggleton [Mon, 21 Mar 2016 05:14:04 +0000 (18:14 +1300)]
devtool: add: delete externalsrc files on npm recipe do_install

The npm class just installs whatever is in ${S}; if you're using
externalsrc in conjunction with it the symlinks (oe-workdir and oe-logs
by default) plus singletask.lock will end up in the final package, which
isn't really right. Introduce a variable so we know the path the files
will be installed into within npm.bbclass, and append to do_install
within the workspace bbappend to delete the files.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: configure-help: fix error if do_configure not already run
Paul Eggleton [Mon, 21 Mar 2016 05:14:03 +0000 (18:14 +1300)]
devtool: configure-help: fix error if do_configure not already run

The code here for running do_configure if it hadn't already been run was
using the wrong string substitution parameters; fix it and test it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake.conf: whitelist proxy variables in config hash
Paul Eggleton [Mon, 21 Mar 2016 05:14:02 +0000 (18:14 +1300)]
bitbake.conf: whitelist proxy variables in config hash

We don't need these variables incorporated in the config hash (i.e. we
don't need to reparse if they change).

This fixes an issue with the extensible SDK where the cache generated
at installation time not to be used afterwards due to the way we're
allowing through the proxy variables into the install environment (such
that they get set to "" if not set externally).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/populate_sdk_ext: parse metadata on minimal SDK install
Paul Eggleton [Mon, 21 Mar 2016 05:14:01 +0000 (18:14 +1300)]
classes/populate_sdk_ext: parse metadata on minimal SDK install

Instead of skipping the build system preparation step within the
extensible SDK install process when SDK_EXT_TYPE is "minimal", run
bitbake -p so that the cache is populated ready for the first time
devtool is run.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: sdk-install: add option to allow building from source
Paul Eggleton [Mon, 21 Mar 2016 05:14:00 +0000 (18:14 +1300)]
devtool: sdk-install: add option to allow building from source

By default the sdk-install subcommand expects to restore the requested
items from sstate and fails if it can't. If the user is OK with building
from source, add a -s/--allow-build option to allow them to do that. In
the process, ensure we show the status output while we're installing.

Also add the missing header to the top of the file.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosite.conf.sample: fix reference to oe-git-proxy script
Paul Eggleton [Mon, 21 Mar 2016 05:10:59 +0000 (18:10 +1300)]
site.conf.sample: fix reference to oe-git-proxy script

The name of the script is oe-git-proxy, not oe-git-proxy.sh.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/distutils*: don't hide logs when setup script fails
Paul Eggleton [Mon, 21 Mar 2016 05:10:58 +0000 (18:10 +1300)]
classes/distutils*: don't hide logs when setup script fails

We need to see the output of the setup script in the error message
because what we are having bbfatal print here doesn't completely
describe what went wrong, thus we should use bbfatal_log here and not
bbfatal.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/packagegroup: drop complementary -ptest if ptest not in DISTRO_FEATURES
Paul Eggleton [Mon, 21 Mar 2016 05:10:57 +0000 (18:10 +1300)]
classes/packagegroup: drop complementary -ptest if ptest not in DISTRO_FEATURES

If ptest isn't in DISTRO_FEATURES, there won't be any -ptest packages
and thus no need for the -ptest package for the packagegroup either.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/packagegroup: fix dbg/dev/ptest complementary packages
Paul Eggleton [Mon, 21 Mar 2016 05:10:56 +0000 (18:10 +1300)]
classes/packagegroup: fix dbg/dev/ptest complementary packages

OE-Core commit 8981ed20234c42dc1f5cdef802ebe7214bd55238 (from 2013)
caused a regression where -dbg/-dev/-ptest packages weren't generated
for packagegroups because we weren't setting ALLOW_EMPTY for them.
Break out the code for adding complementary groups to its own
conditional so we can set ALLOW_EMPTY at the same time.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoparselogs: add new whitelist entries to address 4.4.3 issues
Saul Wold [Tue, 22 Mar 2016 08:52:39 +0000 (08:52 +0000)]
parselogs: add new whitelist entries to address 4.4.3 issues

Adds intel-corei7-64 with x86-common, this makes the x86-common
whitelist available for intel-corei7-64 bsp also.

[YOCTO #9179]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-buildenv-internal: Correct the sed expression which updates $PATH
Peter Kjellerstedt [Mon, 21 Mar 2016 11:41:46 +0000 (12:41 +0100)]
oe-buildenv-internal: Correct the sed expression which updates $PATH

Without this, the code that adds paths to $PATH could cause it to end
up with a trailing : which would then cause an error from the sanity
checker.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotzdata: update to 2016b
Armin Kuster [Fri, 18 Mar 2016 21:43:18 +0000 (14:43 -0700)]
tzdata: update to 2016b

updated SRC_URI to http as it seems more stable.

Changes affecting future time stamps

     New zones Europe/Astrakhan and Europe/Ulyanovsk for Astrakhan and
     Ulyanovsk Oblasts, Russia, both of which will switch from +03 to +04 on
     2016-03-27 at 02:00 local time.  They need distinct zones since their
     post-1970 histories disagree.  New zone Asia/Barnaul for Altai Krai and
     Altai Republic, Russia, which will switch from +06 to +07 on the same date
     and local time.  Also, Asia/Sakhalin moves from +10 to +11 on 2016-03-27
     at 02:00.  (Thanks to Alexander Krivenyshev for the heads-up, and to
     Matt Johnson and Stepan Golosunov for followup.)

     As a trial of a new system that needs less information to be made up,
     the new zones use numeric time zone abbreviations like "+04"
     instead of invented abbreviations like "ASTT".

     Haiti will not observe DST in 2016.  (Thanks to Jean Antoine via
     Steffen Thorsen.)

     Palestine's spring-forward transition on 2016-03-26 is at 01:00, not 00:00.
     (Thanks to Hannah Kreitem.) Guess future transitions will be March's last
     Saturday at 01:00, not March's last Friday at 24:00.

Changes affecting past time stamps

     Europe/Chisinau observed DST during 1990, and switched from +04 to
     +03 at 1990-05-06 02:00, instead of switching from +03 to +02.
     (Thanks to Stepan Golosunov.)

     1991 abbreviations in Europe/Samara should be SAMT/SAMST, not
     KUYT/KUYST.  (Thanks to Stepan Golosunov.)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotzcode: update to 2016b
Armin Kuster [Fri, 18 Mar 2016 21:43:17 +0000 (14:43 -0700)]
tzcode: update to 2016b

change SRC_URI http seems more reliable

Changes to code

     tzselect's diagnostics and checking, and checktab.awk's checking,
     have been improved.  (Thanks to J William Piggott.)

     tzcode now builds under MinGW.  (Thanks to Ian Abbott and Esben Haabendal.)

     tzselect now tests Julian-date TZ settings more accurately.
     (Thanks to J William Piggott.)

Changes to commentary

     Comments in zone tables have been improved.  (Thanks to J William Piggott.)

     tzselect again limits its menu comments so that menus fit on a
     24x80 alphanumeric display.

     A new web page tz-how-to.html.  (Thanks to Bill Seymour.)

     In the Theory file, the description of possible time zone abbreviations in
     tzdata has been cleaned up, as the old description was unclear and
     inconsistent.  (Thanks to Alain Mouette for reporting the problem.)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoffmpeg: Remove RSUGGEST=mplayer
Mike Looijmans [Sat, 19 Mar 2016 09:12:50 +0000 (10:12 +0100)]
ffmpeg: Remove RSUGGEST=mplayer

This line causes 'mplayer' to be built unless one explicitly removes it.
There are plenty uses for ffmpeg that don't involve a player, so the
"suggestion" doesn't make sense.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolttng-tools: Remove lttng-ust from PACKAGECONFIG for musl
Khem Raj [Sat, 19 Mar 2016 09:13:42 +0000 (09:13 +0000)]
lttng-tools: Remove lttng-ust from PACKAGECONFIG for musl

Remove lttng-ust from DEPENDS its added by PACKAGECONFIG anyway

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackagegroup: Disable packages not available on musl
Khem Raj [Sat, 19 Mar 2016 09:13:41 +0000 (09:13 +0000)]
packagegroup: Disable packages not available on musl

They otherwise get pulled into world builds via dependencies
even when they are excluded from world globally

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoworld-broken: Add packages broken on musl
Khem Raj [Sat, 19 Mar 2016 09:13:40 +0000 (09:13 +0000)]
world-broken: Add packages broken on musl

These 14 packages are failing aross all architectures
on musl targets.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agositeinfo: Move apr configure cache to common-linux
Khem Raj [Sat, 19 Mar 2016 09:13:39 +0000 (09:13 +0000)]
siteinfo: Move apr configure cache to common-linux

There are variables which are used in all target specific
sitefiles. Move it to common-linux, so it can be effective
for all targets. Usually they will vary based upon libc
e.g. musl does not have process shared mutexes so apr_cv_process_shared_works
should be no for it. For glibc though it should be yes but
existing behaviour is to use 'no' so its left as it is.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoparselogs: add new whitelist entries to address 4.4.3 issues
Saul Wold [Fri, 18 Mar 2016 17:40:01 +0000 (10:40 -0700)]
parselogs: add new whitelist entries to address 4.4.3 issues

This message appears on older hardware and is a benign warning

[YOCTO #9179]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agou-boot: Upgrade to 2016.03 release
Otavio Salvador [Fri, 18 Mar 2016 18:39:34 +0000 (15:39 -0300)]
u-boot: Upgrade to 2016.03 release

The 2016.03 release has been announced in March 14th. This
incorporates a lot of bug fixes and improvements which are useful for
any new embedded development.

Along with the upgrade of U-Boot and its related recipes, this patch
also drops the AM335x environment fix which has been merged into the
release.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogrub: add -Wno-error=trampolines to native CFLAGS
Bill Randle [Fri, 18 Mar 2016 18:16:27 +0000 (11:16 -0700)]
grub: add -Wno-error=trampolines to native CFLAGS

(Resend as mailer munged previous submission. Also updated comments
to indicate problem is not limited to gcc 5.3.0.)

Adds -Wno-error=trampolines to native CFLAGS prevent multiple compile
errors when using gentoo builf of gcc.

[YOCTO #9201]

Signed-off-by: Bill Randle <william.c.randle@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodhcpd: create dhcpd user for dhcp dameon
Alexandru Moise [Fri, 18 Mar 2016 12:21:25 +0000 (14:21 +0200)]
dhcpd: create dhcpd user for dhcp dameon

This patch enables the functionality for dhcpd service to be started
with dhcp uid and gid.

Test steps:

Step 1: Assign ip to interface
ifconfig eth0 192.168.1.1

Step 2: Edit /etc/dhcp/dhcpd.conf:
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
subnet 192.168.1.0 netmask 255.255.255.0 {
        option broadcast-address 192.168.1.255;
        range 192.168.1.88 192.168.1.88;
        option routers 192.168.1.0;
}

Step 3: Edit /etc/default/dhcp-server:
INTERFACES="eth0"

Step 4: Check uid and gid of running dhcpd process
$ ps -eo user:19,group:19,cmd | grep dhcpd
dhcp        dhcp        /usr/sbin/dhcpd eth0 -user dhcp -group dhcp

Signed-off-by: Alexandru Moise <alexandru.moise@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agovalgrind: fix buildpath QA issue
Hongxu Jia [Fri, 18 Mar 2016 09:01:46 +0000 (05:01 -0400)]
valgrind: fix buildpath QA issue

Pass DEBUG_FLAGS to SELECTED_OPTIMIZATION which fixes build
path issue in DWARF.

[YOCTO #8457]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc-5.3/gcc-4.9:Reuse -fdebug-prefix-map to replace -ffile-prefix-map
Hongxu Jia [Fri, 18 Mar 2016 09:01:44 +0000 (05:01 -0400)]
gcc-5.3/gcc-4.9:Reuse -fdebug-prefix-map to replace -ffile-prefix-map

The oe-core may use external toolchain for compiling,
which did not support -ffile-prefix-map.

Since we use -fdebug-prefix-map to do the same thing,
so we could reuse it to replace -ffile-prefix-map.

[YOCTO #7058]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc-5.3/gcc-4.9:replace build path with target path in __FILE__
Hongxu Jia [Fri, 18 Mar 2016 09:01:43 +0000 (05:01 -0400)]
gcc-5.3/gcc-4.9:replace build path with target path in __FILE__

Similar -fdebug-prefix-map, add option -ffile-prefix-map to map one
directory name (old) to another (new) in __FILE__, __BASE_FILE__and
__builtin_FILE ().

With this patch, it fixes build path issue which caused by __FILE__.
We do not need to use relative path to compile any more.

[YOCTO #7058]

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70268

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooe-buildenv-internal: Some clean up
Peter Kjellerstedt [Tue, 15 Mar 2016 16:58:07 +0000 (17:58 +0100)]
oe-buildenv-internal: Some clean up

* Consistent indentation (four spaces)
* Use [ -z ...] and [ -n ... ] where possible
* Unset temporary variables
* Use $(...) instead of `...`
* Avoid an unnecessary call to expr

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooe-buildenv-internal: Add variables individually to BB_ENV_EXTRAWHITE
Peter Kjellerstedt [Tue, 15 Mar 2016 16:53:31 +0000 (17:53 +0100)]
oe-buildenv-internal: Add variables individually to BB_ENV_EXTRAWHITE

Instead of adding all variables to BB_ENV_EXTRAWHITE as one, treat
them separately and add them one by one as needed.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooe-buildenv-internal: Add paths to $PATH individually
Peter Kjellerstedt [Tue, 15 Mar 2016 16:48:53 +0000 (17:48 +0100)]
oe-buildenv-internal: Add paths to $PATH individually

Instead of assuming that the path to the scripts directory always is
in $PATH directly before the bitbake directory, treat them as separate
paths and add them individually to $PATH.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooe-init-build-env*: Make them actually return failures
Peter Kjellerstedt [Thu, 17 Mar 2016 09:56:28 +0000 (10:56 +0100)]
oe-init-build-env*: Make them actually return failures

If either of the internal scripts (oe-buildenv-internal and
oe-setup-builddir) failed, oe-init-build-env (and
oe-init-build-env-memres) would still return success.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooe-init-build-env*: Remove unnecessary differences between the scripts
Peter Kjellerstedt [Tue, 15 Mar 2016 15:04:11 +0000 (16:04 +0100)]
oe-init-build-env*: Remove unnecessary differences between the scripts

While at it, also fix:
* consistent indentation (four spaces)
* unset temporary variables
* use $(...) instead of `...`

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooe-init-build-env*: Update/correct comment about specifying arguments
Peter Kjellerstedt [Tue, 15 Mar 2016 15:01:53 +0000 (16:01 +0100)]
oe-init-build-env*: Update/correct comment about specifying arguments

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooe-init-build-env*: Allow $OEROOT to be predefined
Peter Kjellerstedt [Tue, 15 Mar 2016 14:41:02 +0000 (15:41 +0100)]
oe-init-build-env*: Allow $OEROOT to be predefined

The current implementation of oe-init-build-env and
oe-init-build-env-memres requires that they are sourced from the
directory that will be known as $OEROOT. This makes it hard to write a
wrapper script with the same name as the original OE script which,
e.g., sources the original OE script from a sub-directory.

With this change, $OEROOT can be predefined when oe-init-build-env or
oe-init-build-env-memres is sourced, allowing the original OE scripts
to be anywhere.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobluez5: allow D-Bus to spawn obexd in systems without systemd
Javier Viguera [Wed, 24 Feb 2016 18:12:21 +0000 (19:12 +0100)]
bluez5: allow D-Bus to spawn obexd in systems without systemd

This includes a proper D-Bus service file for obexd in systems that do
not support systemd.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa: remove RPM 4 self test
Joshua Lock [Mon, 14 Mar 2016 14:37:00 +0000 (14:37 +0000)]
oeqa: remove RPM 4 self test

We're dropping RPM 4 as it's not well maintained, therefore remove
a selftest which tests RPM 4 availability.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolib/package_manager: remove RPM4 support code
Joshua Lock [Fri, 11 Mar 2016 14:07:31 +0000 (14:07 +0000)]
lib/package_manager: remove RPM4 support code

Simplify the RPM code by removing support for RPM 4 now that we've
dropped the RPM 4 recipe.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosmartpm: remove rpm4 patch
Joshua Lock [Fri, 11 Mar 2016 14:07:30 +0000 (14:07 +0000)]
smartpm: remove rpm4 patch

The RPM4 support we added to SMART doesn't appear to work, remove
it as part of the removal of RPM4 from OE-Core.

Refresh the smart-add-for-rpm-ignoresize-check.patch which was
applied after smart-rpm4-fixes.patch and doesn't apply cleanly once
that patch is removed.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorpm: remove RPM 4
Joshua Lock [Fri, 11 Mar 2016 14:07:29 +0000 (14:07 +0000)]
rpm: remove RPM 4

RPM4 support is buggy and incomplete. As we don't have the
resources or interest to maintain it this patch removes it.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogrub: fix documentation rebuilds
Ross Burton [Fri, 18 Mar 2016 14:40:32 +0000 (14:40 +0000)]
grub: fix documentation rebuilds

If the documentation needs to rebuild then it will fail as the syntax isn't
valid with modern texinfo.  Backport a patch from git to fix the syntax.

[ YOCTO #9306 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooe-selftest: Fixed --list-tests-by tag option
Daniel Istrate [Fri, 18 Mar 2016 13:18:09 +0000 (15:18 +0200)]
oe-selftest: Fixed --list-tests-by tag option

Commit 35be67951305950ba797dc2efddbc7d88fc0556a broke the
--list-tests-by tag option.
This patch fixes that.

Having a module in lib/oeqa/selftest named testmodule:
class TestClass(oeSelfTest):
    @tag(feature='tag1')
    def test_func1(self):
        pass
    @tag(feature=('tag1', 'tag2'))
    def test_func2(self):
        pass
    @tag(feature=('tag2', 'tag3'))
    def test_func3(self):
        pass
    @tag(feature=('tag1', 'tag2', 'tag3'))
    def test_func4(self):
        pass

$ oe-selftest --list-tests-by tag tag1
 ID  TAG(s)            NAME        CLASS      MODULE
----  ----------------  ----------  ---------  --------
      tag1              test_func1  TestClass  testmodule
      tag1, tag2        test_func2  TestClass  testmodule
      tag1, tag2, tag3  test_func4  TestClass  testmodule
______________________________
Filtering by:  tag
Looking for:  tag1
Total found:  3

$  oe-selftest --list-tests-by tag tag1 tag2
  ID  TAG(s)            NAME        CLASS      MODULE
----  ----------------  ----------  ---------  --------
      tag1              test_func1  TestClass  testmodule
      tag1, tag2        test_func2  TestClass  testmodule
      tag1, tag2, tag3  test_func4  TestClass  testmodule
      tag2, tag3        test_func3  TestClass  testmodule
______________________________
Filtering by:  tag
Looking for:  tag1, tag2
Total found:  4

$ oe-selftest --list-tests-by tag tag*
  ID  TAG(s)            NAME        CLASS      MODULE
----  ----------------  ----------  ---------  --------
      tag1              test_func1  TestClass  testmodule
      tag1, tag2        test_func2  TestClass  testmodule
      tag1, tag2, tag3  test_func4  TestClass  testmodule
      tag2, tag3        test_func3  TestClass  testmodule
______________________________
Filtering by:  tag
Looking for:  tag*
Total found:  4

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc-runtime.inc: set LICENSE for all gcc-runtime packages
Andre McCurdy [Fri, 18 Mar 2016 13:13:26 +0000 (06:13 -0700)]
gcc-runtime.inc: set LICENSE for all gcc-runtime packages

LICENSE_${PN} doesn't apply to all gcc-runtime packages. Set LICENSE
instead. Without this fix, gcc-runtime packages such as libstdc++ are
excluded from rootfs for builds which blacklist GPLv3.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoParaTypeFFL-1.3: Add license file
Ioan-Adrian Ratiu [Fri, 18 Mar 2016 10:34:19 +0000 (12:34 +0200)]
ParaTypeFFL-1.3: Add license file

The ParaType Free Font License is used by various fonts, out of which a
recipe will be added to meta-openembedded for ttf-pt-sans.

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoexternalsrc: use shared stamp directory if B=S
Markus Lehtonen [Fri, 18 Mar 2016 07:41:51 +0000 (09:41 +0200)]
externalsrc: use shared stamp directory if B=S

We have a common build directory for all target architectures if
externalsrc is used and ${B}=${S}. In this case we also need to have a
common stamp directory. The reason is that e.g. changing MACHINE will
basically "invalidate" the artefacts in ${B} (wrt. to the new MACHINE)
but old stamp files with matching hashes from an earlier build might be
available in the machine-specific stamps directory and tasks would not
be correctly re-run.

Previous attempt in f44f12af346888bdeb3ae01a275cb5dd4396b505 to handle
this correctly was faulty as it threw some spurious warnings and caused
do_configure to be re-run in every build if that would not be necessary.

[YOCTO #8950]
[YOCTO #9237]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorpm: fix error when 'lua' is enabled
Chen Qi [Fri, 18 Mar 2016 05:20:47 +0000 (13:20 +0800)]
rpm: fix error when 'lua' is enabled

Fix the following compilation error when 'lua' is enabled in PACKAGECONFIG.

  | gcc: error: lib21.c: No such file or directory
  | gcc: fatal error: no input files

Modify FILES for dev package to avoid installed-not-shipped error.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomatchbox-keyboard: Update to latest HEAD to fix 64bit issue
Saul Wold [Thu, 17 Mar 2016 20:16:17 +0000 (13:16 -0700)]
matchbox-keyboard: Update to latest HEAD to fix 64bit issue

This brings us to the current HEAD and adds the following patches:

ebc330e Saul Wold matchbox-keyboard-ui.c: Fix int -> long to address 32bit vs 64 bit addressing
8063096 Khem Raj config-parser: Use matching printf format

[YOCTO #9254]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>