sysvinit-inittab: do not use 'exit 1' to postpone to first boot
Instead, first check if we need to do anything at all during first boot,
and if so, either postpone to first boot via pkg_postinst_ontarget()
when running on host, or run the necessary setup code when running on target.
Bruce Ashfield [Fri, 18 May 2018 15:05:53 +0000 (11:05 -0400)]
linux-yoct/4.12: update to v4.12.24
Updating to include Paul Gortmaker's latest round of stable updates, which
comprise the following commits:
dc2f71a08d7a Linux 4.12.24 4cab262afa69 iio: adc: ti-ads1015: add 10% to conversion wait time 89f573e6f136 tools include: Do not use poison with C++ d4f418739d68 kprobes/x86: Disable preemption in ftrace-based jprobes 28861253362b perf test attr: Fix ignored test case result 12c60baac963 staging: fsl-mc/dpio: Fix incorrect comparison 43e1cab01765 serial: imx: Update cached mctrl value when changing RTS 6122e955f082 usbip: tools: Install all headers needed for libusbip development c1fce3e6296c serial: sh-sci: suppress warning for ports without dma channels 444cfc461e20 sysrq : fix Show Regs call trace on ARM 0040e82b1a65 usb: xhci: Return error when host is dead in xhci_disable_slot() e1667a3749da staging: fsl-dpaa2/eth: Account for Rx FD buffers on error path 7e22cbc6bd55 usb: mtu3: fix error return code in ssusb_gadget_init() c528464afcea EDAC, sb_edac: Fix missing break in switch e207a0c6a285 clocksource/drivers/arm_arch_timer: Validate CNTFRQ after enabling frame c3c5783f9303 serial: 8250: Preserve DLD[7:4] for PORT_XR17V35X ca7b446eff2f PCI: dra7xx: Create functional dependency between PCIe and PHY 7897f75fc207 usb: phy: tahvo: fix error handling in tahvo_usb_probe() c240911c41c3 mmc: sdhci-msm: fix issue with power irq 97227123b5f0 mmc: tmio: check mmc_regulator_get_supply return value 05ce425fa841 spi: spi-axi: fix potential use-after-free after deregistration 42f90afc67e4 spi: sh-msiof: Fix DMA transfer size check c652d0d523bf staging: rtl8188eu: avoid a null dereference on pmlmepriv 3dc08560ab63 serial: 8250_fintek: Fix rs485 disablement on invalid ioctl() d57c00699295 m68k: fix ColdFire node shift size calculation df74b0c1e0b4 staging: greybus: loopback: Fix iteration count on async path 96be1d656724 x86/entry/64: Don't use IST entry for #BP stack (part #2) 8e3f9a001776 selftests/x86/ldt_get: Add a few additional tests for limits 0d0517d16bc5 s390/pci: do not require AIS facility 778bf06a0661 PM / Domains: Fix genpd to deal with drivers returning 1 from ->prepare() bd4084ce13d2 s390: vfio-ccw: Do not attempt to free no-op, test and tic cda. fd6fe520a496 ima: fix hash algorithm initialization 83cd72f27843 usb: host: fix incorrect updating of offset 4ab295bc9cdf USB: usbfs: Filter flags passed in from user space d8ce9fecf049 USB: Fix off by one in type-specific length check of BOS SSP capability dc9843bd9e72 USB: core: Add type-specific length check of BOS descriptors ab95f86f0fac usb: xhci: fix panic in xhci_free_virt_devices_depth_first c1b551b8718a xhci: Don't show incorrect WARN message about events for empty rings 8412154c096c USB: ulpi: fix bus-node lookup 10d2d61bff44 usb: hub: Cycle HUB power when initialization fails da44857edd20 powerpc/kprobes: Fix call trace due to incorrect preempt count 67482fcb1f0a powerpc/kprobes: Disable preemption before invoking probe handler for optprobes 6f745a984365 powerpc/jprobes: Disable preemption when triggered through ftrace 3fefceeaca8e USB: serial: usb_debug: add new USB device id 9c971e7d3a9f USB: serial: option: add Quectel BG96 id cc01c484eee9 serial: 8250_pci: Add Amazon PCI serial device ID d16393b7a9d8 usb: quirks: Add no-lpm quirk for KY-688 USB 3.1 Type-C Hub 7a0ac9cc347c uas: Always apply US_FL_NO_ATA_1X quirk to Seagate devices 52c2b20403f0 s390/runtime instrumentation: simplify task exit handling 04dd38b88979 drm/fsl-dcu: enable IRQ before drm_atomic_helper_resume() f363e7cdb4f6 drm/fsl-dcu: avoid disabling pixel clock twice on suspend 2845e7d136c8 drm/i915: Prevent zero length "index" write 79413d6f2f6f drm/i915: Don't try indexed reads to alternate slave addresses f5cc8d6842e6 drm/i915/gvt: Correct ADDR_4K/2M/1G_MASK definition 1fab446c5b5a drm/i915: Fix false-positive assert_rpm_wakelock_held in i915_pmic_bus_access_notifier v2 708262ebbebc md: forbid a RAID5 from having both a bitmap and a journal. 40219fc4a45b e1000e: fix the use of magic numbers for buffer overrun issue 9bbd7fc437e0 include/linux/compiler-clang.h: handle randomizable anonymous structs 13782a203fb8 drm/amd/pp: fix typecast error in powerplay. dd1ab1b7a09e drm/ttm: once more fix ttm_buffer_object_transfer 1e1df0b0eb71 drm/hisilicon: Ensure LDI regs are properly configured. e10ca648a294 drm/panel: simple: Add missing panel_simple_unprepare() calls 28fb6325953c drm/radeon: fix atombios on big endian 0f7ff143e866 drm/tilcdc: Precalculate total frametime in tilcdc_crtc_set_mode() 00debaff36fb drm/amdgpu: Remove check which is not valid for certain VBIOS 53543b5a5062 drm/amdgpu: Properly allocate VM invalidate eng v2 6095ee5e76ed drm/amdgpu: correct reference clock value on vega10 8544b664f20e Revert "drm/radeon: dont switch vt on suspend" 3b28b8cd6364 nvme-pci: add quirk for delay before CHK RDY for WDC SN200 2c1ae94e88ee hwmon: (jc42) optionally try to disable the SMBUS timeout 8fcaaeed325c bcache: recover data from backing when data is clean 027fe49240fa bcache: only permit to recovery read error when cache device is clean 3746f4374ee2 bcache: Fix building error on MIPS 72ea117f664e cxl: Check if vphb exists before iterating over AFU devices 8ee52dd3b01a i2c: i801: Fix Failed to allocate irq -2147483648 error ab7ae0720406 eeprom: at24: check at24_read/write arguments 1025c12d637b eeprom: at24: correctly set the size for at24mac402 32aba2ddc564 eeprom: at24: fix reading from 24MAC402/24MAC602 ec5216d0e845 mmc: core: prepend 0x to OCR entry in sysfs a64429e1d089 mmc: core: prepend 0x to pre_eol_info entry in sysfs 32f6d6221e55 mmc: core: Do not leave the block driver in a suspended state fa455ca7acc6 arm64: module-plts: factor out PLT generation code for ftrace d9c2c353dc61 s390: revert ELF_ET_DYN_BASE base changes 5c10828c07be lockd: lost rollback of set_grace_period() in lockd_down_net() 91ed144855d5 crypto: skcipher - Fix skcipher_walk_aead_common 0ff5af74c047 nfsd: fix panic in posix_unblock_lock called from nfs4_laundromat b187299249a2 nfsd: Fix another OPEN stateid race 2e36e8a92541 nfsd: Fix stateid races between OPEN and CLOSE 237c8c16013d btrfs: clear space cache inode generation always e6eedfd1ca3f mm/hugetlb: fix NULL-pointer dereference on 5-level paging machine b19cd2bae194 autofs: revert "autofs: take more care to not update last_used on path walk" 9c0369beda80 device-dax: implement ->split() to catch invalid munmap attempts 0d73cfed1391 platform/x86: hp-wmi: Fix tablet mode detection for convertibles
Bruce Ashfield [Fri, 18 May 2018 15:05:49 +0000 (11:05 -0400)]
linux-yocto/4.12: update to v4.12.23
Integrating the -stable updates from Paul Gortmake that comprise the following
commits:
6e83f40c507e Linux 4.12.23 55e376304f1b e1000e: fix buffer overrun while the I219 is processing DMA transactions 3882bb678dd8 e1000e: Fix return value test 167170375055 e1000e: Fix error path in link detection 47722947f954 ARM64: dts: meson-gxl: Add alternate ARM Trusted Firmware reserved memory zone 1dbaaa42b464 media: v4l2-ctrl: Fix flags field on Control events c7c9d8c465d7 [media] cx231xx-cards: fix NULL-deref on missing association descriptor 6ee1ead888a3 media: rc: check for integer overflow 6f70063599b3 media: Don't do DMA on stack for firmware upload in the AS102 driver ef4c54828c1d powerpc/64s/hash: Allow MAP_FIXED allocations to cross 128TB boundary d308f45eb9e7 powerpc/64s/hash: Fix fork() with 512TB process address space 61c9dab21d03 powerpc/64s/hash: Fix 128TB-512TB virtual address boundary case allocation 40744bdf965e powerpc/64s/hash: Fix 512T hint detection to use >= 128T c5866bd94f03 powerpc/64s/radix: Fix 128TB-512TB virtual address boundary case allocation 49e9f537eb43 powerpc/signal: Properly handle return value from uprobe_deny_signal() fb991189ca1f parisc: Fix validity check of pointer size argument in new CAS implementation ae519d5e90b9 ixgbe: Fix skb list corruption on Power systems 2a827971bc99 fm10k: Use smp_rmb rather than read_barrier_depends b1222f423f70 i40evf: Use smp_rmb rather than read_barrier_depends 61d3820d1146 ixgbevf: Use smp_rmb rather than read_barrier_depends 8c40cc266d42 igbvf: Use smp_rmb rather than read_barrier_depends d05a14e4483e igb: Use smp_rmb rather than read_barrier_depends 9062b3d8fadd i40e: Use smp_rmb rather than read_barrier_depends bb0ddf274e82 spi-nor: intel-spi: Fix broken software sequencing codes 11604df811a9 IB/srp: Avoid that a cable pull can trigger a kernel crash 7a2f561b9470 IB/hfi1: Fix incorrect available receive user context count 305382ae2297 IB/cm: Fix memory corruption in handling CM request 9792edc692f1 IB/CM: Create appropriate path records when handling CM request 0624d71dcd6f IB/srpt: Do not accept invalid initiator port names ff4035fcfb4d svcrdma: Preserve CB send buffer across retransmits f18fd397f0c1 libnvdimm, namespace: make 'resource' attribute only readable by root 91d9aa084602 libnvdimm, region : make 'resource' attribute only readable by root ea9427658840 libnvdimm, namespace: fix label initialization to use valid seq numbers c0bcae085da8 libnvdimm, pfn: make 'resource' attribute only readable by root aa91e16e2756 libnvdimm, dimm: clear 'locked' status on successful DIMM enable eca24c2a944d clk: ti: dra7-atl-clock: fix child-node lookups 104ab8491706 SUNRPC: Fix tracepoint storage issues with svc_recv and svc_rqst_status a6579fafe2b9 dax: fix general protection fault in dax_alloc_inode b4f77dd3db27 dax: fix PMD faults on zero-length files 12b2a43aa1b0 lockd: double unregister of inetaddr notifiers f2fa2903113c irqchip/gic-v3: Fix ppi-partitions lookup c08ddb437ddb genirq: Track whether the trigger type has been set fc12863e2ba3 raid1: prevent freeze_array/wait_all_barriers deadlock 3c56a460c8bf block: Fix a race between blk_cleanup_queue() and timeout handling 1e28e345115e p54: don't unregister leds when they are not initialized 937209dd49f8 mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush sequence 73d36ccc25ad mtd: nand: mtk: fix infinite ECC decode IRQ issue 886c51dad821 mtd: nand: Fix writing mtdoops to nand flash. 684797376fd0 mtd: nand: omap2: Fix subpage write b58d7cba2730 target: Avoid early CMD_T_PRE_EXECUTE failures during ABORT_TASK 8412e7db941c target: Fix quiese during transport_write_pending_qf endless loop 7c302f595f4b target: Fix caw_sem leak in transport_generic_request_failure cc36f84ff1f0 target: Fix QUEUE_FULL + SCSI task attribute handling 41411af9e8ad target: fix null pointer regression in core_tmr_drain_tmr_list 8734ebeb8106 iscsi-target: Fix non-immediate TMR reference leak 2e2bc1186a08 iscsi-target: Make TASK_REASSIGN use proper se_cmd->cmd_kref 6de2abbd4c31 scsi: lpfc: Fix oops if nvmet_fc_register_targetport fails 2000b870234f scsi: lpfc: Fix FCP hba_wqidx assignment 01f0e334995a scsi: lpfc: Fix crash receiving ELS while detaching driver 020ccb98ef75 scsi: lpfc: fix pci hot plug crash in list_add call 9b58a782f5a4 scsi: lpfc: fix pci hot plug crash in timer management routines e316d92e10ac scsi: sd_zbc: Fix sd_zbc_read_zoned_characteristics() f98e27e575f1 net/9p: Switch to wait_event_killable() 8be417a79efc fs/9p: Compare qid.path in v9fs_test_inode 2e349fe9c2bb fix a page leak in vhost_scsi_iov_to_sgl() error recovery c0697b079ae5 mfd: lpc_ich: Avoton/Rangeley uses SPI_BYT method 2ace5971b1c1 ASoC: sun8i-codec: Set the BCLK divider c7316d6679de ASoC: sun8i-codec: Fix left and right channels inversion 2eb91e439cdf ASoC: sun8i-codec: Invert Master / Slave condition 0a116d482fa8 ALSA: hda/realtek - Fix ALC700 family no sound issue 1505048e3ff8 ALSA: hda: Fix too short HDMI/DP chmap reporting 1a1f798bfb30 ALSA: timer: Remove kernel warning at compat ioctl error paths 1051d7755bda ALSA: usb-audio: Add sanity checks in v2 clock parsers 199cd7823763 ALSA: usb-audio: Fix potential out-of-bound access at parsing SU cf7d9d2b53dc ALSA: usb-audio: Add sanity checks to FE parser aba17bf44d13 ALSA: pcm: update tstamp only if audio_tstamp changed 29259072ec04 ext4: prevent data corruption with journaling + DAX 97da4f9039cb ext4: prevent data corruption with inline data + DAX 5ddf166442c3 ext4: fix interaction between i_size, fallocate, and delalloc after a crash 9ed0b612fb77 ata: fixes kernel crash while tracing ata_eh_link_autopsy event 9d238de93426 fsnotify: fix pinning group in fsnotify_prepare_user_wait() 5b981d854914 fsnotify: pin both inode and vfsmount mark 91b0d40827a2 fsnotify: clean up fsnotify_prepare/finish_user_wait() 99a127e4a587 md/bitmap: revert a patch b11cb870192e Bluetooth: btqcomsmd: Add support for BD address setup cd4c4ed7d2a0 md: don't check MD_SB_CHANGE_CLEAN in md_allow_write 96e829f152c7 rtlwifi: fix uninitialized rtlhal->last_suspend_sec time 7d43a23c6689 rtlwifi: rtl8192ee: Fix memory leak when loading firmware ef7cb0278073 nfsd: deal with revoked delegations appropriately b6996af90c58 NFS: revalidate "." etc correctly on "open". 76d4c8adb264 NFS: Avoid RCU usage in tracepoints 78e607a16574 nfs: Fix ugly referral attributes 43f950f570f7 NFS: Revert "NFS: Move the flock open mode check into nfs_flock()" 52e54c5dc1d3 NFS: Fix typo in nomigration mount option 930ac0de39d5 isofs: fix timestamps beyond 2027 70fb63a15260 fanotify: fix fsnotify_prepare_user_wait() failure 568131ebc640 bcache: check ca->alloc_thread initialized before wake up it 4739cc25fe6a libceph: don't WARN() if user tries to add invalid key f5e35be74237 eCryptfs: use after free in ecryptfs_release_messaging() 8fa715eede18 fscrypt: lock mutex before checking for bounce page pool e880aa103552 nilfs2: fix race condition that causes file system corruption 0eb9f2d0c80d autofs: fix careless error in recent commit 7724ca25f299 autofs: don't fail mount for transient error 020cd1b07344 rt2x00usb: mark device removed when get ENOENT usb error 728ec449a62c MIPS: math-emu: Fix final emulation phase for certain instructions e67e9e160afb MIPS: BCM47XX: Fix LED inversion for WRT54GSv1 b7fc80471672 MIPS: Fix an n32 core file generation regset support regression 695a30121f31 MIPS: dts: remove bogus bcm96358nb4ser.dtb from dtb-y entry 649b942f5f21 dm: discard support requires all targets in a table support discards 9a77250fe32f dm: fix race between dm_get_from_kobject() and __dm_destroy() 0f222c2c6239 MIPS: pci: Remove KERN_WARN instance inside the mt7620 driver badd13d39a0d dm: allocate struct mapped_device with kvzalloc 1ea71c17d132 ovl: Put upperdentry if ovl_check_origin() fails 20f908eac772 dm bufio: fix integer overflow when limiting maximum cache size 21e0f5780760 dm mpath: remove annoying message of 'blk_get_request() returned -11' 84370754991c dm crypt: allow unaligned bv_offset c27aa7e405c2 dm cache: fix race condition in the writeback mode overwrite_bio optimisation 463a9e155dab dm integrity: allow unaligned bv_offset fa7ebbb65fac ALSA: hda: Add Raven PCI ID 571d0222e808 PCI: Apply Cavium ThunderX ACS quirk to more Root Ports 86602f1c5aac PCI: Set Cavium ACS capability quirk flags to assert RR/CR/SV/UF fc037283c8a7 PCI/ASPM: Use correct capability pointer to program LTR_L1.2_THRESHOLD f56bf6a0bd36 PCI/ASPM: Account for downstream device's Port Common_Mode_Restore_Time 03a249b08df1 PM / OPP: Add missing of_node_put(np) 2c1211c2edc9 nbd: don't start req until after the dead connection logic 01d54a192605 nbd: wait uninterruptible for the dead timeout 7bc2c995f8db net: mvneta: fix handling of the Tx descriptor counter 504d2a22b3af MIPS: ralink: Fix typo in mt7628 pinmux function 2f51d995b2b7 MIPS: ralink: Fix MT7628 pinmux 55cc724a945f ARM: 8721/1: mm: dump: check hardware RO bit for LPAE 884c853ff37b ARM: 8722/1: mm: make STRICT_KERNEL_RWX effective for LPAE c6a032594344 arm64: Implement arch-specific pte_access_permitted() 8420a2afdea5 x86/entry/64: Fix entry_SYSCALL_64_after_hwframe() IRQ tracing 95f53ae99256 lib/mpi: call cond_resched() from mpi_powm() loop a5d620687584 sched: Make resched_cpu() unconditional 188ec06978ac serdev: fix registration of second slave 9a6630779ac1 cpufreq: schedutil: Reset cached_raw_freq when not in sync with next_freq 12da4fd9af22 ACPI / EC: Fix regression related to triggering source of EC event handling 1925155cbaf8 s390/disassembler: correct disassembly lines alignment 3bbfc892e348 s390/disassembler: increase show_code buffer size f2dd6d7f4453 s390/disassembler: add missing end marker for e7 table e4d2498802cf s390/guarded storage: fix possible memory corruption c1de5b04dff3 s390/runtime instrumention: fix possible memory corruption 1156f0d1e7b9 s390/noexec: execute kexec datamover without DAT 893ce3be12b7 s390: fix transactional execution control register handling e883dcdf2291 lguest: disable it vs. removing it. 40bda3ef7bfd x86/entry/64: Don't use IST entry for #BP stack 7414e2e34e6f kvm/x86: fix icebp instruction handling 32ec5903cbbe perf/hwbp: Simplify the perf-hwbp code, fix documentation cc46dc546e06 media: usbtv: prevent double free in error case ffe911e1acac ALSA: seq: Make ioctls race-free
Bruce Ashfield [Fri, 18 May 2018 15:05:48 +0000 (11:05 -0400)]
linux-yocto/4.12: update to v4.12.22
Paul Gortmaker released another 4.12-stable that comprises the following
changes:
23dcfbfbca0a Linux 4.12.22 d4879ce5efb7 arm64: Kill PSCI_GET_VERSION as a variant-2 workaround 77915e1a7544 arm64: Add ARM_SMCCC_ARCH_WORKAROUND_1 BP hardening support b06fbedb6e14 arm/arm64: smccc: Implement SMCCC v1.1 inline primitive 1f400b388a20 arm/arm64: smccc: Make function identifiers an unsigned quantity f5d3afa3aecc firmware/psci: Expose SMCCC version through psci_ops 4c69d3a66e60 firmware/psci: Expose PSCI conduit cfec930a45f8 arm64: KVM: Add SMCCC_ARCH_WORKAROUND_1 fast handling 9e9697733818 arm64: KVM: Report SMCCC_ARCH_WORKAROUND_1 BP hardening support 2a8574eb6e3f arm/arm64: KVM: Turn kvm_psci_version into a static inline 2c79f828dfed arm64: KVM: Make PSCI_VERSION a fast path 042626a87234 arm/arm64: KVM: Advertise SMCCC v1.1 48a9e563e528 arm/arm64: KVM: Implement PSCI 1.0 support 28283de68052 arm/arm64: KVM: Add smccc accessors to PSCI code 33d47367626b arm/arm64: KVM: Add PSCI_VERSION helper 82ca1dcebf95 arm/arm64: KVM: Consolidate the PSCI include files efb7c6b5b7f9 arm64: KVM: Increment PC after handling an SMC trap b720b7837ed8 arm64: Branch predictor hardening for Cavium ThunderX2 6f2750c7a1c9 arm64: Implement branch predictor hardening for Falkor b56fa11959a7 arm64: Implement branch predictor hardening for affected Cortex-A CPUs 5eb80f970c49 arm64: cputype: Add missing MIDR values for Cortex-A72 and Cortex-A75 cf45e77d8106 arm64: entry: Apply BP hardening for suspicious interrupts from EL0 e9c2f25bf62d arm64: entry: Apply BP hardening for high-priority synchronous exceptions b4f51ebd0fc3 arm64: KVM: Use per-CPU vector when BP hardening is enabled e8f7c5ba8c70 arm64: Move BP hardening to check_and_switch_context e2c124fa14e1 arm64: Add skeleton to harden the branch predictor against aliasing attacks ddd305f0fdf8 arm64: Move post_ttbr_update_workaround to C code 204d987e7143 drivers/firmware: Expose psci_get_version through psci_ops structure 8880e6380d91 arm64: cpufeature: Pass capability structure to ->enable callback 48017c15187b arm64: Run enable method for errata work arounds on late CPUs cf64258fb122 arm64: cpufeature: __this_cpu_has_cap() shouldn't stop early 7d550f8cb119 arm64: futex: Mask __user pointers prior to dereference b9d01590df34 arm64: uaccess: Mask __user pointers for __arch_{clear, copy_*}_user 1b74ca827ed3 arm64: uaccess: Don't bother eliding access_ok checks in __{get, put}_user 41b08b7c365b arm64: uaccess: Prevent speculative use of the current addr_limit 1736debe11ef arm64: entry: Ensure branch through syscall table is bounded under speculation 84e4780beea5 arm64: Use pointer masking to limit uaccess speculation d77d4c9aa433 arm64: Make USER_DS an inclusive limit b96ab81a6468 arm64: Implement array_index_mask_nospec() 21eb21937d8e arm64: barrier: Add CSDB macros to control data-value prediction da1217a79997 arm64: idmap: Use "awx" flags for .idmap.text .pushsection directives c20b48f5b7a3 arm64: entry: Reword comment about post_ttbr_update_workaround 15d4d37f7709 arm64: Force KPTI to be disabled on Cavium ThunderX 3489abd67e33 arm64: kpti: Add ->enable callback to remap swapper using nG mappings b154d9be8c6f arm64: mm: Permit transitioning from Global to Non-Global without BBM 1610bb019302 arm64: kpti: Make use of nG dependent on arm64_kernel_unmapped_at_el0() 250a3a64585f arm64: Turn on KPTI only on CPUs that need it 32da2aa26b97 arm64: cputype: Add MIDR values for Cavium ThunderX2 CPUs 93d290bbe8f1 arm64: kpti: Fix the interaction between ASID switching and software PAN 923618230c12 arm64: mm: Introduce TTBR_ASID_MASK for getting at the ASID in the TTBR 51218390beb6 arm64: capabilities: Handle duplicate entries for a capability 630cf7161fca arm64: Take into account ID_AA64PFR0_EL1.CSV3 4b7ebe5c3644 arm64: Kconfig: Reword UNMAP_KERNEL_AT_EL0 kconfig entry e09f32469091 arm64: Kconfig: Add CONFIG_UNMAP_KERNEL_AT_EL0 8202169d678a arm64: use RET instruction for exiting the trampoline 414d9eabda3d arm64: kaslr: Put kernel vectors address in separate data page fce92f180168 arm64: entry: Add fake CPU feature for unmapping the kernel at EL0 83584a583bff arm64: tls: Avoid unconditional zeroing of tpidrro_el0 for native tasks 4732b98b6400 arm64: cpu_errata: Add Kryo to Falkor 1003 errata 85dacaa58475 arm64: erratum: Work around Falkor erratum #E1003 in trampoline code bb0fa2f9cece arm64: entry: Hook up entry trampoline to exception vectors df7f7308d5f0 arm64: entry: Explicitly pass exception level to kernel_ventry macro 14bcc912ca7e arm64: mm: Map entry trampoline into trampoline and kernel page tables c30f47afaa64 arm64: entry: Add exception trampoline page for exceptions from EL0 21b891bf770f arm64: mm: Invalidate both kernel and user ASIDs when performing TLBI 09e8df92ba8e arm64: mm: Add arm64_kernel_unmapped_at_el0 helper 6832da386e60 arm64: mm: Allocate ASIDs in pairs bfd2ff25b585 arm64: mm: Fix and re-enable ARM64_SW_TTBR0_PAN 1e4477930e5e arm64: mm: Rename post_ttbr0_update_workaround 1e1890551573 arm64: mm: Remove pre_ttbr0_update_workaround for Falkor erratum #E1003 0223b2589432 arm64: mm: Move ASID from TTBR0 to TTBR1 9fe82f4ebdc3 arm64: mm: Temporarily disable ARM64_SW_TTBR0_PAN 199f832ebf00 arm64: mm: Use non-global mappings for kernel space e9b0e14af7e3 arm64: move TASK_* definitions to <asm/processor.h> cab5207f57fd brd: remove unused brd_mutex 7522521435a4 arm/syscalls: Optimize address limit check 797f169015c5 Revert "arm/syscalls: Check address limit on user-mode return" 3056c8f5be3a syscalls: Use CHECK_DATA_CORRUPTION for addr_limit_user_check 74116ef5625a arm64: add VMAP_STACK overflow detection 0d82fd80a2d1 arm64: add on_accessible_stack() c38502bc1472 arm64: add basic VMAP_STACK support c3a53247c1ff arm64: use an irq stack pointer 73dcb6d84040 arm64: assembler: allow adr_this_cpu to use the stack pointer 344a8e142697 arm64: factor out entry stack manipulation 59c4a6fb5606 efi/arm64: add EFI_KIMG_ALIGN 1a5300c6063f arm64: move SEGMENT_ALIGN to <asm/memory.h> 3969d302c52f arm64: clean up irq stack definitions f030f0edba48 arm64: clean up THREAD_* definitions 1f3c78245a4a arm64: factor out PAGE_* and CONT_* definitions 8a5bc40e0c93 arm64: kernel: remove {THREAD,IRQ_STACK}_START_SP deba543af0b8 fork: allow arch-override of VMAP stack alignment 774f64ce7b0f arm64: remove __die()'s stack dump 7342855775d5 arm64: unwind: remove sp from struct stackframe 553dbcbcff1d arm64: unwind: reference pt_regs via embedded stack frame 926b0fe43412 arm64: unwind: disregard frame.sp when validating frame pointer da32ad8b5c11 arm64: unwind: avoid percpu indirection for irq stack eac4e8ecdd77 arm64: move non-entry code out of .entry.text b341e176374e arm64: consistently use bl for C exception entry 3cdad1f0b9d0 arm64: Add ASM_BUG() 01ace65c9150 arm64/vdso: Support mremap() for vDSO 8050b6ba63cb arm64: Handle trapped DC CVAP 0ee09d69dc93 arm64: Expose DC CVAP to userspace 704046e3e554 arm64: Convert __inval_cache_range() to area-based b40935f19c73 arm64: mm: Fix set_memory_valid() declaration 29530b5b549e arm64: Abstract syscallno manipulation f9f1c9d7d767 arm64: syscallno is secretly an int, make it official ab69949ffe23 x86/tracing: Build tracepoints only when they are used 03793940e25c x86/tracing: Disentangle pagefault and resched IPI tracing key 2822852ed8a5 x86/idt: Clean up the i386 low level entry macros d5654eb18f73 x86/idt: Remove the tracing IDT completely 0d38071a05e7 x86/smp: Use static key for reschedule interrupt tracing 4ef6e0f37891 x86/smp: Remove pointless duplicated interrupt code 40b216cec86d x86/mce: Remove duplicated tracing interrupt code 03f41cf538fd x86/irqwork: Get rid of duplicated tracing interrupt code 418b9a493901 x86/apic: Remove the duplicated tracing versions of interrupts 5be95f8dfffe x86/irq: Get rid of duplicated trace_x86_platform_ipi() code bd936c5d828a x86/apic: Remove the duplicated tracing version of local_timer_interrupt() f4971407abbb x86/traps: Simplify pagefault tracing logic 2f436623b2c3 x86/tracing: Introduce a static key for exception tracing 4395735bf0a9 arm64/syscalls: Check address limit on user-mode return 3e1d12839e05 arm/syscalls: Check address limit on user-mode return 649cd48799ef x86/syscalls: Check address limit on user-mode return 8fe35f321cd3 audit: fix memleak in auditd_send_unicast_skb. 4b1e889a4dd0 arm64: ptrace: Flush user-RW TLS reg to thread_struct before reading 75a382c72d50 arm64: Add dump_backtrace() in show_regs
Also refresh 0001-replace-krb5-config-with-pkg-config.patch and drop
configure_ac.patch, which we've apparently been dragging along
unnecessarily for the past 5 years:
Martin Jansa [Thu, 24 May 2018 14:56:01 +0000 (14:56 +0000)]
perf: fix build with kernel older than 4.8
* perf is failing to build for me since this oe-core commit:
commit 9b38c824961fc9dce51bda95c25dac91a69fc64f
Author: Hongxu Jia <hongxu.jia@windriver.com>
Date: Tue Apr 24 11:33:47 2018 +0800
perf: make a copy of kernel source to perf workdir
the problem is that perf sources in kernel older than 4.8 (in my case
4.4) are depending on the "global" include headers outside tools
directory, e.g. swab.h in:
kernel-source/tools$ git grep swab.h
perf/MANIFEST:include/linux/swab.h
perf/MANIFEST:include/uapi/linux/swab.h
perf/util/include/asm/byteorder.h:#include "../../../../include/uapi/linux/swab.h"
this was resolved in 4.8 with:
commit 7e3f36411342a54f1981fa97b43550b8406a3d69
Author: Arnaldo Carvalho de Melo <acme@redhat.com>
Date: Mon Jul 18 17:42:16 2016 -0300
Not used anymore. This also stops include linux/swab.h directly
from the kernel sources, remove that reference from the MANIFEST.
and few more changes to make tools/include more complete and standalone:
tools/include in 4.15:
asm asm-generic linux tools trace uapi
tools/include in 4.4:
asm asm-generic linux tools
but copying the include header even for kernels which don't really
need it doesn't add big overhead, so just copy include to perf sources
for all kernels.
Haris Okanovic [Wed, 9 May 2018 14:59:58 +0000 (09:59 -0500)]
depmodwrapper-cross: Add kmod-native to DEPENDS
Add `DEPENDS += "kmod-native"` to ensure depmod utility is added to
recipe-sysroot-native during image build.
Without this dependency, image builds where BUILD_IMAGES_FROM_FEEDS=1
have depmodwrapper in recipe-sysroot-native but are missing depmod.
Kernel postinst scripts rely on depmod (via depmodwrapper) to index
newly installed modules.
systemd: backport patch to fix build when gcrypt is enabled
When gcrypt support is present in PACKAGECONFIG, build fails due to the bug
reported in [1]. Since this is already solved upstream, this commit backports
the corresponding patch.
Mike Crowe [Wed, 2 May 2018 13:38:03 +0000 (14:38 +0100)]
alsa-utils: Fix error when removing unwanted udev rules
If alsa-utils configure is not passed a --with-udev-rules-dir option then
it defaults to using /lib/udev/rules.d. This meant that the hard-coded use
of ${D}/lib in do_install in 262e69c9c7acf0beb7bb6b96299e3c993c906434
worked correctly to remove the unwanted rules.
This means that if udev is not present in PACKAGECONFIG and usrmerge is
present in DISTRO_FEATURES then the alsa-utils build system will install
the rules in ${D}/lib/udev/rules.d but do_install will attempt to remove
${D}/usr/lib, resulting in something like:
rmdir: failed to remove '.../tmp-glibc/work/i586-oe-linux/alsa-utils/1.1.5-r0/image/usr/lib': No such file or directory
To fix this, let's just tell configure to install the rules in a specific
known location when udev is disabled. This location can then easily be
cleaned up in do_install without doing any harm if udev is enabled.
Tested both with and without usrmerge in DISTRO_FEATURES and with and
without udev in PACKAGECONFIG.
Signed-off-by: Mike Crowe <mac@mcrowe.com> Cc: Phil Blundell <pb@pbcl.net> Cc: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
During Qemu guest migration, a destination process invokes ps2
post_load function. In that, if 'rptr' and 'count' values were
invalid, it could lead to OOB access or infinite loop issue.
Add check to avoid it.
perf: make a copy of kernel source to perf workdir
Since perf contaminates linux shared workdir, it probably caused
kernel-devsrc compile failure at world build.
...
|0 blocks
|cpio: ./tools/perf/arch/arm/util/sedr7ORqk: Cannot stat:
No such file or directory
|0 blocks
...
cpio tried to find a file at ${S}/tools/perf and failed
if the input list is not valid.
Make a copy of kernel shared source directory into a perf workdir
could fix the issue.
Joe Slater [Mon, 23 Apr 2018 17:21:42 +0000 (10:21 -0700)]
python3-native: correctly invoke regen-importlib make target
Redefiine regen-all in Makefile to invoke regen-importlib after
building other regen- targets. Change the recipe to not build it
before regen-all. This avoids trying to build it multiple times,
which can occasionally fail.
Ming Liu [Fri, 20 Apr 2018 07:32:56 +0000 (09:32 +0200)]
image_types_wic: add do_image_wic before do_image_complete
We have some tasks depending on image's do_image_complete task, and we
are also using WKS files to generate partitioned images, but now there
is lacking a inter dependency between do_image_wic and
do_image_complete, so we have to depend on both of them.
Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Niko Mauno [Fri, 20 Apr 2018 14:09:30 +0000 (17:09 +0300)]
mtd-utils: Complement update-alternatives scope
Avoid collision of mtd-utils and mtd-utils-ubifs provided binaries
with identically named BusyBox provided applets in case packages
are installed to same rootfs, by adding relevant binaries to
update-alternatives scope
Signed-off-by: Niko Mauno <niko.mauno@vaisala.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
linux-libc-headers: multilib_header asm/kvm_para.h and asm/bpf_perf_event.h
When building SDK via populate_sdk for qemuarm64 with multilib
enabled, we would have conflict about bits/floatn.h at populate_sdk
time.
file /usr/include/asm/bpf_perf_event.h conflicts between attempted installs of lib32-linux-libc-headers-dev-4.15.7-r0.armv7vehf_vfp and linux-libc-headers-dev-4.15.7-r0.aarch64
file /usr/include/asm/kvm_para.h conflicts between attempted installs of lib32-linux-libc-headers-dev-4.15.7-r0.armv7vehf_vfp and linux-libc-headers-dev-4.15.7-r0.aarch64
Apply oe_multilib_header on these header files to fix the problem.
Niko Mauno [Fri, 20 Apr 2018 14:09:28 +0000 (17:09 +0300)]
procps: Complement update-alternatives scope
Avoid collision of propcs provided w binary with BusyBox-provided
applet in case both are installed to same rootfs, by adding w to
update-alternatives scope via bindir_progs variable
Signed-off-by: Niko Mauno <niko.mauno@vaisala.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Where /bin/sh is dash, the recent toolchain scripts change fails as the $(pwd)
usage in oe-init-build-env doesn't function correctly. Fix this by saving
and restoring the cwd and calling the script within its own directory.
This fixes meta-ide-support on dash based systems.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
toolchain-scripts: preserve host path in environment setup script
The environment setup script generated in the build directory sets the PATH
variable by expanding ${PATH} which would have host paths filtered. Sourcing
this script to run runqemu will not work as it complains host stty (/bin/stty)
cannot be found.
To resolve this, the script no longer expands ${PATH} during generation time,
instead it will now source oe-init-build-env to initialize the build
environment so that all host paths will be preserved. Also be sure to prepend
STAGING_BINDIR_TOOLCHAIN to the PATH variable so that the toolchain from the
build directory can be found.
[YOCTO #12695]
Signed-off-by: Chin Huat Ang <chin.huat.ang@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Matt Madison [Sat, 21 Apr 2018 13:19:37 +0000 (06:19 -0700)]
go-runtime_1.9: pass BUILD_ flags to cgo for host-side build
When running the make.bash script to build the host-side
tools, make sure that cgo is using CFLAGS and LDFLAGS for
the build host, rather than those for the target.
[YOCTO #12704]
Signed-off-by: Matt Madison <matt@madison.systems> Signed-off-by: Ross Burton <ross.burton@intel.com>
Richard Purdie [Fri, 20 Apr 2018 07:25:32 +0000 (08:25 +0100)]
package: Fix PACKAGELOCK handling
PACKAGELOCK is there to protect readers of PKGDATA_DIR from writes and files
changing whilst they're being read. With various changes to the codebase,
the lock code has become confused as the files are now written by the sstate
code in do_packagedata, not in do_package directly any longer.
This change cleans up the code so read sites take the shared lock (anything in
do_package), write sites take the full lock (do_packagedata sstate).
The lock from do_package sstate is no longer needed since it doesn't write
outside WORKDIR.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Ross Burton <ross.burton@intel.com>
When specifying several -fdebug-prefix-map command line options to
gcc, they are evaluated right to left (last one first).
Normally, the order is irrelevant. However, when we try to map both:
recipe-sysroot-native
recipe-sysroot
the order matters. With the original order most of our debug packages contain
incorrect debug symbols.
Take for example /usr/bin/.debug/setfacl from acl-dbg:
Reordering the fdebug-prefix-map arguments will give us the correct paths:
/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/7.3.0/include
Note there may be additional an incorrect paths, such as:
/usr/src/debug/glibc/2.27-r0/recipe-sysroot-native/usr/lib/x86_64-poky-linux.gcc-cross-initial-x86_64/gcc/x86_64-poky-linux/7.3.0/include
But that one needs to be fixed in the recipe for glibc.
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
mingw build was broken by the commit:
"glib-2.0/glib.inc: apply MLPREFIX renaming to all package classes"
When building for mingw, we encounter build errors such as:
mv: cannot stat '<builddir>/<...>/usr/libexec/gio-querymodules': No such file or directory
The mingw file that exists is "gio-querymodules.exe" instead of "gio-qeurymodules".
The fix is to append the names of executables by an OS specific EXEEXT.
[YOCTO #12679]
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Thu, 19 Apr 2018 10:53:14 +0000 (11:53 +0100)]
wic/imager/direct: Ensure correct ROOTFS_DIR is shown
This changes the output of "wic create mkefidisk -e core-image-sato" from:
The following build artifacts were used to create the image(s):
ROOTFS_DIR: /media/build1/poky/build/tmp.wic.ybraavmb/rootfs_copy
to:
The following build artifacts were used to create the image(s):
ROOTFS_DIR: /media/build1/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato/1.0-r0/rootfs
which s much less confusing for the user.
[YOCTO #12564]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
oe-selftest: runqemu: add tests for qemu boot and shutdown
QA team were testing qemu boot image and shutdown on each
qemu architecture manually. Add automated test to test qemu boot on
ext4 and nfs, finally check that it can shutdown properly.
Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
openssh: disable ciphers not supported by OpenSSL DES
While compiling openssl with option `no-des', it caused the openssh
build failure
...
cipher.c:85:41: error: 'EVP_des_ede3_cbc' undeclared here (not in a function);
...
OpenSSL configured that way defines OPENSSL_NO_DES to disable des
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Richard Purdie [Wed, 18 Apr 2018 10:38:06 +0000 (11:38 +0100)]
uninative: Set the dynamic linker to use at compile time
Its possible some dynamic runtime library in the dependency chain may
come from sstate and link to libraries which need the libc from
uninative. If we don't do this and binaries are run at do_install time
they would fail to find the symbols from the later libc. Examples:
cmake-native do_install:
bin/cmake: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by TOPDIR/tmp/work/x86_64-linux/cmake-native/3.10.3-r0/recipe-sysroot-native/usr/lib/libexpat.so.1)
dbus-native do_install:
tmp/work/x86_64-linux/dbus-native/1.12.2-r0/build/bus/.libs/lt-dbus-daemon: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x32/build/build/tmp/work/x86_64-linux/dbus-native/1.12.2-r0/recipe-sysroot-native/usr/lib/libexpat.so.1)
This issue is resolved when the interpreter is changed at sstate unpack
time but this isn't soon enough to avoid issues at compile/install time.
By specifing which dynamic linker/loader to use at compile time, this
race window is removed entirely.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Tue, 17 Apr 2018 14:42:31 +0000 (15:42 +0100)]
uninative: Add allow-shlib-undefined to BUILD_LDFLAGS and drop other workarounds
We have a problem when for example, a glibc 2.27 based system builds some
library like libpopt-native and puts it into sstate then it is reused
on a pre glibc-2.27 system to build something which depends on popt like
rpm-native. This results in an error like:
recipe-sysroot-native/usr/lib/libpopt.so: undefined reference to `glob@GLIBC_2.27'
In the past we've had this problem with new symbols like getrandom and
getentropy, here its with a more complex symbol where there is an old
version and a newer version.
We've looked into various options, basically we cannot link against our
uninative libc/ld.so since we don't have the right headers or compiler
link libraries. The compiler doesn't allow you to switch in a new set
either, even if we did want to ship them. Shipping a complete compiler,
dev headers and libs also isn't an option.
On the other hand if we follow the ld man page, it does say:
"""
The reasons for allowing undefined symbol references in shared libraries
specified at link time are that:
- A shared library specified at link time may not be the same as the one
that is available at load time, so the symbol might actually be
resolvable at load time.
"""
which is exactly this case. By the time the binary runs, it will use
our uninative loader and libc and the symbol will be available.
Therefore we basically have a choice, we get weird intermittent bugs,
we drop uninative entirely, or we pass this option.
If we pass the option, we can drop the other workarounds too.
Richard Purdie [Fri, 13 Apr 2018 16:08:10 +0000 (17:08 +0100)]
bitbake.conf: Set and export TZ envvar to UTC
We just ran into an issue where tar failed to build on one server setup
but built everywhere else just fine.
It was running makeinfo to regenerate some docs files and makeinfo was too
old for the host it was running on. There was no dependency on makeinfo-native
as it was not meant to be regenerating the docs.
It was being regenerated as a date from a timestamp used in the docs
was different in Asian timezones than in the other timezones our builds
were being tested in.
I added an entry to https://wiki.yoctoproject.org/wiki/TipsAndTricks/
about how this was debugged.
As such, lets default to setting and exporting TZ to 'UTC' as was already
pioneered by the reproducibile builds work. This makes the builds
deterministic.
Mark Hatle [Mon, 16 Apr 2018 15:34:18 +0000 (11:34 -0400)]
package.bbclass: Add '-b' option to file call in isELF
The isELF function works by running:
result = file <pathname>
if 'ELF' in result
By default 'file' will prepend the result with the path name of the file
that is being checked. This usually works fine, such as:
$ file /home/foo/openembedded-core/meta/classes/package.bbclass
/home/foo/openembedded-core/meta/classes/package.bbclass: Python script, ASCII text executable, with very long lines
However, if the path includes 'ELF', ELF will end up in the result, and then
the check will return positive.
$ file /home/ELF/openembedded-core/meta/classes/package.bbclass
/home/ELF/openembedded-core/meta/classes/package.bbclass: Python script, ASCII text executable, with very long lines
This will then result in the isELF coming back true, and possibly causing the
checks that use isELF, such as the 'is it already stripped' check, to do the
incorrect thing.
Adding the '-b' option to file will result in the path being omitted in the
result:
$ file /home/ELF/openembedded-core/meta/classes/package.bbclass
Python script, ASCII text executable, with very long lines
Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Change this to rather test if pi_dir is not an existing directory. By
doing we remove the chance of seeing the following console error message
during first boot to a pristine rootfs:
'ls: /etc/ipk-postinsts: No such file or directory'
Signed-off-by: Niko Mauno <niko.mauno@iki.fi> Signed-off-by: Ross Burton <ross.burton@intel.com>
Conditionally support binary reproducibility of rootfs images.
If REPRODUCIBLE_TIMESTAMP_ROOTFS is specified then:
1. set /etc/timestamp to a reproducible value
2. set /etc/version to a reproducible value
3. set /etc/gconf: set mtime in all %gconf.xml to reproducible values
The reproducible value is taken from the variable REPRODUCIBLE_TIMESTAMP_ROOTFS.
[YOCTO #11176]
[YOCTO #12422]
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
core-image-minimal-initramfs: use initramfs-framework for initialization
initramfs-framework is more modular and expandable. This change was
proposed in commit 28fc6ba761ed4a47efa7c43e7f7dff5e2fe72b5e
"core-image-minimal-initramfs: use initramfs-framework by default" but
reverted due to the selftests runqemu.RunqemuTests.test_boot_machine_iso
and runqemu.RunqemuTests.test_boot_deploy_hddimg failing. Since then,
the kinks have been worked out, and missing functionality that had been
missed (non-EFI installation module) has been added.
Since the PACKAGE_INSTALL variable was getting so long with all these
individual modules getting added, I also introduced a new
INITRAMFS_SCRIPTS variable to the core-image-minimal-initramfs recipe.
This variable makes the recipe look much cleaner, and also allows easier
replacement or additions to the scripts.
Fixes [YOCTO #10987].
Signed-off-by: California Sullivan <california.l.sullivan@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
The patch chardev-connect-socket-to-a-spawned-command.patch calls
"socketpair". This function is missing in mingw, so the patch
needs to be modified accordingly (by conditional compilation using
_WIN32 macro where appropriate), otherwise we end up with a broken
mingw build.
While it is possible to simply remove the whole patch for mingw build
(via a .bbappend file in meta-mingw), it makes more sense to modify
the patch itself.
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Victor Kamensky [Tue, 3 Apr 2018 15:25:01 +0000 (08:25 -0700)]
oeqa/runtime/stap.py: add runtime test for systemtap
Add runtime test for stap to test basic SystemTap
operations: can compile very basic module and run on
target device.
Note we disable (-DSTP_NO_VERREL_CHECK) SystemTap
additional kernel release check since during OE testing
mismatching kernel-devsrc and kernels are used.
Signed-off-by: Victor Kamensky <kamensky@cisco.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Martin Jansa [Wed, 11 Apr 2018 17:55:32 +0000 (17:55 +0000)]
scripts/test-dependencies.sh: remove
* with RSS used in pyro this script isn't very useful anymore
* RSS makes sure that the dependencies are almost always deterministic
the only case known to me where dependencies are different based on
what was already built in TMPDIR are runtime dependencies resolved
by shlibs code in package.bbclass (which is using global pkgdata, not
specific to given recipe and its RSS) as described here:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=9217#c4
but for this case it's not worth running complete test-dependencies.sh
runs
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Ramon Fried [Tue, 10 Apr 2018 11:20:40 +0000 (14:20 +0300)]
xserver-nodm-init: Respawn service in case of failure
It appears that sometimes xserver-nodm.service is starting before
display driver finished loading causing the following failure in
Xorg log:
(EE) open /dev/dri/card0: No such file or directory
The introduced by this patch is to restart the service,
hopefully the display driver will finish loading.
Signed-off-by: Ramon Fried <rfried@codeaurora.org> Signed-off-by: Ross Burton <ross.burton@intel.com>
Zhixiong Chi [Wed, 11 Apr 2018 08:26:18 +0000 (16:26 +0800)]
valgrind: fix the shared object issue while prelink ptest
If valgrind-ptest is installed, we will get the some prelink error
like below at do_image:
.../usr/sbin/prelink: /usr/lib64/valgrind/ptest/memcheck/tests/wrap7:\
Could not find one of the dependencies: \
.../usr/sbin//prelink-rtld: error \
while loading shared libraries: wrap7so.so: cannot open shared \
object file: No such file or directory
The wrap7 needs to link the shared object in the path
/usr/lib64/valgrind/ptest/memcheck/tests, but it fails.
So we correct the path for ptest.
Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com> Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Otavio Salvador [Wed, 11 Apr 2018 14:32:52 +0000 (11:32 -0300)]
distro: default: Change Go default version to 1.9
For the time being, there is a serious bug[1] in Go 1.10 when it comes to
use the shared runtime support which cases problems in multiple projects.
1. https://github.com/golang/go/issues/24640
It is still unclear if the problem arises from a bug inside the
compiler itself or it makes a real problem more visible. Either way,
using 1.10 as default seems to be a risk so we are changing back to
1.9 for now.
Refs: [YOCTO: #12631]
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Ross Burton <ross.burton@intel.com>
* Fix arbitrary command execution in ed-style patches:
- src/pch.c (do_ed_script): Write ed script to a temporary file instead
of piping it to ed: this will cause ed to abort on invalid commands
instead of rejecting them and carrying on.
- tests/ed-style: New test case.
- tests/Makefile.am (TESTS): Add test case.
Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* Fix segfault with mangled rename patch
- src/pch.c (intuit_diff_type): Ensure that two filenames are specified
for renames and copies (fix the existing check).
Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Improve reporting when the icecream environment cannot be created by
assigning the flock call a specific error number when the lock fails so
it can be distinguished from environment creation errors.
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Shared libraries sometimes (frequently?) don't have a program
interpreter specified. The previous code would fail to find the library
dependencies in these cases because no interpreter could be found.
Commonly, this meant that if a library depends on another library, it
might not be included toolchain because dependency scanning stops with
the first one.
Instead, capture the program interpreter from the program or library
that starts the dependency chain and use that interpreter to get all of
the dependencies in the chain, recursively.
Additionally, if no interpreter can be found, fallback to using ldd
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Some newer libraries and programs use RUNPATH to specify the library
search path. These executables were being skipped by the rpath fixup
code because it was grepping the ELF header for RPATH only. A more
correct solution is to ask patchelf to report the rpath, as that tool
will properly report either RPATH or RUNPATH as appropriate.
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Modifies the icecc-create-env script so that it can log output to a log
file. In addition, a --debug flag is added that allows verbose logging.
Finally, the silent flag was removed since it was never used in
icecc.bbclass
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Jaewon Lee [Tue, 10 Apr 2018 21:26:47 +0000 (14:26 -0700)]
gconf: fix saving of settings when config folder doesnt exist
In some circumstances, gconf isn't able to save configurations
because ~/.config folder aka root_dir doesn't exist.
For example when saving settings using matchbox-appearance,
the following error is shown:
GConf Error: Configuration server couldn't be contacted: D-BUS error:
Can't overwrite existing read-only value: Value for
`/desktop/poky/interface/font_name' set in a read-only source at the
front of your configuration path
This issue was not seen before because ~/.config directory is shared
between several packages and one of those packages usually creates it
by the time gconf wants to use it.
This patch makes sure that gconf creates the .config directory if it
doesn't exist, along with the gconf directory inside it.
[YOCTO #12632]
Signed-off-by: Alejandro Hernandez <alejandr@xilinx.com> Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Tom Hochstein [Mon, 9 Apr 2018 16:20:32 +0000 (11:20 -0500)]
python3: Add recommended modules to nativesdk install
The python3 installation in the SDK did not include the minimum set
of modules to be functional, particularly in the case where Python
is brought in through dependencies. Rather than requiring the user
to explicitly add the modules, it's better to pull in the modules
through RRECOMMENDS. Note that the Python 2 recipe already does
this.
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
"srcversion" field inserted into module modinfo section contains a
sum of the source files which made it. However, this field can
be incorrect. Building the same module can end up having inconsistent
srcversion field eventhough the sources remain the same.
This can be reproduced by building modules in a deeply nested directory,
but other factors contribute as well.
The reason for incorrect srcversion is that some source files can be
simply silently skipped from the checksum calculation due to limited
buffer space for line parsing.
This patch addresses two issues:
1. Allocates a larger line buffer (32k vs 4k).
2. Issues a warning if a line length exceeds the line buffer.
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Updates to 4.14 via the -stable releases have also introduced the same
dependencies to 4.14's "make scripts". As such, we bring the same lines
into 4.14 to restore the ability to build scripts.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Ross Burton [Mon, 9 Apr 2018 15:17:05 +0000 (16:17 +0100)]
populate_sdk_base: use xz -T instead of pixz
xz has native support for threaded compression now and SDK creation was the only
part of oe-core which is using pixz instead of xz.
Not only does this remove pixz-native from the SDK dependencies, but in my
limited testing xz -T0 is slightly faster and produces smaller archives than
pixz for the same input.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Ross Burton [Tue, 10 Apr 2018 14:32:19 +0000 (15:32 +0100)]
image_types: use pigz to create .gz files
Since pigz is no longer a drop-in replacement for gzip (oe-core 1624b7b) the
image creation has been using gzip instead of pigz, despite still depending on
pigz-native. Fix this by invoking pigz explicitly.
Signed-off-by: Ross Burton <ross.burton@intel.com>
linux-firmware: fix the mess of licenses
* LICENSE_CREATE_PACKAGE functionality in license.bbclass when enabled
adds new package with suffix:
LICENSE_PACKAGE_SUFFIX ??= "-lic"
but then it checks if ${PN}-${LICENSE_PACKAGE_SUFFIX} is included
in PACKAGES before adding it and when found it shows:
WARNING: linux-firmware-1_0.0+gitAUTOINC+4c0bf113a5-r0 do_package: linux-firmware-lic package already existed in linux-firmware.
and doesn't add the ${PN}-lic to PACKAGES and causes another warning:
WARNING: linux-firmware-1_0.0+gitAUTOINC+4c0bf113a5-r0 do_package: QA Issue: linux-firmware: Files/directories were installed but not shipped in any package:
/usr
/usr/share
/usr/share/licenses
/usr/share/licenses/linux-firmware
that's because it was searching ${PN}-lic in PACKAGES as a string
so it found ${PN}-lic as a substring of ${PN}-license, add a split
to search in an list
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Martin Jansa [Mon, 9 Apr 2018 07:51:41 +0000 (07:51 +0000)]
libxcrypt: add -std=gnu99 to BUILD_CPPFLAGS
* add it to allow older distributions e.g. Ubuntu 14.04 with gcc 4.8
to build this, otherwise it fails with:
../git/gen-des-tables.c: In function 'write_table_u8':
../git/gen-des-tables.c:307:3: error: 'for' loop initial declarations are only allowed in C99 mode
for (size_t i = 0; i < m; i++)
^
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>