summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2017-04-19pixbufcache.bbclass: update postinst script nameMaxin B. John1
The name of postinst scripts created by pixbufcache class contains "useradd" in it. Remove it to avoid confusion. As suggested by RP. Signed-off-by: Maxin B. John <maxin.john@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-04-19Revert "openssl: Fix symlink creation"Jussi Kukkonen1
This reverts commit 991620f3962a9917fa99abb5582f4b72ebd42a3d. The commit breaks openssl-native (you can no longer generate keys because it can't find the configuration file). Also the idea that we would install configuration files normally but then add the symlinks pointing to them in a postinstall feels wrong. Fixes [YOCTO #11296]. The bug contains an alternative fix but I'm sending a revert as I cannot fully understand the motive of the original patch. See also discussion in http://lists.openembedded.org/pipermail/openembedded-core/2017-April/135176.html Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-04-19ltp: fix an incorrect macro checkingJackie Huang1
The previous patch added a check but incorrectly change the elif to if, then it always return 0 for cpuid if the machine is not __i386__ getcpu01 1 TFAIL : getcpu01.c:140: getcpu() returned wrong value expected cpuid:7, returned value cpuid: 0 After this fix: getcpu01 1 TPASS : getcpu() returned proper cpuid:7, node id:0 Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-04-19logrotate: set downloadfilenameRobert Yang1
Otherwise, the filename is r3-9-1.tar.gz which isn't straightforward. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-04-19mesa-demos: add glut dependencyTrevor Woerner1
If the user wants to enable the 'glut' PACKAGECONFIG for mesa-demos, freeglut is required to provide the dependency before the demos can be compiled. NOTE! this is a cross-layer dependency (freeglut is currently only available in meta-oe). However 'glut' is not a default PACKAGECONFIG (so this is allowed). Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-04-19acl: fix race issue when do_compileRobert Yang2
Fixed race issue: In file included from acl_copy_entry.c:22:0: libacl.h:19:21: fatal error: sys/acl.h: No such file or directory #include <sys/acl.h> [snip] compilation terminated. acl_get_file.c:27:24: fatal error: acl/libacl.h: No such file or directory #include <acl/libacl.h> ^ The acl.h is in "include" directory, and include/Makefile creates symlink "sys" and "acl" poinst to current dirctory: $ ls include/ -l acl -> . sys -> . So if "libacl" target runs before "include", the error would happen since no "acl" or "sys" directory. Let libacl depend on include can fix the problem. [YOCTO #11349] Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-04-19devupstream.bbclass: minor typo fixAndre McCurdy1
Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-04-14oe-run-native: print more error messagesRobert Yang1
Fixed: $ bitbake bmap-tools-native -ccleansstate && bitbake bmap-tools-native && oe-run-native bmap-tools-native bmaptool --help [snip] Error: Unable to find '' in <PATH> [snip] Note the blank '' word, it was because "tools" was overrided, now fix it. And also check whether the recipe is a native one or not. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-14pseudo: Backport two upstream fixesRichard Purdie3
Backport fixes from pseudo master for an acl issue and more importantly, a segfault issue with bash which can be triggered by the recent useradd changes. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-14populate_sdk_ext: Add do_addto_recipe_sysroot to BB_SETSCENE_ENFORCE_WHITELISTRichard Purdie1
Without this, eSDK builds are failing due to qemu-helper-native's dependency on this task. It makes sense to allow this to execute in eSDK contexts (its a non-sstate task intentionally). Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-14linux-firmware: Fix build failure when update SRCREV to latest HEADChang, Rebecca Swee Fun1
When we update the SRCREV to latest, we will encouter the following bitbake error. Build error message: | Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 | error: Arch dependent binaries in noarch package | | | RPM build errors: | Missing build-id in /home/phoongst/work2/test00/tmp/work/all-poky-linux/linux-firmware/1_0.0+gitAUTOINC+44d8e8d4fd-r0/package/lib/firmware/netronome/nic_AMDA0081-0001_1x40.nffw | Missing build-id in /home/phoongst/work2/test00/tmp/work/all-poky-linux/linux-firmware/1_0.0+gitAUTOINC+44d8e8d4fd-r0/package/lib/firmware/netronome/nic_AMDA0099-0001_2x25.nffw | Missing build-id in /home/phoongst/work2/test00/tmp/work/all-poky-linux/linux-firmware/1_0.0+gitAUTOINC+44d8e8d4fd-r0/package/lib/firmware/netronome/nic_AMDA0097-0001_8x10.nffw | Missing build-id in /home/phoongst/work2/test00/tmp/work/all-poky-linux/linux-firmware/1_0.0+gitAUTOINC+44d8e8d4fd-r0/package/lib/firmware/netronome/nic_AMDA0081-0001_4x10.nffw | Missing build-id in /home/phoongst/work2/test00/tmp/work/all-poky-linux/linux-firmware/1_0.0+gitAUTOINC+44d8e8d4fd-r0/package/lib/firmware/netronome/nic_AMDA0097-0001_4x10_1x40.nffw | Missing build-id in /home/phoongst/work2/test00/tmp/work/all-poky-linux/linux-firmware/1_0.0+gitAUTOINC+44d8e8d4fd-r0/package/lib/firmware/netronome/nic_AMDA0099-0001_2x10.nffw | Missing build-id in /home/phoongst/work2/test00/tmp/work/all-poky-linux/linux-firmware/1_0.0+gitAUTOINC+44d8e8d4fd-r0/package/lib/firmware/netronome/nic_AMDA0097-0001_2x40.nffw | Missing build-id in /home/phoongst/work2/test00/tmp/work/all-poky-linux/linux-firmware/1_0.0+gitAUTOINC+44d8e8d4fd-r0/package/lib/firmware/netronome/nic_AMDA0096-0001_2x10.nffw | Deprecated external dependency generator is used! | Arch dependent binaries in noarch package | WARNING: exit code 1 from a shell command. This is due to netronome firmware is not included in noarch package. Hence we removed the netronome firmware before it is packaged, until the rpm issue is resolved. Signed-off-by: Chang, Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com> Signed-off-by: Ng, Wei Tee <wei.tee.ng@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-14linux-firmware: Set the license for carl9170 to GPLv2Ng, Wei Tee1
linux-firmwara-carl9170 was set to a wrong license string. Carl9170 firmware is bounded by GPLv2 via code inspection on linux firmware source tree. Hence we include GPLv2 in LICENSE field and set carl9170 firmware to the correct license. [YOCTO #11090] Signed-off-by: Ng, Wei Tee <wei.tee.ng@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-14linux-firmware: update to revision a4dde74bNg, Wei Tee1
-change in amdgpu firmware copyright year -change in radeon firmware copyright year -LICENCE.mwl8335 was removed in linux-firmware source tree -specify the copyright year for siano -change in qla2xxx firmware copyright year Signed-off-by: Ng, Wei Tee <wei.tee.ng@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-13busybox: drop unmaintained _git recipeAndre McCurdy1
The busybox _git recipe is not formally tested or kept up to date. The gstreamer _git recipes were recently removed from oe-core and the justifications for that change apply to the busybox _git recipe too. Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-04-13unzip: add missing CVE headers to patchesRoss Burton2
Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-04-13Revert "dnf: remove systemd units in nativesdk builds"Ross Burton1
nativesdk builds now control the DISTRO_FEATURES (oe-core 731744) so this workaround is no longer required. This reverts commit 415b72ffcbd26e5f3664370d8b2a9b8105fb6342. Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-04-13package_manager.py: Generate separate repo entries per archIan.Arkver1
dnf requires a serparate repo for each architecture. This patch writes one config file per PACKAGE_FEED_URIS entry with an entry for each architecture, if any. It also uses a space separated version of the repo id as the repo name instead of just the id again. Signed-off-by: Ian.Arkver <ian.arkver.dev@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-13gpgme: add a dependency on python-unixadmin to Python bindings packageAlexander Kanavin1
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-13gpgme: correctly avoid host contaminationAlexander Kanavin3
Existing patch was actually doing the wrong thing and sometimes removing a linking flag (-lgpgme) that should be present. Instead, gpgme-config actually has internal logic to remove /usr/lib from the output, which works only in non-multilib setups, so it is adjusted to include all possible /usr/lib* and /lib* directories. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-13classes/populate_sdk_ext: reset TCLIBCAPPEND to get consistent TMPDIRMikko Ylinen1
populate_sdk_ext sets TMPDIR to a known static value with '/tmp' directory name and that name is hard coded in a few places (e.g., in meta-environment-extsdk.bb that writes the eSDK environment variables). Distros that do not reset TCLIBCAPPEND (poky does) end up getting TMPDIR = /tmp-${TCLIBCAPPEND} via defaultsetup.conf and that breaks the functionality in eSDK that expects everything is in /tmp. To get TMPDIR consistent, we also need to reset TCLIBCAPPEND in populate_sdk_ext.bbclass. Fixes: [YOCTO #11298] Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-13devtool: extract: drop erroneous bb.event.TaskStartedPaul Eggleton1
This is a non-existent event - we already have the actual bb.build.TaskSucceeded further down in the list hence why it wasn't noticed earlier. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-13devtool: extract: fix handling of failed tasksPaul Eggleton1
If a task such as do_fetch fails when we're extracting source for a recipe (within devtool modify / upgrade / extract / sync) then we should naturally stop processing instead of blundering on; in order to do that we need to be listening for the TaskFailed event. Thanks to Richard Purdie for noticing and fixing this. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-13devtool: modify: add --keep-temp option for debuggingPaul Eggleton1
Most of the other extract-based commands have this option but oddly I left it out for modify - I guess because if I was debugging an issue here I just used devtool extract to do so, but there's no reason why we can't have it here and it is useful. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-13grep: do_configure: fix "Argument list too long"Robert Yang1
Fixed when len(TMPDIR) = 410: aclocal: error: cannot open echo 'm4_define [snip]' configure.ac |: Argument list too long' This is becuase it has a lot of m4 files, use relative path for them can fix the problem. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-13apt: fix libdir path for apt.systemd.dailyRobert Yang1
It should be ${libdir} rather than /usr/lib, otherwise it would fail when multilib: MACHINE = "qemux86-64" require conf/multilib.conf MULTILIBS = "multilib:lib32" DEFAULTTUNE_virtclass-multilib-lib32 = "x86" $ bitbake apt [snip] install: target /path/to/apt/1.2.12-r0/image/usr/lib/apt is not a directory: No such file or directory [snip] Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-13binconfig.bbclass: fix typo in get_binconfig_mangle()Robert Yang1
It should be -IOEINCDIR, not -I-IOEINCDIR. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-13base-passwd/useradd: Various improvements to useradd with RSSRichard Purdie4
Currently there are multiple issues with useradd: * If base-passwd rebuilds, it wipes out recipe specific user/group additions to sysroots and causes errors * If recipe A adds a user and recipe B depends on A, it can't see any of the users/groups A adds. This patch changes base-passwd so it always works as a postinst script within the sysroot and copies in the master files, then runs any postinst-useradd-* scripts afterwards to add additional user/groups. The postinst-useradd-* scripts are tweaked so that if /etc/passwd doesn't exist they just exit, knowning they'll be executed later. We also add a dummy entry to the dummy passwd file from pseudo so we can avoid this too. There is a problem where if recipe A adds a user and recipe B depends on A but doesn't care about users, it may not have a dependency on the useradd/groupadd tools which would therefore not be available in B's sysroot. We therefore also tweak postinst-useradd-* scripts so that if the tools aren't present we simply don't add users. If you need the users, you add a dependency on the tools in the recipe and they'll be added. We add postinst-* to SSTATE_SCAN_FILES since almost any postinst script of this kind is going to need relocation help. We also ensure that the postinst-useradd script is written into the sstate object as the current script was only being added in a recipe local way. Thanks to Peter Kjellerstedt <pkj@axis.com> and Patrick Ohly for some pieces of this patch. [Yocto #11124] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-13oe-run-native: explicitly use bashbrian avery1
This script sources another script (oe-find-native-sysroot) with arguments. It was using /bin/sh. Sourcing with arguments works only in bash so it was failing in dash. This commit makes it dash proof. Signed-off-by: brian avery <brian.avery@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-13oe-find-native-sysroot: add appopriate suggestionbrian avery1
right now, if it fails, the script tells the user to run bitbake foo -caddto_recipe_sysroot. This works for native recipes but not things like meta-ide. This patch checks whether the recipe is native and gives out the appopriate warning. Signed-off-by: brian avery <brian.avery@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-13oe-find-native-sysroot: work with RSSRobert Yang4
The generic STAGING_DIR_NATIVE is gone since RSS, so when find OECORE_NATIVE_SYSROOT, the user has to specify which recipe's STAGING_DIR_NATIVE will be used as OECORE_NATIVE_SYSROOT. * The usage is changed from ". oe-find-native-sysroot" to ". oe-find-native-sysroot <recipe>". * The oe-run-native's usage has changed from "oe-run-native tool" to "oe-run-native native-recipe tool". Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-13Revert "scripts: change way we find native tools (pseudo)"Ed Bartosh1
This reverts commit f200f37699031cd98f4594b2992e6b0d8f753440. This reverts the patch that fixed runqemu-extract-sdk. It failed to fix other issues in the script/tools that were introduced by RSS. The following patch from Robert Yang fixes both. Therefore, reverting this patch in favor of his. Signed-off-by: brian avery <brian.avery@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-12sstate.bbclass: check if mirror directory is writableEd Bartosh1
Commit 51edde653707e7a3cd2186082458f01f32cd1996 makes a wrong assumption that SSTATE_MIRRORS have write permissions. A mirror is by definition outside of it's user control. In my use case it happens I does not have permissions to update the access time of the dereferenced symbolic-link file. Checked if file is writable before changing its atime. Thanks to Paulo Neves for the patch. [YOCTO #11307] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-12qemuboot: write native sysroot of qemu-helper into qemuboot.confEd Bartosh1
Native sysroot of qemu-helper contains all required tools (qemu-system and tunctl atm) for runqemu to work. It's not removed by rm_dir and should always exist. It makes sense to write it into qemuboot.conf to make runqemu to use it as a default directory for native tools. This should also speed up runqemu as it doesn't need to run to run 'bitbake qemu-helper -e' to get its native sysroot. [YOCTO #11266] [YOCTO #11193] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-12runqemu: use bindir_native property to run ifup/down scriptsEd Bartosh3
Used self.bindir_native to point out to the native sysroot when running runqemu-ifup and runqemu-ifdown scripts. [YOCTO #11266] [YOCTO #11193] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-12runqemu: add bindir_native propertyEd Bartosh1
Isolated logic of getting path to native bin directory in new bindir_native property method. This property is going to be used to obtain location of qemu-sytem and tunctl. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-12runqemu: get qemu from qemu-helper-native sysrootEd Bartosh1
If rm_work is enabled image native sysroot can be removed. This makes runqemu to fail trying to find qemu binary. Used native sysroot of qemu-helper-native to find system qemu binary. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-12qemu-helper-native: prepare native sysroot for runqemubrian avery1
Make sure that native sysroot contains qemu and tunctl binaries for runqemu usage: - excluded native sysroot from rm_work - added qemu-native to DEPENDS to put qemu binaries into native sysroot - forced addto_recipe_sysroot task [YOCTO #11266] [YOCTO #11193] Signed-off-by: brian avery <brian.avery@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-12linux-yocto-dev: update to v4.11+Bruce Ashfield1
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-12linux-yocto/4.10: update to v4.10.9Bruce Ashfield3
Updating to the korg stable release, with the following changes: f6392b77fb91 Linux 4.10.9 59529be9c99e drm/i915: A hotfix for making aliasing PPGTT work for GVT-g 0efab45f7092 drm/i915: Let execlist_update_context() cover !FULL_PPGTT mode. e47bc4fb5db4 drm/i915: Move the release of PT page to the upper caller e33cb9747fdf nvme/pci: Disable on removal when disconnected 2bfe1b12a496 nvme/core: Fix race kicking freed request_queue 311cd5ae37e7 padata: avoid race in reordering a591a05f1d0a blk: Ensure users for current->bio_list can see the full list. 75a778ed4f3d blk: improve order of bio handling in generic_make_request() b576c5833134 MIPS: Lantiq: Fix cascaded IRQ setup 77149f08767e ARM: dts: BCM5301X: Correct GIC_PPI interrupt flags 1229cd2fa5e0 drm/armada: Fix compile fail 847f0ffc12ae mm, hugetlb: use pte_present() instead of pmd_present() in follow_huge_pmd() 61b76d7af8e4 mm: workingset: fix premature shadow node shrinking with cgroups 9f424db185a2 mm: rmap: fix huge file mmap accounting in the memcg stats fb29fe35575a lib/syscall: Clear return values when no stack be6647667608 x86/mce: Fix copy/paste error in exception table entries 4ea2e307c7cf x86/mm/KASLR: Exclude EFI region from KASLR VA space randomization d0a9dba54764 drm/i915/kvmgt: Hold struct kvm reference 65e5e864aad9 drm/etnaviv: (re-)protect fence allocation with GPU mutex 4a1b7b6c82dc drm/vc4: Allocate the right amount of space for boot-time CRTC state. 7a8453634601 drm/radeon: Override fpfn for all VRAM placements in radeon_evict_flags 5b79ca06a51d KVM: kvm_io_bus_unregister_dev() should never fail 00a3ca394871 KVM: x86: clear bus pointer when destroyed b3ff1bac80ab serial: mxs-auart: Fix baudrate calculation 782cb86b0155 USB: fix linked-list corruption in rh_call_control() 6f168275df2e xhci: Set URB actual length for stopped control transfers 3cacfce024b1 tty/serial: atmel: fix TX path in atmel_console_write() 3eadc2dccb51 tty/serial: atmel: fix race condition (TX+DMA) 4f6116cf520c ACPI: Do not create a platform_device for IOAPIC/IOxAPIC af7550a70dad ACPI: Fix incompatibility with mcount-based function graph tracing 92bca7fa882f parisc: Fix access fault handling in pa_memcpy() fc12a50f7742 parisc: Avoid stalled CPU warnings after system shutdown 37e623429737 parisc: Clean up fixup routines for get_user()/put_user() 4bcd2ca3c361 dt-bindings: rng: clocks property on omap_rng not always mandatory be14ea08d26f nfsd: map the ENOKEY to nfserr_perm for avoiding warning 8f5cfd1af067 NFSv4.1 fix infinite loop on IO BAD_STATEID error 61e6e72e9f9c ARCv2: SLC: Make sure busy bit is set properly on SLC flushing 9fef1e65279d crypto: xts,lrw - fix out-of-bounds write after kmalloc failure 5a16448c2132 crypto: ccp - Make some CCP DMA channels private 79105a2f8146 mmc: sdhci-of-at91: fix MMC_DDR_52 timing selection 41ece35ef4b4 mmc: sdhci: Disable runtime pm when the sdio_irq is enabled d4dd65ff6716 HID: wacom: Don't add ghost interface as shared data 617c6850480b ASoC: rt5665: fix getting wrong work handler container 29f675437ceb ASoC: Intel: Skylake: fix invalid memory access due to wrong reference of pointer 48a5a47a050c ASoC: atmel-classd: fix audio clock rate e12a232e9b64 ALSA: hda - fix a problem for lineout on a Dell AIO machine c36ef6467420 ALSA: seq: Fix race during FIFO resize d2e79b56ba2e PCI: thunder-pem: Use Cavium assigned hardware ID for ThunderX host controller d9c6a97b3fae PCI: iproc: Save host bridge window resource in struct iproc_pcie ef97d9485efa scsi: scsi_dh_alua: Ensure that alua_activate() calls the completion function 2b1725d1df36 scsi: scsi_dh_alua: Check scsi_device_get() return value 905385ad1309 scsi: libsas: fix ata xfer length f7019040f6d7 scsi: sg: check length passed to SG_NEXT_CMD_LEN f031e4f54f98 xfs: try any AG when allocating the first btree block when reflinking 83d33266c371 xfs: use iomap new flag for newly allocated delalloc blocks ee74519c0876 xfs: Use xfs_icluster_size_fsb() to calculate inode alignment mask 87cdf91a6bf4 xfs: fix and streamline error handling in xfs_end_io 1c0d974bea21 xfs: only reclaim unwritten COW extents periodically 5d834e1adcb0 xfs: tune down agno asserts in the bmap code 854a9bf0acb1 xfs: Use xfs_icluster_size_fsb() to calculate inode chunk alignment 8c1e9cfd5b67 xfs: don't reserve blocks for right shift transactions a3aca9b42d6f xfs: fix uninitialized variable in _reflink_convert_cow 1d7babf19237 xfs: split indlen reservations fairly when under reserved 177227735045 xfs: handle indlen shortage on delalloc extent merge 0b20c0afbb84 xfs: don't fail xfs_extent_busy allocation e8eb2c060902 xfs: correct null checks and error processing in xfs_initialize_perag 304ec448ee8b xfs: update ctime and mtime on clone destinatation inodes 900c499df454 xfs: reject all unaligned direct writes to reflinked files 17c17805b76e xfs: reset b_first_retry_time when clear the retry status of xfs_buf_t b0f88f0deb50 xfs: mark speculative prealloc CoW fork extents unwritten a0c46fae264a xfs: allow unwritten extents in the CoW fork 1dc0e72c13e7 xfs: verify free block header fields 58565508b2b3 xfs: check for obviously bad level values in the bmbt root 2b9dcb947e73 xfs: filter out obviously bad btree pointers cb308466d6dc xfs: fail _dir_open when readahead fails 8059f06199f0 xfs: fix toctou race when locking an inode to access the data map 025770917bcb xfs: fix eofblocks race with file extending async dio writes 696bfc8ec85c xfs: sync eofblocks scans under iolock are livelock prone ff4ea420698d xfs: pull up iolock from xfs_free_eofblocks() 3eb243290edf KVM: nVMX: fix nested EPT detection 8a7eb087a5a4 libceph: force GFP_NOIO for socket allocations 3fdae700a361 Linux 4.10.8 d6854f591c22 usb: musb: fix possible spinlock deadlock ca908a9a57e7 sched/rt: Add a missing rescheduling point 15eea140d991 qla2xxx: Allow vref count to timeout on vport delete. f7c1a6ec45d6 metag/ptrace: Reject partial NT_METAG_RPIPE writes 400763ea4357 metag/ptrace: Provide default TXSTATUS for short NT_PRSTATUS 3e0a29e1b6c6 metag/ptrace: Preserve previous registers for short regset write fc1ff8342c66 sparc/ptrace: Preserve previous registers for short regset write d1b2aeaa4bcd mips/ptrace: Preserve previous registers for short regset write 53adbfdf3133 h8300/ptrace: Fix incorrect register transfer count ff7ff50d9c07 c6x/ptrace: Remove useless PTRACE_SETREGSET implementation 90a1cbf54eb6 pinctrl: qcom: Don't clear status bit on irq_unmask d4a3eba0eb0f virtio_balloon: init 1st buffer in stats vq 71a434f7c9b8 KVM: x86: cleanup the page tracking SRCU instance 737f7378c7e9 KVM: nVMX: Fix nested VPID vmx exec control 843e5b6c801a xfrm_user: validate XFRM_MSG_NEWAE incoming ESN size harder ffcf5de81520 xfrm_user: validate XFRM_MSG_NEWAE XFRMA_REPLAY_ESN_VAL replay_window 58333eaf3123 xfrm: policy: init locks early 55db23d3a51e Linux 4.10.7 0dad3de86825 crypto: algif_hash - avoid zero-sized array f9955dcaceae fbcon: Fix vc attr at deinit 2a3241044b1c drm: reference count event->completion 597584832d0c xen: do not re-use pirq number cached in pci device msi msg data 535693055d2a cpuidle: Validate cpu_dev in cpuidle_add_sysfs() a27142e6d0eb scsi: sd: Check for unaligned partial completion 66c0812889de device-dax: fix pmd/pte fault fallback handling 96aa12df2410 libceph: don't set weight to IN when OSD is destroyed 8b38e3191816 mmc: block: Fix is_waiting_last_req set incorrectly f2a9bf4d93df Drivers: hv: vmbus: Don't leak memory when a channel is rescinded 840065777b4d Drivers: hv: vmbus: Don't leak channel ids f8dd767b84e2 intel_th: Don't leak module refcount on failure to activate 7bf105ac9277 jbd2: don't leak memory if setting up journal fails 8668c61ba509 auxdisplay: img-ascii-lcd: add missing sentinel entry in img_ascii_lcd_matches 67dfc0850f71 drm/amd/amdgpu: add POLARIS12 PCI ID a7a14362e278 drm/amdgpu: reinstate oland workaround for sclk 51d3848c10b3 cpsw/netcp: cpts depends on posix_timers 16379a79ee45 blk-mq: don't complete un-started request in timeout handler fee328fee946 cgroup, net_cls: iterate the fds of only the tasks which are being migrated 3742b9a08682 cpufreq: Restore policy min/max limits on CPU online fc0af2511915 arm64: kaslr: Fix up the kernel image alignment f464f86d8b8d ARM: at91: pm: cpu_idle: switch DDR to power-down mode 166fdccc86a5 Revert "ARM: at91/dt: sama5d2: Use new compatible for ohci node" 514e122cf8d0 iommu/exynos: Workaround FLPD cache flush issues for SYSMMU v5 03d92bd5b426 iommu/exynos: Block SYSMMU while invalidating FLPD cache b7d02d90d03a iommu/vt-d: Fix NULL pointer dereference in device_to_iommu fa477d804fd3 xen/acpi: upload PM state from init-domain to Xen 8b0219e35b43 vfio: Rework group release notifier warning 0d05871e5e43 fscrypt: remove broken support for detecting keyring key revocation f115bf08b7d2 crypto: ccp - Assign DMA commands to the channel's CCP c62625b6b383 ath10k: fix incorrect wlan_mac_base in qca6174_regs 2f69745c309c mwifiex: pcie: don't leak DMA buffers when removing ad3b48d36e0d clk: sunxi-ng: mp: Adjust parent rate for pre-dividers 9300e322b68d clk: sunxi-ng: sun6i: Fix enable bit offset for hdmi-ddc module clock 76b5eb51114a hwrng: geode - Revert managed API changes 9b35f163f7fe hwrng: amd - Revert managed API changes ce6c155ada08 mmc: sdhci-pci: Do not disable interrupts in sdhci_intel_set_power f89c8a5007b2 mmc: sdhci: Do not disable interrupts while waiting for clock b821a0a5fde9 mmc: sdhci-of-arasan: fix incorrect timeout clock 116418547216 mmc: sdhci-of-at91: Support external regulators a0c48115cd23 audit: fix auditd/kernel connection state tracking 72c89fa6106a powerpc/64s: Fix idle wakeup potential to clobber registers 35637b59f675 ext4: lock the xattr block before checksuming it 26512e52106d ext4: mark inode dirty after converting inline directory 762602796be6 ppdev: fix registering same device name f8155f4e6368 parport: fix attempt to write duplicate procfiles c3a22b5f4339 mei: don't wait for os version message reply 0dc119af06a5 mei: fix deadlock on mei reset bf1aedff42b2 iio: magnetometer: ak8974: remove incorrect __exit markups 6c2aab07d124 iio: hid-sensor-trigger: Change get poll value function order to avoid sensor properties losing after resume from S3 9323d92a280b iio: sw-device: Fix config group initialization a12d1eadd0d1 iio: adc: ti_am335x_adc: fix fifo overrun recovery f4004c87c8c6 mmc: core: Fix access to HS400-ES devices a56eba20b447 nl80211: fix dumpit error path RTNL deadlocks f876c1039440 mmc: ushc: fix NULL-deref at probe 90c2bb66e98e uwb: hwa-rc: fix NULL-deref at probe 05393ccea6e3 uwb: i1480-dfu: fix NULL-deref at probe bb486e80a13f USB: usbtmc: fix probe error path ad1bbccdf018 USB: usbtmc: add missing endpoint sanity check 9ec0027442cb usb: hub: Fix crash after failure to read BOS descriptor 9eae384ab967 usb: musb: cppi41: don't check early-TX-interrupt for Isoch transfer a769fe27a7cf USB: wusbcore: fix NULL-deref at probe bcf394acf736 USB: idmouse: fix NULL-deref at probe f615aa74026f USB: lvtest: fix NULL-deref at probe 0918c32f09dd USB: uss720: fix NULL-deref at probe dfdd59a3ec07 usb-core: Add LINEAR_FRAME_INTR_BINTERVAL USB quirk aacb73b7ae2f dvb-usb-firmware: don't do DMA on stack f1b221121b16 usb: gadget: f_uvc: Fix SuperSpeed companion descriptor's wBytesPerInterval c37fcc17bf36 ACM gadget: fix endianness in notifications 7cdfdddb2e61 USB: serial: qcserial: add Dell DW5811e b1849b029cc1 USB: serial: option: add Quectel UC15, UC20, EC21, and EC25 modems 37e91f5d0105 ALSA: hda - Adding a group of pin definition to fix headset problem 0b7e15f1a165 ALSA: ctxfi: Fix the incorrect check of dma_set_mask() call 4c381c7affcb ALSA: seq: Fix racy cell insertions during snd_seq_pool_done() 9ccad2dfe28c Input: sur40 - validate number of endpoints before using them fb50058c7970 Input: kbtab - validate number of endpoints before using them 865b020ff2a1 Input: cm109 - validate number of endpoints before using them 69cbb678881a Input: yealink - validate number of endpoints before using them e8861cb37faf Input: hanwang - validate number of endpoints before using them 9318ae922a52 Input: ims-pcu - validate number of endpoints before using them ed6a66dc2f7a Input: iforce - validate number of endpoints before using them b5157d07935b Input: i8042 - add noloop quirk for Dell Embedded Box PC 3000 f1d4be3d754c Input: elan_i2c - add ASUS EeeBook X205TA special touchpad fw b87dd1d7dacc Input: ALPS - fix trackstick button handling on V8 devices 0186e6a4e501 Input: ALPS - fix V8+ protocol handling (73 03 28) 00ca1a71292c HID: sony: Fix input device leak when connecting a DS4 twice using USB/BT de93e41f7734 net: solve a NAPI race a1fd7338b43e amd-xgbe: Fix the ECC-related bit position definitions d3add547afd3 tcp: initialize icsk_ack.lrcvtime at session start time a3639645a94b genetlink: fix counting regression on ctrl_dumpfamily() aaa31c62f737 socket, bpf: fix sk_filter use after free in sk_clone_lock 1880e1308e9d ipv4: provide stronger user input validation in nl_fib_input() 212508f709ab net: bcmgenet: remove bcmgenet_internal_phy_setup() 30b72691dbca ipv6: make sure to initialize sockc.tsflags before first use 4162e85c7134 net/mlx5e: Count LRO packets correctly 4ec387a74cdc net/mlx5e: Count GSO packets correctly 345aad1f4602 net/mlx5: Increase number of max QPs in default profile 458034b72f35 net/mlx5e: Avoid supporting udp tunnel port ndo for VF reps daa6e01308ad net/mlx5e: Use the proper UAPI values when offloading TC vlan actions b709b83ea5ec net/mlx5: E-Switch, Don't allow changing inline mode when flows are configured 402073e7e39a net/mlx5e: Change the TC offload rule add/del code path to be per NIC or E-Switch 5e96d44bbdd4 net/mlx5: Add missing entries for set/query rate limit commands eccc68710eff net: vrf: Reset rt6i_idev in local dst after put 29323e2def48 qmi_wwan: add Dell DW5811e 4f320b855b8a net: unix: properly re-increment inflight counter of GC discarded candidates d965848569f9 openvswitch: Add missing case OVS_TUNNEL_KEY_ATTR_PAD ae9d577f3dbb amd-xgbe: Fix jumbo MTU processing on newer hardware 5dd697af3014 net: properly release sk_frag.page 200caa0be5d2 net: bcmgenet: Do not suspend PHY if Wake-on-LAN is enabled 3c9f2c656aca net/openvswitch: Set the ipv6 source tunnel key address attribute correctly df6ed56f4352 Linux 4.10.6 dcb196787cd9 drm/amdgpu/si: add dpm quirk for Oland 9ec87191ecee cgroup/pids: remove spurious suspicious RCU usage warning db79c1978953 percpu: acquire pcpu_lock when updating pcpu_nr_empty_pop_pages a69813714424 gfs2: Avoid alignment hole in struct lm_lockname d369c16ffb46 isdn/gigaset: fix NULL-deref at probe 169c4019c7be target: Fix VERIFY_16 handling in sbc_parse_cdb 4a657746c52a scsi: mpt3sas: Avoid sleeping in interrupt context d4700e2050df scsi: libiscsi: add lock around task lists to fix list corruption regression 5b769ee1ff5f scsi: lpfc: Add shutdown method for kexec a62438951a61 target/pscsi: Fix TYPE_TAPE + TYPE_MEDIMUM_CHANGER export 11de2d238d6f md/raid1/10: fix potential deadlock a42f27d91de7 hwrng: omap - Do not access INTMASK_REG on EIP76 65eb69be1999 hwrng: omap - use devm_clk_get() instead of of_clk_get() 48207bda7d79 hwrng: omap - write registers after enabling the clock fd6fb9243d56 powerpc/boot: Fix zImage TOC alignment 602ef5c5b0c5 cpufreq: Fix and clean up show_cpuinfo_cur_freq() 84f16bb39c77 NFS prevent double free in async nfs4_exchange_id a3c7894422c9 xprtrdma: Squelch kbuild sparse complaint 3e037a0fe0b6 md/r5cache: fix set_syndrome_sources() for data in cache 2fe91a8e5fd3 perf/core: Fix event inheritance on fork() b1769d8402f2 perf/core: Fix use-after-free in perf_release() f194549ebe65 parisc: Fix system shutdown halt f81a9940e5ad parisc: support R_PARISC_SECREL32 relocation in modules 13ad0be78574 parisc: Optimize flush_kernel_vmap_range and invalidate_kernel_vmap_range 13b178142b19 qla2xxx: Fix request queue corruption. b7306a2e2f62 qla2xxx: Fix memory leak for abts processing afd4fdd0da49 give up on gcc ilog2() constant optimizations Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-12linux-yocto/4.9: update to v4.9.21Bruce Ashfield3
Updating to the korg -stable release, with the following shortlog summary: 37feaf8095d3 Linux 4.9.21 02b23e059a9d nvme/pci: Disable on removal when disconnected a5e39a7f2985 nvme/core: Fix race kicking freed request_queue eb8c62a3848e padata: avoid race in reordering 5959cded91e3 blk: Ensure users for current->bio_list can see the full list. d5986e0078f2 blk: improve order of bio handling in generic_make_request() e3a55294fc20 mm: workingset: fix premature shadow node shrinking with cgroups 362721c4957d MIPS: Lantiq: Fix cascaded IRQ setup 1b442f9bdf9a ARM: dts: BCM5301X: Correct GIC_PPI interrupt flags c1716f0c35cc qla2xxx: Allow vref count to timeout on vport delete. 5ed56ca86f96 ARM: BCM5301X: Add back handler ignoring external imprecise aborts 40c5b99f8ace mm, hugetlb: use pte_present() instead of pmd_present() in follow_huge_pmd() b5707920e4d8 mm: rmap: fix huge file mmap accounting in the memcg stats 673dfb6d1bb4 lib/syscall: Clear return values when no stack af5ef6dafea0 x86/mce: Fix copy/paste error in exception table entries 2211d19ac6dd x86/mm/KASLR: Exclude EFI region from KASLR VA space randomization 4366c7e346ce drm/etnaviv: (re-)protect fence allocation with GPU mutex 6acf52070857 drm/vc4: Allocate the right amount of space for boot-time CRTC state. fa68e1d3cecc drm/radeon: Override fpfn for all VRAM placements in radeon_evict_flags 1563625c717c KVM: kvm_io_bus_unregister_dev() should never fail ef46a13b9c4e KVM: x86: clear bus pointer when destroyed 5289f1ce39a7 serial: mxs-auart: Fix baudrate calculation 67e41b1368b1 USB: fix linked-list corruption in rh_call_control() 1f1c9e29651d tty/serial: atmel: fix TX path in atmel_console_write() e087ae68e87b tty/serial: atmel: fix race condition (TX+DMA) b3641939b1ae ACPI: Do not create a platform_device for IOAPIC/IOxAPIC 000d2bb6c059 ACPI: Fix incompatibility with mcount-based function graph tracing 76343bfbcafa parisc: Fix access fault handling in pa_memcpy() 99e354a59ac5 parisc: Avoid stalled CPU warnings after system shutdown 09b931fcb87c parisc: Clean up fixup routines for get_user()/put_user() 3967cf7e6a91 nfsd: map the ENOKEY to nfserr_perm for avoiding warning 461bbb90942a NFSv4.1 fix infinite loop on IO BAD_STATEID error 80df2b3e185e mmc: sdhci-of-at91: fix MMC_DDR_52 timing selection fa3b4f4f574a mmc: sdhci: Disable runtime pm when the sdio_irq is enabled 8d6c33224261 HID: wacom: Don't add ghost interface as shared data e5a134739151 ASoC: Intel: Skylake: fix invalid memory access due to wrong reference of pointer 7a042a4eeb8d ASoC: atmel-classd: fix audio clock rate 8aabccdc9d4f ALSA: hda - fix a problem for lineout on a Dell AIO machine 74a2c1ff88a4 ALSA: seq: Fix race during FIFO resize 0dd5b335ed69 PCI: iproc: Save host bridge window resource in struct iproc_pcie 8f9155989f12 scsi: scsi_dh_alua: Ensure that alua_activate() calls the completion function 68b275b7cbf0 scsi: scsi_dh_alua: Check scsi_device_get() return value cf31d6d21559 scsi: libsas: fix ata xfer length c2a869527865 scsi: sg: check length passed to SG_NEXT_CMD_LEN d5dbd1c95920 xfs: try any AG when allocating the first btree block when reflinking da617af8f0c6 xfs: use iomap new flag for newly allocated delalloc blocks 77aedb0cbe6a xfs: Use xfs_icluster_size_fsb() to calculate inode alignment mask d07b5855ab7f xfs: fix and streamline error handling in xfs_end_io 3b83a02af271 xfs: only reclaim unwritten COW extents periodically a24029369433 xfs: tune down agno asserts in the bmap code 9559c48c1a7d xfs: Use xfs_icluster_size_fsb() to calculate inode chunk alignment 5db7b41b607d xfs: don't reserve blocks for right shift transactions e5e2e56fd4dd xfs: fix uninitialized variable in _reflink_convert_cow c251c6c2dec9 xfs: split indlen reservations fairly when under reserved 2d7c1c7ffafd xfs: handle indlen shortage on delalloc extent merge 47d7d1ea6c5f xfs: don't fail xfs_extent_busy allocation 5bbf5ba693ac xfs: reject all unaligned direct writes to reflinked files 67eb7bf836af xfs: update ctime and mtime on clone destinatation inodes e060f4884c93 xfs: reset b_first_retry_time when clear the retry status of xfs_buf_t e02f0ff252f2 xfs: mark speculative prealloc CoW fork extents unwritten 8370826f7d32 xfs: allow unwritten extents in the CoW fork 3d2bd2fd5cba xfs: verify free block header fields 4056a74aafba xfs: check for obviously bad level values in the bmbt root efab3ae29c15 xfs: filter out obviously bad btree pointers 7e2dd1fb7102 xfs: fail _dir_open when readahead fails 0a6844abacc1 xfs: fix toctou race when locking an inode to access the data map 4127a5d9fb89 xfs: fix eofblocks race with file extending async dio writes 4d725d7474df xfs: sync eofblocks scans under iolock are livelock prone 798b1dc5cbdf xfs: pull up iolock from xfs_free_eofblocks() 08a2a2681682 xfs: use per-AG reservations for the finobt 9be1c33d4a99 xfs: only update mount/resv fields on success in __xfs_ag_resv_init 8b08aec62c24 xen/setup: Don't relocate p2m over existing one 860153772461 libceph: force GFP_NOIO for socket allocations f67677274670 Linux 4.9.20 1dc3a068cc11 usb: musb: fix possible spinlock deadlock 916c5cfeab40 sched/rt: Add a missing rescheduling point 2984e52c75c6 fscrypt: remove broken support for detecting keyring key revocation 21c95eca627b metag/ptrace: Reject partial NT_METAG_RPIPE writes 2d6532ceb45b metag/ptrace: Provide default TXSTATUS for short NT_PRSTATUS 2739b4874165 metag/ptrace: Preserve previous registers for short regset write 84b94c4356c6 sparc/ptrace: Preserve previous registers for short regset write 0ba34c87f7ce mips/ptrace: Preserve previous registers for short regset write 616fe993f410 h8300/ptrace: Fix incorrect register transfer count d77bd2d6a478 c6x/ptrace: Remove useless PTRACE_SETREGSET implementation dd6054234bd8 pinctrl: qcom: Don't clear status bit on irq_unmask b82b2f930c2b virtio_balloon: init 1st buffer in stats vq 3e8c6bd9dbc4 KVM: x86: cleanup the page tracking SRCU instance 79191ea36dc9 xfrm_user: validate XFRM_MSG_NEWAE incoming ESN size harder 64a5465799ee xfrm_user: validate XFRM_MSG_NEWAE XFRMA_REPLAY_ESN_VAL replay_window f68a09c7944e xfrm: policy: init locks early c8e131605de2 Linux 4.9.19 bc959a402d1e crypto: algif_hash - avoid zero-sized array 3fd37725c4e0 fbcon: Fix vc attr at deinit c75fe7899538 drm: reference count event->completion 56769e7a0526 nl80211: fix dumpit error path RTNL deadlocks 7b3c8b2a2e63 drm/bridge: analogix dp: Fix runtime PM state on driver bind eae72468c45d device-dax: fix pmd/pte fault fallback handling 81ec3dc1de0a libceph: don't set weight to IN when OSD is destroyed df1fe6c9ad48 Drivers: hv: vmbus: Don't leak memory when a channel is rescinded b1f6b0a5a066 Drivers: hv: vmbus: Don't leak channel ids 3076066bb507 intel_th: Don't leak module refcount on failure to activate b176a6eed370 jbd2: don't leak memory if setting up journal fails 90f39ad2ce94 auxdisplay: img-ascii-lcd: add missing sentinel entry in img_ascii_lcd_matches 9740abe0fd18 drm/amdgpu: reinstate oland workaround for sclk 21d17f1b53ce blk-mq: don't complete un-started request in timeout handler 62f6341c858b cgroup, net_cls: iterate the fds of only the tasks which are being migrated f565084692d6 cpufreq: Restore policy min/max limits on CPU online b9ed800f7188 arm64: kaslr: Fix up the kernel image alignment 2ab97521ce11 ARM: at91: pm: cpu_idle: switch DDR to power-down mode ca5477ad190b Revert "ARM: at91/dt: sama5d2: Use new compatible for ohci node" 352c0214b7f2 iommu/vt-d: Fix NULL pointer dereference in device_to_iommu bc63212d2271 xen/acpi: upload PM state from init-domain to Xen b1ef9daa50cc crypto: ccp - Assign DMA commands to the channel's CCP cb6e07ba5878 mwifiex: pcie: don't leak DMA buffers when removing 35ef543eb372 clk: sunxi-ng: mp: Adjust parent rate for pre-dividers 867f7804ce65 clk: sunxi-ng: sun6i: Fix enable bit offset for hdmi-ddc module clock c445f9969641 hwrng: geode - Revert managed API changes 5d6f7b36111d hwrng: amd - Revert managed API changes 0d69a8804134 mmc: sdhci-pci: Do not disable interrupts in sdhci_intel_set_power b43ba21b3523 mmc: sdhci: Do not disable interrupts while waiting for clock 2ab2e879110b mmc: sdhci-of-arasan: fix incorrect timeout clock ace22e6fdb4f mmc: sdhci-of-at91: Support external regulators 1e360905f61f powerpc/64s: Fix idle wakeup potential to clobber registers 9a9dc3ec7ce1 ext4: lock the xattr block before checksuming it f572ba9a7138 ext4: mark inode dirty after converting inline directory 0f29bcfdcf68 parport: fix attempt to write duplicate procfiles 1e6b50335012 iio: magnetometer: ak8974: remove incorrect __exit markups 9808ff151781 iio: hid-sensor-trigger: Change get poll value function order to avoid sensor properties losing after resume from S3 cf43d679ccc5 iio: sw-device: Fix config group initialization ec271b0e05b2 iio: adc: ti_am335x_adc: fix fifo overrun recovery dfcacd07bf06 mmc: ushc: fix NULL-deref at probe 2e7486a05b81 uwb: hwa-rc: fix NULL-deref at probe f01c54fe0a8f uwb: i1480-dfu: fix NULL-deref at probe 5e50afb2273c USB: usbtmc: fix probe error path 73c4e2ede5a9 USB: usbtmc: add missing endpoint sanity check 4e615886770a usb: hub: Fix crash after failure to read BOS descriptor 51a3f3ec531a usb: musb: cppi41: don't check early-TX-interrupt for Isoch transfer 46aeeb2ac18a USB: wusbcore: fix NULL-deref at probe a4887ea588e9 USB: idmouse: fix NULL-deref at probe 21e0621e3cd7 USB: lvtest: fix NULL-deref at probe e4942716bb78 USB: uss720: fix NULL-deref at probe 222ccd4f837b usb-core: Add LINEAR_FRAME_INTR_BINTERVAL USB quirk d8ec35ad8b36 usb: gadget: f_uvc: Fix SuperSpeed companion descriptor's wBytesPerInterval ff8d97a822c6 ACM gadget: fix endianness in notifications 381420a46ae5 USB: serial: qcserial: add Dell DW5811e 21586e4dcc9b USB: serial: option: add Quectel UC15, UC20, EC21, and EC25 modems 0fe8771373c2 ALSA: hda - Adding a group of pin definition to fix headset problem e800ff1fade6 ALSA: ctxfi: Fix the incorrect check of dma_set_mask() call ca79952dfc63 ALSA: seq: Fix racy cell insertions during snd_seq_pool_done() 425823646eae Input: sur40 - validate number of endpoints before using them b1feb4e5aab4 Input: kbtab - validate number of endpoints before using them 83d920e464fa Input: cm109 - validate number of endpoints before using them 9f6a8dca9874 Input: yealink - validate number of endpoints before using them d9a3e6424e61 Input: hanwang - validate number of endpoints before using them 1f5a512844a8 Input: ims-pcu - validate number of endpoints before using them 0afac79f6696 Input: iforce - validate number of endpoints before using them de2ba8081e6d Input: i8042 - add noloop quirk for Dell Embedded Box PC 3000 3c9da7cfb7cf Input: elan_i2c - add ASUS EeeBook X205TA special touchpad fw 4ccef6bd3a02 Input: ALPS - fix trackstick button handling on V8 devices 81643d000315 Input: ALPS - fix V8+ protocol handling (73 03 28) 9e13bcef2469 tcp: initialize icsk_ack.lrcvtime at session start time a53ea6051c7f socket, bpf: fix sk_filter use after free in sk_clone_lock 62e85fe59072 ipv4: provide stronger user input validation in nl_fib_input() 2f94dd54cfe6 net: bcmgenet: remove bcmgenet_internal_phy_setup() d80caeb9b86d ipv6: make sure to initialize sockc.tsflags before first use c87ef8734d25 net/mlx5e: Count LRO packets correctly 36bb24fadbaa net/mlx5e: Count GSO packets correctly 0ceb7181e876 net/mlx5: Increase number of max QPs in default profile 38d23e13ba07 net/mlx5e: Use the proper UAPI values when offloading TC vlan actions f375f73c720b net/mlx5: Add missing entries for set/query rate limit commands 4e7c821b6862 net: vrf: Reset rt6i_idev in local dst after put 4b9b7f17bab1 qmi_wwan: add Dell DW5811e 91ad0c0885c8 net: unix: properly re-increment inflight counter of GC discarded candidates ef7c1e297d44 openvswitch: Add missing case OVS_TUNNEL_KEY_ATTR_PAD fafc9555d87a amd-xgbe: Fix jumbo MTU processing on newer hardware e9c1b1ab1225 net: properly release sk_frag.page 4d5bc781eb2c net: bcmgenet: Do not suspend PHY if Wake-on-LAN is enabled 03e9554ac48f net/openvswitch: Set the ipv6 source tunnel key address attribute correctly 2a486264b736 Linux 4.9.18 c2eeabe94145 ext4: fix fencepost in s_first_meta_bg validation dea2f1e0c5e9 drm/amdgpu/si: add dpm quirk for Oland 228514bf2430 cgroup/pids: remove spurious suspicious RCU usage warning 3f406ecddf8a percpu: acquire pcpu_lock when updating pcpu_nr_empty_pop_pages a33e71c5f0cb gfs2: Avoid alignment hole in struct lm_lockname c795d8780cc8 isdn/gigaset: fix NULL-deref at probe 033850b95300 target: Fix VERIFY_16 handling in sbc_parse_cdb de1ff848c74f scsi: libiscsi: add lock around task lists to fix list corruption regression 42ba2c265b08 scsi: lpfc: Add shutdown method for kexec f8e24eab9bcd target/pscsi: Fix TYPE_TAPE + TYPE_MEDIMUM_CHANGER export ad5166415ff3 md/raid1/10: fix potential deadlock 4265e0b487da powerpc/boot: Fix zImage TOC alignment bb8c61ad784d cpufreq: Fix and clean up show_cpuinfo_cur_freq() b76d4fb2d944 NFS prevent double free in async nfs4_exchange_id 87144ec25091 xprtrdma: Squelch kbuild sparse complaint 69efd8e21246 perf/core: Fix event inheritance on fork() c04a938229e7 perf/core: Fix use-after-free in perf_release() 13695ce5b102 parisc: Fix system shutdown halt a690a42ae7b9 parisc: Optimize flush_kernel_vmap_range and invalidate_kernel_vmap_range 66e70bdca599 qla2xxx: Fix request queue corruption. c5ad350d6144 qla2xxx: Fix memory leak for abts processing 85f687708c81 give up on gcc ilog2() constant optimizations 2bbcbc24474e drm/vc4: Use runtime autosuspend to avoid thrashing V3D power state. dd0b0e22a588 drm/vc4: Fix termination of the initial scan for branch targets. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-12linux-yocto/4.4: update to v4.4.60Bruce Ashfield3
Updating to the korg stable relase with the following shortlog summary: 8f8ee9706b0a Linux 4.4.60 84bd21a708b8 padata: avoid race in reordering 5cca175b6cda blk: Ensure users for current->bio_list can see the full list. 2cbd78f4239b blk: improve order of bio handling in generic_make_request() 063d30f187f5 power: reset: at91-poweroff: timely shutdown LPDDR memories 42462d23e60b KVM: kvm_io_bus_unregister_dev() should never fail 3a1246b46df5 rtc: s35390a: improve irq handling a55ae9d1937b rtc: s35390a: implement reset routine as suggested by the reference fdd4bc9313e5 rtc: s35390a: make sure all members in the output are set b3ed3864912e rtc: s35390a: fix reading out alarm 6280ac931a23 MIPS: Lantiq: Fix cascaded IRQ setup 47e2fe17d14d mm, hugetlb: use pte_present() instead of pmd_present() in follow_huge_pmd() ef55c3df5dbd drm/radeon: Override fpfn for all VRAM placements in radeon_evict_flags 3eb392056aeb KVM: x86: clear bus pointer when destroyed eac3ab3e6915 USB: fix linked-list corruption in rh_call_control() 0a1757cfa5ba tty/serial: atmel: fix TX path in atmel_console_write() 74b8fc017d76 tty/serial: atmel: fix race condition (TX+DMA) 566a8711a7dd ACPI: Do not create a platform_device for IOAPIC/IOxAPIC 3342857ac074 ACPI: Fix incompatibility with mcount-based function graph tracing ab48ab614b8c ASoC: atmel-classd: fix audio clock rate ce3dcfdbff04 ALSA: hda - fix a problem for lineout on a Dell AIO machine a90d7447e4a1 ALSA: seq: Fix race during FIFO resize 75a03869c93a scsi: libsas: fix ata xfer length a92f411914ca scsi: sg: check length passed to SG_NEXT_CMD_LEN 18639c4bad72 scsi: mpt3sas: fix hang on ata passthrough commands 1eed198ce16b xen/setup: Don't relocate p2m over existing one ba46d8fab00a libceph: force GFP_NOIO for socket allocations 61a4577c9a44 Linux 4.4.59 2bed5987692c sched/rt: Add a missing rescheduling point 7a5202190810 fscrypt: remove broken support for detecting keyring key revocation 573341eba9c4 metag/ptrace: Reject partial NT_METAG_RPIPE writes e441102d8c07 metag/ptrace: Provide default TXSTATUS for short NT_PRSTATUS 2d9bc3695012 metag/ptrace: Preserve previous registers for short regset write 962b95a88574 sparc/ptrace: Preserve previous registers for short regset write c8693666856c mips/ptrace: Preserve previous registers for short regset write e1dc8904b33b h8300/ptrace: Fix incorrect register transfer count 6e174bbd0631 c6x/ptrace: Remove useless PTRACE_SETREGSET implementation 800791e7e0fd pinctrl: qcom: Don't clear status bit on irq_unmask 927d04793f8a virtio_balloon: init 1st buffer in stats vq 22c9e7c092f6 xfrm_user: validate XFRM_MSG_NEWAE incoming ESN size harder cce7e56dd73f xfrm_user: validate XFRM_MSG_NEWAE XFRMA_REPLAY_ESN_VAL replay_window a9a76a3e318e xfrm: policy: init locks early 0a5766a6a73b Linux 4.4.58 f8a62dbc7902 crypto: algif_hash - avoid zero-sized array 540d6d756ff8 fbcon: Fix vc attr at deinit ac601978a2aa serial: 8250_pci: Detach low-level driver during PCI error recovery b8687d83b34c ACPI / blacklist: Make Dell Latitude 3350 ethernet work d3607fc2976e ACPI / blacklist: add _REV quirks for Dell Precision 5520 and 3520 4e2c66bb6658 uvcvideo: uvc_scan_fallback() for webcams with broken chain ce5494107946 s390/zcrypt: Introduce CEX6 toleration 7023f502c835 block: allow WRITE_SAME commands with the SG_IO ioctl 9fd9e1436380 vfio/spapr: Postpone allocation of userspace version of TCE table 4110080574ac PCI: Do any VF BAR updates before enabling the BARs bcbdcf48469b PCI: Ignore BAR updates on virtual functions d4f09ea7e35c PCI: Update BARs using property bits appropriate for type 131f7969048b PCI: Don't update VF BARs while VF memory space is enabled 40a85d68185f PCI: Decouple IORESOURCE_ROM_ENABLE and PCI_ROM_ADDRESS_ENABLE 1278c9f87f11 PCI: Add comments about ROM BAR updating cef498a2c75a PCI: Remove pci_resource_bar() and pci_iov_resource_bar() a87693ec42f2 PCI: Separate VF BAR updates from standard BAR updates e4ce31c0265d x86/hyperv: Handle unknown NMIs on one CPU when unknown_nmi_panic ca7e3bdc9c7e igb: add i211 to i210 PHY workaround 4db313df4946 igb: Workaround for igb i210 firmware issue ec52364445a4 xen: do not re-use pirq number cached in pci device msi msg data 6d43e485e006 xfs: clear _XBF_PAGES from buffers when readahead page f154de03f416 USB: usbtmc: add missing endpoint sanity check 74c8dd066cc0 nl80211: fix dumpit error path RTNL deadlocks 7922c1becb36 xfs: fix up xfs_swap_extent_forks inline extent handling c4cf86f69597 xfs: don't allow di_size with high bit set 48da8f817b9d libceph: don't set weight to IN when OSD is destroyed 73dd1edf50a6 raid10: increment write counter after bio is split 175039632065 cpufreq: Restore policy min/max limits on CPU online e1af444e52ce ARM: dts: at91: sama5d2: add dma properties to UART nodes 2705b183263b ARM: at91: pm: cpu_idle: switch DDR to power-down mode 55b6c187cf9d iommu/vt-d: Fix NULL pointer dereference in device_to_iommu c856b66c8aac xen/acpi: upload PM state from init-domain to Xen 52e40a2fcc39 mmc: sdhci: Do not disable interrupts while waiting for clock 27d9bf096406 ext4: mark inode dirty after converting inline directory c7d1545c48ff parport: fix attempt to write duplicate procfiles 7413d1f8991e iio: hid-sensor-trigger: Change get poll value function order to avoid sensor properties losing after resume from S3 8f189e1d0eca iio: adc: ti_am335x_adc: fix fifo overrun recovery dcf879cb9ed3 mmc: ushc: fix NULL-deref at probe 2c251e568e1a uwb: hwa-rc: fix NULL-deref at probe 815321da2e26 uwb: i1480-dfu: fix NULL-deref at probe 14a2032287d4 usb: hub: Fix crash after failure to read BOS descriptor 47285be050ca usb: musb: cppi41: don't check early-TX-interrupt for Isoch transfer a7cb1fafe429 USB: wusbcore: fix NULL-deref at probe d6389d6abb8a USB: idmouse: fix NULL-deref at probe a7712869e2e7 USB: lvtest: fix NULL-deref at probe 73490abe249c USB: uss720: fix NULL-deref at probe 2c929ea720f9 usb-core: Add LINEAR_FRAME_INTR_BINTERVAL USB quirk 8a8a8007871a usb: gadget: f_uvc: Fix SuperSpeed companion descriptor's wBytesPerInterval 19f0fe67b9d0 ACM gadget: fix endianness in notifications 9218793a39de USB: serial: qcserial: add Dell DW5811e 8f0f081647cc USB: serial: option: add Quectel UC15, UC20, EC21, and EC25 modems 1ea551eec703 ALSA: hda - Adding a group of pin definition to fix headset problem ed00b613bbcb ALSA: ctxfi: Fix the incorrect check of dma_set_mask() call b55ffcb1bc8a ALSA: seq: Fix racy cell insertions during snd_seq_pool_done() 549993001e7d Input: sur40 - validate number of endpoints before using them b3c4c0c470b5 Input: kbtab - validate number of endpoints before using them c05490638ddf Input: cm109 - validate number of endpoints before using them e916f1d6188e Input: yealink - validate number of endpoints before using them 0812c6855c89 Input: hanwang - validate number of endpoints before using them 6bed7c1e2b78 Input: ims-pcu - validate number of endpoints before using them a07d3669654a Input: iforce - validate number of endpoints before using them 5f9243e4fca6 Input: i8042 - add noloop quirk for Dell Embedded Box PC 3000 9ac7bd114e13 Input: elan_i2c - add ASUS EeeBook X205TA special touchpad fw afaed241928f tcp: initialize icsk_ack.lrcvtime at session start time 95aa915c2f04 socket, bpf: fix sk_filter use after free in sk_clone_lock 38dece41e5be ipv4: provide stronger user input validation in nl_fib_input() 85f00dac91a1 net: bcmgenet: remove bcmgenet_internal_phy_setup() fdcee7c1e2f8 net/mlx5e: Count LRO packets correctly 9d1894cba25c net/mlx5: Increase number of max QPs in default profile 610c6bcc5fcf net: unix: properly re-increment inflight counter of GC discarded candidates ae43f9360a21 amd-xgbe: Fix jumbo MTU processing on newer hardware f3126725228c net: properly release sk_frag.page 12f0bffc489d net: bcmgenet: Do not suspend PHY if Wake-on-LAN is enabled b362d6735156 net/openvswitch: Set the ipv6 source tunnel key address attribute correctly a5c3f390eb77 Linux 4.4.57 5fa513cb0721 ext4: fix fencepost in s_first_meta_bg validation d88b83e66bbf percpu: acquire pcpu_lock when updating pcpu_nr_empty_pop_pages e08f608ab428 gfs2: Avoid alignment hole in struct lm_lockname 4f47ca488256 isdn/gigaset: fix NULL-deref at probe d267ecbdfdb4 target: Fix VERIFY_16 handling in sbc_parse_cdb 246760c61d9c scsi: libiscsi: add lock around task lists to fix list corruption regression 82bd06aba880 scsi: lpfc: Add shutdown method for kexec 0a621633cdfa target/pscsi: Fix TYPE_TAPE + TYPE_MEDIMUM_CHANGER export 582f548924cd md/raid1/10: fix potential deadlock b24473976b98 powerpc/boot: Fix zImage TOC alignment 09875d1393d4 cpufreq: Fix and clean up show_cpuinfo_cur_freq() f02729f2ab87 perf/core: Fix event inheritance on fork() 4cb0c0b73d1c give up on gcc ilog2() constant optimizations 6052eb871217 kernek/fork.c: allocate idle task for a CPU always on its local node 6cc5b73d7969 hv_netvsc: use skb_get_hash() instead of a homegrown implementation cea050150323 tpm_tis: Use devm_free_irq not free_irq 13a26889cbc1 drm/amdgpu: add missing irq.h include 68ea3948ed3d s390/pci: fix use after free in dma_init 50730d7f361f KVM: PPC: Book3S PR: Fix illegal opcode emulation e2d9577854f5 xen/qspinlock: Don't kick CPU if IRQ is not initialized b1a0f744f8e6 Drivers: hv: avoid vfree() on crash 0a2512768f16 Drivers: hv: balloon: don't crash when memory is added in non-sorted order 3787a071d145 pinctrl: cherryview: Do not mask all interrupts in probe 962c66c74184 ACPI / video: skip evaluating _DOD when it does not exist 12e1a3cd11ea cxlflash: Increase cmd_per_lun for better throughput f8c07cbc2e72 crypto: mcryptd - Fix load failure 10659b8f5c60 crypto: cryptd - Assign statesize properly c78c3376ec67 crypto: ghash-clmulni - Fix load failure 45d9558837d4 USB: don't free bandwidth_mutex too early ac1a97d8a562 usb: core: hub: hub_port_init lock controller instead of bus Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-12meta: classes: Add building dir to uImage creationMylène Josserand1
On the do_uboot_mkimage task from kernel-uimage.bbclass, in case KEEPUIMAGE is different than the default "yes" value, the uboot-mkimage command fails because the path of the created uImage does not exist. On this task, we are under the BUILDDIR so there is no folder arch/<ARCH>/boot. Add the ${B} (for kernel build directory) as prefix to this folder fixes the problem. Signed-off-by: Mylène Josserand <mylene.josserand@free-electrons.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-12oe-build-perf-report-email.py: use pwd for getting user nameMarkus Lehtonen1
Use pwd data instead of os.getlogin() to get the username for fallback email address. os.getlogin() basically returns the name of the user logged in on the controlling terminal of the process and raises an exception on some systems if the process does not have a controlling terminal - when executed from a cron script, for example. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-12oe-selftest: Error if known problem variables are setRichard Purdie1
Setting SANITY_TESTED_DISTROS or PRSERV_HOST are known to break oe-selftest. Rather than have the user experience this, refuse to execute unless the environment is correct. Ideally we'd try and unset these but that is a more invasive change and this at least makes people aware of the problem. [YOCTO #11292] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-12oeqa/core/runner: Append PID in the test result folder nameLeonardo Sandoval1
It was found a case (see the bugzilla entry) where two runners were running at the same second, creating identical test result folders, so one of them (the second runner) was not able to create the folder because the other has already created it, raising the following exception (many text was removed from log) NOTE: Executing RunQueue Tasks NOTE: Running task 1 of 2 (/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips/build/meta/recipes-core/images/core-image-minimal.bb:do_testsdkext) NOTE: Running task 2 of 2 (/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips/build/meta/recipes-sato/images/core-image-sato.bb:do_testsdkext) NOTE: recipe core-image-sato-1.0-r0: task do_testsdkext: Started NOTE: recipe core-image-minimal-1.0-r0: task do_testsdkext: Started . . The stack trace of python calls that resulted in this exception/failure was: File: 'exec_python_func() autogenerated', lineno: 2, function: <module> 0001: *** 0002:do_testsdkext(d) 0003: File: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips/build/meta/classes/testsdk.bbclass', lineno: 188, function: do_testsdkext 0184: 0185:testsdkext_main[vardepsexclude] =+ "BB_ORIGENV" 0186: 0187:python do_testsdkext() { *** 0188: testsdkext_main(d) 0189:} 0190:addtask testsdkext 0191:do_testsdkext[nostamp] = "1" 0192: File: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips/build/meta/classes/testsdk.bbclass', lineno: 171, function: testsdkext_main 0167: except Exception as e: 0168: import traceback 0169: bb.fatal("Loading tests failed:\n%s" % traceback.format_exc()) 0170: *** 0171: result = tc.runTests() . . File: '/usr/lib64/python3.5/os.py', lineno: 241, function: makedirs 0237: cdir = bytes(curdir, 'ASCII') 0238: if tail == cdir: # xxx/newdir/. exists if xxx/newdir exists 0239: return 0240: try: *** 0241: mkdir(name, mode) 0242: except OSError: 0243: # Cannot rely on checking for EEXIST, since the operating system 0244: # could give priority to other errors like EACCES or EROFS 0245: if not exist_ok or not path.isdir(name): Exception: FileExistsError: [Errno 17] File exists: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips/build/build/TestResults_20170409130114' [YOCTO #11318] Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-12yocto-compat-layer: better handling of per-machine world build breakagePatrick Ohly2
It is fairly common that BSP layers enable recipes when choosing machines from that layer without checking whether the recipe actually builds in the current distro. That breaks "bitbake world", retrieving signatures and thus the test_machine_signatures test. It's better to let that test continue with the signatures that can be retrieved and report the broken world build separately. Right now, the new test_machine_world iterates over all machines. More elegant and useful in combination with a (currently missing) selection of which tests to run would be to generate one test instance per machine. But that is not straightforward and has to wait. The "-k" argument alone was not enough to proceed despite failures, because bitbake then still returns a non-zero exit code. The existance of the output file is taken as sign that the bitbake execution managed was not fatally broken. Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-12yocto-compat-layer: test signature differences when setting MACHINEPatrick Ohly3
Selecting a machine is only allowed to affect the signature of tasks that are specific to that machine. In other words, when MACHINE=A and MACHINE=B share a recipe foo and the output of foo, then both machine configurations must build foo in exactly the same way. Otherwise it is not possible to use both machines in the same distribution. This criteria can only be tested by testing different machines in combination, i.e. one main layer, potentially several additional BSP layers and an explicit choice of machines: yocto-compat-layer --additional-layers .../meta-intel --machines intel-corei7-64 imx6slevk -- .../meta-freescale To simplify the analysis and limit the amount of output, mismatches are sorted by task order such that tasks that run first are also reported first. Following tasks for the same recipe and set of machines then get pruned, because they are likely to be different because of the underlying task (same approach as in test_signatures). The difference here is that we get information about all machines. The task order in the base configuration serves as heuristic for sorting that merged list. The test has already found issues in go-cross (depended on tune-specific libgcc) and gdb-cross (had a tune-specific path unnecessarily), so it is also useful to uncover issues that are not caused by the BSP layer itself. Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-12recipetool: create: hide missing npm error when called from devtoolPaul Eggleton2
If devtool is called with a URL to a source repository containing a node.js module, we don't know that until recipetool has fetched it, and due to the structure of the code we have to exit with a special code in order to let devtool know it needs to build nodejs-native. We also want to suppress the error message that recipetool would normally print under these circumstances; there is already a mechanism for this but it wasn't operative in the case where we're pointed to a source repository rather than an npm:// URL, so create some plumbing so that we know to hide the message. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-12devtool: add: prevent repeatedly running recipetoolPaul Eggleton1
If recipetool returns with exit code 14 this means devtool needs to build nodejs-native and then call it again. If recipetool returns exit code 14 again then clearly something has gone wrong and we should just quit with an error. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-12devtool: add: fix node.js/npm handling with recipe specific sysrootsPaul Eggleton4
The change over to recipe specific sysroots means that we can no longer get a known location simply from configuration for the npm binary - we need to get the recipe sysroot for nodejs-native, look there for npm if we need to check it's present, and add that to PATH when calling out to npm. Unfortunately this means anywhere we need to get that path we have to have parsed all recipes, otherwise we have no reliable way of resolving nodejs-native. Thus we have to change recipetool create to always parse all recipes (the structure of the code does not allow us to do this conditionally). In the worst case, if npm hasn't already been added to its own sysroot and we are fetching from a source repository rather than an npm registry, this gets a bit ugly because we end up parsing recipes three times: 1) recipetool startup, which then fetches the code and determines it's a node.js module, finds that npm isn't available and then exits with a specific error to tell devtool it needs to build npm 2) when we invoke bitbake -c addto_recipe_sysroot nodejs-native 3) when we re-invoke recipetool This code is badly in need of refactoring, but now is unfortunately not the time to do that, so we're going to have to live with this ugliness for now. Fixes [YOCTO #10992]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>