]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
7 years agolinux-yocto/4.12: update to v4.12.10
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>
7 years agolinux-yocto/4.12: silence qeumarma9 config warnings
Bruce Ashfield [Thu, 31 Aug 2017 14:21:21 +0000 (10:21 -0400)]
linux-yocto/4.12: silence qeumarma9 config warnings

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:

 ---------- CONFIG_USB_ISP1760_HCD -----------------
 Config: CONFIG_USB_ISP1760_HCD
 From:
  tmp/work-shared/qemuarma9/kernel-source/.kernel-meta/configs/standard/arm-versatile-926ejs/bsp/qemuarma9/qemuarma9.cfg
 Requested value:  CONFIG_USB_ISP1760_HCD=y
 Actual value:

Both of these options no longer need to be in the BSP fragments
for qemuarma9, we fix them with these meta data changes:

  a2edeff915b9 qemuarma9: remove USB_ISP1760_HCD
  5f76e8f64fa5 qemuarma9: drop VGA console disable

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
7 years agolinux-yocto/4.10/4.9: fix BRCMFMAC_PROTO_MSGBUF warning
Bruce Ashfield [Mon, 28 Aug 2017 16:23:40 +0000 (12:23 -0400)]
linux-yocto/4.10/4.9: fix BRCMFMAC_PROTO_MSGBUF warning

The 4.10 and 4.9 kernels need a fix applied to 4.12 to deal with
a configuration warning:

  Author: Bruce Ashfield <bruce.ashfield@windriver.com>
  Date:   Fri Aug 18 17:03:27 2017 -0400

    wifi: drop BRCMFMAC_PROTO_MSGBUF, since it is selected

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
7 years agolinux-yocto/4.12: fix yaffs2 build
Bruce Ashfield [Mon, 28 Aug 2017 16:21:05 +0000 (12:21 -0400)]
linux-yocto/4.12: fix yaffs2 build

Yaffs2 needs some tweaks to build against the 4.12 kernel, we
import the following two commits:

  084d8ae2f349 fs: yaffs2: includes the missing header file
  595f7d1759d9 fs: yaffs2: replace CURRENT_TIME by other appropriate apis

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
7 years agolinux-yocto/4.10: fix aufs build
Bruce Ashfield [Thu, 24 Aug 2017 18:57:48 +0000 (14:57 -0400)]
linux-yocto/4.10: fix aufs build

The aufs patches were out of sync with the latest upstream and hence
didn't build against 4.10.

With this update, we are once again building and up to date with the
upstream repo.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
7 years agoselftest/prservice: Adapt to BB_SERVER_TIMEOUT
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>
7 years agowaffle: fix REQUIRED_DISTRO_FEATURES and PACKAGECONFIG virtual/libgl dependencies
Leonardo Sandoval [Thu, 31 Aug 2017 14:00:41 +0000 (07:00 -0700)]
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>
7 years agoclasses/license: drop erroneous sha256 parameter in LIC_FILES_CHKSUM
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>
7 years agoca-certificates: update to 20170717
Alexander Kanavin [Wed, 30 Aug 2017 13:35:42 +0000 (16:35 +0300)]
ca-certificates: update to 20170717

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>
7 years agomusl: Update to latest
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>
7 years agoopenssl10: set right target for ilp32 build
Vishal Bhoj [Thu, 31 Aug 2017 10:28:49 +0000 (11:28 +0100)]
openssl10: set right target for ilp32 build

Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscriptutils: fix fetch_url() to use lowercase dummy recipe name
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>
7 years agooe-selftest: tinfoil: add a test for variable history
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>
7 years agorecipetool: create: detect Eclipse licenses
Paul Eggleton [Wed, 30 Aug 2017 23:54:15 +0000 (11:54 +1200)]
recipetool: create: detect Eclipse licenses

Add detection of EPL 1.0 and EDL 1.0 license files.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agorecipetool: create: suppress npm shrinkwrap/lockdown warnings again
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>
7 years agorecipetool: create: fix SRCPV prefix for non-git SCMs
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>
7 years agorecipetool: create: make recently added branch/tag handling git specific
Paul Eggleton [Wed, 30 Aug 2017 23:54:12 +0000 (11:54 +1200)]
recipetool: create: make recently added branch/tag handling git specific

