Bruce Ashfield [Thu, 31 Aug 2017 16:35:17 +0000 (12:35 -0400)]
linux-yocto/4.12: update to v4.12.10
Updating to the korg -stable release with the following commit
summary:
6371f030c4dc Linux 4.12.10 849e96758ab2 powerpc/mm: Ensure cpumask update is ordered 53220a20cec0 ACPI: EC: Fix regression related to wrong ECDT initialization order 6e80b88a7f7d ACPI: APD: Fix HID for Hisilicon Hip07/08 49fa8c02e4a6 ntb: transport shouldn't disable link due to bogus values in SPADs ab75f0274d34 ntb: ntb_test: ensure the link is up before trying to configure the mws 03e58884668e Clarify (and fix) MAX_LFS_FILESIZE macros 0b9a3f300f89 iommu: Fix wrong freeing of iommu_device->dev 75005bf89ad7 staging: rtl8188eu: add RNX-N150NUB support 91628e2afc86 iio: magnetometer: st_magn: remove ihl property for LSM303AGR e59c095c11af iio: magnetometer: st_magn: fix status register address for LSM303AGR fc7957b6cdd7 iio: hid-sensor-trigger: Fix the race with user space powering up sensors a1d7b7e7e116 iio: imu: adis16480: Fix acceleration scale factor for adis16480 bf9b9d3b382b ANDROID: binder: fix proc->tsk check. f6fc60d91549 binder: Use wake up hint for synchronous transactions. 7771e3f4b0b9 binder: use group leader instead of open thread 62ccb816aab8 Revert "android: binder: Sanity check at binder ioctl" b42c44ade798 Bluetooth: bnep: fix possible might sleep error in bnep_session b741896229c1 Bluetooth: cmtp: fix possible might sleep error in cmtp_session e792d2d48928 Bluetooth: hidp: fix possible might sleep error in hidp_session_thread 1eb33a1b89e1 netfilter: nfnetlink: Improve input length sanitization in nfnetlink_rcv 8b5041077024 netfilter: nat: fix src map lookup f5263887165a netfilter: expect: fix crash when putting uninited expectation 4909a7b79965 net: sunrpc: svcsock: fix NULL-pointer exception a8da876c1e45 x86/mm: Fix use-after-free of ldt_struct 2e11eedec6f0 timers: Fix excessive granularity of new timers after a nohz idle 2c0dc7f00e19 perf/core: Fix group {cpu,task} validation aa2da6c4d548 ftrace: Check for null ret_stack on profile function graph entry function 1b8ca8851c25 virtio_pci: fix cpu affinity support 78f2e29f27f1 ring-buffer: Have ring_buffer_alloc_read_page() return error on offline CPU 8d4f126c0791 nfsd: Limit end of page list when decoding NFSv4 WRITE ea5745a5117f cifs: return ENAMETOOLONG for overlong names in cifs_open()/cifs_lookup() 1bc1c4391b79 cifs: Fix df output for users with quota limits 3b278d7e8945 kbuild: linker script do not match C names unless LD_DEAD_CODE_DATA_ELIMINATION is configured 51f49383a924 RDMA/uverbs: Initialize cq_context appropriately 53a38dfbb5e4 tracing: Fix freeing of filter in create_filter() when set_str is false 983ba8148e18 tracing: Fix kmemleak in tracing_map_array_free() a23e782823d6 tracing: Missing error code in tracer_alloc_buffers() 3888c3aeb6bc tracing: Call clear_boot_tracer() at lateinit_sync 1344db83ee17 ACPI: device property: Fix node lookup in acpi_graph_get_child_prop_value() dbe5b2d70cfd Revert "drm/amdgpu: fix vblank_time when displays are off" 4ac9a5daaf82 drm/i915/gvt: Fix the kernel null pointer error bbb04b377f85 drm/i915/vbt: ignore extraneous child devices for a port d76df456a313 drm/atomic: If the atomic check fails, return its value first 247122f138c0 drm/atomic: Handle -EDEADLK with out-fences correctly d4ae641cc285 drm/sun4i: Implement drm_driver lastclose to restore fbdev console 08353913312a drm: Release driver tracking before making the object available again b96c15655125 drm: Fix framebuffer leak 865d89f80907 arm64: fpsimd: Prevent registers leaking across exec 1c229d7ad7b9 mm/memblock.c: reversed logic in memblock_discard() f5024bb32d4d fork: fix incorrect fput of ->exe_file causing use-after-free 4823f4630bfd mm/madvise.c: fix freeing of locked page with MADV_FREE c237efed8b35 i2c: designware: Fix system suspend 3a9495fd3719 dax: fix deadlock due to misaligned PMD faults 735a252fc5b8 mm, shmem: fix handling /sys/kernel/mm/transparent_hugepage/shmem_enabled b2719637b16e PM/hibernate: touch NMI watchdog when creating snapshot 8b366972d7d4 ARCv2: PAE40: set MSB even if !CONFIG_ARC_HAS_PAE40 but PAE exists in SoC fcedf2f28570 ARCv2: PAE40: Explicitly set MSB counterpart of SLC region ops addresses 763ad31728e8 ARCv2: SLC: Make sure busy bit is set properly for region ops 8537b1e0ff7f ALSA: firewire-motu: destroy stream data surely at failure of card initialization 59d000610dc3 ALSA: firewire: fix NULL pointer dereference when releasing uninitialized data of iso-resource 2f45c61ba400 ALSA: hda - Add stereo mic quirk for Lenovo G50-70 (17aa:3978) ba6b08b62f0c ALSA: core: Fix unexpected error at replacing user TLV 1157dcda136a ALSA: usb-audio: Add delay quirk for H650e/Jabra 550a USB headsets 2f76f62aef90 KVM: x86: block guest protection keys unless the host has them enabled 3c498d4bde88 KVM, pkeys: do not use PKRU value in vcpu->arch.guest_fpu.state d0e52c825f00 KVM: x86: simplify handling of PKRU 6dc06cd600d0 KVM: s390: sthyi: fix specification exception detection e516834ae81b KVM: s390: sthyi: fix sthyi inline assembly ddae9e6ec5d5 Input: ALPS - fix two-finger scroll breakage in right side on ALPS touchpad 8dcee8e81a0e Input: elan_i2c - add ELAN0602 ACPI ID to support Lenovo Yoga310 38c36f9d1fca Input: trackpoint - add new trackpoint firmware ID c9c682f3f029 bpf/verifier: fix min/max handling in BPF_SUB eb6cf01cd6b7 bpf: fix mixed signed/unsigned derived min/max value bounds 659ee9687a11 bpf, verifier: add additional patterns to evaluate_reg_imm_alu d8a4ae09809a net_sched: fix order of queue length updates in qdisc_replace() 09e1d36d0289 net: sched: fix NULL pointer dereference when action calls some targets f4e4a2969919 irda: do not leak initialized list.dev to userspace 754df4da61d1 net/mlx4_core: Enable 4K UAR if SRIOV module parameter is not enabled 2d093adfb109 tcp: when rearming RTO, if RTO time is in past then fire RTO ASAP 7bbc60d9c916 ipv6: repair fib6 tree in failure case 368129fe14f6 ipv6: reset fn->rr_ptr when replacing route c549de482f89 tipc: fix use-after-free 62b3580fc3f0 sctp: fully initialize the IPv6 address in sctp_v6_to_addr() dda844773c47 tun: handle register_netdevice() failures properly 3c3181e17b35 nfp: fix infinite loop on umapping cleanup 9c579acf6522 ipv4: better IP_MAX_MTU enforcement 12ee6d75d6a1 ptr_ring: use kmalloc_array() cb445bfc1041 openvswitch: fix skb_panic due to the incorrect actions attrlen c6fc7b9892a5 net: igmp: Use ingress interface rather than vrf device 921739a95d4f bpf: fix bpf_trace_printk on 32 bit archs 99f635d1e70d net_sched: remove warning from qdisc_hash_add cf665a603368 net_sched/sfq: update hierarchical backlog when drop packet 163db2c61aa1 ipv4: fix NULL dereference in free_fib_info_rcu() f1d055463980 dccp: defer ccid_hc_tx_delete() at dismantle time a8de69b93e86 dccp: purge write queue in dccp_destroy_sock() 94fd355614e3 af_key: do not use GFP_KERNEL in atomic contexts 729420142979 bonding: ratelimit failed speed/duplex update warning b39ae1c8bdc4 bonding: require speed/duplex only for 802.3ad, alb and tlb 16caf8dff7ee sparc64: remove unnecessary log message e0e7ae96b723 Linux 4.12.9 3f40666fff96 usb: qmi_wwan: add D-Link DWM-222 device ID e2322bcce288 usb: optimize acpi companion search for usb port devices 6632ae821b59 debug: Fix WARN_ON_ONCE() for modules c170b7930db3 pids: make task_tgid_nr_ns() safe e950adf8983f Sanitize 'move_pages()' permission checks 7cbc3a8aaaa3 kernel/watchdog: Prevent false positives with turbo modes ee7025fef78c genirq/ipi: Fixup checks against nr_cpu_ids 8eee5da54afe genirq: Restore trigger settings in irq_modify_status() 399193e8ef2d irqchip/atmel-aic: Fix unbalanced refcount in aic_common_rtc_irq_fixup() 2eceab663b9d irqchip/atmel-aic: Fix unbalanced of_node_put() in aic_common_irq_fixup() c4ab73ef2cfc x86/elf: Remove the unnecessary ADDR_NO_RANDOMIZE checks 932769e10de9 x86: Fix norandmaps/ADDR_NO_RANDOMIZE c588e0cb269d x86/asm/64: Clear AC on NMI entries 44e9d5afcec3 perf/x86: Fix RDPMC vs. mm_struct tracking 33f1d0c79b04 xen-blkfront: use a right index when checking requests bd876f33dbeb powerpc: Fix VSX enabling/flushing to also test MSR_FP and MSR_VEC a77b5b81ad59 blk-mq-pci: add a fallback when pci_irq_get_affinity returns NULL e88bdec3ff7c ARM: dts: imx6qdl-nitrogen6_som2: fix PCIe reset c1cee6062ac9 xen: fix bio vec merging aab425db4279 mm: revert x86_64 and arm64 ELF_ET_DYN_BASE base changes 8ac8e1d2a254 mm/vmalloc.c: don't unconditonally use __GFP_HIGHMEM 6b2676ed32ba mm/mempolicy: fix use after free when calling get_mempolicy 8b53b7560a8b mm/cma_debug.c: fix stack corruption due to sprintf usage 76e8fe02bf50 mm: fix double mmap_sem unlock on MMF_UNSTABLE enforced SIGBUS 889a17078f25 slub: fix per memcg cache leak on css offline 4d45f00b927c mm: discard memblock data later c24138794d14 ALSA: usb-audio: add DSD support for new Amanero PID c482b084491b ALSA: usb-audio: Add mute TLV for playback volumes on C-Media devices b33fcbb01b3a ALSA: usb-audio: Apply sample rate quirk to Sennheiser headset 8f05296965d8 ALSA: seq: 2nd attempt at fixing race creating a queue 6a280cd12306 MD: not clear ->safemode for external metadata array 7987c4066cbb md: always clear ->safemode when md_check_recovery gets the mddev lock. febaf83252f2 md: fix test in md_write_start() 5f46f337bdeb Input: elan_i2c - Add antoher Lenovo ACPI ID for upcoming Lenovo NB 04d0645d62a5 Input: elan_i2c - add ELAN0608 to the ACPI table b5e042f90f1f drm/amdgpu: save list length when fence is signaled 2149506faff1 drm/i915: Perform an invalidate prior to executing golden renderstate aac1a12cc700 crypto: x86/sha1 - Fix reads beyond the number of blocks passed f1615538cd1c crypto: ixp4xx - Fix error handling path in 'aead_perform()' 0a76684da5c2 parisc: pci memory bar assignment fails with 64bit kernels on dino/cujo dfaf892df105 audit: Fix use after free in audit_remove_watch_rule() a0fb6543b40f Linux 4.12.8 1d4efdd222c4 powerpc: Fix /proc/cpuinfo revision for POWER9 DD2 d40a54500008 MIPS: Octeon: Fix broken EDAC driver. bc60edb6aa3f Revert "MIPS: Don't unnecessarily include kmalloc.h into <asm/cache.h>." 0a5a16f6cefd MIPS: DEC: Fix an int-handler.S CPU_DADDI_WORKAROUNDS regression 888986477133 pinctrl: meson-gxl: Add missing GPIODV_18 pin entry d7b28b4cae66 pinctrl: meson-gxbb: Add missing GPIODV_18 pin entry 155407bbf9f2 pinctrl: samsung: Remove bogus irq_[un]mask from resource management 21d22dffc344 pinctrl: uniphier: fix WARN_ON() of pingroups dump on LD20 338ac5dd59b9 pinctrl: uniphier: fix WARN_ON() of pingroups dump on LD11 be9f65893e3b pinctrl: intel: merrifield: Correct UART pin lists 5fa72b4b746a pinctrl: sunxi: add a missing function of A10/A20 pinctrl driver c75a48eed01f pinctrl: cherryview: Add Setzer models to the Chromebook DMI quirk cc7f330bed71 pnfs/blocklayout: require 64-bit sector_t e8a1edad18fa iio: adc: vf610_adc: Fix VALT selection value for REFSEL bits 0e1f0eaed6c2 xhci: Reset Renesas uPD72020x USB controller for 32-bit DMA issue ea9647cf87f5 PCI: Add pci_reset_function_locked() c71305e6854d PCI: Remove __pci_dev_reset() and pci_dev_reset() 31e71939a4dd PCI: Protect pci_error_handlers->reset_notify() usage with device_lock() b23ef7b8dd7e usb:xhci:Add quirk for Certain failing HP keyboard on reset after resume 73e7a2dca9cc usb: quirks: Add no-lpm quirk for Moshi USB to Ethernet Adapter 488f4d8048e2 usb: core: unlink urbs from the tail of the endpoint's urb_list 7ff799af2c21 USB: Check for dropped connection before switching to full speed c45923eb9413 usb: renesas_usbhs: Fix UGCTRL2 value for R-Car Gen3 f5324020bcef usb: gadget: udc: renesas_usb3: Fix usb_gadget_giveback_request() calling 7926348676f5 block: Make blk_mq_delay_kick_requeue_list() rerun the queue at a quiet time 67e1a98e3a74 firmware: avoid invalid fallback aborts by using killable wait b1b5c0b23a90 firmware: fix batched requests - send wake up on failure on direct lookups c2c32ed5e6bf firmware: fix batched requests - wake all waiters f0834df3d97e uas: Add US_FL_IGNORE_RESIDUE for Initio Corporation INIC-3069 c208cb9a5596 staging: comedi: comedi_fops: do not call blocking ops when !TASK_RUNNING 20035abc9e08 iio: adc: Revert "axp288: Drop bogus AXP288_ADC_TS_PIN_CTRL register modifications" c1164cc258bc iio: light: tsl2563: use correct event code 39e07a5c112c iio: pressure: st_pressure_core: disable multiread by default for LPS22HB 8886738d06fa iio: accel: bmc150: Always restore device to normal mode after suspend-resume 3fdd0854800e iio: accel: st_accel: add SPI-3wire support 5f26ebe1afdc iio: aspeed-adc: wait for initial sequence. f0ab97d1aa14 staging:iio:resolver:ad2s1210 fix negative IIO_ANGL_VEL read 9ccd63a6fdbd USB: hcd: Mark secondary HCD as dead if the primary one died 792c00cb2377 usb: musb: fix tx fifo flush handling again ab51515ece30 USB: serial: pl2303: add new ATEN device id 492eb6125c83 USB: serial: cp210x: add support for Qivicon USB ZigBee dongle b576de1e12c9 USB: serial: option: add D-Link DWM-222 device ID 59f1322cc1e5 drm/i915: Fix out-of-bounds array access in bdw_load_gamma_lut 4eedc8a7f03b drm/etnaviv: Fix off-by-one error in reloc checking 8f0f15cc167d drm/bridge: tc358767: fix probe without attached output node 1cc5cd5b97b5 nfs/flexfiles: fix leak of nfs4_ff_ds_version arrays 8d189f60407f mmc: mmc: correct the logic for setting HS400ES signal voltage 3329fe0e05f8 nand: fix wrong default oob layout for small pages using soft ecc 1f2f0f1a75bd i2c: designware: Some broken DSTDs use 1MiHz instead of 1MHz cfea0422a154 fuse: initialize the flock flag in fuse_file on allocation 59c74236092d target: Fix node_acl demo-mode + uncached dynamic shutdown regression 7b0d44e25fdb usb-storage: fix deadlock involving host lock and scsi_done 428048128bf0 iscsi-target: Fix iscsi_np reset hung task during parallel delete f838bd1752be iscsi-target: fix memory leak in iscsit_setup_text_cmd() a0e1953e0310 mtd: nand: Declare tBERS, tR and tPROG as u64 to avoid integer overflow 867c07788e97 mtd: nand: Fix timing setup for NANDs that do not support SET FEATURES a34d48d5ca47 mtd: nand: atmel: Fix DT backward compatibility in pmecc.c 0eda7e0bf238 pinctrl: armada-37xx: Fix number of pin in south bridge 8452494828f7 xfs: Fix leak of discard bio 0af6995672cb xtensa: don't limit csum_partial export by CONFIG_NET 094849d602a0 xtensa: mm/cache: add missing EXPORT_SYMBOLs 5e96389b3adc xtensa: fix cache aliasing handling code for WT cache 5c1d458de22b futex: Remove unnecessary warning from get_futex_key 5f064f8a0d4b mm: fix list corruptions on shmem shrinklist 10df347170c3 mm: ratelimit PFNs busy info message
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
When building the qemuarma9 BSP, we get the following warnings:
---------- CONFIG_VGA_CONSOLE -----------------
Config: CONFIG_VGA_CONSOLE
From:
tmp/work-shared/qemuarma9/kernel-source/.kernel-meta/configs/standard/arm-versatile-926ejs/bsp/qemuarma9/qemuarma9.cfg
Requested value: # CONFIG_VGA_CONSOLE is not set
Actual value:
Richard Purdie [Thu, 31 Aug 2017 16:24:42 +0000 (17:24 +0100)]
selftest/prservice: Adapt to BB_SERVER_TIMEOUT
In the memory resident mode, the user may not see a message about the server
starting, it would be in the cookerdeamon logfile. We don't need this to
test the server is functioning correctly so just drop the test.
Add in an extra check that the file we expected to be created was
created when exporting PR values.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
waffle: fix REQUIRED_DISTRO_FEATURES and PACKAGECONFIG virtual/libgl dependencies
Waffle's REQUIRED_DISTRO_FEATURES statement looks into DEPENDS and if
virtual/libgl is present, it includes opengl as distro feature. However,
in a multilib environment, recipes provides virtual/${MLPREFIX}libgl,
thus waffle recipe needs to include the prefix. Also PACKAGECONFIG
statements need this change in order to properly include the libgl
dependency.
The way this error showed up was in a multilib environment and a distro
not containing opengl, i.e. nodistro, leading the following error when
building world -S none (because opengl was not included as required distro
feature):
ERROR: Nothing PROVIDES 'virtual/lib32-libgl' (but virtual:multilib:lib32:/meta/recipes-graphics/waffle/waffle_1.5.2.bb DEPENDS on or otherwise requires it). Close matches:
virtual/lib32-libsdl
virtual/lib32-libc
virtual/lib32-libsdl2
ERROR: Required build target 'lib32-meta-world-pkgdata' has no buildable providers.
Missing or unbuildable dependency chain was: ['lib32-meta-world-pkgdata', 'meta-world-pkgdata', 'lib32-waffle', 'virtual/lib32-libgl']
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
[YOCTO #10900]
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Paul Eggleton [Wed, 30 Aug 2017 23:46:22 +0000 (11:46 +1200)]
classes/license: drop erroneous sha256 parameter in LIC_FILES_CHKSUM
In OE-Core commit a48fea275b08ff3d3dfc9a928aeb04768db35873, a check on
the value of a "sha256" parameter was added, however there was no
mention of this in the commit message and no corresponding code to
actually verify the checksum as sha256 was added along with it either,
so there's no point in getting the value. Additionally it was assuming
that a sha256 value would be present without checking first, with the
result that if you leave out the md5 value in a recipe intentionally in
order to get it to tell you the correct value on the next build, you got
a traceback instead of the appropriate error containing the information.
Drop this entirely - if we want to implement this we need to do it
properly.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This is actually the same version as previously; upstream didn't have
a tag for it before and now it does, so we can reduce confusion. The SRCREV
change is due to a few added commits which modify upstream's debian
packaging (not used by us).
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Khem Raj [Wed, 30 Aug 2017 17:27:20 +0000 (10:27 -0700)]
musl: Update to latest
Alexander Monakov (1):
__init_libc: add fallbacks for __progname setup
Daniel Sabogal (1):
fix signed overflow in ftok
Rich Felker (4):
fix unsynchronized access to FILE structure in fflush(0)
fix undefined behavior in memset due to missing sequence points
add powerpc64 and s390x to list of supported archs in INSTALL file
move IPPORT_RESERVED from netdb.h to netinet/in.h
Szabolcs Nagy (2):
fix mips ioctl macros to match linux asm/sockios.h
add SIOCGSTAMPNS socket ioctl macro to ioctl.h
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Paul Eggleton [Wed, 30 Aug 2017 23:54:17 +0000 (11:54 +1200)]
scriptutils: fix fetch_url() to use lowercase dummy recipe name
recipetool create (and hence devtool add) and devtool upgrade use
fetch_url() which creates a dummy recipe in order to fetch source.
Previously the random part of the name was using uppercase characters,
and this triggers a QA warning after OE-Core commit 4713f8b2c4f2c74239d284adcf1e59e61aa66576, so use lowercase instead as I
really should have in the first place.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Paul Eggleton [Wed, 30 Aug 2017 23:54:16 +0000 (11:54 +1200)]
oe-selftest: tinfoil: add a test for variable history
I recently found that variable history wasn't working properly for
recipes when we enable history tracking, resulting in minor
functionality loss in devtool upgrade, so add a test to ensure this
doesn't regress now that it's fixed.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Paul Eggleton [Wed, 30 Aug 2017 23:54:14 +0000 (11:54 +1200)]
recipetool: create: suppress npm shrinkwrap/lockdown warnings again
Since OE-Core revision 9a47a6690052ef943c0d4760630ee630fb012153 the
mechanism we were using to suppress the warnings about
NPM_LOCKDOWN and NPM_SHRINKWRAP not being set on the first fetch of the
source is no longer available since we are using the normal fetch/unpack
tasks to do the job. Use the newly added noverify parameter to suppress
the warnings again.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Paul Eggleton [Wed, 30 Aug 2017 23:54:13 +0000 (11:54 +1200)]
recipetool: create: fix SRCPV prefix for non-git SCMs
If you're fetching from an SCM other than git (for example subversion or
mercurial) then we need to use a different prefix for the SRCPV in PV
instead of +git.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Paul Eggleton [Wed, 30 Aug 2017 23:54:11 +0000 (11:54 +1200)]
devtool: add: add explicit srcrev/branch options
At the moment when fetching source from a git repository you have to
know that you can specify the revision and branch in the URL with
';rev=' and ';branch=' respectively, and you can also get thrown off by
the shell splitting on the ; character if you forget to surround the URL
in quotes. Add explicit -S/--srcrev and -B/--srcbranch options
(consistent with devtool upgrade) to make this easier for the user to
discover and use. (The rev and branch URL parameters will continue to
work, however.)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Paul Eggleton [Wed, 30 Aug 2017 23:54:10 +0000 (11:54 +1200)]
oe-selftest: devtool: test find-recipe and edit-recipe
We weren't testing the devtool find-recipe and edit-recipe subcommands,
with the result that when they regressed recently we didn't notice. Add
some code into the test_devtool_add to test this (since we need a
recipe in the workspace, and adding a new test with all that preamble
would seem a bit excessive for these simple checks). Also take the
opportunity to refactor the test a little bit so that the recipe name
and version are variables rather than hardcoding them everywhere.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Paul Eggleton [Wed, 30 Aug 2017 23:54:09 +0000 (11:54 +1200)]
devtool: edit-recipe: fix regression
OE-Core commit 5a16b3c804c5eca331a1c08a7ce31a54909af105 attempted to use
the same function to get the path to a recipe as the new "find-recipe"
command it implemented, except that cannot work because (a) it didn't
return anything and (b) event if it had tried, a command function can
only return an exit code and we don't want that for find-recipe if it
succeeded. Split out a separate reusable function for both commands.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Paul Eggleton [Wed, 30 Aug 2017 23:54:08 +0000 (11:54 +1200)]
devtool: upgrade: workaround for recipes which apply patches conditional upon class
If we're upgrading a recipe that appends additional patches for, say,
class-native, and we're just upgrading the target variant, then when we
copied the recipe into the workspace we skipped copying the additional patches
for the native variant. This caused warnings because the workspace
recipe is preferred. Look at SRC_URI for all variants when copying files
to work around this.
More work is needed to make it easier to work with recipes that use
BBCLASSEXTEND where you need to build more than one variant at once, but
this at least fixes the immediate ugliness.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Paul Eggleton [Wed, 30 Aug 2017 23:54:06 +0000 (11:54 +1200)]
devtool: upgrade: fix handling of non-absolute paths
If your BBLAYERS has non-absolute paths in it (e.g.
"${COREBASE}/../something") then none of the paths matched in
copy_recipe_files() with the result that no files got copied and you
ended up with an error later on because the recipe file couldn't be
found at the destination. Fix this as well as adding an explicit check
to see if no files got copied - error out earlier if so.
Fixes [YOCTO #10981].
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Paul Eggleton [Wed, 30 Aug 2017 23:54:05 +0000 (11:54 +1200)]
devtool: update-recipe: ensure patches get deleted in srcrev mode
Patches that we identify as having been "deleted" (i.e. patches in
SRC_URI that no longer appear in the git tree) need to be dropped even
if we're updating in srcrev mode. This fixes the case where HEAD of the
git tree is valid upstream (i.e. no extra commits), but there are
patches left over in the recipe, e.g. when we do devtool upgrade and
then all of the commits rebased on top of the new branch get skipped.
Fixes [YOCTO #11972].
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
The lines in qemuboot.conf are in random order.
This patch fixes this by printing the lines in sorted order.
This makes it easier to compare two different builds for
any differences.
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Li Wang [Wed, 30 Aug 2017 07:05:16 +0000 (15:05 +0800)]
lsof: remove host information from version.h
lsof -v would show some information for host.
Clean up these from version.h.
Signed-off-by: Li Wang <li.wang@windriver.com> Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake.conf has definitions for both ${BUILDSDK_CPPFLAGS} and
${BUILDSDK_CFLAGS} but there is none for ${BUILDSDK_CXXFLAGS}.
This was a regression as in the past, CXXFLAGS is the same as
CFLAGS in SDK environment.
Adding definition for ${BUILDSDK_CXXFLAGS} will resolve CXXFLAGS
being set wrongly in SDK environment.
[YOCTO #11769]
Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Robert Yang [Wed, 30 Aug 2017 00:48:57 +0000 (17:48 -0700)]
libpcre2: Fix CVE-2017-7186
A fuzz on libpcre1 through the pcretest utility revealed an invalid read in the
library. For who is interested in a detailed description of the bug, will
follow a feedback from upstream:
This was a genuine bug in the 32-bit library. Thanks for finding it. The crash
was caused by trying to find a Unicode property for a code value greater than
0x10ffff, the Unicode maximum, when running in non-UTF mode (where character
values can be up to 0xffffffff).
Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Robert Yang [Wed, 30 Aug 2017 00:48:56 +0000 (17:48 -0700)]
libpcre2: Fix CVE-2017-8786
The pcre2test.c in PCRE2 10.23 allows remote attackers to cause a denial of
service (heap-based buffer overflow) or possibly have unspecified other impact
via a crafted regular expression.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Otavio Salvador [Tue, 29 Aug 2017 20:43:09 +0000 (17:43 -0300)]
initramfs-framework: Change recipe to be allarch
There is no COMPATIBLE_HOST in the recipe neither it makes sense for
this to be machine specific.
Possibly, initramfs-framework's based modules may be machine specific
but if there is the case they can just RDEPENDS on
initramfs-framework-base and provide the specific module as another
recipe.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Olaf Mandel [Fri, 25 Aug 2017 17:01:57 +0000 (17:01 +0000)]
(PRE)MIRRORS: fix pattern for npm:// without slash
For URIs with the npm:// transport but with no other slash in it, the
common MIRRORS and PREMIRRORS pattern of npm://.*/.* fails to match.
Make the last slash in the pattern optional in the mirros.bbclass and
own-mirrors.bbclass classes.
Many URIs with the npm:// transport have no slash after the host part:
npm://registry.npmjs.org;name=foo;version=0.1.2
This means that MIRRORS and PREMIRRORS containing entries like the
first one will not match these URIs:
npm://.*/.* # fails to match
npm://.*/?.* # matches this and URIs with path components
For normal regular expressions, a pattern like 'npm://.*(/.*)?' would
probably be preferred, but that won't work here: the pattern gets split
into the substrings 'npm', '.*(' and '/.*)?', which are not valid
regular expressions individually.
Signed-off-by: Olaf Mandel <o.mandel@menlosystems.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Jussi Kukkonen [Mon, 28 Aug 2017 12:46:37 +0000 (15:46 +0300)]
xserver-xorg: Enable xwayland only with opengl
This is a bit academic as building with wayland without opengl
should be uncommon: still, libepoxy needs opengl so we shouldn't
depend on it without opengl.
Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Jussi Kukkonen [Mon, 28 Aug 2017 12:46:35 +0000 (15:46 +0300)]
mesa: Support building without opengl
mesa can build certain things without opengl: most importantly vulkan
drivers.
Add comments on the dependencies between the packageconfigs. Also add
a few dependencies to packageconfigs. Modify default packageconfig to
do the reasonable thing based on distro features.
Add a backported patch to fix the build with --disable-opengl. Fix
do_install_append() so it works even if dri drivers are not built.
Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
signing-keys: do not use DISTRO_VERSION in key names
DISTRO_VERSION may contain the current date, and so is prone to mismatches
particularly when keys are created on one date, and dnf is configured to use the keys
on another date.
[YOCTO #11983]
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Tue, 29 Aug 2017 15:51:27 +0000 (16:51 +0100)]
qemurunner: Tweak qemu pid starting timeout code
We're seeing timeouts in the autobuilder testing code. Increase these
timeouts to 120, print the length of time we're having to wait, change
the error messages to really be errors and don't print empty logs, its
not helpful, print a message about the empty log instead.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
gettext.bbclass: do not add virtual/gettext to DEPENDS
gettext has a notoriously slow configuration step, and so in my testing
this greatly speeds up building core-image-minimal: from 21m36s to 19m2s
(empty sstate and tmp, but pre-populated downloads).
I have also built world, and core-image-sato to make sure it doesn't break
or modify the build, and there is no difference whatsoever in packages
and images content. Target gettext seems not to be used for anything.
Also fix up insane.bbclass to remove the corresponding QA check.
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Yeoh Ee Peng [Mon, 28 Aug 2017 19:02:01 +0000 (12:02 -0700)]
insane: add qa check for uppercase recipe name
Since we disabled uppercase characters in overrides a few releases
ago, uppercase characters in recipe names (and for that matter, distro
and machine names) cannot be supported due to their reliance upon
overrides including the name.
QA check will produce an warning message when it verify that recipe
name is uppercase.
[YOCTO# 11592]
Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Mark Hatle [Mon, 28 Aug 2017 20:29:31 +0000 (15:29 -0500)]
libsdl: Move PACKAGECONFIG options from meta-mingw
There is no way to make PACKAGECONFIG options sdkmachine specific using
overrides. This causes potential failures when running the Yocto Project
compatible script. Moving these to the OpenEmbedded Core recipe will
ensure that the options are always applied evenly and avoid any potential
problems with the compatible script.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Tobias Hagelborn [Fri, 25 Aug 2017 11:32:38 +0000 (13:32 +0200)]
devtool: deploy-target: Support stripped libs and execs
New devtool deploy-target option --strip which enables deploying
stripped binaries, saving some space on target.
* Copies the files of ${D} into a new directory and strips them in place
* Used oe.package.strip_execs for stripping directory
* Added devtool.conf option "strip" for changing default behavior
Config example:
[Deploy]
strip = true
[YOCTO #11227]
Signed-off-by: Tobias Hagelborn <tobiasha@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ed Bartosh [Fri, 25 Aug 2017 20:12:29 +0000 (23:12 +0300)]
wic: setlftest: test expanding MBR image
Added test_expand_mbr_image test case to the wic oe-selftest suite.
The test expands directdisk wic image to 1Gb target, checks if it's
expanded correctly and boots it in qemu to make sure the image
is bootable, i.e. bootloader, kernel, boot and root partitions
are still functional.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ed Bartosh [Fri, 25 Aug 2017 20:12:25 +0000 (23:12 +0300)]
wic: added 'fstypes' parameter to Disk.__init__
This parameter specifies list of supported filesystems.
So far only 'fat' is supported, but 'wic write' is going
to support at least 'fat', 'ext' and 'swap'.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ed Bartosh [Fri, 25 Aug 2017 20:12:22 +0000 (23:12 +0300)]
wic: reimplement getting paths of used tools
So far every used tool have to have separate property and
private attribute in the Disk class. This is too verbose,
considering that there will be much more tools used.
Reimplemented getting tools paths using custom __getattr__
method. This is much more compact and readable.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Andre McCurdy [Fri, 25 Aug 2017 20:36:31 +0000 (13:36 -0700)]
terminal.py: fix devshell with mate-terminal
Without the --disable-factory option, mate-terminal fails to start
with the error:
| There was an error creating the child process for this terminal
| Failed to execute child process "oe-gnome-terminal-phonehome" (No such file or directory)
apparently based on an assuption that mate-terminal continues to
track gnome-terminal since forking from it. However, based on the
mate-terminal man page in the upstream master branch, the option is
still supported:
https://github.com/mate-desktop/mate-terminal
Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Andre McCurdy [Fri, 25 Aug 2017 20:36:30 +0000 (13:36 -0700)]
terminal.py: avoid 100% cpu while waiting for phonehome pid file
Some of the less common terminal types haven't been tested with the
recent phonehome pid file changes and there may be error cases where
the pid file is never created.
Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Mark Asselstine [Sat, 26 Aug 2017 18:58:58 +0000 (14:58 -0400)]
gnome-themes-standard: drop .la file as unused
oe-core commit 51b3ee298635b11d5784caaa0ac1c8f4034c25a5
[gnome-themes-standard: Fix packages so dev-pkgs image generation
works] disabled generation of the -dev pkg. Since a libtool archive
file was no longer being picked up by the -dev pkg the build will fail
with a QA issue (if ERROR_QA includes installed-vs-shipped):
ERROR: gnome-themes-standard-3.22.3-r0 do_package: QA Issue:
gnome-themes-standard: Files/directories were installed but not
shipped in any package:
/usr/lib64/gtk-2.0/2.10.0/engines/libadwaita.la
The libtool archive file is mostly useless in modern Linux with a
single shared library file so instead of including this in the -dev
pkg we simply drop it.
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Sun, 27 Aug 2017 08:21:10 +0000 (09:21 +0100)]
staging: Ensure dependencies are removed before being added
Currently items are added to the sysroot, the obsolete items are removed. If
a change such as pkgconfig -> pkgconf is made, this leads to conflicts of
overlapping files in the sysroot.
In order to better support this, handle removing items before adding them.
This requires some minor refactoring to construct the installed list
before the main function loop, otherwise there are no changes in this
patch other than reordering the operations.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Sat, 26 Aug 2017 22:30:39 +0000 (23:30 +0100)]
staging: Avoid sysroot removal races
Currently a task could remove a dependency needed by another task leading
to build failures, often due to missing dependencies (e.g. dynamic libraries
not being found). This was often seen for all-arch recipes in package_write_rpm.
When removing a dependency, first check that no other task active for the
recipe has that same dependency.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Otavio Salvador [Thu, 24 Aug 2017 18:06:51 +0000 (15:06 -0300)]
mesa: Upgrade to 17.1.7 release
This is a bugfix release and has following upstream bugs as noteworth:
Bug 101334 - AMD SI cards: Some vulkan apps freeze the system
Bug 101766 - Assertion `!"invalid type"' failed when constant expression involves literal of different type
Bug 102024 - FORMAT_FEATURE_SAMPLED_IMAGE_BIT not supported for D16_UNORM and D32_SFLOAT
Bug 102148 - Crash when running qopenglwidget example on mesa llvmpipe win32
Bug 102241 - gallium/wgl: SwapBuffers freezing regularly with swap interval enabled
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Thu, 24 Aug 2017 13:08:45 +0000 (14:08 +0100)]
bitbake.conf: Drop usage of build/BUILD_SYS and target/TARGET_SYS conf files
Its been highlighted that TARGET_SYS can be changed by MACHINE and DISTRO files
so this doesn't work at all today. build/ configuration files also don't see to
be used. Drop these forms of include files for those reasons and simplfy the code
slightly.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Zhang Xiao [Fri, 25 Aug 2017 00:42:38 +0000 (08:42 +0800)]
bash: memleak bug fix for builtin command read
Built in command "read" with "-e" use Readline to obtain the line
in an interactive shell. In this process, a string "rlbuf" is
just allocated without free operation thus cause memory leak.
This patch had been submitted to upstream:
http://lists.gnu.org/archive/html/bug-bash/2017-02/msg00061.html
Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com> Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Yi Zhao [Fri, 25 Aug 2017 02:56:56 +0000 (10:56 +0800)]
taglib: Security fix CVE-2017-12678
CVE-2017-12678: In TagLib 1.11.1, the rebuildAggregateFrames function in
id3v2framefactory.cpp has a pointer to cast vulnerability, which allows
remote attackers to cause a denial of service or possibly have
unspecified other impact via a crafted audio file.
Yi Zhao [Fri, 25 Aug 2017 02:11:20 +0000 (10:11 +0800)]
e2fsprogs: fix ptest script
* Fix hardcoded path for ptest script which would cause failure on
mulitilib:
ls: cannot access '/usr/lib/e2fsprogs/ptest/test/[a-zA-Z]_*': No such file or directory
./test_script: line 54: /usr/lib/e2fsprogs/ptest/test/test_post: No such file or directory
* Add missing '$' for shell variable reference
Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Khem Raj [Sat, 19 Aug 2017 17:26:59 +0000 (10:26 -0700)]
db: Add --tag parameter to libtool invocation
Fix do_configure to be able to regenerate configure files
Use cross libtool as installed by OE, as done in normal autotooled recipes
These changes help in invoking the libtool with proper tags for C
and C++ compiler and linker invocation and not use same tag across all
different invocations
Fixes errors like
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Thu, 24 Aug 2017 14:09:53 +0000 (15:09 +0100)]
ca-certificates: Fix postinst dependency issues
We were relying on running ca-certificates from the -native version. This
meant the host and target path layouts had to match which might not be true,
it certainly isn't true for the sdk builds.
There was a dependency on run-parts which wasn't represented (we can get it
from busybox or debianutils).
Since this is an allarch script, call the script directly, making sure debianutils
and openssl are available as postinst rootfs time to resolve the issues.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Thu, 24 Aug 2017 12:10:12 +0000 (13:10 +0100)]
populate_sdk_ext: Add BB_SERVER_TIMEOUT to SDK_LOCAL_CONF_BLACKLIST
Whilst this should work we see failures in testsdkext at the moment when
this is set. Add this to the blacklist for now until we can fix these issues
meaning we can at least test BB_SERVER_TIMEOUT in other scenarios.
Bug 119733 has been opened to track this.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Wed, 23 Aug 2017 19:20:20 +0000 (15:20 -0400)]
kernel-yocto: relax BSP definition test
commit 44aea7b873 [kernel-yocto: ensure that only valid BSPs are built]
introduced a new check to ensure that a valid BSP definition was found,
rather than building something that 'closely' matched the current
MACHINE.
This check breaks valid configurations which do not have a bsp
definition but are otherwise completely configured machines.
To allow both elements to co-exist (and not add warnings or errors
to otherwise valid builds), we first check to see if an empty bsp
definition was found, but then check to see if a defconfig was
provided.
If a defconfig has been provided, that is a sign that the board
configuration is complete and we should continue the build without
otherwise bothering the user.
Tested on meta-raspberrypi and linux-yocto*
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Robert Yang [Tue, 22 Aug 2017 01:23:12 +0000 (18:23 -0700)]
testimage.bbclass: update comments
It's very important to add IMAGE_CLASSES += "testimage" in local.conf firstly,
otherwise the var like TEST_LOG_DIR (defined in testimage.bbclass) will not be
in testdata.json.
[YOCTO #11547]
Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>