]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
6 years agolinux-yocto/5.0: update to v5.0.5
Bruce Ashfield [Mon, 15 Apr 2019 03:19:02 +0000 (23:19 -0400)]
linux-yocto/5.0: update to v5.0.5

Integrating the latest korg -stable releases which comprise the
following commits:

   1f6f316a537d Linux 5.0.5
   a57af6d07512 ALSA: hda - Enforces runtime_resume after S3 and S4 for each codec
   6c77789fb46e ALSA: hda - Record the current power state before suspend/resume calls
   8bc3816d6566 locking/lockdep: Add debug_locks check in __lock_downgrade()
   0830cf62f529 x86/unwind: Add hardcoded ORC entry for NULL
   0312f3032e35 x86/unwind: Handle NULL pointer calls better in frame unwinder
   1e641e63fe0c loop: access lo_backing_file only when the loop device is Lo_bound
   da75d3775401 netfilter: ebtables: remove BUGPRINT messages
   a179695eddd9 aio: simplify - and fix - fget/fput for io_submit()
   1c0fc5e9cb40 f2fs: fix to avoid deadlock of atomic file operations
   648562c0a958 RDMA/cma: Rollback source IP address if failing to acquire device
   244594c5f5c8 drm/vkms: Fix flush_work() without INIT_WORK().
   35228ce61a81 Bluetooth: hci_ldisc: Postpone HCI_UART_PROTO_READY bit set in hci_uart_set_proto()
   c8d311117c3e Bluetooth: hci_ldisc: Initialize hci_dev before open()
   4d18023ade55 Bluetooth: Fix decrementing reference count twice in releasing socket
   572ae5c7646b Bluetooth: hci_uart: Check if socket buffer is ERR_PTR in h4_recv_buf()
   c35a32eb2339 media: v4l2-ctrls.c/uvc: zero v4l2_event
   c29313c07f2d ext4: brelse all indirect buffer in ext4_ind_remove_space()
   f1902fd02d56 ext4: fix data corruption caused by unaligned direct AIO
   635218fee409 ext4: fix NULL pointer dereference while journal is aborted
   5b099547f29d ALSA: ac97: Fix of-node refcount unbalance
   1fa1bfef5f4c ALSA: hda - Don't trigger jackpoll_work in azx_resume
   2b1cf1a17a41 SMB3: Fix SMB3.1.1 guest mounts to Samba
   809ecabb6d41 clocksource/drivers/riscv: Fix clocksource mask
   70c1b15faf8b irqchip/gic-v3-its: Fix comparison logic in lpi_range_cmp
   dfa011546d27 objtool: Move objtool_file struct off the stack
   198092b82db3 perf probe: Fix getting the kernel map
   3bff3aabd586 cifs: allow guest mounts to work for smb3.11
   8dfb1e702caa futex: Ensure that futex address is aligned in handle_futex_death()
   72b8c5492f48 scsi: ibmvscsi: Fix empty event pool access during host removal
   bc1bf16d7def scsi: ibmvscsi: Protect ibmvscsi_head from concurrent modificaiton
   e109bf21f4c6 scsi: qla2xxx: Fix FC-AL connection target discovery
   abe481cfe983 scsi: core: Avoid that a kernel warning appears during system resume
   e846d79bc1ba net/mlx5: Fix DCT creation bad flow
   62362ccdd45c powerpc/security: Fix spectre_v2 reporting
   7f5ffb4c7a71 powerpc/vdso64: Fix CLOCK_MONOTONIC inconsistencies across Y2038
   9e063d979422 MIPS: Fix kernel crash for R6 in jump label branch function
   de21552cc848 MIPS: Ensure ELF appended dtb is relocated
   63703e8fd2af mips: loongson64: lemote-2f: Add IRQF_NO_SUSPEND to "cascade" irqaction.
   e88f693e6e8d udf: Fix crash on IO error during truncate
   48cce130d485 libceph: wait for latest osdmap in ceph_monc_blacklist_add()
   027584c8ef01 iommu/iova: Fix tracking of recently failed iova address
   98e2c51c1ac3 iommu/amd: fix sg->dma_address for sg->offset bigger than PAGE_SIZE
   0c113ec08d71 drm/vmwgfx: Return 0 when gmrid::get_node runs out of ID's
   5618b16763ce drm/vmwgfx: Don't double-free the mode stored in par->set_mode
   109f5f9dff14 drm/amdgpu: fix invalid use of change_bit
   cdb57f82a4bc mmc: renesas_sdhi: limit block count to 16 bit for old revisions
   1494408bf863 mmc: mxcmmc: "Revert mmc: mxcmmc: handle highmem pages"
   7e682a01b111 mmc: alcor: fix DMA reads
   cc8cd197411b mmc: pxamci: fix enum type confusion
   ae833c3eefaf ALSA: firewire-motu: use 'version' field of unit directory to identify model
   3c09233b5dee ALSA: hda - add Lenovo IdeaCentre B550 to the power_save_blacklist
   239cc2c5a3c8 Linux 5.0.4
   87e728e85559 SUNRPC: Respect RPC call timeouts when retrying transmission
   f6716abfd12b SUNRPC: Fix up RPC back channel transmission
   aed54941cf9e SUNRPC: Prevent thundering herd when the socket is not connected
   1b2f5d715bbc s390/setup: fix boot crash for machine without EDAT-1
   09bfb45ed842 net: dsa: lantiq_gswip: fix OF child-node lookups
   8d244127d25f net: dsa: lantiq_gswip: fix use-after-free on failed probe
   4e126cbd4f06 KVM: nVMX: Check a single byte for VMCS "launched" in nested early checks
   5de7f6cd6aeb KVM: nVMX: Ignore limit checks on VMX instructions using flat segments
   f88f29f81d59 KVM: nVMX: Apply addr size mask to effective address for VMX instructions
   64d259a70642 KVM: nVMX: Sign extend displacements of VMX instr's mem operands
   1e42327adb8d KVM: x86/mmu: Do not cache MMIO accesses while memslots are in flux
   c173d5417a11 KVM: x86/mmu: Detect MMIO generation wrap in any address space
   5221117cd414 KVM: VMX: Zero out *all* general purpose registers after VM-Exit
   cf8d03a4fe59 KVM: VMX: Compare only a single byte for VMCS' "launched" in vCPU-run
   e1bdcf061b48 KVM: Call kvm_arch_memslots_updated() before updating memslots
   c61d88f39491 drm/amd/display: don't call dm_pp_ function from an fpu block
   ea7da9ef23a0 drm/amd/powerplay: correct power reading on fiji
   3bc65d729765 drm/radeon/evergreen_cs: fix missing break in switch statement
   b78ee0965f86 drm/fb-helper: generic: Fix drm_fbdev_client_restore()
   c7a35a9877b8 media: imx: csi: Stop upstream before disabling IDMA channel
   145cab144d75 media: imx: csi: Disable CSI immediately after last EOF
   e7a06193c52c media: imx-csi: Input connections to CSI should be optional
   e7ae48ae4722 media: vimc: Add vimc-streamer for stream control
   6932b9b4e677 media: uvcvideo: Avoid NULL pointer dereference at the end of streaming
   202ed62dea70 media: sun6i: Fix CSI regmap's max_register
   1d433d48516e media: lgdt330x: fix lock status reporting
   f55d0cb10f5b media: imx: prpencvf: Stop upstream before disabling IDMA channel
   9d032911a36c rcu: Do RCU GP kthread self-wakeup from softirq and interrupt
   5d6f031fa782 tpm: Unify the send callback behaviour
   65a2af7599c6 tpm/tpm_crb: Avoid unaligned reads in crb_recv()
   f484e220df15 x86/ftrace: Fix warning and considate ftrace_jmp_replace() and ftrace_call_replace()
   384dada74d37 x86/kvmclock: set offset for kvm unstable clock
   9b236e3f79d9 md: Fix failed allocation of md_register_thread
   99e5abb7b895 perf intel-pt: Fix divide by zero when TSC is not available
   85c9f1fb8a81 perf/x86/intel/uncore: Fix client IMC events return huge result
   6228a6e3516f perf intel-pt: Fix overlap calculation for padding
   2354deae355b perf auxtrace: Define auxtrace record alignment
   0f43fd4bdb74 perf tools: Fix split_kallsyms_for_kcore() for trampoline symbols
   99c7a8ec4387 perf intel-pt: Fix CYC timestamp calculation after OVF
   a0203d4e717e x86/unwind/orc: Fix ORC unwind table alignment
   194f1ecd4906 vt: perform safe console erase in the right order
   c8d3a581742f stable-kernel-rules.rst: add link to networking patch queue
   0b60b354b33a bcache: use (REQ_META|REQ_PRIO) to indicate bio for metadata
   dddd539dc325 bcache: treat stale && dirty keys as bad keys
   97cf758e172c bcache: never writeback a discard operation
   a8ce88427a9b PM / OPP: Update performance state when freq == old_freq
   c9c0e5f01245 PM / wakeup: Rework wakeup source timer cancellation
   f03f5295caf0 svcrpc: fix UDP on servers with lots of threads
   1363f37fbd24 NFSv4.1: Reinitialise sequence results before retransmitting a request
   867ae74fb190 nfsd: fix wrong check in write_v4_end_grace()
   f5bed084b482 nfsd: fix memory corruption caused by readdir
   2ececa64d67a nfsd: fix performance-limiting session calculation
   88f786a8e78a NFS: Don't recoalesce on error in nfs_pageio_complete_mirror()
   4fe2a7fda78a NFS: Fix an I/O request leakage in nfs_do_recoalesce
   e83b6ac7deed NFS: Fix I/O request leakages
   b41991d86722 cpuidle: governor: Add new governors to cpuidle_governors again
   6eea03f8c368 cpcap-charger: generate events for userspace
   9cc42d068f57 mfd: sm501: Fix potential NULL pointer dereference
   83df21c731e6 media: cx25840: mark pad sig_types to fix cx231xx init
   b6246ffae5a0 dm integrity: limit the rate of error messages
   dca22c59e47e dm: fix to_sector() for 32bit
   a8964a63780c ipmi_si: fix use-after-free of resource->name
   d3432e5d0831 ipmi_si: Fix crash when using hard-coded device
   98ab3b877400 Revert "KVM/MMU: Flush tlb directly in the kvm_zap_gfn_range()"
   bf5615991a91 arm64: KVM: Fix architecturally invalid reset value for FPEXC32_EL2
   4b6d75b38664 arm64: debug: Ensure debug handlers check triggering exception level
   4f771d8acc74 arm64: debug: Don't propagate UNKNOWN FAR into si_code for debug signals
   9afab3b6b9c5 arm64: Fix HCR.TGE status for NMI contexts
   8f67dd8570ac ARM: s3c24xx: Fix boolean expressions in osiris_dvs_notify
   6a4c3ab2d53e powerpc/traps: Fix the message printed when stack overflows
   24bf608e7438 powerpc/traps: fix recoverability of machine check handling on book3s/32
   71bb4d024416 powerpc/smp: Fix NMI IPI xmon timeout
   850a95bf2a46 powerpc/smp: Fix NMI IPI timeout
   fcf1ca937f59 powerpc/hugetlb: Don't do runtime allocation of 16G pages in LPAR configuration
   4ca936a49360 powerpc/ptrace: Simplify vr_get/set() to avoid GCC warning
   55b852a06fe1 powerpc: Fix 32-bit KVM-PR lockup and host crash with MacOS guest
   651db1461793 powerpc/64s/hash: Fix assert_slb_presence() use of the slbfee. instruction
   702c1ab420ab powerpc/powernv: Don't reprogram SLW image on every KVM guest entry/exit
   f7d68a102ad4 powerpc/kvm: Save and restore host AMR/IAMR/UAMOR
   3b218d244482 powerpc/83xx: Also save/restore SPRG4-7 during suspend
   16ee62368aaa powerpc/powernv: Make opal log only readable by root
   8d2cc8c1c4fe powerpc/wii: properly disable use of BATs when requested.
   d0d33e87d143 powerpc/32: Clear on-stack exception marker upon exception return
   232aa30f16b9 security/selinux: fix SECURITY_LSM_NATIVE_LABELS on reused superblock
   7e30471146d2 selinux: add the missing walk_size + len check in selinux_sctp_bind_connect
   f9897a30deb7 jbd2: fix compile warning when using JBUFFER_TRACE
   8c343062c8fa jbd2: clear dirty flag when revoking a buffer from an older transaction
   bb47633ab15e serial: 8250_pci: Have ACCES cards that use the four port Pericom PI7C9X7954 chip use the pci_pericom_setup()
   7271438208b6 serial: 8250_pci: Fix number of ports for ACCES serial cards
   c7388ba10902 serial: 8250_of: assume reg-shift of 2 for mrvl,mmp-uart
   fa4d0361304f serial: uartps: Fix stuck ISR if RX disabled with non-empty FIFO
   37fe1d56aa2c dmaengine: usb-dmac: Make DMAC system sleep callbacks explicit
   39367147f046 usb: typec: tps6598x: handle block writes separately with plain-I2C adapters
   07e326fd07d7 usb: chipidea: tegra: Fix missed ci_hdrc_remove_device()
   f11fa22a7a5f clk: ingenic: Fix doc of ingenic_cgu_div_info
   7d4966247a99 clk: ingenic: Fix round_rate misbehaving with non-integer dividers
   1a29715073a1 clk: samsung: exynos5: Fix kfree() of const memory on setting driver_override
   7da58ad824b1 clk: samsung: exynos5: Fix possible NULL pointer exception on platform_device_alloc() failure
   d9d7760c1e45 clk: clk-twl6040: Fix imprecise external abort for pdmclk
   a712a38100b5 clk: uniphier: Fix update register for CPU-gear
   e1ac00773456 ext2: Fix underflow in ext2_max_size()
   96728f35572e cxl: Wrap iterations over afu slices inside 'afu_list_lock'
   25636de95557 IB/rdmavt: Fix concurrency panics in QP post_send and modify to error
   ada60723d7cd IB/rdmavt: Fix loopback send with invalidate ordering
   c8a23dfeb2d6 IB/hfi1: Close race condition on user context disable and close
   2b9ef0bedaac PCI: pci-bridge-emul: Extend pci_bridge_emul_init() with flags
   d011c7871d16 PCI: pci-bridge-emul: Create per-bridge copy of register behavior
   ee0bf8d6e7fc PCI: pciehp: Disable Data Link Layer State Changed event on suspend
   0d5bc50f524a PCI: dwc: skip MSI init if MSIs have been explicitly disabled
   63a9e7ce6624 PCI: qcom: Don't deassert reset GPIO during probe
   eafa704de27b PCI/DPC: Fix print AER status in DPC event handling
   bae1cf68370d PCI/ASPM: Use LTR if already enabled by platform
   4e9f8e86d6c7 swiotlb: Add is_swiotlb_active() function
   a4eeaa9cc9da swiotlb: Introduce swiotlb_max_mapping_size()
   38c3a86a8226 dma: Introduce dma_max_mapping_size()
   db8913b46d74 ext4: fix crash during online resizing
   edc0bf6532ba ext4: add mask of ext4 flags to swap
   7c2cfdf99ae9 ext4: update quota information while swapping boot loader inode
   ef2dfe6f8c82 gpio: pca953x: Fix dereference of irq data in shutdown
   13cef9edc45b media: i2c: ov5640: Fix post-reset delay
   8b82d499df87 i2c: tegra: update maximum transfer size
   986d964baaaa i2c: tegra: fix maximum transfer size
   775bd984147e parport_pc: fix find_superio io compare code, should use equal test.
   d91315e99c55 intel_th: Don't reference unassigned outputs
   1a1d6860c539 device property: Fix the length used in PROPERTY_ENTRY_STRING()
   9a638bb82ff5 nvmem: core: don't check the return value of notifier chain call
   d09e7041330b kernel/sysctl.c: add missing range check in do_proc_dointvec_minmax_conv
   9a842b43e4b8 mm/memory.c: do_fault: avoid usage of stale vm_area_struct
   8df6ab770e20 mm/vmalloc: fix size check for remap_vmalloc_range_partial()
   84fe80428739 mm: hwpoison: fix thp split handing in soft_offline_in_use_page()
   7a34997043f1 ext4: cleanup pagecache before swap i_data
   a0f6f657ac44 ext4: fix check of inode in swap_inode_boot_loader
   f9308e46e02b cpufreq: pxa2xx: remove incorrect __init annotation
   272b28097c30 cpufreq: tegra124: add missing of_node_put()
   144c3557b1e1 cpufreq: kryo: Release OPP tables on module removal
   737f4ead9606 x86/kprobes: Prohibit probing on optprobe template code
   dbbb26db8938 irqchip/brcmstb-l2: Use _irqsave locking variants in non-interrupt code
   830d66c95e02 irqchip/gic-v3-its: Avoid parsing _indirect_ twice for Device table
   bd05a30753eb libertas_tf: don't set URB_ZERO_PACKET on IN USB transfer
   028cbca07ab5 soc: qcom: rpmh: Avoid accessing freed memory from batch API
   1098803b8cb7 Btrfs: fix deadlock between clone/dedupe and rename
   3486142a68e3 Btrfs: fix corruption reading shared and compressed extents after hole punching
   ebbb48419e8a btrfs: init csum_list before possible free
   88e610ae4c3a btrfs: ensure that a DUP or RAID1 block group has exactly two stripes
   9c58f2ada4fa btrfs: drop the lock on error in btrfs_dev_replace_cancel
   fb9c36acfab1 btrfs: scrub: fix circular locking dependency warning
   9d7b327affb8 Btrfs: setup a nofs context for memory allocation at __btrfs_set_acl
   80dcd07c27df Btrfs: setup a nofs context for memory allocation at btrfs_create_tree()
   98bb142aaff2 m68k: Add -ffreestanding to CFLAGS
   3381b362f74c ovl: Do not lose security.capability xattr over metadata file copy-up
   0fa6688a2882 ovl: During copy up, first copy up data and then xattrs
   ef02f9fe5148 splice: don't merge into linked buffers
   61d06e123502 fs/devpts: always delete dcache dentry-s in dput()
   a15cf4d9a622 scsi: qla2xxx: Use complete switch scan for RSCN events
   f54e2394acf7 scsi: qla2xxx: Avoid PCI IRQ affinity mapping when multiqueue is not supported
   54e834ee7a6e scsi: qla2xxx: Fix LUN discovery if loop id is not assigned yet by firmware
   7d6d14a119c8 scsi: target/iscsi: Avoid iscsit_release_commands_from_conn() deadlock
   6c922faf889a scsi: sd: Optimal I/O size should be a multiple of physical block size
   1ba35e5a3c5c scsi: aacraid: Fix performance issue on logical drives
   bd1558978695 scsi: virtio_scsi: don't send sc payload with tmfs
   ffd4a428a54e s390/virtio: handle find on invalid queue gracefully
   39fdc16138b7 s390/setup: fix early warning messages
   2aa8ab08c82c s390: vfio_ap: link the vfio_ap devices to the vfio_ap bus subsystem
   4b280a0bfc6d clocksource/drivers/arch_timer: Workaround for Allwinner A64 timer instability
   773b445425d6 clocksource/drivers/exynos_mct: Clear timer interrupt when shutdown
   de90b88a20de clocksource/drivers/exynos_mct: Move one-shot check from tick clear to ISR
   9d67c5e995da mt76: fix corrupted software generated tx CCMP PN
   6b65a01d2dcc regulator: s2mpa01: Fix step values for some LDOs
   60cb8b444fbf regulator: max77620: Initialize values for DT properties
   4527a24a8f51 regulator: s2mps11: Fix steps for buck7, buck8 and LDO35
   a34758ac6ad4 spi: spi-gpio: fix SPI_CS_HIGH capability
   618491014846 spi: omap2-mcspi: Fix DMA and FIFO event trigger size mismatch
   7406a055c507 spi: pxa2xx: Setup maximum supported DMA transfer length
   5d919139baf9 spi: ti-qspi: Fix mmap read when more than one CS in use
   4a9932c94626 mmc:fix a bug when max_discard is 0
   aaf1e755f8f9 mmc: renesas_sdhi: Fix card initialization failure in high speed mode
   351062f08fc1 mmc: sdhci-esdhc-imx: fix HS400 timing issue
   cb1c7a9d2897 ACPI / device_sysfs: Avoid OF modalias creation for removed device
   050b87cb66c6 xen: fix dom0 boot on huge systems
   c0b8e1d95cbf vmw_balloon: release lock on error in vmballoon_reset()
   020c90c694dc tracing/perf: Use strndup_user() instead of buggy open-coded version
   aca126f4a451 tracing: Do not free iter->trace in fail path of tracing_open_pipe()
   e5cde571ee5f tracing: Use strncpy instead of memcpy for string keys in hist triggers
   c892f4ee3db2 smb3: make default i/o size for smb3 mounts larger
   3eb2412dd9da CIFS: Fix read after write for files with read caching
   c73a769b63fb CIFS: Do not skip SMB2 message IDs on send failures
   a992916a9c89 CIFS: Do not reset lease state to NONE on lease break
   75bbb83e80c7 CIFS: Fix leaking locked VFS cache pages in writeback retry
   afaf9d664b0f crypto: arm64/aes-ccm - fix bugs in non-NEON fallback routine
   741ae3caa62f crypto: arm64/aes-ccm - fix logical bug in AAD MAC handling
   d78c34dfc288 crypto: x86/morus - fix handling chunked inputs and MAY_SLEEP
   814ec1461901 crypto: x86/aesni-gcm - fix crash on empty plaintext
   2e0e52c3d618 crypto: x86/aegis - fix handling chunked inputs and MAY_SLEEP
   c9e34c3c34b9 crypto: testmgr - skip crc32c context test for ahash algorithms
   c58580801420 crypto: skcipher - set CRYPTO_TFM_NEED_KEY if ->setkey() fails
   0173f7ca0e22 crypto: pcbc - remove bogus memcpy()s with src == dest
   9cbfb0a8d1af crypto: morus - fix handling chunked inputs
   c850ff289c4e crypto: hash - set CRYPTO_TFM_NEED_KEY if ->setkey() fails
   7007b2645f6e crypto: arm64/crct10dif - revert to C code for short inputs
   d78abd635e6c crypto: arm64/aes-neonbs - fix returning final keystream block
   844351fc03b0 crypto: arm/crct10dif - revert to C code for short inputs
   e414d9bc86a7 crypto: aegis - fix handling chunked inputs
   650b7246d460 crypto: aead - set CRYPTO_TFM_NEED_KEY if ->setkey() fails
   781bcac5b199 fix cgroup_do_mount() handling of failure exits
   2ac714d69197 libnvdimm: Fix altmap reservation size calculation
   fefd9f16efc3 libnvdimm/pmem: Honor force_raw for legacy pmem regions
   4b9d1f8b61e8 libnvdimm, pfn: Fix over-trim in trim_pfn_device()
   dd40489f6751 libnvdimm/label: Clear 'updating' flag after label-set update
   5fa9cb709adc nfit/ars: Attempt short-ARS even in the no_init_ars case
   b3971c932d0d nfit/ars: Attempt a short-ARS whenever the ARS state is idle at boot
   0c7979447489 acpi/nfit: Fix bus command validation
   a2690301c976 nfit: acpi_nfit_ctl(): Check out_obj->type in the right place
   59a0e57f0cd3 nfit: Fix nfit_intel_shutdown_status() command submission
   9cd805133b84 dax: Flush partial PMDs correctly
   c2ca8161971a crypto: rockchip - update new iv to device in multiple operations
   e400988e1dae crypto: rockchip - fix scatterlist nents error
   20af3634022b crypto: ahash - fix another early termination in hash walk
   b03aa2833d56 crypto: ofb - fix handling partial blocks and make thread-safe
   5d894501d423 crypto: cfb - remove bogus memcpy() with src == dest
   64ae3c3d0c16 crypto: cfb - add missing 'chunksize' property
   ded8d6308ffd crypto: ccree - don't copy zero size ciphertext
   4fc9f0e1c9ff crypto: ccree - unmap buffer before copying IV
   37ff06fd9cb5 crypto: ccree - fix free of unallocated mlli buffer
   6e905e258c50 crypto: caam - fix DMA mapping of stack memory
   e86dc780320e crypto: caam - fixed handling of sg list
   4a18213573b8 crypto: ccree - fix missing break in switch statement
   fce3d391401a crypto: caam - fix hash context DMA unmap size
   9b2fdbdce1fb stm class: Fix an endless loop in channel allocation
   2adb36ff325d stm class: Prevent division by zero
   1cfec5613090 mei: bus: move hw module get/put to probe/release
   55ced4559dbf mei: hbm: clean the feature flags on link reset
   f644d56fe1d7 iio: adc: exynos-adc: Use proper number of channels for Exynos4x12
   a52251155bab iio: adc: exynos-adc: Fix NULL pointer exception on unbind
   61328520e0b6 ASoC: codecs: pcm186x: Fix energysense SLEEP bit
   5bd4f972e594 ASoC: codecs: pcm186x: fix wrong usage of DECLARE_TLV_DB_SCALE()
   a7abca8506b5 ASoC: fsl_esai: fix register setting issue in RIGHT_J mode
   5ababa4e34db 9p/net: fix memory leak in p9_client_create
   3cccba9a38d5 9p: use inode->i_lock to protect i_size_write() under 32-bit

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomusl: Upgrade to master past 1.1.22
Khem Raj [Sun, 14 Apr 2019 23:31:17 +0000 (16:31 -0700)]
musl: Upgrade to master past 1.1.22