The branch and tag handling code that was recently added in OE-Core revs
ecca596b75cfda2f798a0bdde75f4f774e23a95b and
3afdcbdc9a3e65bc925ec61717784ffec67d529d is specific to git, so only
apply it when we're fetching from a git URL.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodevtool: add: add explicit srcrev/branch options
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>
7 years agooe-selftest: devtool: test find-recipe and edit-recipe
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>
7 years agodevtool: edit-recipe: fix regression
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>
7 years agodevtool: upgrade: workaround for recipes which apply patches conditional upon class
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>
7 years agodevtool: upgrade: fix handling of non-absolute paths
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>
7 years agodevtool: update-recipe: ensure patches get deleted in srcrev mode
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>
7 years agoimage_types.bbclass: improve reproducibility of .gz files
Juro Bystricky [Mon, 28 Aug 2017 20:28:25 +0000 (13:28 -0700)]
image_types.bbclass: improve reproducibility of .gz files

When compressing with "gzip", do not save the time stamp in
the compressed file metadata.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoqemuboot.bbclass: create deterministic qemuboot.conf file
Juro Bystricky [Mon, 28 Aug 2017 20:28:26 +0000 (13:28 -0700)]
qemuboot.bbclass: create deterministic qemuboot.conf file

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>
7 years agoeudev_3.2.2: improve reproducibility
Juro Bystricky [Mon, 28 Aug 2017 20:28:24 +0000 (13:28 -0700)]
eudev_3.2.2: improve reproducibility

Remove all host build references from the eudev-dbg package

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodiffutils_3.6.bb: remove build host references
Juro Bystricky [Mon, 28 Aug 2017 20:28:22 +0000 (13:28 -0700)]
diffutils_3.6.bb: remove build host references

Remove build host references from diffutils-ptest package.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_manager.py: improve reproducibility
Juro Bystricky [Mon, 28 Aug 2017 20:28:23 +0000 (13:28 -0700)]
package_manager.py: improve reproducibility

When creating Packages.gz, do not save the time stamp in the compressed
file metadata.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobash.inc: improve reproducibility
Juro Bystricky [Mon, 28 Aug 2017 20:28:20 +0000 (13:28 -0700)]
bash.inc: improve reproducibility

Remove all host build references from the following bash packages:
bash-ptest, bash-bashbug, bash-dev, bash-loadable.

