]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
6 years agolinux-yocto/4.14: fix kernel configuration audit warnings
Bruce Ashfield [Sat, 22 Sep 2018 17:18:51 +0000 (13:18 -0400)]
linux-yocto/4.14: fix kernel configuration audit warnings

Some of the reference BSPs for 4.14 need fixes that have been done
on 4.18 and master to silence warnings, so we cherry-pick the
following changes:

  f991b21d7858 config: flash: drop obselete config values
  da7524cf2980 edgerouter: Drop the obsolete kernel options
  675c5b0cde65 cfg: drop MACH_VERSATILE_PB and MACH_VERSTAILE_AB
  0936b18ed8d5 cfg/timer/rtc: toggle RTC_CLASS instead of GEN_RTC
  634d8f2230d1 mpc8315e-rdb: Drop the obsolete kernel options
  9beb3a28736e rt: drop obselete configuration options

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto: tweak RTC configuration
Bruce Ashfield [Sat, 22 Sep 2018 17:18:50 +0000 (13:18 -0400)]
linux-yocto: tweak RTC configuration

[
  Author: Jens Rehsack <sno@netbsd.org>
  Date:   Thu Sep 13 19:29:54 2018 +0200

    cfg/timer/rtc: toggle RTC_CLASS instead of GEN_RTC

    In 2016, the final removal of GEN_RTC happened with commit
    6705fdb3 char/genrtc: remove the rest of the driver

    What is remaining, is a legacy driver (char/rtc) and the new
    RTC_CLASS framework - which supports everything except S390
    and Atari. Many platforms automatically support the right
    driver for RTC_CLASS framework.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto/4.18: update to v4.18.7
Bruce Ashfield [Sat, 22 Sep 2018 17:18:49 +0000 (13:18 -0400)]
linux-yocto/4.18: update to v4.18.7

Updating the 4.18 kernel with the latest -stable releases that comprise
the following commits:

   8ea7eadbef2f Linux 4.18.7
   239043b876b8 arm64: mm: always enable CONFIG_HOLES_IN_ZONE
   a70bc6c6a621 cpuidle: menu: Retain tick when shallow state is selected
   7f401f160a9c udf: Fix mounting of Win7 created UDF filesystems
   c1ef3feca667 fs/quota: Fix spectre gadget in do_quotactl
   7ab1035b3fc6 crypto: caam/qi - fix error path in xts setkey
   3290dec64398 crypto: caam/jr - fix descriptor DMA unmapping
   f39f1f81c74e crypto: caam - fix DMA mapping direction for RSA forms 2 & 3
   26b165edc3e4 crypto: arm64/sm4-ce - check for the right CPU feature bit
   dce1a2c6f339 crypto: aesni - Use unaligned loads from gcm_context_data
   61c8901dbf43 crypto: vmx - Fix sleep-in-atomic bugs
   8d02bd8d4a6c perf auxtrace: Fix queue resize
   5ad671c8520d mm, dev_pagemap: Do not clear ->mapping on final put
   ff1663fc9483 cap_inode_getsecurity: use d_find_any_alias() instead of d_find_alias()
   476738bbc962 kconfig: fix "Can't open ..." in parallel build
   a0725910f3e2 bcache: release dc->writeback_lock properly in bch_writeback_thread()
   437d23a6792a libnvdimm: fix ars_status output length calculation
   54ce46aa9870 libnvdimm: Use max contiguous area for namespace size
   118cb27721f9 getxattr: use correct xattr length
   fd13ae7e102a udlfb: set line_length in dlfb_ops_set_par
   f551b193299b udlfb: handle allocation failure
   0b5373ea7298 udlfb: make a local copy of fb_ops
   af0890aa4565 udlfb: set optimal write delay
   76aab4b1d804 udlfb: don't switch if we are switching to the same videomode
   1a5656245bd6 udlfb: fix display corruption of the last line
   27f6b46dd248 udlfb: fix semaphore value leak
   1a9ec6296e18 fb: fix lost console when the user unplugs a USB adapter
   f72831f9cbb6 pwm: tiehrpwm: Fix disabling of output of PWMs
   e0e08ede24c9 pwm: tiehrpwm: Don't use emulation mode bits to control PWM output
   3ce08627b3e3 ubifs: Fix synced_i_size calculation for xattr inodes
   f9b28f9a2b7f ubifs: Fix directory size calculation for symlinks
   cef393ce9aea ubifs: xattr: Don't operate on deleted inodes
   ce0504b74d04 ubifs: Check data node size before truncate
   aa8298662e52 Revert "UBIFS: Fix potential integer overflow in allocation"
   3863ba26f271 ubifs: Fix memory leak in lprobs self-check
   7131c193fcc3 userns: move user access out of the mutex
   1497f1e0714a sys: don't hold uts_sem while accessing userspace memory
   11f44063756f iommu/vt-d: Fix dev iotlb pfsid use
   e7feba89574d iommu/vt-d: Add definitions for PFSID
   3245925a8e9c iommu/ipmmu-vmsa: Don't register as BUS IOMMU if machine doesn't have IPMMU-VMSA
   2d0363ffc0ab mm/tlb: Remove tlb_remove_table() non-concurrent condition
   6bdfc65b5062 pwm: omap-dmtimer: Return -EPROBE_DEFER if no dmtimer platform data
   1ba930714d12 ARM: dts: am57xx-idk: Enable dual role for USB2 port
   da43c1c103c8 ARM: tegra: Fix Tegra30 Cardhu PCA954x reset
   1750f49b26c2 NFSv4: Fix a sleep in atomic context in nfs4_callback_sequence()
   c8f825303e49 NFSv4: Fix locking in pnfs_generic_recover_commit_reqs
   b8cbfd88d132 NFSv4 client live hangs after live data migration recovery
   e16dac834b32 nfsd: fix leaked file lock with nfs exported overlayfs
   f7169718defc pnfs/blocklayout: off by one in bl_map_stripe()
   6ee996baf1ab block, bfq: return nbytes and not zero from struct cftype .write() method
   fbd0c9d27ccb xtensa: increase ranges in ___invalidate_{i,d}cache_all
   27077422f951 xtensa: limit offsets in __loop_cache_{all,page}
   3bb34bba5624 KVM: PPC: Book3S: Fix guest DMA when guest partially backed by THP pages
   f90625c7172b KVM: VMX: fixes for vmentry_l1d_flush module parameter
   09747f7004ab i2c: designware: Re-init controllers with pm_disabled set on resume
   7bb7ef09b3db ALSA: ac97: fix unbalanced pm_runtime_enable
   d7cff0016036 ALSA: ac97: fix check of pm_runtime_get_sync failure
   52977303d997 ALSA: ac97: fix device initialization in the compat layer
   cd67823c9d34 PM / sleep: wakeup: Fix build error caused by missing SRCU support
   00e4955e677b cpufreq: governor: Avoid accessing invalid governor_data
   f83952c64769 cpuidle: menu: Handle stopped tick more aggressively
   cc8ea9dd0c24 sched: idle: Avoid retaining the tick when it has been stopped
   fe759487ee98 drivers/block/zram/zram_drv.c: fix bug storing backing_dev
   1cc1c4e06562 ACPICA: Clear status of all events when entering sleep states
   ab08867f08e4 ACPICA: AML Parser: skip opcodes that open a scope upon parse failure
   0c3339c82b9e ovl: fix wrong use of impure dir cache in ovl_iterate()
   8856ca57dcb1 mfd: hi655x: Fix regmap area declared size for hi655x
   f8d649720924 uprobes: Use synchronize_rcu() not synchronize_sched()
   ee20433f60ae livepatch: Validate module/old func name length
   640d29c1236e printk/tracing: Do not trace printk_nmi_enter()
   cfe603dd4e39 tracing/blktrace: Fix to allow setting same value
   b0d32c7b0cda tracing: Do not call start/stop() functions when tracing_on does not change
   187bee9b94fb rtc: omap: fix potential crash on power off
   949d4ca049eb rtc: omap: fix resource leak in registration error path
   ad7a3f8c456f vmw_balloon: fix VMCI use when balloon built into kernel
   32b5be5b44e9 vmw_balloon: VMCI_DOORBELL_SET does not check status
   45696b968345 vmw_balloon: do not use 2MB without batching
   f288edefc2c6 vmw_balloon: fix inflation of 64-bit GFNs
   a5e6360c4322 eventpoll.h: wrap casts in () properly
   5f4a5b6fed24 extcon: Release locking when sending the notification of connector state
   cbdfa40c8187 iio: ad9523: Fix return value for ad952x_store()
   10508adb4df0 iio: ad9523: Fix displayed phase
   5ef899676e25 iio: sca3000: Fix missing return in switch
   35949ad3f2d7 Drivers: hv: vmbus: Reset the channel callback in vmbus_onoffer_rescind()
   4f8eac4396c7 Drivers: hv: vmbus: Fix the offer_in_progress in vmbus_process_offer()
   d7b108aae76c uart: fix race between uart_put_char() and uart_shutdown()
   6cdc67be3e12 dm writecache: fix a crash due to reading past end of dirty_bitmap
   d94cf7087099 dm crypt: don't decrease device limits
   25b25e552439 dm cache metadata: set dirty on all cache blocks after a crash
   7bbb3231d6f7 dm cache metadata: save in-core policy_hint_size to on-disk superblock
   f308e9fbe04f dm thin: stop no_space_timeout worker when switching to write-mode
   0da098366e8c dm integrity: change 'suspending' variable from bool to int
   6d7bd0a68a4a net/9p/trans_fd.c: fix race-condition by flushing workqueue before the kfree()
   fe7e153d9564 net/9p/client.c: version pointer uninitialized
   372ed5efc933 9p/virtio: fix off-by-one error in sg list bounds check
   ba74c64c00a5 fs/9p/xattr.c: catch the error of p9_client_clunk when setting xattr failed
   db6cb8a7c458 9p: fix multiple NULL-pointer-dereferences
   a34932007267 RDMA/rxe: Set wqe->status correctly if an unexpected response is received
   8a3f37b0da74 ib_srpt: Fix a use-after-free in __srpt_close_all_ch()
   41cc5e9aff78 ib_srpt: Fix a use-after-free in srpt_close_ch()
   2ea037fe87b1 RDMA/mlx5: Fix shift overflow in mlx5_ib_create_wq
   c34579cc3ea7 overflow.h: Add arithmetic shift helper
   74d835f7fdf7 IB/srpt: Support HCAs with more than two ports
   32a46b60c50e IB/srpt: Fix srpt_cm_req_recv() error path (2/2)
   e46df54477b4 IB/srpt: Fix srpt_cm_req_recv() error path (1/2)
   103a3a62e0fb IB/mlx5: Fix leaking stack memory to userspace
   e48fd87e93e1 IB/mlx5: Honor cnt_set_id_valid flag instead of set_id
   7ab793382972 ocxl: Fix page fault handler in case of fault on dying process
   9833940072b3 cxl: Fix wrong comparison in cxl_adapter_context_get()
   6757519a48ca powerpc/powernv/pci: Work around races in PCI bridge enabling
   96f829b77bf1 powerpc64/ftrace: Include ftrace.h needed for enable/disable calls
   d4e41dc984f2 powerpc/nohash: fix pte_access_permitted()
   bb691eafb6df powerpc/pkeys: Preallocate execute-only key
   44d146b99b08 powerpc/pkeys: Fix calculation of total pkeys.
   5e2727bf84c5 powerpc/pkeys: Save the pkey registers before fork
   0d86f5345672 powerpc/pkeys: key allocation/deallocation must not change pkey registers
   72ebe30452ef powerpc/pkeys: Deny read/write/execute by default
   8ed3d6a90178 powerpc/pkeys: Give all threads control of their key permissions
   174f12c1f3ef powerpc/pseries: Fix endianness while restoring of r3 in MCE handler.
   8bfd9029bc79 powerpc/64s: Fix page table fragment refcount race vs speculative references
   7c0850fb2b60 powerpc/fadump: handle crash memory ranges array index overflow
   ec4ad94be6ce Fix kexec forbidding kernels signed with keys in the secondary keyring to boot
   54fb49e87c23 Replace magic for trusting the secondary keyring with #define
   686baf538b8c mailbox: xgene-slimpro: Fix potential NULL pointer dereference
   71849f9c7c55 media: Revert "[media] tvp5150: fix pad format frame height"
   a0e70000075e libertas: fix suspend and resume for SDIO connected cards
   9be8dc35bceb dma-buf: Move BUG_ON from _add_shared_fence to _add_shared_inplace
   e561eea4a424 apparmor: fix bad debug check in apparmor_secid_to_secctx()
   ac89e9c33de3 block: Ensure that a request queue is dissociated from the cgroup controller
   d367a6927ffd block: Introduce blk_exit_queue()
   d9ef3176a398 blkcg: Introduce blkg_root_lookup()
   0c2e7eb1a4c3 block: really disable runtime-pm for blk-mq
   cde67159df4d block: blk_init_allocated_queue() set q->fq as NULL in the fail case
   4bc567311980 block: fix infinite loop if the device loses discard capability
   d3949a0a1341 readahead: stricter check for bdi io_pages
   3a9bc441b671 mmc: renesas_sdhi_internal_dmac: fix #define RST_RESERVED_BITS
   74b83d076cdf mmc: renesas_sdhi_internal_dmac: mask DMAC interrupts
   cf8871c4121c mmc: block: Fix unsupported parallel dispatch of requests
   e27421b3b394 spi: cadence: Change usleep_range() to udelay(), for atomic context
   db597647506d spi: spi-fsl-dspi: Fix imprecise abort on VF500 during probe
   3b45f480496c spi: pxa2xx: Add support for Intel Ice Lake
   e52c91662cef spi: davinci: fix a NULL pointer dereference
   b84ea5862258 9p/net: Fix zero-copy path in the 9p virtio transport
   8c37a4ca229d net: mac802154: tx: expand tailroom if necessary
   6ce27549cc14 net: 6lowpan: fix reserved space for single frames
   832fa8183637 rcu: Make expedited GPs handle CPU 0 being offline
   3a2c23838bc5 Linux 4.18.6
   8e6d15678656 x86/dumpstack: Don't dump kernel memory based on usermode RIP
   6575b15002bf cdrom: Fix info leak/OOB read in cdrom_ioctl_drive_status
   f90252556e1a watchdog: Mark watchdog touch functions as notrace
   0f9bf062f1f1 power: generic-adc-battery: check for duplicate properties copied from iio channels
   7ffb7b7e8348 power: generic-adc-battery: fix out-of-bounds write when copying channel properties
   86b0dd9d0ebc PM / clk: signedness bug in of_pm_clk_add_clks()
   350192f495ae clk: npcm7xx: fix memory allocation
   a8b0c3c7c494 clk: rockchip: fix clk_i2sout parent selection bits on rk3399
   f905fc199d7d mtd: rawnand: qcom: wait for desc completion in all BAM channels
   21ab6022cb67 mtd: rawnand: marvell: add suspend and resume hooks
   f05cb63dc0dc mtd: rawnand: fsmc: Stop using chip->read_buf()
   307b0cf42c9b mtd: rawnand: hynix: Use ->exec_op() in hynix_nand_reg_write_op()
   d47b35b84da5 iscsi target: fix session creation failure handling
   9558fc1bab40 scsi: core: Avoid that SCSI device removal through sysfs triggers a deadlock
   807d1d299a04 scsi: sysfs: Introduce sysfs_{un,}break_active_protection()
   373a1411a103 scsi: mpt3sas: Fix _transport_smp_handler() error path
   8039fa72ff4d scsi: mpt3sas: Fix calltrace observed while running IO & reset
   7624ac8705f5 tpm: separate cmd_ready/go_idle from runtime_pm
   b64b3b46074e tpm: Return the actual size when receiving an unsupported command
   d07d4e8b68fd MIPS: lib: Provide MIPS64r6 __multi3() for GCC < 7
   8f55e1f507d6 MIPS: Change definition of cpu_relax() for Loongson-3
   9238ea28869e MIPS: Always use -march=<arch>, not -<arch> shortcuts
   8d6a4b45018c MIPS: memset.S: Fix byte_fixup for MIPSr6
   d06e5e4a8a28 MIPS: Correct the 64-bit DSP accumulator register size
   968a9a4a8a97 kprobes: Make list and blacklist root user read only
   2f56c8af315b kprobes/arm: Fix %p uses in error messages
   10334e1ad3d0 kprobes: Replace %p with other pointer types
   b143efb4242c kprobes: Show blacklist addresses as same as kallsyms does
   d6c96d240daa s390/purgatory: Add missing FORCE to Makefile targets
   5a2e51f95908 s390/purgatory: Fix crash with expoline enabled
   87509861a989 s390/pci: fix out of bounds access during irq setup
   b51627dc7fdb s390/numa: move initial setup of node_to_cpumask_map
   d695333c5de6 s390/qdio: reset old sbal_state flags
   dacf5e594708 s390: fix br_r1_trampoline for machines without exrl
   6a32f6f857af s390/lib: use expoline for all bcr instructions
   120c776a2ab1 s390/mm: fix addressing exception after suspend/resume
   77207a7ee4b6 x86: Allow generating user-space headers without a compiler
   3fef5c2f4d9c x86/entry/64: Wipe KASAN stack shadow before rewind_stack_do_exit()
   b1491daecd6e hwmon: (nct6775) Fix potential Spectre v1
   2ff13cec042e x86/speculation/l1tf: Increase l1tf memory limit for Nehalem+
   084c0d5b4cf5 x86/spectre: Add missing family 6 check to microcode check
   c6941f12e9e4 x86/irqflags: Mark native_restore_fl extern inline
   20a103149aa5 x86/nmi: Fix NMI uaccess race against CR3 switching
   aa3ad4314551 x86/vdso: Fix lsl operand order
   306f625c2231 scsi: qla2xxx: Fix stalled relogin
   82964fac7ac2 pinctrl: freescale: off by one in imx1_pinconf_group_dbg_show()
   f8fa13e1f53a soc: qcom: rmtfs-mem: fix memleak in probe error paths
   e550a74a7d12 ASoC: wm_adsp: Correct DSP pointer for preloader control
   00bdd9bfd3eb ASoC: sirf: Fix potential NULL pointer dereference
   cde7486adce1 ASoC: zte: Fix incorrect PCM format bit usages
   aeb4906d3222 ASoC: dpcm: don't merge format from invalid codec dai
   a8d156323e5b b43/leds: Ensure NUL-termination of LED name string
   579cdda6ba4c b43legacy/leds: Ensure NUL-termination of LED name string
   dccaa28ec448 udl-kms: avoid division
   930e10ea2156 udl-kms: fix crash due to uninitialized memory
   723119f9aab5 udl-kms: handle allocation failure
   69900129d68f udl-kms: change down_interruptible to down
   684ca9975c53 lib/vsprintf: Do not handle %pO[^F] as %px
   15b584de9ab1 fuse: Add missed unlock_page() to fuse_readpages_fill()
   c00f07a1f66c fuse: Fix oops at process_init_reply()
   e4631745286f fuse: umount should wait for all requests
   19e0fafd9e68 fuse: fix unlocked access to processing queue
   bcdb9bd38da6 fuse: fix double request_end()
   6ffb58d4f74e fuse: fix initial parallel dirops
   8bebc8585fab fuse: Don't access pipe->buffers without pipe_lock()
   9b4b6acf0280 KVM: x86: SVM: Call x86_spec_ctrl_set_guest/host() with interrupts disabled
   150b420a2959 KVM: x86: ensure all MSRs can always be KVM_GET/SET_MSR'd
   1e227ae17f08 x86/process: Re-export start_thread()
   e0fb4e0e375e x86/vdso: Fix vDSO build if a retpoline is emitted
   0ea75fa0f6bd x86/speculation/l1tf: Suggest what to do on systems with too much RAM
   ed1fa683e01b x86/speculation/l1tf: Fix off-by-one error when warning that system has too much RAM
   63da8b8a387b x86/speculation/l1tf: Fix overflow in l1tf_pfn_limit() on 32bit
   e43594dabdc8 mm/tlb, x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE
   575a66cbe443 mm: move tlb_table_flush to tlb_flush_mmu_free
   8c7181608026 platform/x86: ideapad-laptop: Apply no_hw_rfkill to Y20-15IKBM, too
   6ef37c5f0142 platform/x86: wmi: Do not mix pages and kmalloc
   6bdd19331fc6 x86/gpu: reserve ICL's graphics stolen memory
   4debdc1d06a7 nvme-pci: add a memory barrier to nvme_dbbuf_update_and_check_event
   7036ab018947 ext4: fix race when setting the bitmap corrupted flag
   eafb2d82ca7e ext4: reset error code in ext4_find_entry in fallback
   3f2541a7e58c ext4: sysfs: print ext4_super_block fields as little-endian
   6891c3c114fc ext4: use ext4_warning() for sb_getblk failure
   f34a0bc19575 ext4: check for NUL characters in extended attribute's name
   55472d881c48 stop_machine: Atomically queue and wake stopper threads
   3fc7316acc67 stop_machine: Reflow cpu_stop_queue_two_works()
   19a5808f8b73 perf kvm: Fix subcommands on s390
   32a52f0bded3 s390/kvm: fix deadlock when killed by oom
   1d0bd8c92361 KVM: arm/arm64: Skip updating PTE entry if no change
   c7bcb09e4e35 KVM: arm/arm64: Skip updating PMD entry if no change
   166b04aee70e KVM: arm/arm64: Fix lost IRQs from emulated physcial timer when blocked
   52df41f653bb KVM: arm/arm64: Fix potential loss of ptimer interrupts
   5c2fd3598fb8 arm64: dts: rockchip: corrected uart1 clock-names for rk3328
   88e798da7c29 arm64: mm: check for upper PAGE_SHIFT bits in pfn_valid()
   ca41d82d4e66 arm64: Handle mismatched cache type
   faed5cb96b91 arm64: Fix mismatched cache line size detection
   bc10c237ecd8 kprobes/arm64: Fix %p uses in error messages
   a4ed70a386c0 printk/nmi: Prevent deadlock when accessing the main log buffer in NMI
   50631d1b2613 printk: Create helper function to queue deferred console handling
   b0eea4d14b94 printk: Split the code for storing a message into the log buffer
   2297091c7a6c iommu/arm-smmu: Error out only if not enough context interrupts
   b5563064b99e regulator: arizona-ldo1: Use correct device to get enable GPIO
   29ac604e627b bpf, arm32: fix stack var offset in jit
   6289b80699af hwmon: (k10temp) 27C Offset needed for Threadripper2
   df5c4d19606d Btrfs: send, fix incorrect file layout after hole punching beyond eof
   23dd2c5d90a1 Btrfs: fix send failure when root has deleted files still open
   7ecc8a106c53 Btrfs: fix btrfs_write_inode vs delayed iput deadlock
   84717fb63dad Btrfs: fix mount failure after fsync due to hard link recreation
   8b08e816f47a btrfs: don't leak ret from do_chunk_alloc
   258c1eb7cde6 btrfs: use correct compare function of dirty_metadata_bytes
   fb35368feb7f smb3: fill in statfs fsid and correct namelen
   107d9ee2e080 smb3: don't request leases in symlink creation and query
   1316a0cc27d1 smb3: Do not send SMB3 SET_INFO if nothing changed
   25b981bfe192 smb3: enumerating snapshots was leaving part of the data off end
   a66f62737197 cifs: check kmalloc before use
   a1ac808c81a6 cifs: use a refcount to protect open/closing the cached file handle
   5ba293d099ce cifs: add missing debug entries for kconfig options
   52b9e2a58be2 CIFS: fix uninitialized ptr deref in smb2 signing
   a673044fbe8b cifs: add missing support for ACLs in SMB 3.11
   08aee5c2c26f mei: don't update offset in write
   6bdbaa2fdd48 xprtrdma: Fix disconnect regression
   84342771f595 scsi: libsas: dynamically allocate and free ata host
   16edb8e6d472 scripts/kernel-doc: Escape all literal braces in regexes
   10bb2648f16c PATCH scripts/kernel-doc

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto: configuration warning fixes
Bruce Ashfield [Sat, 22 Sep 2018 17:18:48 +0000 (13:18 -0400)]
linux-yocto: configuration warning fixes

Integrating the following commits to address kernel configuration
audit warnings:

  856794172e8f features/intel-pinctrl: Fix conflict with configs
  397b67321037 bsp/intel-x86: Rename CONFIG_R8723BE to CONFIG_RTL8723BE
  fca2a16483f2 features/thermal: Add dependency for kernel option
  b6110e2e8e55 features/tpm: fix conflict with configs and add dependency
  ee22bc1f8fcd features/mmc: modify dependency
  e50eb6bd929b features: drop the obsolete kernel option
  f5327047994f features/hostapd: drop obsolete configs
  48b54e625876 bsp/intel-x86: Drop configs that has been removed by kernel

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto-rt: Add paravirt_kvm support for qemux86-64
Hongzhi.Song [Sat, 22 Sep 2018 17:18:47 +0000 (13:18 -0400)]
linux-yocto-rt: Add paravirt_kvm support for qemux86-64

This feature includes paravirtualized KVM guest support, including
KVMCLOCK for enhancing clock accuracy of guest OS.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel.bbclass: Avoid iterating over KERNEL_IMAGETYPES twice
Alex Kiernan [Tue, 18 Sep 2018 15:15:22 +0000 (15:15 +0000)]
kernel.bbclass: Avoid iterating over KERNEL_IMAGETYPES twice

During deploy we iterate over KERNEL_IMAGETYPES twice, with no consumer
of our changes in the interim. Collapse these two loops into one.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agokernel: Fix modules tarball generation with usrmerge
Alex Kiernan [Tue, 18 Sep 2018 15:15:21 +0000 (15:15 +0000)]
kernel: Fix modules tarball generation with usrmerge

When usrmerge is enabled the kernel modules aren't under /lib, but /usr/lib;
ensure we fetch the modules from the correct location so we don't have a
tarball which consists of a single symlink.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agokernel-fitimage: Fix dangling symlink to image tree source
Alex Kiernan [Tue, 18 Sep 2018 15:15:20 +0000 (15:15 +0000)]
kernel-fitimage: Fix dangling symlink to image tree source

When deploying the its file, the target of the symlink is missing the its
extension, add it here.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoRevert "kernel.bbclass: do not deploy fitImage; kernel-fitimage.bbclass does that."
Alex Kiernan [Tue, 18 Sep 2018 15:15:19 +0000 (15:15 +0000)]
Revert "kernel.bbclass: do not deploy fitImage; kernel-fitimage.bbclass does that."

This reverts commit 65cded55fa96b1ba72149a31689c081ac27af7f7.

The fitImage deployed here is the one generated in kernel-fitimage.bbclass,
whereas the one deployed by kernel-fitimage.bbclass is a raw image, so we
need the one deployed here keeping.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agokernel-uimage.bbclass: Dependency on u-boot-mkimage-native for all uImages
Reto Schneider [Tue, 18 Sep 2018 21:54:28 +0000 (23:54 +0200)]
kernel-uimage.bbclass: Dependency on u-boot-mkimage-native for all uImages

u-boot-mkimage-native is needed to build any type of uImages, be it
the uImage target itself or for example uImage.lzma. The dependency
however gets only added when at least one of KERNEL_IMAGETYPE and
KERNEL_ALT_IMAGETYPE is exactly uImage. Building uImage.bin and uImage.lzma is
not possible this way.

This patch adds a dependency to u-boot-mkimage-native for all imagetypes which
contains the string uImage.

Signed-off-by: Reto Schneider <code@reto-schneider.ch>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agobinutils: Fix Glibc building for ARC
Alexey Brodkin [Thu, 20 Sep 2018 20:42:31 +0000 (23:42 +0300)]
binutils: Fix Glibc building for ARC

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogcc: Fix specs generation for ARC
Alexey Brodkin [Thu, 20 Sep 2018 20:42:32 +0000 (23:42 +0300)]
gcc: Fix specs generation for ARC

GCC's built-in spec for LD is missing a space after
"--eh-frame-hdr" thus with the next option merged together they
are not understood by LD and so LD fails.

Back-port from upstream GCC, see:
https://github.com/gcc-mirror/gcc/commit/892142379c6b99fe8c3ebdfe0b79e2a435228c1d

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoglibc: fix Segmentation fault in gethostid.c
Mingli Yu [Fri, 21 Sep 2018 03:43:10 +0000 (11:43 +0800)]
glibc: fix Segmentation fault in gethostid.c

Linux gethostid: Check for NULL value from gethostbyname_r [BZ #23679]

A NULL value can happen with certain gethostbyname_r failures.

Before this patch, there is a Segmentation fault
as below:
 # /mybuild/hostid
 Segmentation fault
 # gdb /mybuild/hostid
 GNU gdb (GDB) 8.2
 Copyright (C) 2018 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.
 Type "show copying" and "show warranty" for details.
 This GDB was configured as "x86_64-wrs-linux".
 Type "show configuration" for configuration details.
 For bug reporting instructions, please see:
 <http://www.gnu.org/software/gdb/bugs/>.
 Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

 For help, type "help".
 Type "apropos word" to search for commands related to "word"...
 Reading symbols from /mybuild/hostid...done.
 (gdb) r
 Starting program: /mybuild/hostid

 Program received signal SIGSEGV, Segmentation fault.
 0x00007ffff7f0330e in gethostid () at ../sysdeps/unix/sysv/linux/gethostid.c:125
 125   memcpy (&in, hp->h_addr,
 (gdb) bt
 #0  0x00007ffff7f0330e in gethostid () at ../sysdeps/unix/sysv/linux/gethostid.c:125
 #1  0x0000555555555159 in main ()

 # cat /mybuild/hostid.c
 #include <stdio.h>
 #include <unistd.h>

 int
 main(int argc, char *argv[])
 {
    long hostid;
    hostid = gethostid();
    printf("the hostid is %ld\n", hostid);

 }

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agositeinfo.bbclass: Add LatticeMico32 architecture site info
Nathan Rossi [Fri, 21 Sep 2018 06:27:31 +0000 (06:27 +0000)]
siteinfo.bbclass: Add LatticeMico32 architecture site info

Add the basic architecture site info targets for the LatticeMico32
architecture. This architecture does not target Linux.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoqemu-targets.inc: Mark 'lm32' as softmmu only architecture
Nathan Rossi [Fri, 21 Sep 2018 06:27:31 +0000 (06:27 +0000)]
qemu-targets.inc: Mark 'lm32' as softmmu only architecture

The lm32 architecture does not support linux-user within QEMU as it is
not a Linux supported target.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolib/oe/elf.py: Add LatticeMico32 architecture definition
Nathan Rossi [Fri, 21 Sep 2018 06:27:31 +0000 (06:27 +0000)]
lib/oe/elf.py: Add LatticeMico32 architecture definition

Add the ELF definition for the LaticeMico32 architecture. This
architecture is 'elf' OS only as it does not target Linux.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolibgloss_3.0.0.bb: Ensure ${D}${libdir} exists installing content
Nathan Rossi [Fri, 21 Sep 2018 06:24:32 +0000 (06:24 +0000)]
libgloss_3.0.0.bb: Ensure ${D}${libdir} exists installing content

Some targets do not populate any content into libdir, so make sure it is
created before attempting to move files/directories into it.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogcc: Disable libitm for ARC
Alexey Brodkin [Thu, 20 Sep 2018 20:42:30 +0000 (23:42 +0300)]
gcc: Disable libitm for ARC

The libitm is not supported on ARC, so disable it

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoicu: Add ARC support
Alexey Brodkin [Thu, 20 Sep 2018 20:42:29 +0000 (23:42 +0300)]
icu: Add ARC support

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agonspr: Add ARC support
Antoine Tenart [Thu, 20 Sep 2018 20:42:27 +0000 (23:42 +0300)]
nspr: Add ARC support

[Alexey: Rebased on top of other patches like RiscV, NIOS2 etc]

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoopenssl: Add support for ARC
Alexey Brodkin [Thu, 20 Sep 2018 20:42:26 +0000 (23:42 +0300)]
openssl: Add support for ARC

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agokernel-arch.bbclass: Add ARC to kernel arch map
Alexey Brodkin [Thu, 20 Sep 2018 20:42:25 +0000 (23:42 +0300)]
kernel-arch.bbclass: Add ARC to kernel arch map

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agositeinfo: Define data for ARC
Alexey Brodkin [Thu, 20 Sep 2018 20:42:24 +0000 (23:42 +0300)]
siteinfo: Define data for ARC

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agop11-kit: Add PACKAGECONFIG for trust paths
Alex Kiernan [Thu, 20 Sep 2018 15:06:06 +0000 (15:06 +0000)]
p11-kit: Add PACKAGECONFIG for trust paths

Add trust-paths PACKAGECONFIG item which enables support for default
trust-paths in /etc/ssl/certs/ca-certificates.crt

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agop11-kit: Upgrade from 0.22.1 -> 0.23.14
Alex Kiernan [Thu, 20 Sep 2018 15:06:05 +0000 (15:06 +0000)]
p11-kit: Upgrade from 0.22.1 -> 0.23.14

p11-kit is no longer doing odd/even for development/stable releases, so
drop the custom UPSTREAM_CHECK_GITTAGREGEX.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolibsolv: make rpm optional
Max Kellermann [Thu, 20 Sep 2018 13:16:23 +0000 (15:16 +0200)]
libsolv: make rpm optional

Signed-off-by: Max Kellermann <max.kellermann@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoclutter: simplify SRC_URI
Ross Burton [Fri, 21 Sep 2018 09:56:56 +0000 (10:56 +0100)]
clutter: simplify SRC_URI

The Clutter class's ability to switch between tarballs and git isn't really
useful, so remove it.  If it comes back, it should use the devupstream class.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agomobile-broadband-provider: fix SRC_URI
Anuj Mittal [Fri, 21 Sep 2018 00:41:51 +0000 (08:41 +0800)]
mobile-broadband-provider: fix SRC_URI

Fixes build for older versions of git which don't follow redirects
properly if the .git suffix is missing.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agomesa: enable virgl driver for qemux86/qemux86-64
Ming Liu [Wed, 19 Sep 2018 03:26:41 +0000 (05:26 +0200)]
mesa: enable virgl driver for qemux86/qemux86-64

virgl driver should be enabled for qemux86/qemux86-64 machines, or else
it will cause runtime issue due to virtio_gpu driver missing.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopseudo: update to latest HEAD
Ross Burton [Thu, 20 Sep 2018 21:18:13 +0000 (22:18 +0100)]
pseudo: update to latest HEAD

This incorporates two fixes for large inodes, which hopefully solves some of the
rare mysterious behaviour.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoxserver-xorg: rewrite xorg-server.m4 patch
Ross Burton [Thu, 20 Sep 2018 19:19:05 +0000 (20:19 +0100)]
xserver-xorg: rewrite xorg-server.m4 patch

Instead of having a patch that upstream won't accept, rewrite it in a
upstreamable way and <gasp> submit it upstream.

The fundamental problem is that pkg-config --variable=sdkdir will return the
value of sdkdir literally, whereas --cflags will return -I${sdkdir} *but* will
do sysroot relocation magic on the path so it is usable.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoxserver-xorg: remove obsolete patch
Ross Burton [Thu, 20 Sep 2018 16:13:46 +0000 (17:13 +0100)]
xserver-xorg: remove obsolete patch

This patch is forcing input to use SIGIO, despite the fact that since 2015
xserver has used an input thread.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython3: remove specal handling of sqite3-tests
Ross Burton [Fri, 14 Sep 2018 11:28:21 +0000 (12:28 +0100)]
python3: remove specal handling of sqite3-tests

This package doesn't exist anymore so the manifest tool doesn't need to handle
it specially.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython3: consolidate tests
Ross Burton [Fri, 14 Sep 2018 11:27:46 +0000 (12:27 +0100)]
python3: consolidate tests

Currently the bulk of the tests in python3-tests, some more in
python3-sqlite3-tests, and others in their parent module (such as
python3-ctypes).  This is pointless space usage if we're not planning on running
the tests, so consolidate all the tests into python3-tests.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython3: respect package order in manifest
Ross Burton [Fri, 14 Sep 2018 11:09:34 +0000 (12:09 +0100)]
python3: respect package order in manifest

Don't sort the manifest when using it to generate packaging rules, so ordering
can be used to have complex packaging rules.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython3: don't sort the manifest in create_manifest
Ross Burton [Fri, 14 Sep 2018 11:08:10 +0000 (12:08 +0100)]
python3: don't sort the manifest in create_manifest

Instead of sorting the entire manifest when it is updated, use OrderedDict to
preserve the order of fields.  This means that packages can be ordered in the
manifest to allow non-trivial FILES assignments (such as a package that picks up
pieces of other packages)

The manifest has been regenerated with the new stable ordering, and
distutils-staticdev moved above distutils so the packaging rules work as
expected.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython: consolidate tests
Andrew Geissler [Wed, 19 Sep 2018 16:22:29 +0000 (09:22 -0700)]
python: consolidate tests

Currently the bulk of the tests in python-tests, some more in
python-sqlite3-tests, and others in their parent module (such as
python-ctypes).  This is pointless space usage if we're not planning on
running the tests, so consolidate all the tests into python-tests.

This is a backport of the same changes done by Ross Burton for python3

Changes since v1:
- Rebase

Signed-off-by: Andrew Geissler <geissonator@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython: respect package order in manifest
Andrew Geissler [Wed, 19 Sep 2018 16:22:28 +0000 (09:22 -0700)]
python: respect package order in manifest

Don't sort the manifest when using it to generate packaging rules, so
ordering can be used to have complex packaging rules.

This is a backport of the same changes done by Ross Burton for python3

Changes since v1:
- Rebase

Signed-off-by: Andrew Geissler <geissonator@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython: don't sort the manifest in create_manifest
Andrew Geissler [Wed, 19 Sep 2018 16:22:27 +0000 (09:22 -0700)]
python: don't sort the manifest in create_manifest

Instead of sorting the entire manifest when it is updated, use
OrderedDict to preserve the order of fields.This means that
packages can be ordered in the manifest to allow non-trivial
FILES assignments (such as a package that picks up pieces of
other packages)

The manifest has been regenerated with the new stable ordering, and
distutils-staticdev moved above distutils so the packaging rules work as
expected.

This is a backport of the same changes done by Ross Burton for python3

Changes since v1:
- Moved distutils-staticdev above distutils so packaging rules work
as expected.
Changes since v2:
- Rebase

Signed-off-by: Andrew Geissler <geissonator@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agodistutils{, 3}.bbclass: improve error messages
Jens Rehsack [Wed, 19 Sep 2018 09:24:13 +0000 (11:24 +0200)]
distutils{, 3}.bbclass: improve error messages

For non-python developers it's difficult to identify where start
searching in case of errors. Fixing and marking the string to
grep for might help finding some root causes of issues slightly
quicker.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogpgme: Inherit from distutils-common-base
Alex Kiernan [Mon, 17 Sep 2018 17:33:00 +0000 (17:33 +0000)]
gpgme: Inherit from distutils-common-base

Inherit from distutils-common-base and pythonnative/python3native to
avoid runtime dependency on Python, whilst still fixing clang builds.

Fixes: 8bfb54edc6fa ("gpgme: Inherit distutils3-base")
Suggested-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agosystemd: Add util-linux-fsck to RDEPENDS
Alex Kiernan [Mon, 17 Sep 2018 17:31:36 +0000 (17:31 +0000)]
systemd: Add util-linux-fsck to RDEPENDS

systemd-fsck expects util-linux-fsck passing a number of options that
busybox fsck doesn't interpret. It then continues silently when run, so
disks end up not having fsck run at all.

Move util-linux-fsck from RRECOMMENDS to RDEPENDS to ensure we have the
fsck which systemd expects.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopackage_manager: use normalized path when doing the filtered copy
Max Krummenacher [Sat, 15 Sep 2018 20:01:00 +0000 (22:01 +0200)]
package_manager: use normalized path when doing the filtered copy

The linking/copying of the package files failes if the deploy dir is set
in a non normalized way e.g. like this DEPLOY_DIR = "${TOPDIR}/../deploy"

Then the simple string replacement which is used to calculated the link
destination from the link source fails, as the link source is normalized
but the deploydir prefix is not.

Normalizing deploydir fixes this.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agocmake: Upgrade 3.12.1 -> 3.12.2
Otavio Salvador [Sun, 16 Sep 2018 21:16:24 +0000 (18:16 -0300)]
cmake: Upgrade 3.12.1 -> 3.12.2

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolibarchive: Update 3.3.2 -> 3.3.3
Otavio Salvador [Sun, 16 Sep 2018 21:16:23 +0000 (18:16 -0300)]
libarchive: Update 3.3.2 -> 3.3.3

This upgrades to 3.3.3 release and drop the backported patches when
doing the recipe update.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolinux-firmware: Bump revision to 44d4fca
Otavio Salvador [Sun, 16 Sep 2018 21:16:22 +0000 (18:16 -0300)]
linux-firmware: Bump revision to 44d4fca

44d4fca Merge https://github.com/pmachata/linux-firmware
253a573 brcm: update firmware for bcm43362 sdio
3cee728 Mellanox: Add new mlxsw_spectrum firmware 13.1703.4
ccab6c7 rtl_bt: Add firmware and configuration files for the Bluetooth part of RTL8822CU
75d2b12 Mellanox: Add new mlxsw_spectrum firmware 13.1703.4
85c5d90 nvidia: switch GP10[2467] to newer scrubber/ACR firmware (from GP108)

License-Update: new firmware files additions
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoltp: add a patch for source code to fix issue about fcntl
Hongzhi.Song [Sun, 16 Sep 2018 03:57:25 +0000 (23:57 -0400)]
ltp: add a patch for source code to fix issue about fcntl

The testcases of fcntl fail on 32-bit arch

To cope with glibc commit:
  06ab719d30b0 ("Fix Linux fcntl OFD locks for non-LFS architectures
  (BZ#20251)")
Make OFD command use fcntl64() syscall on 32-bit.

Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolibgloss_3.0.0.bb: Consolidate rmdir with -p
Nathan Rossi [Fri, 14 Sep 2018 11:10:07 +0000 (11:10 +0000)]
libgloss_3.0.0.bb: Consolidate rmdir with -p

Consolidate the rmdir of multiple directories with the use of -p to
delete the leaf empty directory and any empty ancestor directories.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoreproducible: Consistent debug logging
Douglas Royds [Fri, 14 Sep 2018 02:58:17 +0000 (14:58 +1200)]
reproducible: Consistent debug logging

Log both the source of the source_date_epoch and the resulting
source_date_epoch in all cases.

Also, now that we are determining the source_date_epoch successfully for both
yocto and non-yocto kernels, remove the inherits_class('kernel') exception.
We will log a failure to find a source_date_epoch for kernels as well.

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoreproducible: Don't enforce existence of ${S} dir
Douglas Royds [Fri, 14 Sep 2018 02:58:16 +0000 (14:58 +1200)]
reproducible: Don't enforce existence of ${S} dir

Unnecessary.

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoreproducible: Find the git repo in WORKDIR/git or S first
Douglas Royds [Fri, 14 Sep 2018 02:58:15 +0000 (14:58 +1200)]
reproducible: Find the git repo in WORKDIR/git or S first

Change the search regime for find_git_folder():

1. WORKDIR/git: This is the default git fetcher unpack path
2. ${S}
3. Go looking for .git/ under the WORKDIR as a last resort.

linux-yocto:
We had an existing (silent) defect. The linux-yocto recipes all specify
two git SRC_URIs, one for the kernel source itself, the other for the
kmeta data (config fragments and friends). find_git_folder() was finding
the git checkout for the kmeta data, but due to a typo in the git log -1
--pretty=%ct line, we were (silently) reading the source_date_epoch from
the ${S} directory = STAGING_KERNEL_DIR, which is empty. If your
build/ happened to be inside a git checkout, git would walk up the
directory tree, and silently read the commit timestamp from this other
git checkout. The correct path to read the git commit timestamp from is
the "gitpath", being that found by find_git_folder(), though this
function was incorrectly finding the kmeta data checkout, not the kernel
source tree.

Non-kernel git recipes:
The default git fetcher clones and checks out the sources at
WORKDIR/git/ regardless of the setting of S (unless subpath or
destsuffix is set). find_git_folder() now looks for the
WORKDIR/git/.git/ directory first.

Non-yocto linux kernels:
Kernel recipes that don't inherit kernel-yocto should always set
S = ${WORKDIR}/git, so that when base_do_unpack_append() in
kernel.bbclass moves the checkout down to the STAGING_KERNEL_DIR and
symlinks it as WORKDIR/git, the build can still work by following the
symlink. We were previously failing to follow the symlink in the
os.walk(), but we now look first for WORKDIR/git/.git/, and find it due
to the symlink.

If none of the above mechanisms work for finding the git checkout,
perhaps there was a subpath or destsuffix specified in the SRC_URI.
We go looking for the git checkout under the WORKDIR as a last resort.

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoreproducible: Rename ambiguous "path" var to sourcedir or workdir as appropriate
Douglas Royds [Fri, 14 Sep 2018 02:58:14 +0000 (14:58 +1200)]
reproducible: Rename ambiguous "path" var to sourcedir or workdir as appropriate

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoreproducible: Refactor: get_source_date_epoch_from_youngest_file()
Douglas Royds [Fri, 14 Sep 2018 02:58:13 +0000 (14:58 +1200)]
reproducible: Refactor: get_source_date_epoch_from_youngest_file()

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoreproducible: Tidy class description
Douglas Royds [Fri, 14 Sep 2018 02:58:12 +0000 (14:58 +1200)]
reproducible: Tidy class description

Tidy whitespace, delete commented-out lines

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agofribidi: use Meson instead of autotools
Ross Burton [Thu, 13 Sep 2018 23:28:39 +0000 (00:28 +0100)]
fribidi: use Meson instead of autotools

Upstream is moving to Meson, so backport a patch to use that instead of
autotools.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agofribidi: rename directory to match recipe
Ross Burton [Thu, 13 Sep 2018 23:05:25 +0000 (00:05 +0100)]
fribidi: rename directory to match recipe

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agowayland-protocols: update to 1.16
Oleksandr Kravchuk [Wed, 19 Sep 2018 13:02:15 +0000 (15:02 +0200)]
wayland-protocols: update to 1.16

Updated package to v1.16 to match the currently used Wayland version.

Signed-off-by: Oleksandr Kravchuk <oleksandr.kravchuk@pelagicore.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agodropbear: remove localoptions.h in source searching
Andrej Valek [Wed, 19 Sep 2018 13:02:52 +0000 (15:02 +0200)]
dropbear: remove localoptions.h in source searching

- localoptions.h is automatically searched in build directory

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agodbus-test: fix ptest failed problem when multilib is enabled
Changqing Li [Thu, 20 Sep 2018 02:16:27 +0000 (10:16 +0800)]
dbus-test: fix ptest failed problem when multilib is enabled

Fix some failed info like:
| ./test/test-bus: relocation error: ./test/test-bus: symbol
| _dbus_threads_init_debug, version LIBDBUS_PRIVATE_1.10.10 not defined
| in file libdbus-1.so.3 with link time reference
| FAIL: test/test-bus

In run-ptest, LD_LIBRARY_PATH is set to /usr/lib, but when multilib
is enabled, /usr/lib64 will be used. fix by replace with correct path.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogstreamer1.0-plugins-bad: remove rtmpdump from DEPENDS
Florian Wickert [Thu, 20 Sep 2018 08:02:42 +0000 (10:02 +0200)]
gstreamer1.0-plugins-bad: remove rtmpdump from DEPENDS

rtmpdump is not a build dependency for gstreamer1.0-plugins-bad even if
rtmp is enabled. This wouldn't compile anyway due to the
openssl/openssl10 incompatibility because rtmpdump requires openssl10.

Signed-off-by: Florian Wickert <fw@javox-solutions.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoxserver-xorg: remove redundant patch
Ross Burton [Thu, 20 Sep 2018 11:34:15 +0000 (12:34 +0100)]
xserver-xorg: remove redundant patch

Upstream doesn't assume a monotonic clock isn't available anymore, so we can
remove this patch.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agomusl: Add aliases for glibc provided libraries
Khem Raj [Thu, 20 Sep 2018 03:52:42 +0000 (20:52 -0700)]
musl: Add aliases for glibc provided libraries

This is a step towards running pebuilt applications for glibc  on musl
There are many realworld applications which are not always built from
source, especially provided by third party

Package the glibc symlinks into new package musl-glibc-compat

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolinuxloader.bbclass: Refactor to have seprate functions for musl/glibc loader
Khem Raj [Thu, 20 Sep 2018 03:52:41 +0000 (20:52 -0700)]
linuxloader.bbclass: Refactor to have seprate functions for musl/glibc loader

this makes it possible to use this for musl where we are trying to
create a glibc compat package

Add missing aarch64 loader definition for glibc function

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoyocto-uninative: Add aarch64 uninative tarball checksum
Richard Purdie [Wed, 19 Sep 2018 15:23:31 +0000 (08:23 -0700)]
yocto-uninative: Add aarch64 uninative tarball checksum

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agouninative: Add support for aarch64 hosts
Richard Purdie [Wed, 19 Sep 2018 12:31:07 +0000 (05:31 -0700)]
uninative: Add support for aarch64 hosts

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomtools: Fix build with clang
Khem Raj [Wed, 19 Sep 2018 18:55:41 +0000 (11:55 -0700)]
mtools: Fix build with clang

Identify with __clang__ to undefine UNUSED

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoghostscript: upgrade to 9.25
Jagadeesh Krishnanjanappa [Mon, 17 Sep 2018 16:44:50 +0000 (22:14 +0530)]
ghostscript: upgrade to 9.25

Removed below patches, as v9.25 source already has those
changes/security fixes:

0001-Bug-699665-memory-corruption-in-aesdecode.patch
0001-pdfwrite-Guard-against-trying-to-output-an-infinite-.patch
0002-Bug-699656-Handle-LockDistillerParams-not-being-a-bo.patch
0003-Fix-Bug-699660-shading_param-incomplete-type-checkin.patch
0004-Hide-the-.shfill-operator.patch
0005-Bug-699657-properly-apply-file-permissions-to-.tempf.patch
remove-direct-symlink.patch

Re-worked ghostscript-9.21-native-fix-disable-system-libtiff.patch
and ghostscript-9.21-prevent_recompiling.patch
to fix warnings in do_patch task of ghostscript v9.25 recipe.

Highlights of ghostscript v9.25 release:
---------------------------------------
- This release fixes problems with argument handling, some unintended results
  of the security fixes to the SAFER file access restrictions
  (specifically accessing ICC profile files), and some additional security
  issues over the recent 9.24 release.

- Note: The ps2epsi utility does not, and cannot call Ghostscript with
  the -dSAFER command line option. It should never be called with input
  from untrusted sources.

- Security issues have been the primary focus of this release, including
  solving several (well publicised) real and potential exploits.

- As well as Ghostscript itself, jbig2dec has had a significant amount of work
  improving its robustness in the face of out specification files.

- IMPORTANT: We are in the process of forking LittleCMS. LCMS2 is not thread
  safe, and cannot be made thread safe without breaking the ABI.
  Our fork will be thread safe, and include performance enhancements
  (these changes have all be been offered and rejected upstream). We will
  maintain compatibility between Ghostscript and LCMS2 for a time, but not in
  perpetuity. Our fork will be available as its own package separately from
  Ghostscript (and MuPDF).

- The usual round of bug fixes, compatibility changes, and incremental
  improvements.

Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agounzip: add nativesdk support
Andrej Valek [Tue, 18 Sep 2018 07:14:32 +0000 (09:14 +0200)]
unzip: add nativesdk support

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogdb: gdbserver: update ctrl-c handling
Zhixiong Chi [Wed, 19 Sep 2018 02:26:35 +0000 (19:26 -0700)]
gdb: gdbserver: update ctrl-c handling

A) gdbserver sends SIGINT not to the process, but to the process
group (-signal_pid). But the attached process is not always a
process group leader. If not, "kill (-signal_pid, SIGINT)" returns
error and fails to interrupt the attached process. We cannot interrupt
the process attached with gdbserver who is not a process group leader.

This problem was created by the gdb upstream commit 78708b7c8c
The commit fixed the following case B) bug.
B) We cannot interrupt the process attached with gdbserver whose
main thread exits (pthread_exit()).

Now this patch can solve both A) and B).

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agocurl: CVE-2018-14618
Zhixiong Chi [Tue, 18 Sep 2018 08:46:17 +0000 (01:46 -0700)]
curl: CVE-2018-14618

