]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agobase.bbclass: drop obsolete HOSTTOOLS_WHITELIST_GPL-3.0
Andre McCurdy [Thu, 31 Mar 2016 18:13:06 +0000 (11:13 -0700)]
base.bbclass: drop obsolete HOSTTOOLS_WHITELIST_GPL-3.0

base.bbclass sets 'check_license' to False (and therefore skips
license checking completely) for native, nativesdk, etc recipes
(ie anything which could potentially be classed as "host tools"),
so supporting a dedicated whitelist of GPLv3 host tools is not
necessary.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoman: use BUILD_CC and target include files for configure
Bill Randle [Thu, 31 Mar 2016 05:11:35 +0000 (22:11 -0700)]
man: use BUILD_CC and target include files for configure

The configure script was using the cross-compiler for feature tests,
which fails to execute when the target is different than the host.
Change the script to use the build compiler instead, but use the
target include files to check for the target features.

[YOCTO #9359]

Signed-off-by: Bill Randle <william.c.randle@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage-vm.bbclass: remove invalid code
Robert Yang [Wed, 30 Mar 2016 07:23:12 +0000 (00:23 -0700)]
image-vm.bbclass: remove invalid code

It has been done in syslinux.bbclass.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage-live.bbclass/image-vm.bbclass: remove duplicated code
Robert Yang [Wed, 30 Mar 2016 07:23:11 +0000 (00:23 -0700)]
image-live.bbclass/image-vm.bbclass: remove duplicated code

Move the common code to live_vm_common.bbclass and remove duplicated ones.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobootimg.bbclass: merge it into image-live.bbclass
Robert Yang [Wed, 30 Mar 2016 07:23:10 +0000 (00:23 -0700)]
bootimg.bbclass: merge it into image-live.bbclass

They are doing the same things: create live images, merge them into one
bbclass makes it easy to understand.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoboot-directdisk.bbclass: merge it into image-vm.bbclass
Robert Yang [Wed, 30 Mar 2016 07:23:09 +0000 (00:23 -0700)]
boot-directdisk.bbclass: merge it into image-vm.bbclass

They are doing the same things: create virtual machine images, merge
them into one bbclass makes it easy to understand.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoman: fix several annoying compile/build warnings
Bill Randle [Wed, 30 Mar 2016 23:50:49 +0000 (16:50 -0700)]
man: fix several annoying compile/build warnings

Fixed the build error when building man.config.5 (a remnant of a long
ago previous patch). Optimized the manpages Makefile for parallel
builds. Drop a FHS patch that is no longer needed, as the standard
Makefile puts the man pages in the proper location. Also, fix compile
warnings in a couple other files.

[YOCTO #9341]

Signed-off-by: Bill Randle <william.c.randle@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage.bbclass: Make unneeded packages for a read-only rootfs configurable
Peter Kjellerstedt [Thu, 31 Mar 2016 00:20:11 +0000 (02:20 +0200)]
image.bbclass: Make unneeded packages for a read-only rootfs configurable

Previously the list of packages that are considered unneeded for a
read-only rootfs was hardcoded. This made it impossible to, e.g., have
shadow installed on a system with a read-only rootfs, but where /etc
is mounted writable.

This also lists ${VIRTUAL-RUNTIME_update-alternatives} rather than
update-alternatives (as was previously the case) since this should
actually remove the intended package.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorelocate_sdk: additional error checks
Juro Bystricky [Thu, 31 Mar 2016 00:13:54 +0000 (17:13 -0700)]
relocate_sdk: additional error checks

When installing SDK in a non-default location and the path length
of the SDK install location is longer than the path length of the
default SDK location, relocation of .ldsochache section will overwrite
file location outside of the .ldsocache section size.
In addition, additional checks were added to ensure that any
path in sections .gccrelocprefix and .ldsochache will not exceed
the space allocated for it within the file, which would also result
in file corruption.

[YOCTO #9268]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemd: fix build with gcrypt PACKAGECONFIG disabled
Maxin B. John [Thu, 31 Mar 2016 09:00:16 +0000 (12:00 +0300)]
systemd: fix build with gcrypt PACKAGECONFIG disabled

systemd-resolved build fails without gcrypt PACKAGECONFIG. Backport the fix.
Also remove the comment about resolved's dependence on gcrypt.

[YOCTO #9219]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: modify: call shutdown on tinfoil when done
Paul Eggleton [Thu, 31 Mar 2016 08:53:35 +0000 (21:53 +1300)]
devtool: modify: call shutdown on tinfoil when done

Strictly speaking we ought to explicitly shut down a tinfoil instance
when we're done with it. This doesn't affect modify's operation but is
important if you want to be able to call into modify() from another
plugin (though anyone doing so should be advised that the function is
by no means a stable API and is subject to change in future releases).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoolchain-shar-extract.sh: ensure all_proxy is allowed through
Paul Eggleton [Thu, 31 Mar 2016 08:53:34 +0000 (21:53 +1300)]
toolchain-shar-extract.sh: ensure all_proxy is allowed through

all_proxy is referred to by oe-git-proxy so ensure it is allowed through
into the installer environment in case the extensible SDK install
process needs to query a remote git repository.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-publish-sdk: exclude sstate-cache if publishing minimal SDK
Paul Eggleton [Thu, 31 Mar 2016 08:53:33 +0000 (21:53 +1300)]
oe-publish-sdk: exclude sstate-cache if publishing minimal SDK

If SDK_EXT_TYPE is set to "minimal" then the SDK won't contain many
sstate artifacts, and you're required to set up an sstate mirror in this
case anyway so there's no point publishing the "stub" sstate-cache
directory from within the SDK since it won't be useful for update
purposes and may be confused with the real sstate-cache.

There is however a possibility that people might publish the real
sstate-cache directory under the same output directory provided to
oe-publish-sdk, thus deleting it after extracting (as we were doing with
other files we wanted to clean up at the end) would be problematic,
besides which extracting it and then deleting it is wasteful. Thus,
introduce a "-p" command line option to the SDK installer that we can
use to tell tar not to extract the items we don't want when publishing.
This has the added benefit of mostly keeping references to these in the
place they belong i.e. in populate_sdk_ext.bbclass.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-publish-sdk: prevent specifying a directory for the SDK argument
Paul Eggleton [Thu, 31 Mar 2016 08:53:32 +0000 (21:53 +1300)]
oe-publish-sdk: prevent specifying a directory for the SDK argument

The SDK argument is expected to be an installer .sh file; if a directory
is specified we can get an ugly failure later on; best to check up
front.

Fixes [YOCTO #9065].

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: support setting vars from environment at build time
Paul Eggleton [Thu, 31 Mar 2016 08:53:31 +0000 (21:53 +1300)]
classes/populate_sdk_ext: support setting vars from environment at build time

When running bitbake you may pass in values of variables from the
external environment (making use of BB_ENV_EXTRAWHITE), and you may
choose to do this when building the extensible SDK, for example:

  MACHINE=qemuarm bitbake -c populate_sdk_ext core-image-minimal

You would naturally expect those settings to be reflected in the
extensible SDK itself; however they were not, since we were only
considering local.conf and auto.conf. Check the variables mentioned in
BB_ENV_EXTRAWHITE to see if any are different than the values set in
local.conf/auto.conf and add lines setting them in the SDK's local.conf
if so.

Fixes [YOCTO #9339].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoscripts, lib: Don't limit traceback lengths to arbitrary values
Richard Purdie [Thu, 31 Mar 2016 11:46:38 +0000 (12:46 +0100)]
scripts, lib: Don't limit traceback lengths to arbitrary values

There appears to have been a lot of copy and pasting of the code
which prints tracebacks upon failure and limits the stack trace to
5 entries. This obscures the real error and is very confusing to the user
it look me an age to work out why some tracebacks weren't useful.

This patch removes the limit, making tracebacks much more useful for
debugging.

[YOCTO #9230]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopyton-numpy: Add definition of off_t size
Ricardo Ribalda Delgado [Thu, 31 Mar 2016 11:19:27 +0000 (13:19 +0200)]
pyton-numpy: Add definition of off_t size

NPY_SIZEOF_OFF_T must be defined. Otherwise:

/home/ricardo/curro/qt5022/oe/openembedded-core/build/tmp-glibc/sysroots
/qemux86-64/usr/lib/python2.7/site-packages/numpy/core/include/numpy/
npy_common.h:140:9: warning: "NPY_SIZEOF_OFF_T" is not defined [-Wundef]
     #if NPY_SIZEOF_OFF_T == NPY_SIZEOF_SHORT
         ^
/home/ricardo/curro/qt5022/oe/openembedded-core/build/tmp-glibc/sysroots/
qemux86-64/usr/lib/python2.7/site-packages/numpy/core/include/numpy
/npy_common.h:142:11: warning: "NPY_SIZEOF_OFF_T" is not defined [-Wundef]
     #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_INT
           ^
/home/ricardo/curro/qt5022/oe/openembedded-core/build/tmp-glibc/sysroots/
qemux86-64/usr/lib/python2.7/site-packages/numpy/core/include/numpy/
npy_common.h:144:11: warning: "NPY_SIZEOF_OFF_T" is not defined [-Wundef]
     #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_LONG
           ^
/home/ricardo/curro/qt5022/oe/openembedded-core/build/tmp-glibc/sysroots/
qemux86-64/usr/lib/python2.7/site-packages/numpy/core/include/numpy/
npy_common.h:146:11: warning: "NPY_SIZEOF_OFF_T" is not defined [-Wundef]
     #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_LONGLONG
           ^
/home/ricardo/curro/qt5022/oe/openembedded-core/build/tmp-glibc/sysroots/
qemux86-64/usr/lib/python2.7/site-packages/numpy/core/include/numpy/
npy_common.h:149:10: error: #error Unsupported size for type off_t
         #error Unsupported size for type off_t

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage-live.bbclass: DEPENDS on syslinux
Robert Yang [Thu, 31 Mar 2016 10:47:02 +0000 (03:47 -0700)]
image-live.bbclass: DEPENDS on syslinux

The mkisofs requires syslinux/isolinux.bin which is provided by
target syslinux, for pcbios, the depends is already there, but for
EFI, it isn't, so add the depends.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoldconfig-native: Fix ELF flags on 64-bit binaries
Clemens Lang [Wed, 30 Mar 2016 13:22:49 +0000 (15:22 +0200)]
ldconfig-native: Fix ELF flags on 64-bit binaries

Yocto's ldconfig-native was exported from an old version of glibc and
generates an ld.so.cache that is partially ignored by current versions
of glibc when loading libraries. This occurs for 64-bit binaries, where
glibc expects FLAG_ELF_LIBC6, but ldconfig-native only generates the
standard ELF flag. Fix this with an additional patch on top of the patch
for now.

You can verify this by applying the patch below to your target copy of
glibc and running

  LD_DEBUG=libs /lib64/ld-linux-x86-64.so.2 --list $anybinary

--- ./elf/dl-cache.c.orig       2016-01-07 11:05:36.823447171 +0100
+++ ./elf/dl-cache.c    2016-01-07 11:19:53.925878628 +0100
@@ -106,6 +106,8 @@
                if (_dl_cache_check_flags (flags)                             \
                    && _dl_cache_verify_ptr (lib->value))                     \
                  {                                                           \
+                   if (__glibc_unlikely (GLRO_dl_debug_mask & DL_DEBUG_LIBS))\
+                       _dl_debug_printf ("  considering file %s\n", cache_data + lib->value); \
                    if (best == NULL || flags == GLRO(dl_correct_cache_id))   \
                      {                                                       \
                        HWCAP_CHECK;                                          \
@@ -117,6 +119,9 @@
                             searching.  */                                   \
                          break;                                              \
                      }                                                       \
+                 } else {                                                    \
+                     if (__glibc_unlikely (GLRO_dl_debug_mask & DL_DEBUG_LIBS))              \
+                       _dl_debug_printf ("  ignoring file %s due to flags %x, expected %x\n", cache_data + lib->value, lib->flags, GLRO(dl_correct_cache_id)); \
                  }                                                           \
              }                                                               \
            while (++middle <= right);                                        \
@@ -265,14 +270,23 @@

       /* Only accept hwcap if it's for the right platform.  */
 #define HWCAP_CHECK \
-      if (lib->hwcap & hwcap_exclude)                                        \
+      if (lib->hwcap & hwcap_exclude) {                                              \
+       if (__glibc_unlikely (GLRO_dl_debug_mask & DL_DEBUG_LIBS))            \
+           _dl_debug_printf ("   hwcap mismatch %x vs. %x\n", lib->hwcap, hwcap_exclude); \
        continue;                                                             \
-      if (GLRO(dl_osversion) && lib->osversion > GLRO(dl_osversion))         \
+      }                                                                              \
+      if (GLRO(dl_osversion) && lib->osversion > GLRO(dl_osversion)) {       \
+       if (__glibc_unlikely (GLRO_dl_debug_mask & DL_DEBUG_LIBS))            \
+           _dl_debug_printf ("   os version mismatch %x vs. %x\n", lib->osversion, GLRO(dl_osversion)); \
        continue;                                                             \
+      }                                                                              \
       if (_DL_PLATFORMS_COUNT                                                \
          && (lib->hwcap & _DL_HWCAP_PLATFORM) != 0                           \
-         && (lib->hwcap & _DL_HWCAP_PLATFORM) != platform)                   \
-       continue
+         && (lib->hwcap & _DL_HWCAP_PLATFORM) != platform) {                 \
+       if (__glibc_unlikely (GLRO_dl_debug_mask & DL_DEBUG_LIBS))            \
+           _dl_debug_printf ("   platform mismatch %x vs. %x\n", lib->hwcap & _DL_HWCAP_PLATFORM, platform); \
+       continue;                                                             \
+      }
       SEARCH_CACHE (cache_new);
     }
   else

This version of ldconfig-native should really be replaced with a version
matching the glibc source in use on the target platform.

Signed-off-by: Clemens Lang <clemens.lang@bmw-carit.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipes-support/rng-tools: Change runlevel start from S to 2, 3, 4, 5.
Aníbal Limón [Wed, 30 Mar 2016 20:21:42 +0000 (14:21 -0600)]
recipes-support/rng-tools: Change runlevel start from S to 2, 3, 4, 5.

When using systemd as init rng-tools is causing a circular dependency
between units,

[    7.706250] systemd[1]: basic.target: Found ordering cycle on
basic.target/start
[    7.706934] systemd[1]: basic.target: Found dependency on
sysinit.target/start
[    7.707795] systemd[1]: basic.target: Found dependency on
rng-tools.service/start
[    7.708692] systemd[1]: basic.target: Found dependency on
basic.target/start
[    7.709461] systemd[1]: basic.target: Breaking ordering cycle by
deleting job rng-tools.service/start
[    7.710404] systemd[1]: rng-tools.service: Job rng-tools.service/start
deleted to break ordering cycle starting with basic.target/start

The problem is related to systemd running sysvinit scripts by default
add dependency of basic.target for sysvinit script so when sysvscript
is at rcS is added also as dependency of sysinit.target causing a
cirular dependency in this case: basic.target -> sysinit.target ->
rng-tools.service -> basic.target.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/runtime/parselogs.py: Add systemd unit circular dependencies errors.
Aníbal Limón [Wed, 30 Mar 2016 20:21:41 +0000 (14:21 -0600)]
oeqa/runtime/parselogs.py: Add systemd unit circular dependencies errors.

When systemd is enabled as init we need to notice when circular
dependencies in units happen because systemd try to solve this situation
removing the unit itself.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemd-serialgetty: allow baud rate overriding
Awais Belal [Wed, 30 Mar 2016 09:35:15 +0000 (14:35 +0500)]
systemd-serialgetty: allow baud rate overriding

In case a getty is required on a UART which is not being
used as the kernel console, the current agetty invocation
fails to obey the baud rate configured through the
SERIAL_CONSOLES variable because it uses --keep-baud.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopsmisc: Remove including sys/user.h and __WORDSIZE
Khem Raj [Wed, 30 Mar 2016 17:56:47 +0000 (17:56 +0000)]
psmisc: Remove including sys/user.h and __WORDSIZE

We can replace __WORDSIZE with UINTPTR_MAX
sys/user.h is in conflict with asm/ptrace.h on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoselftest: Added testcase decorator to tests
Daniel Istrate [Wed, 30 Mar 2016 15:07:32 +0000 (18:07 +0300)]
selftest: Added testcase decorator to tests

1418 test_recipetool_create_cmake
1422 test_qemu
1423 test_devtool_add_git_local
1433 test_devtool_upgrade_git
1434 test_sanity_unsafe_binary_references
1435 test_read_only_image

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto: add overlayfs feature
Bruce Ashfield [Wed, 30 Mar 2016 12:25:07 +0000 (08:25 -0400)]
linux-yocto: add overlayfs feature

To let overlayfs be used like aufs, we create a feature
fragment. Configurations that want this union FS type, can
enable it via KERNEL_FEATURES.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/4.4: broxton and usb type-c backports
Bruce Ashfield [Wed, 30 Mar 2016 12:25:06 +0000 (08:25 -0400)]
linux-yocto/4.4: broxton and usb type-c backports

c43425f73287 mfd: lpss: Add PCI IDs for Intel Broxton B-Step platform
2d6cc1d3e71f spi: pxa2xx: Add support for Intel Broxton B-Step
1df3674b7626 usb: dwc3: gadget: don't send extra ZLP
222ab0043e48 usb: dwc3: gadget: handle request->zero
3f01b2c0295a usb: dwc3: gadget: simplify dwc3_gadget_ep_queue()
729b5a1f8f65 usb: dwc3: gadget: set the OTG flag in dwc3 gadget driver.
65740f5d1a0d usb: dwc3: gadget: simplify next_request() return check
a82442f90ea7 usb: dwc3: Fix assignment of EP transfer resources
d99293bbaa50 usb: dwc3: ep0: fix setup_packet_pending initialization

Signed-off-by: Matt Ranostay <matt.ranostay@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/4.4: drm/i915/skl: Fix DMC load on Skylake J0 and K0
Bruce Ashfield [Wed, 30 Mar 2016 12:25:05 +0000 (08:25 -0400)]
linux-yocto/4.4: drm/i915/skl: Fix DMC load on Skylake J0 and K0

[
    NUC6 (Skylake) graphics firmware fails to load without this patch.

    From: Mat Martineau <mathew.j.martineau@linux.intel.com>

    commit a41c8882592fb80458959b10e37632ce030b68ca upstream.

    The driver does not load firmware for unknown steppings, so these new
    steppings must be added to the list.

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1454023163-25469-1-git-send-email-mathew.j.martineau@linux.intel.com
]

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-yocto/4.1: Intel Broxton: pwm backports
Bruce Ashfield [Wed, 30 Mar 2016 12:25:04 +0000 (08:25 -0400)]
linux-yocto/4.1: Intel Broxton: pwm backports

Integrating the following mainline changes:

afaf425e796c pwm: Add the pwm_is_enabled() helper
023721c3d067 pwm: atmel: Fix incorrect CDTY value after disabling
cd9fe8adb313 pwm: atmel: Fix incorrect CDTY value after enabling
3f445ca6df1f pwm: lpss: Rework the sequence of programming PWM_SW_UPDATE
9a51f622bdc9 pwm: lpss: Select core part automatically
8ee11b6f80ba pwm: lpss: Update PWM setting for Broxton
148228a52c2d pwm: lpss: Remove ->free() callback
e20d95bcd0b3 pwm: lpss: Add support for runtime PM
b2248acf6f8b pwm: lpss: Add more Intel Broxton IDs
85e8566bd241 pwm: lpss: Support all four PWMs on Intel Broxton
1bcdcb6275bf pwm: lpss: Add support for multiple PWMs

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/4.1: Apollo Lake/Broxton mmc backports
Bruce Ashfield [Wed, 30 Mar 2016 12:25:03 +0000 (08:25 -0400)]
linux-yocto/4.1: Apollo Lake/Broxton mmc backports

Backporting the following commits:

2b0cc0f0ca23 mmc: It is not an error for the card to be removed while suspended
67903c1f4c77 mmc: sdhci: 64-bit DMA actually has 4-byte alignment
4e434f483381 mmc: sdhci: Do not BUG on invalid vdd
05be442eb234 mmc: mmc: Fix incorrect use of driver strength switching HS200 and HS400
97a5f396dca6 mmc: core: Make runtime resume default behavior for MMC/SD
b6ee1ac07f14 mmc: mmc: Improve reliability of mmc_select_hs400()
45de48ce0b3c mmc: mmc: Move mmc_switch_status()
9d6aaaa0f6b7 mmc: mmc: Fix HS setting in mmc_select_hs400()
d7795de930c5 mmc: mmc: Improve reliability of mmc_select_hs200()
ac98e33a088d mmc: sdhci-acpi: Add more ACPI HIDs for Intel controllers
87f52cce8123 mmc: sdhci-pci: Add more PCI IDs for Intel controllers
cf3a4d2d4c7d mmc: sdhci-pci: Add another PCI ID for an Intel eMMC host controller
b3ef45585504 mmc: sdhci-pci: Build o2micro support in the same module
b32a4e71f49d mmc: sdhci: enable tuning for DDR50
f8e213bee1e1 mmc: sdhci: call sdhci_init() before request irq
ece0925eb94e mmc: sdhci-pci: Enable HS400 for some Intel host controllers
1c01bcdceaf6 mmc: sdhci-pci: Add support for drive strength selection for SPT
c1d6e92915a9 mmc: sdhci: Add a callback to select drive strength
40deb3ac3331 mmc: mmc: Add driver strength selection
e7d602f5992f mmc: mmc: Read card's valid driver strength mask
bc193a886571 mmc: core: Record card drive strength
a548d3993cc8 mmc: core: Factor out common code in drive strength selection
6713f5cf3164 mmc: core: Add 'card' to drive strength selection callback
852e6bd69b77 mmc: core: Simplify card drive strength mask
0bb40266bbb9 mmc: core: Allow card drive strength to be different to host
940d30f1a212 mmc: core: Reset driver type to default
efbc6ba8cd27 mmc: cast u8 to unsigned long long to avoid unexpected error
bafe0e5beba9 mmc: core: Don't print reset warning if reset is not supported
5b2789151852 mmc: block: Retry errored data requests when re-tuning is needed
d14211a4b2fe mmc: block: Check re-tuning in the recovery path
1ff15c648159 mmc: core: Flag re-tuning is needed on CRC errors
12544ee1cdbb mmc: sdhci: Change to new way of doing re-tuning
995073b182f7 mmc: core: Add support for HS400 re-tuning
53a0d731e824 mmc: core: Separate out the mmc_switch status check so it can be re-used
d3f59f108bf7 mmc: mmc: Hold re-tuning in mmc_sleep()
465db9504a27 mmc: core: Hold re-tuning while bkops ongoing
60cacf85ee10 mmc: core: Hold re-tuning during erase commands
5bd43535f4c1 mmc: core: Hold re-tuning during switch commands
4baa45ff8d15 mmc: core: Add support for re-tuning before each request
cd2ca27f9282 mmc: core: Enable / disable re-tuning
65723236b746 mmc: host: Add facility to support re-tuning

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/4.1: i2c: designware: Backport i2c patches
Bruce Ashfield [Wed, 30 Mar 2016 12:25:02 +0000 (08:25 -0400)]
linux-yocto/4.1: i2c: designware: Backport i2c patches

To enable Apollo Lake/Broxton, we backport the following changes:

da451824f75f i2c: designware: Convert to use unified device property API
58b1b5365f4a i2c: designware: Do not require clock when SSCN and FFCN are provided
8995091cfa0f i2c: designware: retry transfer on transient failure
1fc62907f84e i2c: designware: Move common probe code into i2c_dw_probe()
678110c0f2b8 i2c: designware: Rename platform driver probe and PM functions
c51c2e104d40 i2c: designware: Make dw_readl() and dw_writel() static
98d2b6e244ad i2c: designware: Remove unused functions
3d04c6e99652 i2c: designware: Disable interrupts before requesting PCI device interrupt
fb5b7be0fbe7 i2c: designware: Remove interrupt clearing from i2c_dw_pci_probe()
d48fd08b11c8 i2c: designware: Make debug print in i2c_dw_isr() shorter
28f94bc07450 i2c: designware-pci: use IRQF_COND_SUSPEND flag 95f494846fc1 i2c: designware: Avoid unnecessary resuming during system suspend
fb2ae3705a3a i2c: dw: Add APM X-Gene ACPI I2C device support
516a0fc91e00 i2c: designware: Add support for AMD Seattle I2C
874d63b3c95c i2c: designware: fix IO timeout issue for AMD controller
47543e80c6dd i2c: designware: reverts "i2c: designware: Add support for AMD I2C controller"
076fe383c4b5 i2c: designware: use to_pci_dev()

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 backports
Bruce Ashfield [Wed, 30 Mar 2016 12:25:01 +0000 (08:25 -0400)]
linux-yocto/4.1: device property backports

Integrating the following 4.4 backports:

  630b726098c9 mfd: make mfd_remove_devices() iterate in reverse order
  aab24907568b driver core: Do not overwrite secondary fwnode with NULL if it is set
  89775462ef50 device property: return -EINVAL when property isn't found in ACPI
  a9eebae4a2c0 device property: check fwnode type in to_of_node()

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/qemuarm64: enable 32 bit compatibility
Bruce Ashfield [Wed, 30 Mar 2016 12:25:00 +0000 (08:25 -0400)]
linux-yocto/qemuarm64: enable 32 bit compatibility

It was requested that CONFIG_COMPAT be enabled for qemuarm64 so that
32bit applications could be tested. This is simple enough to do, so
there is now a 32bit compat feature, and it is included only in
qemuarm64 to avoid impacting any other ARM targets (but the feature
is available for others to use).

[YOCTO #8646]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/4.1: SMBus/iTCO backports
Bruce Ashfield [Wed, 30 Mar 2016 12:24:59 +0000 (08:24 -0400)]
linux-yocto/4.1: SMBus/iTCO backports

Backporting the following mainline commits to add Intel Broxton and Denverton
support:

  49b34899e7ca i2c: i801: Add support for Intel Broxton
  69f6eeceb5b1 i2c: i801: Add support for Intel DNV
  b131e3e13838 watchdog: iTCO_wdt: Add support for TCO on Intel Sunrisepoint
  fce230a538de mfd: watchdog: iTCO_wdt: Expose watchdog properties using platform data
  a1a2140e856d intel_pmc_ipc: Update kerneldoc formatting
  e407caf0a583 intel_pmc_ipc: Fix compiler casting warnings
  909588e549d7 intel_pmc_ipc: Add Intel Apollo Lake PMC IPC driver
  1cd89340c1a9 mfd: lpc_ich: Assign subdevice ids automatically
  729025b3e8d3 i2c: i801: Create iTCO device on newer Intel PCHs

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodefault-distrovars.inc: remove gnutls + libtasn1 from LGPLv2_WHITELIST_GPL-3.0
Andre McCurdy [Wed, 30 Mar 2016 20:08:30 +0000 (13:08 -0700)]
default-distrovars.inc: remove gnutls + libtasn1 from LGPLv2_WHITELIST_GPL-3.0

With the modern license handling code, gnutls and libtasn1 are both
buildable in distros which blacklist GPL-3.0 without needing to be
explicitly whitelisted (since they both provide at least one non
GPLv3 package).

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosanity.bbclass: Use pythonexception to raise real exceptions without backtraces
Richard Purdie [Wed, 30 Mar 2016 19:55:42 +0000 (20:55 +0100)]
sanity.bbclass: Use pythonexception to raise real exceptions without backtraces

If the sanity code encounters a version change is doesn't understand, the current
output is unreadable and confusing for the user, particularly due to the presence
of the backtrace.

Use improved functionality in bitbake to improve this and correctly pass python
exceptions around.

[YOCTO #9291]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosanity: Require bitbake 1.29.1
Richard Purdie [Wed, 30 Mar 2016 20:23:25 +0000 (21:23 +0100)]
sanity: Require bitbake 1.29.1

This is for the improved exec_func functionality.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouninative: Switch md5sum -> sha256
Richard Purdie [Wed, 30 Mar 2016 19:48:58 +0000 (20:48 +0100)]
uninative: Switch md5sum -> sha256

There are various concerns about md5 so use sha256 instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc: Fix musl ldso name for mips64
Khem Raj [Wed, 30 Mar 2016 05:19:19 +0000 (05:19 +0000)]
gcc: Fix musl ldso name for mips64

Now we have mips64 port of musl and there is
a name for ldso, backport the fix from upstream
gcc master

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoselftest/buildoptions.py: use INHERIT +=
Robert Yang [Wed, 30 Mar 2016 07:30:07 +0000 (00:30 -0700)]
selftest/buildoptions.py: use INHERIT +=

* INHERIT = -> INHERIT +=

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agoarchiver.bbclass: addtask do_deploy_archives_setscene
Robert Yang [Wed, 30 Mar 2016 07:30:06 +0000 (00:30 -0700)]
archiver.bbclass: addtask do_deploy_archives_setscene

There was a do_deploy_archives_setscene, but no addtask.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agogcc-5.3/gcc-4.9: -fdebug-prefix-map support to remap relative path
Hongxu Jia [Mon, 28 Mar 2016 08:18:46 +0000 (04:18 -0400)]
gcc-5.3/gcc-4.9: -fdebug-prefix-map support to remap relative path

For relative path in DWARF, -fdebug-prefix-map could not remap it,
so translate to real path before mapping.

[YOCTO #9305]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoptest-runner_2.0.bb: Update recipe to point git.yoctoproject.org repo.
Aníbal Limón [Tue, 29 Mar 2016 20:37:50 +0000 (14:37 -0600)]
ptest-runner_2.0.bb: Update recipe to point git.yoctoproject.org repo.

Since ptest-runner is a Yocto Project tool is better to have hosted
into git.yoctoproject.org.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoman: fix src/Makefile to work with parallel make
Bill Randle [Tue, 29 Mar 2016 22:26:39 +0000 (15:26 -0700)]
man: fix src/Makefile to work with parallel make

The Makefile for man has a rule to create two generated targets with
a program run from the shell. Because the rule was run twice, with
parallel make, the generated files were being overwritten at the same
time they were being compiled. This patch forces the rule to be run
only once.

[YOCTO #9333]

Signed-off-by: Bill Randle <william.c.randle@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/bbtests: Test bbappend order
Daniel Istrate [Fri, 19 Feb 2016 10:17:54 +0000 (12:17 +0200)]
oeqa/selftest/bbtests: Test bbappend order

BitBake should append to recipe in a predictable order.

fix for [YOCTO #9145]
test for [YOCTO #9138]

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc: Backport fixes for musl ssp configuration
Khem Raj [Mon, 28 Mar 2016 04:00:16 +0000 (04:00 +0000)]
gcc: Backport fixes for musl ssp configuration

We were trying to inject cached configure variables via
EXTRA_OECONF, but that was not working due to the fact
that gcc configure is called recursively via makefiles
and hence these were getting lost.

These backports from master fixes the problem by
defining the options in configure itself

dl_iterate_phdr is provided by musl as well, so lets
not depend on glibc defines like inhibit_libc alone

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agositeinfo: Fix musl 64bit targets
Khem Raj [Mon, 28 Mar 2016 04:00:15 +0000 (04:00 +0000)]
siteinfo: Fix musl 64bit targets

Found that ssize_t was being wrongly computed for mips64 musl
because it was using wrong cache files.

alias them to glibc versions, musl doesn't _yet_ have target
incompatibilities to note in siteinfo thankfully.

Add musl aliases for aarch64 and ppc64 targets

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomusl: Update to tip
Khem Raj [Mon, 28 Mar 2016 04:00:14 +0000 (04:00 +0000)]
musl: Update to tip

Rich Felker (2):
      fix padding string formats to width in wide printf variants
      fix outdated pathnames in COPYRIGHT file

Szabolcs Nagy (7):
      deduplicate bits/mman.h
      mips64: add recent linux syscall numbers
      add copy_file_range syscall numbers from linux v4.5
      add IPV6_HDRINCL socket option from linux v4.5
      add SO_ATTACH_REUSEPORT_[CE]BPF socket options from linux v4.5
      add EPOLLEXCLUSIVE epoll flag from linux v4.5
      add MADV_FREE madvise command from linux v4.5

Timo Teräs (1):
      fix gethostbyaddr_r to fill struct hostent.h_length as appropriate

updated paths in copyright text

see http://git.musl-libc.org/cgit/musl/commit/?id=dc4520d9c0b79bc5944f509e4e9061e5081e38ca

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuildhistory.bbclass: create image directory when needed
Patrick Ohly [Mon, 28 Mar 2016 13:27:57 +0000 (15:27 +0200)]
buildhistory.bbclass: create image directory when needed

buildhistory_get_imageinfo() assumed that the buildhistory directory
for the image had already been created earlier. That assumption is not
true for special images (like the virtual swupd images from
meta-swupd) where the entire traditional do_rootfs/do_image is
skipped.

Creating files-in-image.txt still makes sense for such images, so
support them by creating the directory also in
buildhistory_get_imageinfo().

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorunqemu: fix for iso
Robert Yang [Tue, 29 Mar 2016 07:55:01 +0000 (00:55 -0700)]
runqemu: fix for iso

It should be the similar type as hddimg, rather than ext234 or btrfs.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoinit-live.sh: fix overlay fs
Robert Yang [Tue, 29 Mar 2016 07:49:52 +0000 (00:49 -0700)]
init-live.sh: fix overlay fs

* The name changes from overlayfs to overlayo
* The workdir is a must when mount
* The updir must be a subdir of rootfs.rw

This patch plus with another one which has been sent to linux-yocto can
fix the error when boot iso:
EXT4-fs (loop0): re-mounted. Opts: data=ordered
Populating dev cache
/etc/init.d/rc: /etc/rcS.d/S37populate-volatile.sh: line 1: can't create
/etc/volatile.cache.build: Read-only file system
/etc/rcS.d/S36udev-cache: line 73: can't create /etc/udev-cache.tar.gz:
Read-only file system
udev-cache: update failed!
rm: can't remove '/etc/udev/cache.data': Read-only file system
/etc/init.d/rc: /etc/rcS.d/S37populate-volatile.sh: line 1: can't create
/etc/volatile.cache.build: Read-only file system
/etc/init.d/rc: /etc/rcS.d/S37populate-volatile.sh: line 1: can't create
/etc/volatile.cache.build: Read-only file system
/etc/init.d/rc: /etc/rcS.d/S37populate-volatile.sh: line 1: can't create
/etc/volatile.cache.build: Read-only file system
/etc/init.d/rc: /etc/rcS.d/S37populate-volatile.sh: line 1: can't create
/etc/volatile.cache.build: Read-only file system
/etc/init.d/rc: /etc/rcS.d/S37populate-volatile.sh: line 1: can't create
/etc/volatile.cache.build: Read-only file system
/etc/init.d/rc: /etc/rcS.d/S37populate-volatile.sh: line 1: can't create
/etc/volatile.cache.build: Read-only file system
/etc/init.d/rc: /etc/rcS.d/S37populate-volatile.sh: line 1: can't create
/etc/volatile.cache.build: Read-only file system
/etc/init.d/rc: /etc/rcS.d/S37populate-volatile.sh: line 1: can't create
/etc/volatile.cache.build: Read-only file system
rm: can't remove '/tmp': Read-only file system
ln: /tmp/tmp: Read-only file system
/etc/init.d/rc: /etc/rcS.d/S37populate-volatile.sh: line 1: can't create
/etc/volatile.cache.build: Read-only file system
/etc/init.d/rc: /etc/rcS.d/S37populate-volatile.sh: line 1: can't create
/etc/volatile.cache.build: Read-only file system
/etc/init.d/rc: /etc/rcS.d/S37populate-volatile.sh: line 1: can't create
/etc/volatile.cache.build: Read-only file system
ln: /etc/resolv.conf: Read-only file system
/etc/init.d/rc: /etc/rcS.d/S37populate-volatile.sh: line 1: can't create
/etc/volatile.cache.build: Read-only file system
/etc/init.d/rc: /etc/rcS.d/S37populate-volatile.sh: line 1: can't create
/etc/volatile.cache.build: Read-only file system

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoinit-live.sh: fix ROOT_MOUNT
Robert Yang [Tue, 29 Mar 2016 07:49:51 +0000 (00:49 -0700)]
init-live.sh: fix ROOT_MOUNT

The '/' in the end is not needed, which caused '//' in the path.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agono-static-libs.inc: build static libusb1-native
Martin Jansa [Tue, 29 Mar 2016 11:46:10 +0000 (13:46 +0200)]
no-static-libs.inc: build static libusb1-native

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosstatesig: Ensure we keep native depends for allarch recipes
Richard Purdie [Tue, 29 Mar 2016 08:38:48 +0000 (09:38 +0100)]
sstatesig: Ensure we keep native depends for allarch recipes

Without this, do_package_write_rpm doesn't depend on rpm-native which
it really should since that is needed to build rpms.

[YOCTO #8047]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-selftest: generate .env only in test_image_env
Ed Bartosh [Tue, 29 Mar 2016 08:38:17 +0000 (11:38 +0300)]
oe-selftest: generate .env only in test_image_env

Most of wic functionality doesn't depend on .wicenv file,
so it's better to generate it only in test_image_env
test case where it's used.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Mon, 28 Mar 2016 16:02:04 +0000 (17:02 +0100)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-appliance-image: Fix permissions
Juro Bystricky [Sun, 27 Mar 2016 19:46:48 +0000 (12:46 -0700)]
build-appliance-image: Fix permissions

Explicitly set all permissions.
This fixes various problems such as:

Unable to create '/home/builder/poky/bitbake/lib/bb/pysh/pyshtables.py'
[Errno 22] invalid mode ('w') or filename '/home/builder/poky/bitbake/lib/bb/pysh/pyshtables.py'

and failure to create sub-directories in the directory 'poky':

mkdir: cannot create directory '<dir>': Invalid argument

While in there, added a few non-functional changes:
Added sample proxy settings into .bashrc
Added environmental variable with SRCREV actually used to populate the Build
Appliance into .bashrc (BA_SRCREV)

[YOCTO#9314]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoconf/bitbake.conf package.bbclass: fix dbg package not contain sources while -fdebug...
Hongxu Jia [Mon, 21 Mar 2016 08:46:20 +0000 (04:46 -0400)]
conf/bitbake.conf package.bbclass: fix dbg package not contain sources while -fdebug-prefix-map used

Tweak DEBUG_FLAGS to use "/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}"
as source target path in DWARF. While use gdb to debug binary, it could
work with sources in dbg package.

While -fdebug-prefix-map is used for compiling, we do not need invoking
debugedit to edit DWARF at do_package time, but list where sources files
are.

The copydebugsources uses the list to copy sources to dbg package. It
works whether -fdebug-prefix-map used or not.

[YOCTO #9305]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoexternalsrc: remove nostamp from do_configure
Markus Lehtonen [Tue, 22 Mar 2016 16:01:10 +0000 (18:01 +0200)]
externalsrc: remove nostamp from do_configure

Extend the srctree_hash_files() function in externalsrc.bbclass to
handle non-Git source trees.  If the source tree is not a git
repository, srctree_hash_files() now simply adds the whole source tree
as a dependency, causing bitbake to basically hash every file in it.
Hidden files and directories in the source tree root are ignored by the
glob currently used. This has the advantage of automatically ignoring
.git directory, for example.

During the first bitbake run preparing of the task runqueue may take
much longer if the source tree is not a git repository. The reason is
that all the files in the source tree are hashed.  Subsequent builds are
not significantly slower because (most) file hashes are found from the
cache.

[YOCTO #8853]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoexternalsrc: do not use do_configure[nostamp] for git srctrees
Markus Lehtonen [Tue, 22 Mar 2016 16:01:09 +0000 (18:01 +0200)]
externalsrc: do not use do_configure[nostamp] for git srctrees

Be a bit more intelligent than mindlessly re-compiling every time.
Instead of always using 'nostamp' flag for do_compile run a python
function to get a list of files to add as 'file-checksums' flag. The
intention is to only re-run do_compile if something in the source tree
content changes.

This python function, srctree_hash_files(), works differently, depending
if the source tree is a git repository clone or not. If the source tree
is a git repository, the function runs 'git add .' and 'git write tree'
to get a hash of the working tree and writes this hash into a file under
the .git directory. This file containing the hash is then returned as
the file for the task to depend on. Hash is changed if any changes are
made in the source tree causing the task to be re-run. A trick is used
to parse the recipe every time so that the hash file gets updated.

If the source tree is not a git repository behaviour remains the same.
In this case srctree_hash_files() currently sets the 'nostamp' flag for
do_compile causing it to be re-run every time.

This method of tracking changes source tree changes to determine if
re-build is needed does not work perofectly, though. Many packages are
built under ${S} which effectively changes the source tree causing some
unwanted re-compilations.  However, if do_compile of the recipe does not
produce new/different artefacts on every run (as commonly is and should
be the case) the re-compilation loop stops. Thus, you should usually see
only one re-compilation (if any) after which the source tree is
"stabilized" and no more re-compilations happen.

[YOCTO #8853]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoarchiver.bbclass: Just archive gcc-source for all gcc recipes
Mariano Lopez [Thu, 24 Mar 2016 07:20:28 +0000 (07:20 +0000)]
archiver.bbclass: Just archive gcc-source for all gcc recipes

It is pointless to archive several times the gcc source.
This change will archive gcc source once, for the gcc-source-{PV}
recipe.

[YOCTO #9327]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/utils/ftools: improve remove_from_file algorithm
Ross Burton [Tue, 20 Oct 2015 11:43:34 +0000 (12:43 +0100)]
oeqa/utils/ftools: improve remove_from_file algorithm

The algorithm was sub-optimal so replace it with something more elegant.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoscripts:/oe-selftest: Use timestamp instead of test names in coverage data file
Humberto Ibarra [Thu, 24 Mar 2016 00:32:02 +0000 (18:32 -0600)]
scripts:/oe-selftest: Use timestamp instead of test names in coverage data file

This fixes the problem by changing the name to the coverage data file,
using the timestamp as an identifier.

The name for the coverage data file is constructed based on the tests
ran; this has created a couple of issues so far, affecting coverage report.

If --run-tests-by option is given, the data file name won't have any
identifier, causing following runs to overwrite themselves. On the
other hand, if too many tests are given, the file name exceeds linux
limits and fails to store the coverage data all together.

[Yocto #9253]

Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxcursor-transparent-theme: upgrade to latest git revision
Johannes Pointner [Thu, 3 Mar 2016 20:41:38 +0000 (21:41 +0100)]
xcursor-transparent-theme: upgrade to latest git revision

Incorporates the patches we were carrying, and adds some icon names that were
not handled.

(From OE-Core rev: 8ec6e1f57cb4d0594b96d317e89851630c984087)

(From OE-Core rev: 43d8006c51b09ce4b158965a73433101186929f4)

Signed-off-by: Johannes Pointner <johannes.pointner@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogdb: Fix build on mips64/musl
Khem Raj [Wed, 23 Mar 2016 06:51:41 +0000 (06:51 +0000)]
gdb: Fix build on mips64/musl

Define _ABIO32 if not already defined
heps in fixing gdb for mips64

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibunwind: Fix build on mips/mips64 for musl targets
Khem Raj [Wed, 23 Mar 2016 06:51:40 +0000 (06:51 +0000)]
libunwind: Fix build on mips/mips64 for musl targets

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoolchain-shar-extract.sh: check the length for target_sdk_dir
Wenlin Kang [Wed, 23 Mar 2016 08:35:49 +0000 (16:35 +0800)]
toolchain-shar-extract.sh: check the length for target_sdk_dir

Check the length for target_sdk_dir to ensure the relocation
behaviour in relocate_sdk.py is correct.

Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorelocate_sdk: fixed .gccrelocprefix section handling
Wenlin Kang [Wed, 23 Mar 2016 08:35:48 +0000 (16:35 +0800)]
relocate_sdk: fixed .gccrelocprefix section handling

When fixing paths for .gccrelocprefix section, it will corrupt the next
entry during updating the current one if "new_prefix" length is more
than "DEFAULT_INSTALL_DIR", this problem is obvious on the code, but it's
only found when install sdk onto a net file system.

Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglib-2.0: Fix packaging
Jussi Kukkonen [Wed, 23 Mar 2016 08:59:08 +0000 (10:59 +0200)]
glib-2.0: Fix packaging

* move gdbus-codegen to ${PN}-codegen
* move other development tools and data files to ${PN}-dev
* remove references to non-existent paths

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogio-module-cache: Add class for Gio modules
Jussi Kukkonen [Wed, 23 Mar 2016 08:59:07 +0000 (10:59 +0200)]
gio-module-cache: Add class for Gio modules

The new class uses gio-querymodules tool on postinst and postrm.
This regenerates the module cache which is useful to avoid loading
modules that are not needed at runtime: If a Gio module is not
listed in the cache file it will always get loaded.

* Add a postinst-intercept 'gio-module-cache': it runs
  gio-querymodules using qemuwrapper. This is required because the tool
  actually loads the modules to generate the cache.
* Add a gio-module-cache class that adds postinstall and postrm
  scripts. In the sysroot population case use the new intercept.
* Inherit the new class in glib-2.0, glib-networking and gconf.

Fixes [YOCTO #9241].

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglib-2.0: Install gio-querymodules in main package
Jussi Kukkonen [Wed, 23 Mar 2016 08:59:06 +0000 (10:59 +0200)]
glib-2.0: Install gio-querymodules in main package

gio-querymodules should be used whenever new Gio modules are installed
(to regenerate the module cache) so it should be available by default.
Each multilib is going to need its own variant (because the tool
actually dlopens the modules when cache is generated), so it's
packaged as  ${libexecdir}/${MLPREFIX}gio-querymodules

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-git-proxy: support username / password in http proxy
André Draszik [Wed, 23 Mar 2016 09:47:05 +0000 (10:47 +0100)]
oe-git-proxy: support username / password in http proxy

We also make sure to correctly support usernames that contain spaces.

For simplicity sed + regex has been replaced with shell parameter expansion,
which works in both, bash and dash.

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-git-proxy: also check all_proxy and http_proxy env variables
André Draszik [Wed, 23 Mar 2016 09:47:04 +0000 (10:47 +0100)]
oe-git-proxy: also check all_proxy and http_proxy env variables

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: Update after task ordering changes
Richard Purdie [Mon, 28 Mar 2016 14:51:18 +0000 (15:51 +0100)]
wic: Update after task ordering changes

We need the wic env files to be available and this no longer happens automatically
so ensure we have them by specifying a specific task dependency.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage.bbclass: run wicenv task only for wic images
Ed Bartosh [Wed, 23 Mar 2016 09:09:18 +0000 (11:09 +0200)]
image.bbclass: run wicenv task only for wic images

Currently do_wicenv task is run for all images. However, its
result is used only to produce wic image. It's better to
run this task only for wic images. If another rootfs is
required to produce wic image, dependency to its do_wicenv
must be added to the wic image recipy.

Stopped running do_wicenv for all images. Added explicit
dependency to this task in wic-image-minimal recipe.

[YOCTO #9095]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: fix type of no-table option
Ed Bartosh [Wed, 23 Mar 2016 11:24:33 +0000 (13:24 +0200)]
wic: fix type of no-table option

Type of --no-table option was incorrectly set in new wks parser.
It causes parser to require argument for this option, which makes
wic to fail with wks files that use --no-table:
    Error: argument --no-table: expected one argument

Changed action parameter to 'store_true' to fix the issue.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomatchbox-desktop: Do not close desktop on alt-F4
Jussi Kukkonen [Wed, 23 Mar 2016 11:17:25 +0000 (13:17 +0200)]
matchbox-desktop: Do not close desktop on alt-F4

There are cases where user can close the desktop with a
well timed alt-F4: prevent this from happening

[YOCTO #2063]

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorootfs-postcommands: don't write manifest when IMAGE_MANIFEST empty
Joshua Lock [Wed, 23 Mar 2016 15:37:59 +0000 (15:37 +0000)]
rootfs-postcommands: don't write manifest when IMAGE_MANIFEST empty

Return early in write_image_manifest () if the IMAGE_MANIFEST
variable is unset. This allows us to prevent writing of the
manifest where we prevent images being created for a recipe by
unsetting IMAGE_FSTYPES.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake.conf: rename 'gobject-introspection-data' machine feature to 'qemu-usermode'
Alexander Kanavin [Wed, 23 Mar 2016 12:52:05 +0000 (14:52 +0200)]
bitbake.conf: rename 'gobject-introspection-data' machine feature to 'qemu-usermode'

The new value is more general and better reflects what having the feature really means.
Introspection data, then, is built only if 'gobject-introspection-data' is in
DISTRO_FEATURES and 'qemu-usermode' is in MACHINE_FEATURES.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoselftest/devtool: Update after make PROVIDER changes
Richard Purdie [Mon, 28 Mar 2016 14:50:54 +0000 (15:50 +0100)]
selftest/devtool: Update after make PROVIDER changes

Now that make/remake needs a PREFERRED_PROVIDER, we need to set this
correctly during tests.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomake, remake: make them properly exclude each other
Alexander Kanavin [Wed, 23 Mar 2016 12:52:04 +0000 (14:52 +0200)]
make, remake: make them properly exclude each other

Remake and make can't be installed at the same time as they're both installing
a header file with the same name.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agokernel.bbclass: consider .csp firmware files
Khem Raj [Wed, 23 Mar 2016 22:09:32 +0000 (22:09 +0000)]
kernel.bbclass: consider .csp firmware files

Fixes kernels which package sb16 firmware e.g.

directories were installed but not shipped in any package:
  /lib/firmware/sb16
  /lib/firmware/sb16/ima_adpcm_playback.csp
  /lib/firmware/sb16/ima_adpcm_init.csp
  /lib/firmware/sb16/mulaw_main.csp
  /lib/firmware/sb16/ima_adpcm_capture.csp
  /lib/firmware/sb16/alaw_main.csp

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotzdata: update to 2016c
Armin Kuster [Thu, 24 Mar 2016 01:21:51 +0000 (18:21 -0700)]
tzdata: update to 2016c

The 2016c release of the tz code and data is available. Its most urgent change is for Asia/Baku, where the update takes effect this weekend.

This release reflects the following changes, which were either circulated on the tz mailing list or are relatively minor technical or administrative changes:

Changes affecting future time stamps

Azerbaijan no longer observes DST.  (Thanks to Steffen Thorsen.)

Chile reverts from permanent to seasonal DST.  (Thanks to Juan
Correa for the heads-up, and to Tim Parenti for corrections.)
Guess that future transitions are August's and May's second
Saturdays at 24:00 mainland time.  Also, call the period from
2014-09-07 through 2016-05-14 daylight saving time instead of
standard time, as that seems more appropriate now.

Changes affecting past time stamps

Europe/Kaliningrad and Europe/Vilnius changed from +03/+04 to
+02/+03 on 1989-03-26, not 1991-03-31.  Europe/Volgograd changed
from +04/+05 to +03/+04 on 1988-03-27, not 1989-03-26.
(Thanks to Stepan Golosunov.)

Changes to commentary
Several updates and URLs for historical and proposed Russian changes.
(Thanks to Stepan Golosunov, Matt Johnson, and Alexander Krivenyshev.)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotzcode: update to 2016c
Armin Kuster [Thu, 24 Mar 2016 01:21:50 +0000 (18:21 -0700)]
tzcode: update to 2016c

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoicecc.bbclass: replace icc with icecc
Alex Franco [Thu, 24 Mar 2016 01:39:11 +0000 (19:39 -0600)]
icecc.bbclass: replace icc with icecc

Make this class more clear and consistent, and avoid
confusion with the Intel C compiler (icc); the changes
affect function names, and calls to those functions

[YOCTO #8934]

Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoicecc.bbclass: expand package arch
Alex Franco [Thu, 24 Mar 2016 01:39:10 +0000 (19:39 -0600)]
icecc.bbclass: expand package arch

Expanding PACKAGE_ARCH might be necessary as it is being
checked against to determine if this is allarch

[YOCTO #8934]

Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoicecc.bbclass: add icc_is_allarch inherit check
Alex Franco [Thu, 24 Mar 2016 01:39:09 +0000 (19:39 -0600)]
icecc.bbclass: add icc_is_allarch inherit check

Additional check for inheritance of allarch.bbclass, for when
checking that PACKAGE_ARCH == "all" is not enough to be sure
a recipe is "allarch"; e.g. nativesdk-buildtools type recipes

[YOCTO #8934]

Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/sanity: use proper multi-line string literals
Paul Eggleton [Thu, 24 Mar 2016 09:40:08 +0000 (22:40 +1300)]
classes/sanity: use proper multi-line string literals

A python string literal isn't meant to be split over multiple lines
unless it is explicitly multi-line. Use three quotes to indicate that.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-buildenv-internal: simplify derivation of BB_ENV_EXTRAWHITE
Andre McCurdy [Thu, 24 Mar 2016 17:49:22 +0000 (10:49 -0700)]
oe-buildenv-internal: simplify derivation of BB_ENV_EXTRAWHITE

Use 'sort --unique' to combine the two lists and remove duplicates.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agou-boot.inc: Add sub-dir support for SPL_BINARY
Nathan Rossi [Fri, 25 Mar 2016 09:07:12 +0000 (19:07 +1000)]
u-boot.inc: Add sub-dir support for SPL_BINARY

Add support for the SPL_BINARY variable to handle sub directories. In
some cases the SPL binary that needs to be deployed is only built to the
spl/ directory in U-Boot. So that a sub directory can be specified in
the SPL_BINARY variable, handle the case so that the deploy code uses
the basename of the path specified in SPL_BINARY.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoquilt: run ptest as normal user
Dengke Du [Fri, 25 Mar 2016 08:28:54 +0000 (04:28 -0400)]
quilt: run ptest as normal user

When the user is root, run quilt ptest, the faildiff.test failed.
Because in the faildiff.test, we drop the read permission of the
file test.txt, we can't "quilt refresh" as normal user, so we got
the following:
>~ .*diff:test\.txt: Permission denied
> Diff failed on file 'test.txt', aborting
But when the user is root, we can access the file, so we got the
following:
> Nothing in patch patchs/test.diff
So the faildiff.test was failed. We should create a normal user
to run the ptest in the run-ptest scripts to slove the problem.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosite: Cache config vars for ccache
Khem Raj [Fri, 25 Mar 2016 16:42:50 +0000 (09:42 -0700)]
site: Cache config vars for ccache

ccache's configure tries to do a runtime test to
determine hw_cv_func_snprintf_c99 and hw_cv_func_vsnprintf_c99
which wont work in OE.

c99 versions of these functions are provided on all
supported libc implementations in OE-Core

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogdb-cross: use PACKAGECONFIG for python and readline
Jonathan Liu [Fri, 25 Mar 2016 11:33:26 +0000 (22:33 +1100)]
gdb-cross: use PACKAGECONFIG for python and readline

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopseudo: backport a patch to fix xattr removal
Joshua Lock [Thu, 24 Mar 2016 15:58:44 +0000 (15:58 +0000)]
pseudo: backport a patch to fix xattr removal

xattr removal doesn't work in pseudo 1.7.5, backport a patch from
pseudo master to fix this.

[YOCTO #9324]

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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>