[YOCTO #11918]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoflex_2.6.0.bb: remove build host references
Juro Bystricky [Mon, 28 Aug 2017 20:28:21 +0000 (13:28 -0700)]
flex_2.6.0.bb: remove build host references

Remove build host references from flex-ptest package.

[YOCTO #11667]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agozlib_1.2.11.bb: remove build host references
Juro Bystricky [Mon, 28 Aug 2017 20:28:19 +0000 (13:28 -0700)]
zlib_1.2.11.bb: remove build host references

Remove build host references from libz-ptest package.

[YOCTO #11668]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolsof: remove host information from version.h
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>
7 years agobitbake.conf: add definition for BUILDSDK_CXXFLAGS
Chang Rebecca Swee Fun [Wed, 30 Aug 2017 05:15:43 +0000 (13:15 +0800)]
bitbake.conf: add definition for BUILDSDK_CXXFLAGS

${BUILDSDK_CXXFLAGS} was introduced since
commit 55c83cb239df5faf5e2143fffca47f2f16931cb3
cross.bbclass: override TARGET_* flags

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>
7 years agolibpcre2: Fix CVE-2017-7186
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>
7 years agolibpcre2: Fix CVE-2017-8786
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>
7 years agoinitramfs-framework: Change recipe to be allarch
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>
7 years agobluez5: cosmetic fixes to bluetooth bootscript
Javier Viguera [Tue, 18 Jul 2017 16:32:02 +0000 (18:32 +0200)]
bluez5: cosmetic fixes to bluetooth bootscript

Fix booting messages wrapped over two different lines:

    Starting bluetooth
    bluetoothd

    Stopping bluetooth
    /usr/libexec/bluetooth/bluetoothd

Also reworked whitespace (removed some empty lines).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years ago(PRE)MIRRORS: fix pattern for npm:// without slash
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>
7 years agoxserver-xorg: Enable xwayland only with opengl
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>
7 years agovulkan: rrecommended drivers unconditionally
Jussi Kukkonen [Mon, 28 Aug 2017 12:46:36 +0000 (15:46 +0300)]
vulkan: rrecommended drivers unconditionally

mesa can now build vulkan drivers without opengl: remove workaround.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomesa: Support building without opengl
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>
7 years agosigning-keys: do not use DISTRO_VERSION in key names
Alexander Kanavin [Tue, 29 Aug 2017 11:45:26 +0000 (14:45 +0300)]
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>
7 years agosubversion: inherit pkgconfig, so that serf can be found
Alexander Kanavin [Tue, 29 Aug 2017 11:45:25 +0000 (14:45 +0300)]
subversion: inherit pkgconfig, so that serf can be found

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopciutils: inherit pkgconfig so that libkmod can be found
Alexander Kanavin [Tue, 29 Aug 2017 11:45:24 +0000 (14:45 +0300)]
pciutils: inherit pkgconfig so that libkmod can be found

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogtk+3: remove superfluous vardepsexclude
Stefan Müller-Klieser [Tue, 29 Aug 2017 13:30:59 +0000 (15:30 +0200)]
gtk+3: remove superfluous vardepsexclude

This seems to be a leftover from the recipe sysroot transition. Remove
it, as it might mask configuration errors.

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoscripts/runqemu: Don't print error messages about tap file locks
Richard Purdie [Tue, 29 Aug 2017 16:04:38 +0000 (17:04 +0100)]
scripts/runqemu: Don't print error messages about tap file locks

Errors like:
runqemu - ERROR - Acquiring lockfile /tmp/qemu-tap-locks/tap0.lock failed: [Errno 11] Resource temporarily unavailable

are not really fatal errors. Change these to info messages instead
so people look later in the log for the real errors.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoqemurunner: Tweak qemu pid starting timeout code
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>
7 years agolibdrm: Upgrade to 2.4.83
Otavio Salvador [Mon, 28 Aug 2017 11:02:14 +0000 (08:02 -0300)]
libdrm: Upgrade to 2.4.83

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowatchdog: enable systemd support
Kai Kang [Tue, 22 Aug 2017 06:35:05 +0000 (14:35 +0800)]
watchdog: enable systemd support

Inherit systemd.bbclass to enable systemd support for watchdog.

And fix indentation of do_install_append() as well according to:
https://www.openembedded.org/wiki/Styleguide#Format_Guidelines

Signed-off-by: Kai Kang <kai.kang@windriver.com>
7 years agogettext.bbclass: do not add virtual/gettext to DEPENDS
Alexander Kanavin [Tue, 29 Aug 2017 11:10:53 +0000 (14:10 +0300)]
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>
7 years agoinsane: add qa check for uppercase recipe name
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>
7 years agoopenssh: Fix syntax error on x32
sweeaun [Mon, 28 Aug 2017 22:14:07 +0000 (15:14 -0700)]
openssh: Fix syntax error on x32

Fix compilation error during openssh x32 build due to syntax error.

Signed-off-by: sweeaun <swee.aun.khor@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibsdl: Move PACKAGECONFIG options from meta-mingw
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>
7 years agodevtool: deploy-target: Support stripped libs and execs
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>
7 years agowic: setlftest: test expanding MBR image
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>
7 years agowic: always read image partitions
Ed Bartosh [Fri, 25 Aug 2017 20:12:28 +0000 (23:12 +0300)]
wic: always read image partitions

Got rid of lazy evaluation of self.partitions property.
It's not needed because partitions of the source image should
be always read.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: implement 'wic write' command
Ed Bartosh [Fri, 25 Aug 2017 20:12:27 +0000 (23:12 +0300)]
wic: implement 'wic write' command

This command writes image to the media or another file with
the possibility to expand partitions to fill free target space.

[YOCTO #11278]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: extend list of used tools
Ed Bartosh [Fri, 25 Aug 2017 20:12:26 +0000 (23:12 +0300)]
wic: extend list of used tools

Added sfdisk, e2fsck, mkswap, resize2fs, mkdosfs to the
list of used tools in Disk class. They're going to be used
in 'wic write' implementation.

Added dependency to util-linux to wic-tools to ensure that
sfdisk and mkswap are available from wic-tools native sysroot.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: added 'fstypes' parameter to Disk.__init__
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>
7 years agowic: convert partition number to int
Ed Bartosh [Fri, 25 Aug 2017 20:12:24 +0000 (23:12 +0300)]
wic: convert partition number to int

Converted partition number to int in order to use
it as an index in the list of partitions.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: get more info from the 'parted print' output
Ed Bartosh [Fri, 25 Aug 2017 20:12:23 +0000 (23:12 +0300)]
wic: get more info from the 'parted print' output

Got partition type and sector sizes from the output
of 'parted print'. This info may be used in the implementation
of 'wic write' command.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: reimplement getting paths of used tools
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>
7 years agoterminal.py: add support for mate-terminal in check_terminal_version()
Andre McCurdy [Fri, 25 Aug 2017 20:36:32 +0000 (13:36 -0700)]
terminal.py: add support for mate-terminal in check_terminal_version()

Not currently used, but include for completeness.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoterminal.py: fix devshell with mate-terminal
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)

The --disable-factory option was removed by:

  http://git.openembedded.org/openembedded-core/commit/?id=e8dca725ed8211a874472300a3ed50e494039ab9

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>
7 years agoterminal.py: avoid 100% cpu while waiting for phonehome pid file
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>
7 years agognome-themes-standard: drop .la file as unused
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>
7 years agostaging: Ensure dependencies are removed before being added
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>
7 years agostaging: Avoid sysroot removal races
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>
7 years agosystemd-boot: Make EFI_CC overridable
Khem Raj [Thu, 24 Aug 2017 19:17:41 +0000 (12:17 -0700)]
systemd-boot: Make EFI_CC overridable

Some layers may be setting their own EFI_CC
keep that possibility open

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomesa: Upgrade to 17.1.7 release
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>
7 years agobitbake.conf: Drop usage of build/BUILD_SYS and target/TARGET_SYS conf files
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>
7 years agoninja: fix upstream version check
Alexander Kanavin [Thu, 24 Aug 2017 13:53:14 +0000 (16:53 +0300)]
ninja: fix upstream version check

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibva: fix upstream version check
Alexander Kanavin [Thu, 24 Aug 2017 13:32:26 +0000 (16:32 +0300)]
libva: fix upstream version check

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoqemu: fix upstream version check
Alexander Kanavin [Thu, 24 Aug 2017 13:32:25 +0000 (16:32 +0300)]
qemu: fix upstream version check

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage.py: strip_execs: Support for .ko modules
Tobias Hagelborn [Fri, 25 Aug 2017 11:32:37 +0000 (13:32 +0200)]
package.py: strip_execs: Support for .ko modules

* Support stripping of .ko modules verifying file extension and
  check of content "vermagic="

Signed-off-by: Tobias Hagelborn <tobiasha@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage.py: Fix some lint errors
Tobias Hagelborn [Fri, 25 Aug 2017 11:32:36 +0000 (13:32 +0200)]
package.py: Fix some lint errors

- rename type to exec_type not to shadow type
- rename isELF is_elf

Signed-off-by: Tobias Hagelborn <tobiasha@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agorng-tools: add systemd service file
Dengke Du [Fri, 25 Aug 2017 06:14:28 +0000 (02:14 -0400)]
rng-tools: add systemd service file

Add systemd service file for rng-tools.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobash: memleak bug fix for builtin command read
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>
7 years agolibxml2: Fix CVE-2017-8872
Hongxu Jia [Wed, 23 Aug 2017 08:30:45 +0000 (04:30 -0400)]
libxml2: Fix CVE-2017-8872

fix global-buffer-overflow in htmlParseTryOrFinish (HTMLparser.c:5403)

https://bugzilla.gnome.org/show_bug.cgi?id=775200

Here is the reproduce steps on ubuntu 16.04, use clang with "-fsanitize=address"
...
export CC="clang"
export CFLAGS="-fsanitize=address"

./configure --disable-shared

make clean all -j

wget https://bugzilla.gnome.org/attachment.cgi?id=340871 -O poc

./xmllint --html --push poc
==2785==ERROR: AddressSanitizer: global-buffer-overflow on address
0x000000a0de21 at pc 0x0000006a7f6e bp 0x7ffdfe940c10 sp 0x7ffdfe940c08
READ of size 1 at 0x000000a0de21 thread T0    #0 0x6a7f6d
(/home/jiahongxu/Downloads/libxml2-2.9.4/xmllint+0x6a7f6d)    #1 0x6a7356
(/home/jiahongxu/Downloads/libxml2-2.9.4/xmllint+0x6a7356)    #2 0x4f4504
(/home/jiahongxu/Downloads/libxml2-2.9.4/xmllint+0x4f4504)    #3 0x4f045e
(/home/jiahongxu/Downloads/libxml2-2.9.4/xmllint+0x4f045e)    #4 0x7f81977d682f
(/lib/x86_64-linux-gnu/libc.so.6+0x2082f)    #5 0x419ad8
(/home/jiahongxu/Downloads/libxml2-2.9.4/xmllint+0x419ad8)
...

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotaglib: Security fix CVE-2017-12678
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.

Reference:
https://nvd.nist.gov/vuln/detail/CVE-2017-12678

Patch from:
https://github.com/taglib/taglib/pull/831/commits/eb9ded1206f18f2c319157337edea2533a40bea6

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoe2fsprogs: fix ptest script
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>
8 years agodb: Add --tag parameter to libtool invocation
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>
8 years agoca-certificates: Fix postinst dependency issues
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>
8 years agodebianutils: Add a native version (for run-parts)
Richard Purdie [Thu, 24 Aug 2017 14:06:21 +0000 (15:06 +0100)]
debianutils: Add a native version (for run-parts)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodefault-providers: Add entries for pkgconfig (due to pkg-conf being added)
Richard Purdie [Thu, 24 Aug 2017 12:12:37 +0000 (13:12 +0100)]
default-providers: Add entries for pkgconfig (due to pkg-conf being added)

This silences warnings generated after pkg-conf was added as an alternative
pkgconfig provider.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_sdk_ext: Add BB_SERVER_TIMEOUT to SDK_LOCAL_CONF_BLACKLIST
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>
8 years agoboost: add python to default PACKAGECONFIG options
Jackie Huang [Tue, 22 Aug 2017 07:42:19 +0000 (15:42 +0800)]
boost: add python to default PACKAGECONFIG options

We want to provide python libs by default, and some other
popular Linux distributions like redhat/fedora does the same.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-yocto: relax BSP definition test
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>
8 years agoacl_2.25: improve reproducibility
Juro Bystricky [Wed, 23 Aug 2017 20:16:18 +0000 (13:16 -0700)]
acl_2.25: improve reproducibility

Remove all host build references from the acl-ptest package.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoattr: improve reproducibility
Juro Bystricky [Wed, 23 Aug 2017 20:14:19 +0000 (13:14 -0700)]
attr: improve reproducibility

Remove all host build references from the attr-ptest package.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoinitramfs-framework/setup-live: quote bootparam_root variable
California Sullivan [Wed, 23 Aug 2017 22:47:28 +0000 (15:47 -0700)]
initramfs-framework/setup-live: quote bootparam_root variable

When bootparam_root was empty the if statement would resolve into
invalid syntax instead of short circuiting after the -z, causing a boot
failure.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowebkitgtk: disable gobject-introspection on armv7a
Jackie Huang [Thu, 24 Aug 2017 01:18:38 +0000 (09:18 +0800)]
webkitgtk: disable gobject-introspection on armv7a

Disable gobject-introspection on armv7a and armv7ve
to avoid do_compile failure:

| qemu: uncaught target signal 11 (Segmentation fault) - core dumped
| Segmentation fault

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocore/target/ssh.py: use reader to handle partial data
Robert Yang [Thu, 24 Aug 2017 06:19:55 +0000 (23:19 -0700)]
core/target/ssh.py: use reader to handle partial data

This can avoid UnicodeDecodeError error.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibinput: remove obsolete touchpad patch
Jose Alarcon [Thu, 24 Aug 2017 05:37:53 +0000 (08:37 +0300)]
libinput: remove obsolete touchpad patch

This patch was a temporal workaround needed with 4.1 kernels.
Remove it.

Signed-off-by: Jose Alarcon <jose.alarcon@ge.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogpg_sign: depress the owership warnings on homedir
Jia Zhang [Thu, 24 Aug 2017 03:24:28 +0000 (11:24 +0800)]
gpg_sign: depress the owership warnings on homedir

A gpg command, e.g, called by get_gpg_version(), may trigger such a warning:
gpg: WARNING: unsafe ownership on homedir '/home/user/.gnupg'

This sort of warning is harmless so it can be depressed through specifying
--no-permission-warning.

Signed-off-by: Jia Zhang <lans.zhang2008@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-yocto: fix typo in error message
Luca Ceresoli [Thu, 24 Aug 2017 07:40:54 +0000 (09:40 +0200)]
kernel-yocto: fix typo in error message

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agovulkan: Only build when 'vulkan' distro flag is set
Mark Hatle [Wed, 23 Aug 2017 15:50:16 +0000 (10:50 -0500)]
vulkan: Only build when 'vulkan' distro flag is set

Only build with the vulkan distro flag is set.  (References to this flag
were found in the mesa recipe.)

In addition, only set the RRECOMEMND to mesa, if 'opengl' flag is set.  Mesa
required opengl distro flag to build.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuildhistory.bbclass: add ptest
Robert Yang [Tue, 22 Aug 2017 01:23:13 +0000 (18:23 -0700)]
buildhistory.bbclass: add ptest

The ptest log will be saved to buildhistory/ptest, we can easily get
the regression result between builds by:

$ git show HEAD ptest/pass.fail.skip.*

[YOCTO #11547]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotestimage.bbclass: update comments
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>
8 years agobuildhistory.bbclass: print message when no commit
Robert Yang [Tue, 22 Aug 2017 01:23:11 +0000 (18:23 -0700)]
buildhistory.bbclass: print message when no commit

This makes the user easier to know how to make commit in buildhistory.

[YOCTO #11547]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>