Backport the CVE patch from the upstream
https://github.com/curl/curl/commit/57d299a499155d4b327e341c6024e293b0418243.patch
https://curl.haxx.se/docs/CVE-2018-14618.html
https://nvd.nist.gov/vuln/detail/CVE-2018-14618

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoopenssl10: fix compile error for debian-mips64
Changqing Li [Wed, 19 Sep 2018 08:26:46 +0000 (16:26 +0800)]
openssl10: fix compile error for debian-mips64

Current configuration for debian-mips64 is not correct,
'SIXTY_FOUR_BIT_LONG' need to be specified. otherwise,
it will cause other recipe like crda compile failed since
use default THIRTY_TWO_BIT mode.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agognupg: patch gnupg-native to allow path relocation
Ross Burton [Wed, 19 Sep 2018 13:44:40 +0000 (14:44 +0100)]
gnupg: patch gnupg-native to allow path relocation

GnuPG hard-codes $bindir etc and uses them to find the helper binaries, such as
gpg-agent.  This breaks if gnupg-native is reused from sstate for a different
build directory and GPG signing of packages is required.

Patch in getenv() checks for gnupg-native when returning the hardcoded paths,
and create a wrapper script which overrides GNUPG_BINDIR. There are more paths
that can be overridden, but this one is sufficient to make GnuPG work.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agomaintainers.inc: Update package owners
Maxin B. John [Tue, 18 Sep 2018 08:53:03 +0000 (11:53 +0300)]
maintainers.inc: Update package owners