Changes are here
https://git.musl-libc.org/cgit/musl/log/?qt=range&q=43e7efb46555f13a556d92944ac05c19b8929b60..65c8be380431eebe4d70d130bd38563f8df9a7d7

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogcc: Remove Java support variables
Adrian Bunk [Sat, 13 Apr 2019 06:19:19 +0000 (09:19 +0300)]
gcc: Remove Java support variables

Java support was removed in upstream gcc 7.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoSet XZ_COMPRESSION_LEVEL to -9
Adrian Bunk [Fri, 12 Apr 2019 21:09:12 +0000 (00:09 +0300)]
Set XZ_COMPRESSION_LEVEL to -9

It is consistent with other compressors also using their
best compression.

xz is currently the option that offers best compression,
using settings even lower than the default is surprising
and makes it harder to choose the best available compression.

For anyone who cares about compression time using a different
option like gzip or bzip2 is the logical choice.

For decompression, better compressed is actually faster
to decompress.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogrub-efi-native: Install grub-editenv
Jacob Kroon [Sat, 13 Apr 2019 14:48:53 +0000 (16:48 +0200)]
grub-efi-native: Install grub-editenv

Having a native version of grub-editenv around can be useful for
setting the targets grub environment.

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoiptables: upgrade 1.6.2 -> 1.8.2
Changhyeok Bae [Sat, 13 Apr 2019 19:21:10 +0000 (19:21 +0000)]
iptables: upgrade 1.6.2 -> 1.8.2

