]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
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>
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>