update Intel owners

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agodummy-sdk-package.inc: work around MACHINE_ARCH SSTATE_MANMACH
Martin Jansa [Mon, 17 Sep 2018 05:48:43 +0000 (05:48 +0000)]
dummy-sdk-package.inc: work around MACHINE_ARCH SSTATE_MANMACH

* since following change:
  allarch: only enable allarch when multilib is not used
  the sstate-diff-machines.sh reports different signature for target-sdk-provides-dummy
  when multilib is enabled

 === Comparing signatures for task do_populate_sysroot.sigdata between qemux86 and qemux86copy ===
ERROR: lib32-target-sdk-provides-dummy different signature for task do_populate_sysroot.sigdata between qemux86 and qemux86copy
basehash changed from b0a44b2c7003b6b4aa3a023d9cb9fe82 to 3a59fa25ddb6a95aff079d477ebf3457
Variable SSTATE_MANMACH value changed from 'qemux86' to 'qemux86copy'

ERROR: target-sdk-provides-dummy different signature for task do_populate_sysroot.sigdata between qemux86 and qemux86copy
basehash changed from 9e44f1deb3d15886ee96db1a3332764c to 6b417d08a5113c9b06d13b3681f5ab4f
Variable SSTATE_MANMACH value changed from 'qemux86' to 'qemux86copy'