To enable security flash, get the build error. To fix this,
0003-extensions-format-security-fixes-in-libipt_icmp.patch is required.

Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoptest.bbclass: Use d.getVar instead of os.environ
Mariano Lopez [Sat, 13 Apr 2019 16:05:08 +0000 (11:05 -0500)]
ptest.bbclass: Use d.getVar instead of os.environ

[YOCTO #12597]
[YOCTO #13238]

Signed-off-by: Mariano Lopez <just.another.mariano@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodhcp: Replace OE specific patch for compatibility with latest bind with upstream...
Adrian Bunk [Sun, 14 Apr 2019 20:20:46 +0000 (23:20 +0300)]
dhcp: Replace OE specific patch for compatibility with latest bind with upstream patch

This also fixes a dhcp breakage noticed by Enrico Scholz.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoharfbuzz: update source checksums after upstream replaced the tarball
Yi Zhao [Mon, 15 Apr 2019 06:12:58 +0000 (14:12 +0800)]
harfbuzz: update source checksums after upstream replaced the tarball

RP: Upstream replaced the original release tarball:
https://github.com/servo/rust-harfbuzz/pull/141

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agouboot-sign: add support for different u-boot configurations
Andreas Obergschwandtner [Thu, 11 Apr 2019 12:21:30 +0000 (14:21 +0200)]
uboot-sign: add support for different u-boot configurations

This is done by concatenating the DTB with the kernels public key
to all built u-boot binaries. Furthermore the installation of all
the binaries is required.

Signed-off-by: Andreas Obergschwandtner <andreas.obergschwandtner@skidata.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoiw: upgrade 4.14 -> 5.0.1
Changhyeok Bae [Thu, 11 Apr 2019 21:26:31 +0000 (21:26 +0000)]
iw: upgrade 4.14 -> 5.0.1

Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agognutls: upgrade 3.6.5 -> 3.6.7
Adrian Bunk [Mon, 8 Apr 2019 12:08:55 +0000 (15:08 +0300)]
gnutls: upgrade 3.6.5 -> 3.6.7

This is a new upstream release from the same stable branch
bringing new features and bugfixes (including CVE fixes).

COPYING changed http -> https.

configure no longer has a --without-libunistring-prefix option.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoRevert "nettle: fix ptest failure"
Richard Purdie [Fri, 12 Apr 2019 22:00:00 +0000 (23:00 +0100)]
Revert "nettle: fix ptest failure"

This reverts commit 83faaf7b2a5f4fc4ae504b300134409e90389770.

This should never have merged as the change was rejected upstream and adding a library
to the ptest package resulted in it providing that SONAME which led to being
included in images like core-image-sato.

This in turn led to a ton of ptest failures in the 2.7 r1 QA report.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agou-boot: Upgrade from 2019.01 to 2019.04
Alistair Francis [Wed, 10 Apr 2019 17:23:09 +0000 (17:23 +0000)]
u-boot: Upgrade from 2019.01 to 2019.04

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomakedepend: update to 1.0.6
Oleksandr Kravchuk [Sat, 6 Apr 2019 18:29:43 +0000 (20:29 +0200)]
makedepend: update to 1.0.6

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agofontconfig: update to 2.13.1
Oleksandr Kravchuk [Sat, 6 Apr 2019 13:36:20 +0000 (15:36 +0200)]
fontconfig: update to 2.13.1

Removed patches were upstreammed.

License position in fccache.c was changed since code segment was moved
in the file.

Package requires uuid, therefore dependency on util-linux was added.

inherit gettext was added to fix:
...%s required but not in DEPENDS for file %s. Missing inherit gettext?

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibyaml: update to 0.2.2
Oleksandr Kravchuk [Mon, 1 Apr 2019 15:50:20 +0000 (17:50 +0200)]
libyaml: update to 0.2.2

LICENSE checksum was changed due to copyright year change.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoweston: upgrade 5.0.0 -> 6.0.0
Denys Dmytriyenko [Mon, 1 Apr 2019 19:49:14 +0000 (15:49 -0400)]
weston: upgrade 5.0.0 -> 6.0.0

Refresh patches.

Note:
6.0.0 is the last one to support autotools (needs explicit configure option),
newer versions will only support meson.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocronie: update to 1.5.4
Oleksandr Kravchuk [Mon, 1 Apr 2019 19:02:02 +0000 (21:02 +0200)]
cronie: update to 1.5.4

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodropbear: update to 2019.78
Andrej Valek [Mon, 1 Apr 2019 14:01:53 +0000 (16:01 +0200)]
dropbear: update to 2019.78

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoharfbuzz:upgrade 2.3.1 -> 2.4.0
Zang Ruochen [Tue, 2 Apr 2019 05:57:04 +0000 (13:57 +0800)]
harfbuzz:upgrade 2.3.1 -> 2.4.0

-Upgrade from harfbuzz_2.3.1.bb to harfbuzz_2.4.0.bb.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibinput: update to 1.13.0
Oleksandr Kravchuk [Mon, 1 Apr 2019 22:36:32 +0000 (00:36 +0200)]
libinput: update to 1.13.0

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocreaterepo-c: update to 0.12.2
Oleksandr Kravchuk [Mon, 1 Apr 2019 22:28:40 +0000 (00:28 +0200)]
createrepo-c: update to 0.12.2

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibsecret: 0.18.8
Oleksandr Kravchuk [Mon, 1 Apr 2019 22:05:03 +0000 (00:05 +0200)]
libsecret: 0.18.8

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agowget: update to 1.20.2
Oleksandr Kravchuk [Mon, 1 Apr 2019 21:59:49 +0000 (23:59 +0200)]
wget: update to 1.20.2

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxcrypt: update to 4.4.4
Oleksandr Kravchuk [Mon, 1 Apr 2019 21:54:30 +0000 (23:54 +0200)]
libxcrypt: update to 4.4.4

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxmu: update to 1.1.3
Oleksandr Kravchuk [Mon, 1 Apr 2019 21:30:42 +0000 (23:30 +0200)]
libxmu: update to 1.1.3

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibrepo: update to 1.9.6
Oleksandr Kravchuk [Sun, 31 Mar 2019 23:59:09 +0000 (01:59 +0200)]
librepo: update to 1.9.6

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoffmpeg: update to 4.1.2
Oleksandr Kravchuk [Sun, 31 Mar 2019 16:37:27 +0000 (18:37 +0200)]
ffmpeg: update to 4.1.2

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotar: update to 1.32
Oleksandr Kravchuk [Sun, 31 Mar 2019 16:21:51 +0000 (18:21 +0200)]
tar: update to 1.32

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoethtool: update to 5.0
Oleksandr Kravchuk [Sat, 30 Mar 2019 23:00:29 +0000 (00:00 +0100)]
ethtool: update to 5.0

Changelog:
- Feature: don't report UFO on kernels v4.14 and above
- Fix: zero initialize coalesce struct
- Feature: dsa: add pretty dump
- Feature: dsa: mv88e6xxx: add pretty dump
- Feature: dsa: mv88e6xxx: add pretty dump for 88E6185
- Feature: dsa: mv88e6xxx: add pretty dump for 88E6161
- Feature: dsa: mv88e6xxx: add pretty dump for 88E6352
- Feature: dsa: mv88e6xxx: add pretty dump for 88E6390
- Feature: dsa: mv88e6xxx: add pretty dump for others

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoconnman: update to 1.37
Oleksandr Kravchuk [Sat, 30 Mar 2019 18:50:25 +0000 (19:50 +0100)]
connman: update to 1.37

Removed patch has been upstreamed.

Changelog:
- Fix issue with handling invalid gateway addresses.
- Fix issue with handling updates of default gateway.
- Fix issue with DHCP servers that require broadcast flag.
- Add support for option to use gateways as time servers.
- Add support for option to select default technology.
- Add support for Address Conflict Detection (ACD).
- Add support for IPv6 iptables management.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxrandr: update to 1.5.2
Oleksandr Kravchuk [Mon, 1 Apr 2019 01:15:09 +0000 (03:15 +0200)]
libxrandr: update to 1.5.2

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxvmc: update to 1.0.11
Oleksandr Kravchuk [Mon, 1 Apr 2019 01:13:43 +0000 (03:13 +0200)]
libxvmc: update to 1.0.11

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxkbfile: update 1.1.0
Oleksandr Kravchuk [Mon, 1 Apr 2019 00:44:07 +0000 (02:44 +0200)]
libxkbfile: update 1.1.0

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxdmcp: update to 1.1.3
Oleksandr Kravchuk [Mon, 1 Apr 2019 00:42:09 +0000 (02:42 +0200)]
libxdmcp: update to 1.1.3

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agox11perf: update to 1.6.1
Oleksandr Kravchuk [Mon, 1 Apr 2019 00:39:39 +0000 (02:39 +0200)]
x11perf: update to 1.6.1

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxext: update to 1.3.4
Oleksandr Kravchuk [Mon, 1 Apr 2019 00:32:15 +0000 (02:32 +0200)]
libxext: update to 1.3.4

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocurl: update to 7.64.1
Oleksandr Kravchuk [Sun, 31 Mar 2019 16:29:56 +0000 (18:29 +0200)]
curl: update to 7.64.1

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoiproute2: update to 5.0.0
Oleksandr Kravchuk [Sun, 31 Mar 2019 16:55:15 +0000 (18:55 +0200)]
iproute2: update to 5.0.0

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxtrans:upgrade 1.3.5 -> 1.4.0
Zang Ruochen [Mon, 1 Apr 2019 09:29:44 +0000 (17:29 +0800)]
xtrans:upgrade 1.3.5 -> 1.4.0

-Upgrade from xtrans_1.3.5.bb to xtrans_1.4.0.bb.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibtirpc:upgrade 1.0.3 -> 1.1.4
Zang Ruochen [Mon, 1 Apr 2019 08:57:38 +0000 (16:57 +0800)]
libtirpc:upgrade 1.0.3 -> 1.1.4

-Upgrade from libtirpc_1.0.3.bb to libtirpc_1.1.4.bb.

-Delete libtirpc/libtirpc-1.0.4-rc1.patch beacuse this patch has been
adopted in the high version.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosysprof:upgrade 3.30.2 -> 3.32.0
Zang Ruochen [Mon, 1 Apr 2019 08:56:06 +0000 (16:56 +0800)]
sysprof:upgrade 3.30.2 -> 3.32.0

-Upgrade from sysprof_3.30.2.bb to sysprof_3.32.0.bb.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonss:upgrade 3.42.1 -> 3.43
Zang Ruochen [Mon, 1 Apr 2019 07:13:37 +0000 (15:13 +0800)]
nss:upgrade 3.42.1 -> 3.43

-Upgrade from nss_3.42.1.bb to nss_3.43.bb.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxxf86dga:upgrade 1.1.4 -> 1.1.5
Zang Ruochen [Mon, 1 Apr 2019 03:28:22 +0000 (11:28 +0800)]
libxxf86dga:upgrade 1.1.4 -> 1.1.5

-Upgrade from libxxf86dga_1.1.4.bb to libxxf86dga_1.1.5.bb.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxft:upgrade 2.3.2 -> 2.3.3
Zang Ruochen [Mon, 1 Apr 2019 03:17:21 +0000 (11:17 +0800)]
libxft:upgrade 2.3.2 -> 2.3.3

-Upgrade from libxft_2.3.2.bb to libxft_2.3.3.bb.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibgpg-error:upgrade 1.35 -> 1.36
Zang Ruochen [Mon, 1 Apr 2019 02:17:39 +0000 (10:17 +0800)]
libgpg-error:upgrade 1.35 -> 1.36

-Upgrade from libgpg-error_1.35.bb to libgpg-error_1.36.bb.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibatomic-ops:upgrade 7.6.8 -> 7.6.10
Zang Ruochen [Mon, 1 Apr 2019 02:05:01 +0000 (10:05 +0800)]
libatomic-ops:upgrade 7.6.8 -> 7.6.10

-Upgrade from libatomic-ops_7.6.8.bb to libatomic-ops_7.6.10.bb.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Fri, 12 Apr 2019 13:00:04 +0000 (14:00 +0100)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobuild-appliance-image: Update to warrior head revision
Richard Purdie [Fri, 12 Apr 2019 12:52:11 +0000 (13:52 +0100)]
build-appliance-image: Update to warrior head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel-fitimage: support RISC-V
Michael Scott [Fri, 12 Apr 2019 05:46:25 +0000 (22:46 -0700)]
kernel-fitimage: support RISC-V

Support RISC-V kernel image, using the "Image" target.

This change allows RISC-V support for fitImage via the following
flow: OpenSBI -> u-boot (as payload) -> Linux kernel (as fitImage
with ramdisk and dtb).

This was tested using QEMU RISC-V 64-bit.

Signed-off-by: Michael Scott <mike@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonettle: fix ptest failure
Mingli Yu [Fri, 12 Apr 2019 03:27:57 +0000 (11:27 +0800)]
nettle: fix ptest failure

Remove dlopen-test.patch which originally used
to fix the test dlopen-test, but autually the
patch didn't resolve the issue as dlopen-test.patch
supposes the file /usr/lib/libnettle.so exists.
Instead deploy ${D}${PTEST_PATH}/libnettle.so to
fix the dlopen-test failure.

Update the initialization for the salt to fix
below Segmentation fault and also nettle-pbkdf2-test
failure.
 # echo -n passwd| nettle-pbkdf2 -i 1 -l 16 salt
 [65534.886509] nettle-pbkdf2[708]: segfault at 1f594260 ip 00007f3332256998 sp 00007fff60d44410 error 4 in libnettle.so.6.5[7f3332244000+1d00]
 [65534.887525] Code: e8 6d db fe ff 44 01 6d 68 48 83 c4 08 5b 5d 41 5c 41 5d 41 5e 41 5f c3 66 2e 0f 1f 84 00 00 00 00 00 49 89 dc e9 68 ff f
 Segmentation fault

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorunqemu: do not check return code of tput
Chen Qi [Fri, 12 Apr 2019 01:40:06 +0000 (09:40 +0800)]
runqemu: do not check return code of tput

The subprocess.run was replaced by subprocess.check_call because
of compatibility support down to python 3.4. But we really don't
care about whether that command succeeds. Some user reports that
in some tmux environment, this command fails and gives some
unpleasant traceback output. So we use 'call' instead of 'check_call'
to avoid such problem.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogcc-cross-canadian: Make baremetal specific code generic
Khem Raj [Thu, 11 Apr 2019 22:11:50 +0000 (15:11 -0700)]
gcc-cross-canadian: Make baremetal specific code generic

baremetal override is not valid for cross-canadian anymore
therefore use the TARGET_OS overrides

Fixes
e.g. https://github.com/riscv/meta-riscv/issues/117

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoimage_types.bbclass: fix a race between the ubi and ubifs FSTYPES
Hongxu Jia [Fri, 12 Apr 2019 09:10:38 +0000 (05:10 -0400)]
image_types.bbclass: fix a race between the ubi and ubifs FSTYPES

The ubi, ubifs and multiubi FSTYPES calls `mkfs.ubifs' to create UBIFS
images.

In do_image_ubi, $vname is empty, the name of UBIFS image conflicts with
the one in do_image_ubifs, and it's a race risk.
[do_image_ubi]
mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${IMGDEPLOYDIR}/${IMAGE_NAME}${vname}${IMAGE_NAME_SUFFIX}.ubifs ${mkubifs_args}
[do_image_ubi]

[do_image_ubifs]
mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.ubifs ${MKUBIFS_ARGS}
[do_image_ubifs]

In do_image_multiubi, $vname is not empty, the UBIFS image name does
not conflict with others.

So do not call mkfs.ubifs in do_image_ubi and depend on do_image_ubifs
to create UBIFS images.

The fix does not affect do_image_multiubi which still call mkfs.ubifs to
create multiple UBIFS images and symlinks.

[YOCTO #13272]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoe2fsprogs: Skip slow ptest tests
Richard Purdie [Thu, 11 Apr 2019 21:34:57 +0000 (22:34 +0100)]
e2fsprogs: Skip slow ptest tests

The slow tests run unreliably with our current setup/infrsstructure/timeouts.

There are only five slow ones and having the other ~250 run reliably without timeouts
is the priority right now. We can revisit the slow tests at some later date if wanted.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogoarch.bbclass: Simplify logic
Richard Purdie [Thu, 11 Apr 2019 20:41:37 +0000 (21:41 +0100)]
goarch.bbclass: Simplify logic

Further simplification of the go_map_arm() function.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogo.bbclass: Remove unused override
Richard Purdie [Thu, 11 Apr 2019 20:39:50 +0000 (21:39 +0100)]
go.bbclass: Remove unused override

The x86 override means the i586 one isn't necessary.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3: add a tr-tr locale for test_locale ptest
Alexander Kanavin [Thu, 11 Apr 2019 16:00:37 +0000 (18:00 +0200)]
python3: add a tr-tr locale for test_locale ptest

With this change, the ptests do not fail anymore,
except for the three failures caused by the 5.0 kernel regression:

- test_ssl and test_httplib lock up, and are skipped
(there is a separate patch for it)

- test_asyncio fails but does not lock up

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoperf: workaround the error cased by maybe-uninitialized warning
Dengke Du [Thu, 4 Apr 2019 09:02:33 +0000 (17:02 +0800)]
perf: workaround the error cased by maybe-uninitialized warning

When enable DEBUG_BUILD, the perf build failed by the following error:
    libbpf.c:727:36: error: 'data' may be used uninitialized in this function [-Werror=maybe-uninitialized]
This is ok until Khem commit a patch in oe-core:
    16643b03227466e2c80a24c2d079fe36e89553c1
This commit import "-Og" option to "DEBUG_OPTIMIZATION", result in this error.

Actually, the warning was misinformation. We explore the code in libbpf.c:
    https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/lib/bpf/libbpf.c#n640
--------------------------------------------------------------------------
if (scn)
data = elf_getdata(scn, NULL);
if (!scn || !data) {
pr_warning("failed to get Elf_Data from map section %d\n",
   obj->efile.maps_shndx);
return -EINVAL;
}
......
using data...
......
--------------------------------------------------------------------------
If the 'scn' was not null, the data will be initialized. if the data was null,
the function will return -EINVAL, so the data must be not null, but compiler
can't see it in 'if' code block, so treat it as 'maybe-uninitialized'.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoresulttool/manualexecution: Refactor and remove duplicate code
Yeoh Ee Peng [Thu, 11 Apr 2019 05:20:49 +0000 (13:20 +0800)]
resulttool/manualexecution: Refactor and remove duplicate code

Remove duplicate codes. Replace unnecessary class variables with
local variables. Rename variables and arguments with simple and
standard name.

Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoccmake.bbclass: Fix up un-escaped quotes in output formatting
Nathan Rossi [Thu, 11 Apr 2019 04:03:52 +0000 (04:03 +0000)]
ccmake.bbclass: Fix up un-escaped quotes in output formatting

The quotes should be generated in the output to match the expected cmake
syntax for setting cache variables.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocogl: fix compile error caused by -Werror=maybe-uninitialized
Changqing Li [Thu, 11 Apr 2019 08:20:46 +0000 (16:20 +0800)]
cogl: fix compile error caused by -Werror=maybe-uninitialized

When enable DEBUG_BUILD, cogl compile failed with error:

| ../../cogl-1.22.2/cogl/driver/gl/gles/cogl-driver-gles.c:217:17: error: 'gltype' may be used uninitialized in this function [-Werror=maybe-uninitialized]
|      *out_gltype = gltype;
|      ~~~~~~~~~~~~^~~~~~~~
| ../../cogl-1.22.2/cogl/driver/gl/gles/cogl-driver-gles.c:213:22: error: 'glintformat' may be used uninitialized in this function [-Werror=maybe-uninitialized]
|      *out_glintformat = glintformat;
|      ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~

Source: https://gitlab.gnome.org/GNOME/cogl/blob/master/cogl/driver/gl/gles/cogl-driver-gles.c
it can handle correctly, so fix with -Wnoerror

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel-devsrc: check for localversion files in the kernel source tree
Beniamin Sandu [Thu, 11 Apr 2019 07:28:54 +0000 (10:28 +0300)]
kernel-devsrc: check for localversion files in the kernel source tree

The kernel-devsrc rework doesn't take into account localversion
files in the kernel source tree. This might result in modules with an
incomplete version magic when building out-of-tree using the SDK.

Before:
root@qemux86:~# insmod hello.ko
[   42.000212] hello: version magic '5.0.3-yocto-standard SMP preempt
mod_unload PENTIUMM ' should be '5.0.3-my-custom-release-yocto-standard
SMP preempt mod_unload PENTIUMM '
[   42.008200] hello: version magic '5.0.3-yocto-standard SMP preempt
mod_unload PENTIUMM ' should be '5.0.3-my-custom-release-yocto-standard
SMP preempt mod_unload PENTIUMM '
insmod: can't insert 'hello.ko': invalid module format

After:
root@qemux86:~# insmod hello.ko
[   39.094288] hello: loading out-of-tree module taints kernel.
[   39.108044] Hello World!

Signed-off-by: Beniamin Sandu <beniamin.sandu@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoruby: add ptest
Changqing Li [Thu, 11 Apr 2019 07:02:33 +0000 (15:02 +0800)]
ruby: add ptest

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoruby: make ext module fiddle can compile success
Changqing Li [Thu, 11 Apr 2019 07:02:32 +0000 (15:02 +0800)]
ruby: make ext module fiddle can compile success

ext module fiddle depend on libffi, in ruby source tree,
there is in internal libffi in case target platfrom don't
install libffi, but autotools.bbclass delete configure
under libffi and not run autoreconf to regenerate one.so
we met this error:
ruby-2.5.3/ext/fiddle/libffi-3.2.1/configure: No such file or directory

the fix is add depend and extra_oeconf to use libffi in the system

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosystemd: install libnss-myhostname.so when myhostname be enabled
Wenlin Kang [Wed, 10 Apr 2019 09:24:33 +0000 (17:24 +0800)]
systemd: install libnss-myhostname.so when myhostname be enabled

This fixes the follow issue, the cause is that net-tools needs
libnss-myhostname.so when run "hostname -s".

root@qemuarm64:~# hostname -s
hostname: Unknown host

Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorecipetool: add missed module
Lei Yang [Wed, 10 Apr 2019 06:04:09 +0000 (14:04 +0800)]
recipetool: add missed module

When I use recipetool to add a new recipe, it says:

[snip]
sys.exit(14)
NameError: name 'sys' is not defined
[snip]

Signed-off-by: Lei Yang <Lei.Yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopkg: add ptest
Alejandro del Castillo [Wed, 10 Apr 2019 20:54:23 +0000 (15:54 -0500)]
opkg: add ptest

Install opkg test suite and run it as ptest.

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosanity: check_perl_modules bug fix
Zheng Ruoqin [Wed, 10 Apr 2019 15:44:10 +0000 (23:44 +0800)]
sanity: check_perl_modules bug fix

Fix Python3 TypeError error in check_perl_modules:

Executing bitbake, the following error message will be throwed:

  File ".../poky/meta/classes/sanity.bbclass", line
979, in check_sanity_eventhandler
    check_sanity(sanity_data)
  File ".../poky/meta/classes/sanity.bbclass", line
943, in check_sanity
    check_sanity_version_change(status, sanity_data)
  File ".../poky/meta/classes/sanity.bbclass", line
637, in check_sanity_version_change
    status.addresult(check_perl_modules(d))
  File ".../poky/meta/classes/sanity.bbclass", line
563, in check_perl_modules
    errresult += e.output
TypeError: must be str, not bytes

So here, transfer e.output from bytes to str.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinsane.bbclass: Trigger unrecognzed configure option for meson
Andreas Müller [Fri, 5 Apr 2019 06:37:24 +0000 (08:37 +0200)]
insane.bbclass: Trigger unrecognzed configure option for meson

Tested with 'unknown-configure-option' in ERROR_QA:

For meson (glib-2.0-native):
1. add 'EXTRA_OEMESON_append = "-Dschnitzel=true -Dwurst=true"'
   | ERROR: glib-2.0-native-1_2.58.3-r0 do_configure: QA Issue: glib-2.0-native: configure was passed unrecognised options: schnitzel wurst [unknown-configure-option]
2. add 'UNKNOWN_CONFIGURE_WHITELIST_append=" schnitzel"'
   | ERROR: glib-2.0-native-1_2.58.3-r0 do_configure: QA Issue: glib-2.0-native: configure was passed unrecognised options: wurst [unknown-configure-option]
3. change to 'UNKNOWN_CONFIGURE_WHITELIST_append=" schnitzel wurst"'
   => builds without issues

For autotools (readline-native):
1. add 'EXTRA_OECONF = "--with-schnitzel --with-wurst"'
   | ERROR: readline-native-8.0-r0 do_configure: QA Issue: readline-native: configure was passed unrecognised options: --with-wurst --with-schnitzel [unknown-configure-option]
2. add 'UNKNOWN_CONFIGURE_WHITELIST_append=" --with-schnitzel"'
   | ERROR: readline-native-8.0-r0 do_configure: QA Issue: readline-native: configure was passed unrecognised options: --with-wurst [unknown-configure-option]
3. add 'UNKNOWN_CONFIGURE_WHITELIST_append=" --with-schnitzel --with-wurst"'
   => builds without issues

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogstreamer1.0-python: rework gobject-introspection handling
Andreas Müller [Fri, 5 Apr 2019 20:20:59 +0000 (22:20 +0200)]
gstreamer1.0-python: rework gobject-introspection handling

gobject-introspection is mandatory for gstreamer1.0-python - there is no
configure option to enable or disable it.

To handle properly, this patch does:

* Make 'gobject-introspection-data' a required distro feature
* Add
  'UNKNOWN_CONFIGURE_WHITELIST_append = " --enable-introspection --disable-introspection"'
   - it was removed in gobject-introspection.bbclass to avoid
  | ERROR: libgee-0.18.0-r0 do_configure: QA Issue: libgee: configure was passed unrecognised options: --disable-schemas-install [unknown-configure-option]

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogst-plugins: move 'inherit gobject-introspection' to recipes supporting GI
Andreas Müller [Fri, 5 Apr 2019 06:37:36 +0000 (08:37 +0200)]
gst-plugins: move 'inherit gobject-introspection' to recipes supporting GI

Now that whitelisting for unknown configure options was removed in
gobject-introspection.bbclass gstreamer1.0-plugins-ugly/-good start complaining

| ERROR: gstreamer1.0-plugins-ugly-1.14.4-r0 do_configure: QA Issue: gstreamer1.0-plugins-ugly: configure was passed unrecognised options: --enable-introspection [unknown-configure-option]
| ERROR: gstreamer1.0-plugins-good-1.14.4-r0 do_configure: QA Issue: gstreamer1.0-plugins-good: configure was passed unrecognised options: --enable-introspection [unknown-configure-option]

So let only those gst-plugin recipes inherit gobject-introspection whose sources
support GI.

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglib-networking: upgrade 2.58.0 -> 2.60.1
Andreas Müller [Fri, 5 Apr 2019 06:37:35 +0000 (08:37 +0200)]
glib-networking: upgrade 2.58.0 -> 2.60.1

this version support gnutls option again - it was mandatory for 2.58.0

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibsoup-2.4: use gobject-introspection.bbclass on/off mechanism
Andreas Müller [Fri, 5 Apr 2019 06:37:34 +0000 (08:37 +0200)]
libsoup-2.4: use gobject-introspection.bbclass on/off mechanism

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoatk: use gobject-introspection.bbclass on/off mechanism
Andreas Müller [Fri, 5 Apr 2019 06:37:33 +0000 (08:37 +0200)]
atk: use gobject-introspection.bbclass on/off mechanism

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoat-spi2-core: use gobject-introspection.bbclass on/off mechanism
Andreas Müller [Fri, 5 Apr 2019 06:37:32 +0000 (08:37 +0200)]
at-spi2-core: use gobject-introspection.bbclass on/off mechanism

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopango: use gobject-introspection.bbclass on/off mechanism
Andreas Müller [Fri, 5 Apr 2019 06:37:31 +0000 (08:37 +0200)]
pango: use gobject-introspection.bbclass on/off mechanism

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoclutter-gtk-1.0: use gobject-introspection.bbclass on/off mechanism
Andreas Müller [Fri, 5 Apr 2019 06:37:30 +0000 (08:37 +0200)]
clutter-gtk-1.0: use gobject-introspection.bbclass on/off mechanism

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibdazzle: use gobject-introspection.bbclass on/off mechanism
Andreas Müller [Fri, 5 Apr 2019 06:37:29 +0000 (08:37 +0200)]
libdazzle: use gobject-introspection.bbclass on/off mechanism

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agojson-glib: use gobject-introspection.bbclass on/off mechanism
Andreas Müller [Fri, 5 Apr 2019 06:37:28 +0000 (08:37 +0200)]
json-glib: use gobject-introspection.bbclass on/off mechanism

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogdk-pixbuf: use gobject-introspection.bbclass on/off mechanism
Andreas Müller [Fri, 5 Apr 2019 06:37:27 +0000 (08:37 +0200)]
gdk-pixbuf: use gobject-introspection.bbclass on/off mechanism

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibmodulemd: use gobject-introspection.bbclass on/off mechanism
Andreas Müller [Fri, 5 Apr 2019 06:37:26 +0000 (08:37 +0200)]
libmodulemd: use gobject-introspection.bbclass on/off mechanism

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogobject-introspection: auto-enable/-disable gobject-introspection for meson
Andreas Müller [Fri, 5 Apr 2019 06:37:25 +0000 (08:37 +0200)]
gobject-introspection: auto-enable/-disable gobject-introspection for meson

* the class sets defaults used most common which can be overriden by recipes
* UNKNOWN_CONFIGURE_WHITELIST was removed for autotools (and not added for meson)
  as suggested by Alexander Kanavin [1]

[1] http://lists.openembedded.org/pipermail/openembedded-core/2019-April/280716.html

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoelfutils: remove Elfutils-Exception and include GPLv2 for shared libraries
Mikko Rapeli [Thu, 11 Apr 2019 13:41:49 +0000 (16:41 +0300)]
elfutils: remove Elfutils-Exception and include GPLv2 for shared libraries

Elfutils-Exception no longer exists after upstream release 0.154
and commit:

commit de2ed97f33139af5c7a0811e4ec66fc896a13cf2
Author: Mark Wielaard <mjw@redhat.com>
Date:   Tue Jun 5 17:15:16 2012 +0200

NEWS file in the sources says this about switch from GPLv2 to
GPLv3 license:

https://sourceware.org/git/?p=elfutils.git;a=blob;f=NEWS;h=5a06047f255e3c9a63828953759fd18a4ba9a3f3;hb=HEAD#l362

 362 The license is now GPLv2/LGPLv3+ for the libraries and GPLv3+ for stand-alone
 363 programs. There is now also a formal CONTRIBUTING document describing how to
 364 submit patches.

libasm, libdw and libelf are thus covered optionally by GPLv2 license.

See also Debian copyright summary for elfutils:

https://tracker.debian.org/media/packages/e/elfutils/copyright-0.175-1

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3: Fix ptest output parsing
Richard Purdie [Mon, 8 Apr 2019 22:14:12 +0000 (23:14 +0100)]
python3: Fix ptest output parsing

A previous fix to python added -W and removed -v. This reverts that part of the change
since we're no longer getting ptest results at all. This change back to more
verbose output means we start getting test results again.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3: Avoid hanging tests
Richard Purdie [Sun, 7 Apr 2019 22:15:04 +0000 (23:15 +0100)]
python3: Avoid hanging tests

There are python tests which hang with recent kernels, 5.0 onwards. This causes
ptest to timeout for python3. Disable the problematic test until we better understand
the real cause and fix of the issue (discussions are happening with upstream).

See the patch for details/links.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopseudo: Update to gain key bugfixes
Richard Purdie [Wed, 10 Apr 2019 23:07:02 +0000 (00:07 +0100)]
pseudo: Update to gain key bugfixes

Newer distros are using new versions of glibc and coreutils which use the new glibc
renameat2 function. We need to intercept this for correct functioning of pseudo. This
is essential to ensure new distros continue to work with the project.

Also, this version has a fix for path/inode cross corruption problems which
may explain our mysterious locale permissions issues.

Many thanks to Otavio and Peter Seebach for the help in figuring this out and
fixing it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobusybox: Use PTEST binary directory
Mariano Lopez [Tue, 9 Apr 2019 05:44:15 +0000 (00:44 -0500)]
busybox: Use PTEST binary directory

This will generate the symlinks in the ptest binary directory using the
ptest class functionality instead of generating them manually. Because
the ptest class uses update-alternatives to get the metadata for the
symlinks it will respect the use of BUSYBOX_SPLIT_SUID automatically.

[YOCTO #12597]

Signed-off-by: Mariano Lopez <just.another.mariano@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoutil-linux: Use PTEST binary directory
Mariano Lopez [Tue, 9 Apr 2019 05:44:14 +0000 (00:44 -0500)]
util-linux: Use PTEST binary directory

Some binaries generated by util-linux will be replaced by core-utils
in the final image by update-alternatives, so use a dedicated directory
with symlinks to avoid using a binary generated by another package.

This will solve the issue with the ptest runner timing out when
running the kill ptests for util-linux.

[YOCTO #13238]

Signed-off-by: Mariano Lopez <just.another.mariano@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoptest.bbclass: Add feature to populate a binary directory
Mariano Lopez [Tue, 9 Apr 2019 05:44:13 +0000 (00:44 -0500)]
ptest.bbclass: Add feature to populate a binary directory

This adds the functionality to create a binary directory within
PTEST_PATH directory. This directory will be populated with
symlinks pointing to the binaries installed by the package and
then renamed by update-alternatives. This way the ptest only needs
to source this binary directory in order to use the expected
binaries.

To enable this feature just add PTEST_BINDIR = "1" to the recipe.

[YOCTO #12597]
[YOCTO #13238]

Signed-off-by: Mariano Lopez <just.another.mariano@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoupdate-alternatives.bbclass: Add function to get metadata
Mariano Lopez [Tue, 9 Apr 2019 05:44:12 +0000 (00:44 -0500)]
update-alternatives.bbclass: Add function to get metadata

This adds update_alternatives_alt_targets function to get the metadata
for a package. This is for code reuse because the metadata would help
other classes that needs to be aware of how update-alternatives modify
the final package.

[YOCTO #12597]
[YOCTO #13238]

Signed-off-by: Mariano Lopez <just.another.mariano@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogoarch.bbclass: use MACHINEOVERRIDES and simplify go_map_arm()
Mark Asselstine [Mon, 18 Mar 2019 15:21:53 +0000 (11:21 -0400)]
goarch.bbclass: use MACHINEOVERRIDES and simplify go_map_arm()

Per https://github.com/golang/go/wiki/GoArm we need to set GOARM when
cross building for ARMv5, ARMv6 and ARMv7. The current approach of
using TUNE_FEATURES can be error prone, as we can see today when
attempting to build for Cortex-A7 which results in GOARM=''.

Since the value of MACHINEOVERRIDES already consolidates the values of
TUNE_FEATURES into something more consistent we can use the overrides
mechanism to set GOARM, leaving just a little bit of logic in
go_map_arm() to trigger off the arch (basically target vs host)
for the setting of GOARM.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogo.bbclass: Export more GO* environment variables
Mark Asselstine [Mon, 18 Mar 2019 15:21:52 +0000 (11:21 -0400)]
go.bbclass: Export more GO* environment variables

Currently we are not doing a good job of consolidating GO environment
variables used by the go build system in the go.bbclass, instead we
are relying on the individual GO recipe authors to perform the
exports. This can result in inconsistent build results and often
binaries that are not properly cross compiled, resulting in segfaults
when the applications are run on the target.

For example the GO documentation recommends that the environment
include a value assigned to GOARM when cross building for ARMv5, ARMv6
and ARMv7 (https://github.com/golang/go/wiki/GoArm).

In order to avoid polluting the build scripts with unnecessary
exports, such as run.do_compile, we attempt to only export variables
when they apply to a specific arch.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinsane: fix gettext dependency warning
Ross Burton [Mon, 8 Apr 2019 10:57:27 +0000 (11:57 +0100)]
insane: fix gettext dependency warning

This message was using %s markers but nothing was being passed in.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosystemd: fix predictable network interface names in initrd
Tomasz Meresiński [Tue, 9 Apr 2019 15:06:53 +0000 (17:06 +0200)]
systemd: fix predictable network interface names in initrd

https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
says, that udev is responsible for predictable network interface names,
so udev package is a better place for its configuration file.

Signed-off-by: Tomasz Meresiński <tomasz.meresinski@comarch.pl>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosstate.bbclass: Use bb.utils.to_boolean() for BB_NO_NETWORK
Robert Yang [Tue, 9 Apr 2019 08:34:32 +0000 (16:34 +0800)]
sstate.bbclass: Use bb.utils.to_boolean() for BB_NO_NETWORK

Make it consistent with bitbake

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoresulttool/manualexecution: Enable creation of configuration option file
Yeoh Ee Peng [Tue, 9 Apr 2019 05:53:08 +0000 (13:53 +0800)]
resulttool/manualexecution: Enable creation of configuration option file

Allow the creation of configuration option file based on user inputs.
Where this configuration option file will be used by the the manual
execution to display options for configuration rather than user
need to inputs configuration manually.

Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoresulttool/manualexecution: Enable configuration options selection
Yeoh Ee Peng [Tue, 9 Apr 2019 05:53:07 +0000 (13:53 +0800)]
resulttool/manualexecution: Enable configuration options selection

Current manualexecution required user to input configuration manually
where there were inconsistent inputs and human typo issues.

Enable manualexecution to have the optional feature where it
will use pre-compiled configuration options file where user will
be able to select configuration from the pre-compiled list instead
of manual key-in the configuration. This will eliminate human error.

Expect the pre-compiled configuration options file in json format below

{
    "bsps-hw": {
        "IMAGE_BASENAME": {
            "1": "core-image-sato-sdk"
        },
        "MACHINE": {
            "1": "beaglebone-yocto",
            "2": "edgerouter",
            "3": "mpc8315e-rdb",
            "4": "genericx86",
            "5": "genericx86-64"
        }
    },
    "bsps-qemu": {
        "IMAGE_BASENAME": {
            "1": "core-image-sato-sdk"
        },
        "MACHINE": {
            "1": "qemuarm",
            "2": "qemuarm64",
            "3": "qemumips",
            "4": "qemumips64",
            "5": "qemuppc",
            "6": "qemux86",
            "7": "qemux86-64"
        }
    }
}

Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocmake: Support Eclipse and other cmake generators
Nikhil Pal Singh [Mon, 8 Apr 2019 21:24:36 +0000 (09:24 +1200)]
cmake: Support Eclipse and other cmake generators

Support project-file generators such as CodeBlocks, CodeLite,
Eclipse, Sublime, and Kate for both make and Ninja build systems.

The following generators are listed in cmake --help:

  Unix Makefiles               = Generates standard UNIX makefiles.
  Ninja                        = Generates build.ninja files.
  Watcom WMake                 = Generates Watcom WMake makefiles.
  CodeBlocks - Ninja           = Generates CodeBlocks project files.
  CodeBlocks - Unix Makefiles  = Generates CodeBlocks project files.
  CodeLite - Ninja             = Generates CodeLite project files.
  CodeLite - Unix Makefiles    = Generates CodeLite project files.
  Sublime Text 2 - Ninja       = Generates Sublime Text 2 project files.
  Sublime Text 2 - Unix Makefiles
                               = Generates Sublime Text 2 project files.
  Kate - Ninja                 = Generates Kate project files.
  Kate - Unix Makefiles        = Generates Kate project files.
  Eclipse CDT4 - Ninja         = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.

All but one of these contain one of the strings, "Unix Makefiles" or "Ninja".
In each of these cases, cmake generates the Makefiles (or ninja files respectively),
and also the appropriate project files, eg. .project and .cproject for Eclipse.

A user can set OECMAKE_GENERATOR in their local.conf to any
one of these strings, except "Watcom WMake" (not supported).

Signed-off-by: Nikhil Pal Singh <nikhilpal.singh@taitradio.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>