aboutsummaryrefslogtreecommitdiffstats
path: root/meta-initramfs
AgeCommit message (Collapse)Author
2019-10-08Add zeus compatibility to all layer.conf filesPalmer Dabbelt
I have no idea if this is the right thing to do, but without the patch I can't actually buil OE because none of these layers are compatible with the change in openembedded-core to move to zeus. Fixes: a5c9709b8d ("layer.conf: Update for zeus series") # openembedded-core Signed-off-by: Palmer Dabbelt <palmer@dabbelt.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-09-03klibc: Fix build with 5.2+ kernel headersKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-08-30Remove LICENSE = "MIT" from packagegroups and imagesAdrian Bunk
This is the default in the packagegroup and image classes. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-08-30grubby: support usrmergeChangqing Li
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-08-17grubby: Add bash to rdepsKhem Raj
Fixes ERROR: QA Issue: /sbin/new-kernel-pkg contained in package grubby requires /bin/bash, but no providers found in RDEPENDS_grubby? [file-rdeps] I wonder if new-kernel-pkg should be packaged at all, but dracut might need to be cleaned first to not need it Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-08-17klibc: Disable bcmp builtin for clang on glibc as wellKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-08-08klibc: Pass -fno-builtin-bcmp with musl/clang comboKhem Raj
clang would emit bcmp built-in for musl bases system but here we do not link in musl C library, so its best to disable it Fixes git/usr/klibc/memmem.c:38: undefined reference to `bcmp' Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
2019-08-03klcc-cross: Recognise --unwindlib clang optionKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
2019-07-21kexec-tools-klibc: Refresh patch with no code changeKhem Raj
Fixes kexec-tools-klibc-2.0.18+gitAUTOINC+5750980cdb: Patch log indicates that patches do not apply cleanly. [patch-fuzz] Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-06-21dracut: fix generated initramfs boot failure under bash 5Hongxu Jia
If shebang is set to /bin/sh and /bin/sh is a symlink to /bin/bash, bash turn on posix mode. Since bash is upgraded to 5.0, it follows 'IEEE 1003.2 POSIX Shell Standard', to implement 'functions do not have local traps or options, and it is not possible to define local variables' For more detail, see variables.c:push_posix_temp_var in the following commit http://git.savannah.gnu.org/cgit/bash.git/commit/?id=d233b485e83c3a784b803fb894280773f16f2deb The IEEE 1003.2 POSIX Shell Standard: https://www.cs.ait.ac.th/~on/O/oreilly/unix/ksh/appa_02.htm Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-04-06dracut: fix udevdir not foundHongxu Jia
In commit [9d1b81c dracut.sh: improve udevdir and systemdutildir fallback logic], it checked a common binary `collect' to localte udevdir. While upgrading systemd to 241, it dropped binary `collect'. [https://github.com/systemd/systemd/commit/a168792c2d95695fd30c0371d4b3890a9df1eafb] So check binary `ata_id' to instead. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-04-01layer.conf: Add warrior to compatible release seriesKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-15klibc.bbclass: Add libc-klibc to overridesKhem Raj
We can use this to apply klibc specific patches Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-15kexec-tools,kexec: Fix build with latest klibcKhem Raj
klibc has changed its signature of reboot() API adapt the use here Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-14klibc: Upgrade to 2.0.6 releaseKhem Raj
Drop staging related patches which are not needed anymore Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
2019-01-13meta-initramfs: remove True option to getVar calls (again)André Draszik
A couple have still been missed in the past despite multiple attempts at doing so (or simply have re-appeared?). Search & replace made using the following command: sed -e 's|\(d\.getVar \?\)( \?\([^,()]*\), \?True)|\1(\2)|g' \ -i $(git grep -E 'getVar ?\( ?([^,()]*), ?True\)' \ | cut -d':' -f1 \ | sort -u) Signed-off-by: André Draszik <andre.draszik@jci.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-01-13meta-initramfs: add pkg group and imageArmin Kuster
Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-12-20kexecboot: update to latest master (7409a1e0aaea)Andrea Adami
implemening --no-dtb option for older mips/mipsel Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-12-18kexec-tools-klibc: implement the --no-dtb option for older mips kernelsAndrea Adami
Fix borrowed from LEDE-DEV. Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-12-12kexec-tools-klibc: update to 2.0.18Andrea Adami
Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-12-10kexec-tools-klibc: fix build for mipsel and mips64elAndrea Adami
Builds with little endianness were not tested before. Fix for: purgatory.c:2:10: fatal error: limits.h: No such file or directory Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-12-09klibc: Fix build with clangKhem Raj
Newer versions of clang optimize the calls to use unlocked variants of these functions Fixes | capabilities.c:(.text+0xb4): undefined reference to `fread_unlocked' | arm-yoe-linux-gnueabi-ld.bfd: capabilities.c:(.text+0x11a): undefined reference to `fwrite_unlocked' Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
2018-12-04klibc: fix build for mipsel and mips64el with security flags enabledAndrea Adami
Fix relocations like: | mipsel-oe-linux-musl-ld.bfd: usr/klibc/libc.a(kill.o): relocation R_MIPS_26 against `__syscall_common' can not be used when making a shared object; recompile with -fPIC Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-10-16dracut: 048->049Hong Liu
Upgrade dracut from 048 to 049. Signed-off-by: Hong Liu <hongl.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-10-10klibc-static-utils: really fix build for x86 with security flags enabledAndrea Adami
There were some shared binaries built together with the static ones and this was leading to the infamous: i586-oe-linux-musl-ld.bfd: discarded output section: `.got.plt' Fix this by purging the Kbuild files. Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-30layers: Update layer compatibility to thudKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andreas Müller <schnitzeltony@googlemail.com> Cc: Derek Straka <derek@asterius.io> Cc: Tim Orling <TicoTimo@gmail.com> Cc: Hongxu Jia <hongxu.jia@windriver.com> Cc: Armin Kuster <akuster808@gmail.com> Cc: Joe MacDonald <joe_macdonald@mentor.com> Cc: Andrea Adami <andrea.adami@gmail.com>
2018-09-25klibc.inc: lazy assign GCCPIE in case security_flags.inc was not includedAndrea Adami
fix build error (GCCPIE is unset): EXTRA_KLIBCAFLAGS=${SECURITY_CFLAGS} -Wa,--noexecstack EXTRA_KLIBCLDFLAGS=${@-z relro -z now -pie if else } -z noexecstack | make: invalid option -- 'z' | make: invalid option -- ' ' Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-17klibc-utils: remove the two static binaries (kinit and gzip)Andrea Adami
The shared utils can be built with security flags enabled. This breaks however build of kinit and gzipm both static. Remove them from this recipe. Fix QA Issue: 'klibc-utils-gzip/bin/gzip' has relocations in .text [textrel] 'klibc-utils-kinit/bin/kinit' has relocations in .text [textrel] Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-17klibc-static-utils: fix textrel, disable security flags for the static utilsAndrea Adami
Fix WARNING: klibc-static-utils-2.0.4-r0 do_package_qa: QA Issue: ELF binary 'X' has relocations in .text [textrel] Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-15klibc: fix build with GCC and -pie for mips, mips64, aarch64Andrea Adami
The MCONFIG makefiles for mips/mips64 do disable pic so we do not insist linking it with -pie. For aarch64 we have to readd the -Os optimization to avoid | usr/dash/shell.h:103:25: error: '-mgeneral-regs-only' is incompatible with floating-point argument as committed (c296fb707ae3 klibc: Pass Optimization with KLIBCOPTFLAGS) but reverted (76bc58e9329 klibc: Fix build with security flags) trying to fix the i386 build (see ld.bfd: discarded output section: `.got.plt'). This latter issue was fixed for i386 passing -pie to the linker. Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-15klibc: fix build on i386 with GCC and security flags enabledAndrea Adami
ld fails if distro's security-flags are enabled: Inject the SECURITY_XFLAGS if security_flags.inc was included. Fix on i386: ld: discarded output section: `.got.plt' Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-14kexec-tools-klibc: Deliberately add -O2Khem Raj
This helps the compiler to be more aggressive and do the expected optimizations to remove unused code which otherwise gets flagged on some architectures e.g. armv7l errors like undefined reference to `bad_unaligned_access_length' Also see http://lists.infradead.org/pipermail/kexec/2009-August/003488.html Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
2018-09-11klibc: Fix build with security flagsKhem Raj
Drop -Os which is also causing the relro Fixes | x86_64-bec-linux-musl-ld.bfd: discarded output section: `.got.plt' Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
2018-09-09klcc-cross: Recognise clang optionsKhem Raj
Let klcc understand '-no-integrated-as' which is a clang option used by meta-clang for compiler defaults Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
2018-09-08kexecboot-cfg: add new options for DTB and CMDLINEAndrea Adami
Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-08kexecboot: upgrade to rev. 4c01d6960aa6Andrea Adami
Remove upstreamed patches, get new options for kexec. Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-06kexec-tools-klibc: remove unneeded aarch64 patchAndrea Adami
Remove temporary development leftover (hack). Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-05kexec-tools-klibc: remove unneeded x86-64 patchAndrea Adami
The issue with -mcmodel=large is already solved by the oe-core's patch "kexec-x32.patch" so we can remove this one. Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-05kexec-tools-klibc: fix build for qemuarm64Andrea Adami
Since c3f043241a86 upstream the getrandom() syscall is used. Last recipe bump overlooked that. The syscall has been added to OE's klibc so we can fix this. Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-05kexec-tools-klibc: rebase x86-64 patch to remove -mcmodel=largeAndrea Adami
Patch did not apply after upgrade to latest master. Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-05kexec-tools-klibc: enable kexec_file_load() for supported archsAndrea Adami
The syscall has been added to klibc. Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-05klibc_2.0.4: add kexec_file_load() and getrandom() syscallsAndrea Adami
Needed by kexec-tools afer 2.0.17 Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-05kexec-tools-klibc: rebase x86_kexec_test.patchAndrea Adami
After last upgrade this patch does not apply anymore. Replace the previous hack just commenting out the two lines (package vmcore-dmesg as well). Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-31kexec-tools-klibc: add kexec-x32.patch from oe-coreAndrea Adami
This is the last patch borrowed from the actual oe-core recipe. Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-31kexec-tools-klibc: package vmcore-dmesg-klibcAndrea Adami
Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-31kexec-tools-klibc: sync patches with oe-coreAndrea Adami
Following patches have been imported: 0001-Disable-PIE-during-link.patch 0001-purgatory-Pass-r-directly-to-linker.patch The two above are in the now modified 0011-purgatory-Makefile-adapt-to-klcc.patch These two have been imported and renamed: 0002-powerpc-change-the-memory-size-limit.patch 0010-kexec-ARM-Fix-add_buffer_phys_virt-align-issue.patch Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-31kexec-tools-klibc: upgrade to latest masterAndrea Adami
as of b9de21ef51a7ceab7122a707c188602eae22c4ee we can remove obsoleted kdump and get the --no-checks option. Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-31kexec-tools-klibc: fix kexec_load() syscall workaroundAndrea Adami
As soon as klibc adds kexec_file_load() syscall we can rework this patch. Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-27Update maintainersKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Martin Jansa <Martin.Jansa@gmail.com> Acked-by: Andreas Müller <schnitzeltony@gmail.com> Acked-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-21kexec-tools-klibc: rework Makefile patch for purgatoryAndrea Adami
Replace previous hack, wrap linker LDFLAGS for compatibility with klcc. Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>