It's using:
inherit allarch

python() {
    # Put the package somewhere separate to ensure it's never used except
    # when we want it
    # (note that we have to do this in anonymous python here to avoid
    # allarch.bbclass disabling itself)
    d.setVar('PACKAGE_ARCH', '${DUMMYARCH}')
}

and DUMMYARCH = "sdk-provides-dummy-target"

The difference as shown with bitbake -e before and after reverting allarch.bbclass commit:

before revert:
   $SSTATE_MANMACH [2 operations]
     set? oe-core/meta/classes/sstate.bbclass:61
       "${SSTATE_PKGARCH}"
     set sstate.bbclass:100 [__anon_111_oe_core_meta_classes_sstate_bbclass]
       "machineName"
   pre-expansion value:
     "machineName"
SSTATE_MANMACH="machineName"

   $SSTATE_PKGARCH
     set oe-core/meta/classes/sstate.bbclass:11
       "${PACKAGE_ARCH}"
SSTATE_PKGARCH="sdk-provides-dummy-target"

   $PACKAGE_ARCH [3 operations]
     set oe-core/meta/conf/bitbake.conf:150
       [_defaultval] "${TUNE_PKGARCH}"
     set oe-core/meta/conf/documentation.conf:304
       [doc] "The architecture of the resulting package or packages."
     set dummy-sdk-package.inc:12 [__anon_12_oe_core_meta_recipes_core_meta_dummy_sdk_package_inc]
       "${DUMMYARCH}"
   pre-expansion value:
     "${DUMMYARCH}"
