summaryrefslogtreecommitdiff
path: root/meta
AgeCommit message (Collapse)AuthorFiles
2016-03-31oe-publish-sdk: exclude sstate-cache if publishing minimal SDKPaul Eggleton2
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>
2016-03-31classes/populate_sdk_ext: support setting vars from environment at build timePaul Eggleton1
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>
2016-03-31scripts, lib: Don't limit traceback lengths to arbitrary valuesRichard Purdie2
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>
2016-03-31pyton-numpy: Add definition of off_t sizeRicardo Ribalda Delgado1
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>
2016-03-31image-live.bbclass: DEPENDS on syslinuxRobert Yang1
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>
2016-03-31ldconfig-native: Fix ELF flags on 64-bit binariesClemens Lang1
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>
2016-03-30recipes-support/rng-tools: Change runlevel start from S to 2, 3, 4, 5.Aníbal Limón1
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>
2016-03-30oeqa/runtime/parselogs.py: Add systemd unit circular dependencies errors.Aníbal Limón1
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>
2016-03-30systemd-serialgetty: allow baud rate overridingAwais Belal1
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>
2016-03-30psmisc: Remove including sys/user.h and __WORDSIZEKhem Raj2
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>
2016-03-30selftest: Added testcase decorator to testsDaniel Istrate4
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>
2016-03-30linux-yocto: add overlayfs featureBruce Ashfield3
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>
2016-03-30linux-yocto/4.4: broxton and usb type-c backportsBruce Ashfield3
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>
2016-03-30linux-yocto/4.4: drm/i915/skl: Fix DMC load on Skylake J0 and K0Bruce Ashfield3
[ 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>
2016-03-30linux-yocto/4.1: Intel Broxton: pwm backportsBruce Ashfield3
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>
2016-03-30linux-yocto/4.1: Apollo Lake/Broxton mmc backportsBruce Ashfield3
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>
2016-03-30linux-yocto/4.1: i2c: designware: Backport i2c patchesBruce Ashfield3
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>
2016-03-30linux-yocto/4.1: device property backportsBruce Ashfield3
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>
2016-03-30linux-yocto/qemuarm64: enable 32 bit compatibilityBruce Ashfield3
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>
2016-03-30linux-yocto/4.1: SMBus/iTCO backportsBruce Ashfield3
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>
2016-03-30default-distrovars.inc: remove gnutls + libtasn1 from LGPLv2_WHITELIST_GPL-3.0Andre McCurdy1
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>
2016-03-30sanity.bbclass: Use pythonexception to raise real exceptions without backtracesRichard Purdie1
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>
2016-03-30sanity: Require bitbake 1.29.1Richard Purdie1
This is for the improved exec_func functionality. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-03-30uninative: Switch md5sum -> sha256Richard Purdie3
There are various concerns about md5 so use sha256 instead. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-03-30gcc: Fix musl ldso name for mips64Khem Raj1
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>
2016-03-30selftest/buildoptions.py: use INHERIT +=Robert Yang1
* INHERIT = -> INHERIT += Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
2016-03-30archiver.bbclass: addtask do_deploy_archives_setsceneRobert Yang1
There was a do_deploy_archives_setscene, but no addtask. Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
2016-03-30gcc-5.3/gcc-4.9: -fdebug-prefix-map support to remap relative pathHongxu Jia4
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>
2016-03-30ptest-runner_2.0.bb: Update recipe to point git.yoctoproject.org repo.Aníbal Limón1
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>
2016-03-29man: fix src/Makefile to work with parallel makeBill Randle2
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>
2016-03-29oeqa/selftest/bbtests: Test bbappend orderDaniel Istrate1
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>
2016-03-29gcc: Backport fixes for musl ssp configurationKhem Raj3
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>
2016-03-29siteinfo: Fix musl 64bit targetsKhem Raj1
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>
2016-03-29musl: Update to tipKhem Raj2
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>
2016-03-29buildhistory.bbclass: create image directory when neededPatrick Ohly1
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>
2016-03-29init-live.sh: fix overlay fsRobert Yang1
* 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>
2016-03-29init-live.sh: fix ROOT_MOUNTRobert Yang1
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>
2016-03-29no-static-libs.inc: build static libusb1-nativeMartin Jansa1
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-03-29sstatesig: Ensure we keep native depends for allarch recipesRichard Purdie1
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>
2016-03-29oe-selftest: generate .env only in test_image_envEd Bartosh1
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>
2016-03-28build-appliance-image: Update to master head revisionRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-03-28build-appliance-image: Fix permissionsJuro Bystricky1
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>
2016-03-28conf/bitbake.conf package.bbclass: fix dbg package not contain sources while ↵Hongxu Jia2
-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>
2016-03-28externalsrc: remove nostamp from do_configureMarkus Lehtonen1
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>
2016-03-28externalsrc: do not use do_configure[nostamp] for git srctreesMarkus Lehtonen1
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>
2016-03-28archiver.bbclass: Just archive gcc-source for all gcc recipesMariano Lopez1
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>
2016-03-28oeqa/utils/ftools: improve remove_from_file algorithmRoss Burton1
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>
2016-03-28xcursor-transparent-theme: upgrade to latest git revisionJohannes Pointner3
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>
2016-03-28gdb: Fix build on mips64/muslKhem Raj2
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>
2016-03-28libunwind: Fix build on mips/mips64 for musl targetsKhem Raj2
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>