PACKAGE_ARCH="sdk-provides-dummy-target"

after revert:
   $SSTATE_MANMACH
     set? oe-core/meta/classes/sstate.bbclass:61
       "${SSTATE_PKGARCH}"
SSTATE_MANMACH="allarch"

   $SSTATE_PKGARCH [2 operations]
     set oe-core/meta/classes/sstate.bbclass:11
       "${PACKAGE_ARCH}"
     set sstate.bbclass:98 [__anon_111__oe_core_meta_classes_sstate_bbclass]
       "allarch"
   pre-expansion value:
     "allarch"
SSTATE_PKGARCH="allarch"

   $PACKAGE_ARCH [4 operations]
     set oe-core/meta/conf/bitbake.conf:150
       [_defaultval] "${TUNE_PKGARCH}"
     set oe-core/meta/conf/documentation.conf:304
       [doc] "The architecture of the resulting package or packages."
     set oe-core/meta/classes/allarch.bbclass:5
       "all"
     set dummy-sdk-package.inc:12 [__anon_12_oe_core_meta_recipes_core_meta_dummy_sdk_package_inc]
       "${DUMMYARCH}"
   pre-expansion value:
     "${DUMMYARCH}"
PACKAGE_ARCH="sdk-provides-dummy-target"

the relevant part of the anonymous python in sstate.bbclass:

    elif bb.data.inherits_class('allarch', d) and d.getVar("PACKAGE_ARCH") == "all":
        d.setVar('SSTATE_PKGARCH', "allarch")
    else:
        d.setVar('SSTATE_MANMACH', d.expand("${PACKAGE_ARCH}"))

So with allarch.bbclass change, the PACKAGE_ARCH isn't set to "all" because multilib is enabled,
but that causes sstate.bbclass to set SSTATE_MANMACH to MACHINE instead of SSTATE_PKGARCH
allarch, where it got MACHINE is still a bit of mystery to me.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocoreutils: update printenv's ALTERNATIVE_LINK_NAME
Martin Jansa [Mon, 17 Sep 2018 05:48:42 +0000 (05:48 +0000)]
coreutils: update printenv's ALTERNATIVE_LINK_NAME

* use base_bindir like busybox does to prevent conflicting u-a configs

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: fix build with -O
Martin Jansa [Wed, 19 Sep 2018 11:26:30 +0000 (11:26 +0000)]
glibc: fix build with -O

* tested for qemuarm, qemux86 with -O, -O0, -Os, with gcc
* to build with -O0 I had to remove restriction from systemtap first

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinitramfs-framework/udev: call settle before kill
Anuj Mittal [Wed, 19 Sep 2018 08:08:46 +0000 (16:08 +0800)]
initramfs-framework/udev: call settle before kill

When mount command is executed in rootfs module of initrd, eudev creates
a loop0 device node, applies rules and adds a inotify watch to it. Right
after this step, we execute finish which first tries to kill any running
udevd daemon before doing a switch_root.

In some cases, it is possible that switch_root is executed before
inotify_add_watch was actually processed which would lead to errors like:

| inotify_add_watch(6, /dev/loop0, 10) failed: No such file or directory

Make sure that we process all the events in queue before actually trying
to kill udevd to prevent this race.

Fixes [YOCTO #12861]

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoisoimage-isohybrid: don't include cpio in cpio image
Ioan-Adrian Ratiu [Tue, 18 Sep 2018 16:17:52 +0000 (19:17 +0300)]
isoimage-isohybrid: don't include cpio in cpio image

Because the find | cpio processes execute in parallel connected via
the pipe, and the cpio outputs in the same dir find searches for
source files, the cpio will be included in itself partially, depending
on how fast the build machine creates the cpio file before cpio
gobbles it up.

This bloats the ISO image, though compression reduces the .iso file size,
once the kernel decompresses the cpio image and boots it live, it uses
up to double the RAM memory.

Fix this by creating the initrd.cpio file directly inside cr_workdir.

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibressl: remove recipe
Hongxu Jia [Wed, 19 Sep 2018 11:59:30 +0000 (19:59 +0800)]
libressl: remove recipe

Since openssh support oepnssl 1.1.x, there is no reason
to keep libressl.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopenssh: upgrade 7.8p1 -> 7.8p1+git to support openssl 1.1.x
Hongxu Jia [Wed, 19 Sep 2018 11:59:29 +0000 (19:59 +0800)]
openssh: upgrade 7.8p1 -> 7.8p1+git to support openssl 1.1.x

- Convert from tarball to git repository which support
  openssl 1.1.x

- There is no specific minor version that contains the
  openssl fix (it was merged to master a few days agao),
  rename recipe version to `7.8p1+git'

- Fix regression test binaries missing
  In commit `1f7aaf7 openssh: build regression test binaries', it build
  regression test binaries, since upstream add two binaries in commits
  `c59aca8 Create control sockets in clean temp directories' and
  `1acc058 Disable tests where fs perms are incorrect', we should update
  do_compile_ptest.

  [ptest log]
  |/usr/lib/openssh/ptest/regress/test-exec.sh: line 330: /usr/lib/openssh/
  ptest/regress/mkdtemp: No such file or directory
  [ptest log]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxf86-video-fbdev: update to 0.5.0
Armin Kuster [Fri, 14 Sep 2018 16:04:04 +0000 (09:04 -0700)]
xf86-video-fbdev: update to 0.5.0

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoxserver-xf86-config: 1.20 qemumips fix
Armin Kuster [Fri, 14 Sep 2018 19:02:42 +0000 (12:02 -0700)]
xserver-xf86-config: 1.20 qemumips fix

When updating to xorg-xserver 1.20+, mips64 would not work correctly and
cause the xorg test to fail.

Changing the DefaultDepth fixed that.

[Yocto # 12845]

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoxserver-xorg: upgrade 1.19.6 -> 1.20.1
Armin Kuster [Fri, 14 Sep 2018 16:04:03 +0000 (09:04 -0700)]
xserver-xorg: upgrade 1.19.6 -> 1.20.1

removed included patch

Refresh 0001-configure.ac-Fix-check-for-CLOCK_MONOTONIC
Remove 0001-config-fix-NULL-value-detection-for-ID_INPUT-being-u.patch

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoopenssl: update to 1.1.1 final
Alexander Kanavin [Fri, 14 Sep 2018 16:18:00 +0000 (18:18 +0200)]
openssl: update to 1.1.1 final

This is the new LTS release with support for TLS 1.3.

Release announcement:
https://www.openssl.org/blog/blog/2018/09/11/release111/

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoudev-extraconf: Add systemd-mount to udev-extraconf/mount.sh
Hongzhi.Song [Tue, 17 Apr 2018 07:03:43 +0000 (03:03 -0400)]
udev-extraconf: Add systemd-mount to udev-extraconf/mount.sh

Udev-extraconf works correctly with sysvinit in the aspect of automounting
block devices. But it has a serious problem in case of systemd. Block devices
automounted by udev is unaccessible to host space(out of udevd's private
namespace). For example, we cannot format those block devices.

e.g.
    root@qemux86:~# mkfs.ext4 /dev/sda1
    mke2fs 1.43.8 (1-Jan-2018)
    /dev/sda1 contains a ext4 file system
    last mounted on Tue Apr  3 06:22:41 2018
    Proceed anyway? (y,N) y
    /dev/sda1 is apparently in use by the system; will not make a filesystem here!

Other distributions has no such problem, because they use a series of rules to
manager block devices. Different types of block devices match different rules.
But udev-extraconf just use one rule, automount.rules, which results in this
problem.

The 'systemd-mount' command is recommended by the systemd community to solve such
problems.

This patch makes use of 'systemd-mount' to solve the above problem.

[YOCTO #12644]

(From OE-Core rev: a0b3389c5afc23f622f793cbad8b4135093e6f08)

Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomusl: Add MAX_HANDLE_SZ
Khem Raj [Thu, 13 Sep 2018 14:04:26 +0000 (07:04 -0700)]
musl: Add MAX_HANDLE_SZ

(From OE-Core rev: d24bafa872cd1915ca23468bb37be98518347e02)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomusl: Wire-up name_to_handle_at and name_to_handle_at syscalls
Khem Raj [Thu, 13 Sep 2018 01:05:31 +0000 (18:05 -0700)]
musl: Wire-up name_to_handle_at and name_to_handle_at syscalls

(From OE-Core rev: c70bb5a24e8923a34adb9c7b8298ae12702e3f27)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/recipetool: fix non-determinism in cmake test
Ross Burton [Thu, 13 Sep 2018 11:30:39 +0000 (12:30 +0100)]
oeqa/selftest/recipetool: fix non-determinism in cmake test

The Navit recipe can depend on fribidi which is now part of oe-core.  Since the
pkgconfig lookup is based on pkgdata the results can change depending on what
has been built, which leads to occasional failures.

Build gtk+ before the test to ensure that the pkgdata is populated with more of
the dependencies, and add fribidi to the generated DEPENDS checklist.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/runtime_test: Ensure we build/use gnupg-native
Richard Purdie [Thu, 13 Sep 2018 13:12:11 +0000 (14:12 +0100)]
oeqa/selftest/runtime_test: Ensure we build/use gnupg-native

Without this, we see errors if gpg is missing from the host system
for "oe-selftest -r runtime_test.TestImage.test_testimage_dnf".

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokexec-tools: Depend on sysinit.target rather than basic.target
Andrew Bresticker [Wed, 12 Sep 2018 17:44:15 +0000 (10:44 -0700)]
kexec-tools: Depend on sysinit.target rather than basic.target

kdump.service only needs filesystems to be up, for which sysinit.target
is sufficeint. basic.target pulls in networking and other services which
are unnecessary for kdump. This is also useful for when kdump.service is
used as the boot target (e.g. for the kdump kernel) and only a minimal
system needs to be brought up.

Signed-off-by: Andrew Bresticker <abrestic@waymo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokexec-tools: Install systemd service
Andrew Bresticker [Wed, 12 Sep 2018 17:44:14 +0000 (10:44 -0700)]
kexec-tools: Install systemd service

Set SYSTEMD_PACKAGES and SYSTEMD_SERVICE so that kdump.service actually
gets installed.

Signed-off-by: Andrew Bresticker <abrestic@waymo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoapr-util: fix ptest fail problem
Changqing Li [Thu, 13 Sep 2018 05:45:46 +0000 (13:45 +0800)]
apr-util: fix ptest fail problem

Test suite test_dbm failed after gdbm upgrtade to 13.1,
from 13.1, return value of some function are changed.

* gdbm_fetch, gdbm_firstkey, and gdbm_nextkey behavior

If the requested key was not found, these functions return datum with
dptr pointing to NULL and set gdbm_errno to GDBM_ITEM_NOT_FOUND (in
prior releases, gdbm_errno was set to GDBM_NO_ERROR),

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinsane: Recognise BPF as a valid EM_MACHINE type
Khem Raj [Thu, 13 Sep 2018 04:12:09 +0000 (21:12 -0700)]
insane: Recognise BPF as a valid EM_MACHINE type

BPF Linux ELF objects are generated with kernel-selftests with
>= 4.18 kernel and when clang is enabled which packages BPF objects
into packages, therefore recongnise this as a valid ELF target

Add a selftest for BPF

Do not flag BPF objects in target, since they pretty much will be ok for
most of kernels architectures we care do support BPF

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinitramfs-framework: Don't use 'tr'
Andrew Bresticker [Wed, 12 Sep 2018 17:25:26 +0000 (10:25 -0700)]
initramfs-framework: Don't use 'tr'

tr is available in busybox, but not in toybox. Just use sed instead.

Signed-off-by: Andrew Bresticker <abrestic@waymo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoperf: do not pull in any perl dependencies unless scripting is requested
Dima Zavin [Wed, 12 Sep 2018 17:30:25 +0000 (10:30 -0700)]
perf: do not pull in any perl dependencies unless scripting is requested

Signed-off-by: Dima Zavin <dmitriyz@waymo.com>
Signed-off-by: Andrew Bresticker <abrestic@waymo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-libc-headers: Don't do useless configuration
Alexey Brodkin [Wed, 12 Sep 2018 17:04:45 +0000 (20:04 +0300)]
linux-libc-headers: Don't do useless configuration

There's no point in configuring Linux kernel before
headers installation.

Moreover in come cases it might lead to problems on kernels
starting from 4.17 with architecture or platfrom sets
CROSS_COMPILE variable automatically, see [1].

Also note Buildroot doesn't do that kind of configuration as
well, see [2].

And while at it convert empty do_compile to noexec as well.

[1] https://lkml.org/lkml/2018/9/12/486
[2] https://git.buildroot.org/buildroot/tree/package/linux-headers/linux-headers.mk#n106

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-libc-headers: Include linux/stddef.h in linux/swab.h
Khem Raj [Thu, 13 Sep 2018 01:05:30 +0000 (18:05 -0700)]
linux-libc-headers: Include linux/stddef.h in linux/swab.h

This helps compiling bpf tests using non-glibc C libraries e.g. musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocoreutils: add alternative target for nice
Jens Rehsack [Thu, 13 Sep 2018 09:25:00 +0000 (11:25 +0200)]
coreutils: add alternative target for nice

Avoid coreutils conflicts with nice from other recipes, like
busybox - even if that's not enabled by default.
In situations, where coreutils is a dependency for -dev images
and small busybox nice is available always, it avoids extra
effort for coreutils for those users.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotune-core2: use n270 instead of core2duo
Anuj Mittal [Thu, 13 Sep 2018 07:25:47 +0000 (15:25 +0800)]
tune-core2: use n270 instead of core2duo

Fixes warnings in builds using core2-32 tune:

warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.syscall [bit 11]
warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.lm [bit 29]

when executing postinsts using qemu-i386.

i386 target doesn't enable CPUID_EXT2_SYSCALL and CPUID_EXT2_LM [1]
while cpu choice of core2duo that we use for core2-32 TUNE does [2].
Use n270 cpu instead to use with qemu which supports SSSE3 and doesn't
have these bits enabled [3].

[1] https://github.com/qemu/qemu/blob/master/target/i386/cpu.c#L739
[2] https://github.com/qemu/qemu/blob/master/target/i386/cpu.c#L1439
[3] https://github.com/qemu/qemu/blob/master/target/i386/cpu.c#L1603

Fixes [YOCTO #12916]

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3: fix openssl 1.1.1 changes
Ross Burton [Thu, 13 Sep 2018 09:02:31 +0000 (10:02 +0100)]
python3: fix openssl 1.1.1 changes

Due to human error an older revision of the SSL patch was merged.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>