summaryrefslogtreecommitdiffstats
path: root/meta-initramfs
Commit message (Collapse)AuthorAgeFilesLines
* klibc: Use libgcc for compiler runtime with clang on armHEADmasterKhem Raj2 days1-0/+4
| | | | | | Fixes build errors seen building klibc linking recipes Signed-off-by: Khem Raj <raj.khem@gmail.com>
* dracut: add 'git' recipe with DEFAULT_PREFERENCE = -1Koen Kooi2025-07-041-0/+106
| | | | | | | | | | | | | | | | | | This updates to a revision that has PR1260, which uses ELF entries to get dependencies instead of (cross-)ldd. This makes it useable as a tool to generate initramfses using cross tools, in e.g. do_rootfs. Since this is not using a tagged release and changes the base logic, add it as a non-default option using DEFAULT_PREFERENCE = -1. Extend to native(-sdk) to accomplish just that. The host-built initramfs (using a custom bbclass) as well as the on-target built initramfs have been tested on qrb2210-rb1-core-kit and qcs6490-rb3gen-core-kit machines and work as intented. Signed-off-by: Koen Kooi <koen.kooi@oss.qualcomm.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta-openembedded/all: adapt to UNPACKDIR changesAlexander Kanavin2025-06-258-10/+3
| | | | | | | | | | | | | Please see https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265 for what changes are needed, and sed commands that can be used to make them en masse. I've verified that bitbake -c patch world works with these, but did not run a world build; the majority of recipes shouldn't need further fixups, but if there are some that still fall out, they can be fixed in followups. Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* reproducibility: move known non-repro list to layer.confYoann Congal2025-06-201-3/+0
| | | | | | | | | | | | | | | | | | | | | | The current include file that stores the known non-reproducible packages is layer dependent and that forces the user of the layers to maintain the list of the files (for example, see AB config[0]). By moving the exclude list to each layer.conf and extending the common OEQA_REPRODUCIBLE_EXCLUDED_PACKAGES variable, the known non-reproducible packages will be automatically excluded for each layer used in the reproducibility test without any special knowledge in the test environment. NB: the empty list for meta-initramfs was just removed not moved. [0]: https://git.yoctoproject.org/yocto-autobuilder-helper/tree/config.json?id=7d8933e75bdf7fb821a25617cb2dcabf1f3f8700#n322 Suggested-by: Quentin Schulz <quentin.schulz@cherry.de> Co-Developed-by: Guillaume Swaenepoel <guillaume.swaenepoel@smile.fr> Signed-off-by: Guillaume Swaenepoel <guillaume.swaenepoel@smile.fr> Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* dracut: set DRACUT_FULL_VERSION to PVChangqing Li2025-05-291-1/+1
| | | | | | | | | | | | | | | RACUT_FULL_VERSION is conditional assigned in Makefile as below: DRACUT_FULL_VERSION ?= $(shell env GIT_CEILING_DIRECTORIES=$(CURDIR)/.. git describe --tags --always 2>/dev/null || :) When build from git shallow tarball, since tag info is not included, 956c087 is returned. This will make dracut version in dracut.pc different with build from git repo. Set DRACUT_FULL_VERSION to PV, to improve reproducibility for this recipe, and also fix the version mismatch warning Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fix broken symlink in dracut config examplesHongxu Jia2025-05-222-0/+45
| | | | | | | | | | | | | | | | | | | | | | Due to commit [1], it installs dracut config examples under /usr. But while enable_test=no, the symlink of test in dracut config is broken ... root@qemux86-64:~# ls /usr/lib/dracut/dracut.conf.d/test* -ahl lrwxrwxrwx 1 root root 27 Apr 5 2011 /usr/lib/dracut/dracut.conf.d/test -> ../test/dracut.conf.d/test/ lrwxrwxrwx 1 root root 36 Apr 5 2011 /usr/lib/dracut/dracut.conf.d/test-makeroot -> ../test/dracut.conf.d/test-makeroot/ lrwxrwxrwx 1 root root 31 Apr 5 2011 /usr/lib/dracut/dracut.conf.d/test-root -> ../test/dracut.conf.d/test-root root@qemux86-64:~# realpath /usr/lib/dracut/dracut.conf.d/test* realpath: /usr/lib/dracut/dracut.conf.d/test: No such file or directory realpath: /usr/lib/dracut/dracut.conf.d/test-makeroot: No such file or directory realpath: /usr/lib/dracut/dracut.conf.d/test-root: No such file or directory ... This commit cleans up test symlink if enable_test=no [1] https://github.com/dracut-ng/dracut-ng/commit/0d369e3e30935dffe48dfff1e90463868e7f804a Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kexecboot: fix build error with gcc-15mark.yang2025-04-242-1/+94
| | | | | | | | | | | | | | | | | | | | | * fix following errors: ../../git/src/fb.c: In function 'fb_new': ../../git/src/fb.c:646:17: error: too many arguments to function 'fb_destroy'; expected 0, have 1 646 | fb_destroy(fb); | ^~~~~~~~~~ ~~ ../../git/src/fb.c:391:6: note: declared here 391 | void fb_destroy() | ^~~~~~~~~~ ../../git/src/tui.c:102:9: error: conflicting types for 'tui_init'; have 'kx_tui *(FILE *)' 102 | kx_tui *tui_init(FILE *ts) | ^~~~~~~~ In file included from ../../git/src/tui.c:40: ../../git/src/tui.h:36:9: note: previous declaration of 'tui_init' with type 'kx_tui *(void)' 36 | kx_tui *tui_init(); ... Signed-off-by: mark.yang <mark.yang@lge.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* klibc.bbclass: Add spaces around assignmentKhem Raj2025-04-191-3/+8
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* layers: Add whinlatter (5.3) to compatible layer seriesKhem Raj2025-04-111-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Drop styhead from LAYERSERIES_COMPATKhem Raj2025-03-311-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* grubby: Do not inherit autotools classKhem Raj2025-03-211-1/+10
| | | | | | The package uses simple Makefile for building Signed-off-by: Khem Raj <raj.khem@gmail.com>
* dracut: upgrade 103 -> 106Yi Zhao2025-02-251-10/+14
| | | | | | | | ChangeLog: https://github.com/dracut-ng/dracut-ng/releases/tag/106 Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta: Add SECURITY.md file to all layersKhem Raj2024-11-231-0/+20
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* non-repro-meta-initramfs: update known non-reproducible listYoann Congal2024-10-011-21/+1
| | | | | | | | | | | | | Remove packages seen reproducible in the last 3 completed tests: https://autobuilder.yoctoproject.org/typhoon/#/builders/155/builds/43/steps/20/logs/stdio https://autobuilder.yoctoproject.org/typhoon/#/builders/155/builds/44/steps/20/logs/stdio https://autobuilder.yoctoproject.org/typhoon/#/builders/155/builds/45/steps/20/logs/stdio Effectively, the list is now empty. This marks meta-initramfs as reproducible! Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* layer.conf: Update to walnascar (5.2) layer/release seriesKhem Raj2024-10-011-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* dracut: upgrade 102 -> 103Yi Zhao2024-09-101-1/+1
| | | | | | | | ChangeLog: https://github.com/dracut-ng/dracut-ng/releases/tag/103 Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* klibc: fix debug pkgs reproducibilityYoann Congal2024-08-301-1/+1
| | | | | | | | | | | | | | | | Debug packages of klibc-based recipe contains reference to TMPDIR and fail to build since "buildpaths" is a ERROR_QA: For example, from [0]: stdio: ERROR: kexec-tools-klibc-2.0.18+git-r0 do_package_qa: QA Issue: File /usr/sbin/.debug/kexec in package kexec-tools-klibc-dbg contains reference to TMPDIR stdio: ERROR: kexecboot-klibc-0.6+git-r0 do_package_qa: QA Issue: File /usr/bin/.debug/kexecboot in package kexecboot-klibc-dbg contains reference to TMPDIR [buildpaths] stdio: ERROR: ubi-utils-klibc-2.0.2-r0 do_package_qa: QA Issue: File /usr/sbin/.debug/ubirename in package ubi-utils-klibc-dbg contains reference to TMPDIR Fix this by adding DEBUG_PREFIX_MAP to the klibc build CFLAGS to rewrite these paths in a reproducible way. [0]: https://autobuilder.yoctoproject.org/typhoon/#/builders/155/builds/40 Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* dracut: Drop an unnecessary patchZoltán Böszörményi2024-06-102-36/+0
| | | | | | | | | Dropped 0001-util.h-include-sys-reg.h-when-libc-glibc.patch that's unnecessary for a long time now, because dracut (since version 049) does not rely on __WORDSIZE. Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* dracut: Switch to dracut-ng and upgrade to version 102Zoltán Böszörményi2024-06-074-71/+94
| | | | | | | | | | | | | | | | | | | | | | | The previous dracut 056 was hopelessly outdated. When creating an initramfs from a systemd based system with a recent systemd version, booting failed with this error: [ 1.906055] systemd[1]: Failed to open executor binary '/usr/lib/systemd/systemd-executor' [ 1.912230] systemd[1]: Failed to allocate manager object: No such file or directory [!!!!!!] Failed to allocate manager object [ 1.912480] systemd[1]: Freezing execution dracut-ng took over after development in the original dracut repository stopped. Switched to the new source repository. Dropped two patches upstreamed in dracut-ng. Added a new patch that partially reverts a change that broke creating an initramfs on the host using the cross-compiled sysroot. Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* layers: stop declaring compatibility with scarthgapDmitry Baryshkov2024-05-281-1/+1
| | | | | | | | | With the UNPACKDIR changes in place the layers are no longer compatible with the scarthgap release. Drop it from LAYERSERIES_COMPAT and limit compatibility to styhead only. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Switch away from S = WORKDIRKhem Raj2024-05-232-3/+5
| | | | | | Make it dependent on UNPACKDIR instead Signed-off-by: Khem Raj <raj.khem@gmail.com>
* reproducibility: move repro excludes from AB config.json to meta-oeYoann Congal2024-04-291-0/+23
| | | | | | | | | | | | | | For now, the known non-reproducible packages list is stored inside the autobuilder config.json file. This is not ideal. Let's move this list into each layers of meta-openembedded. These lists can be used with, in local.conf: include conf/include/non-repro-meta-oe.inc OEQA_REPRODUCIBLE_EXCLUDED_PACKAGES = "${KNOWN_NON_REPRO_META_OE}" Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Acked-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* layers: Add styhead to compatible release seriesKhem Raj2024-04-281-1/+1
| | | | | | styhead is codename for upcoming 5.1 release Signed-off-by: Khem Raj <raj.khem@gmail.com>
* layer.conf: Prepare for release, drop nanbield LAYERSERIESKhem Raj2024-03-171-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* layer.conf: Update for the scarthgap release seriesKhem Raj2024-03-161-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kexec-tools-klibc: Fix building on x86_64 with binutils 2.41Yoann Congal2024-02-132-1/+98
| | | | | | | | | | | | | Newer versions of the GNU assembler (observed with binutils 2.41) will complain about the ".arch i386" in files assembled with "as --64", with the message "Error: 64bit mode not supported on 'i386'". Fix by moving ".arch i386" below the relevant ".code32" directive, so that the assembler is no longer expecting 64-bit instructions to be used by the time that the ".arch i386" directive is encountered. Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: drop ${SRCPV} usageMartin Jansa2024-02-092-2/+2
| | | | | | | | | | * Drop SRCPV similarly like oe-core did in: https://git.openembedded.org/openembedded-core/commit/?h=nanbield&id=843f82a246a535c353e08072f252d1dc78217872 * SRCPV is deferred now from PV to PKGV since: https://git.openembedded.org/openembedded-core/commit/?h=nanbield&id=a8e7b0f932b9ea69b3a218fca18041676c65aba0 Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
* klibc/klibc.inc : Add DEBUG_PREFIX_MAP flag.Fabien Thomas2023-10-131-0/+1
| | | | | | | | | | | | | Following reproducible-builds.org recommendations, using compiler flags like -ffile-prefix-map or -fdebug-prefix-map allows replace build-time paths by install-time ones in the debugging sections of binaries. Variable DEBUG_PREFIX_MAP set these flags correctly in yocto build context to guarantee reproducible builds. Signed-off-by: Fabien Thomas <fabien.thomas@smile.fr> Reviewed-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* klibc: Upgrade to 2.0.13 releaseKhem Raj2023-10-078-41/+6
| | | | | | Drop backported patch and refresh others as needed Signed-off-by: Khem Raj <raj.khem@gmail.com>
* layer.conf: update LAYERSERIES_COMPAT for nanbieldMartin Jansa2023-09-101-1/+1
| | | | | | | | * oe-core switched to nanbield in: https://git.openembedded.org/openembedded-core/commit/?id=f212cb12a0db9c9de5afd3cc89b1331d386e55f6 Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* remove unused AUTHOR variableMichael Opdenacker2023-08-031-1/+0
| | | | | | | | | No longer used in generating packages Also creates a possible confusion with the recipe maintainer name. Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* cve_check: convert CVE_CHECK_IGNORE to CVE_STATUSAndrej Valek2023-07-271-2/+1
| | | | | | | | | - Try to add convert and apply statuses for old CVEs - Drop some obsolete ignores, while they are not relevant for current version Signed-off-by: Andrej Valek <andrej.valek@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* dracut: Remove busybox from RRECOMMENDSMingli Yu2023-07-211-1/+0
| | | | | | | | The coreutils which defined in RRECOMMENDS has already provide the basic command and it conflicts with busybox. Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* *.patch: add Upstream-Status to all patchesMartin Jansa2023-06-2120-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is new patch-status QA check in oe-core: https://git.openembedded.org/openembedded-core/commit/?id=76a685bfcf927593eac67157762a53259089ea8a This is temporary work around just to hide _many_ warnings from optional patch-status (if you add it to WARN_QA). This just added Upstream-Status: Pending everywhere without actually investigating what's the proper status. This is just to hide current QA warnings and to catch new .patch files being added without Upstream-Status, but the number of Pending patches is now terrible: 5 (26%) meta-xfce 6 (50%) meta-perl 15 (42%) meta-webserver 21 (36%) meta-gnome 25 (57%) meta-filesystems 26 (43%) meta-initramfs 45 (45%) meta-python 47 (55%) meta-multimedia 312 (63%) meta-networking 756 (61%) meta-oe Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* layers: Move READMEs to markdown formatKhem Raj2023-06-171-0/+0
| | | | | | | The READMEs are often viewed from websites markdown format which is much as readable as text and yet friendlier in browsers. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kexecboot: update homepageUlrich Ölmann2023-02-011-1/+1
| | | | | Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* initramfs-{debug,kexecboot}-image: fix override syntax in commentUlrich Ölmann2023-02-012-2/+2
| | | | | Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* grubby: drop version 8.40Yi Zhao2023-01-041-41/+0
| | | | | | | This version is obsolete. Drop it and only keep the git version. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* grubby: update to latest git revYi Zhao2023-01-046-41/+93
| | | | | | | | | | | * Refresh patches. * Update SRC_URI. The upstrem repository has been archived. * Depends on rpm to rpm-sort build. * Add a patch to fix rpm-sort build error. * Do not specify PREFIX as the issue has been fixed upstream. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* layer.conf: update LAYERSERIES_COMPAT for mickledoreMartin Jansa2023-01-041-1/+1
| | | | | | | * oe-core switched to mickedore in: https://git.openembedded.org/openembedded-core/commit/?id=57239d66b933c4313cf331d35d13ec2d0661c38f Signed-off-by: Khem Raj <raj.khem@gmail.com>
* dracut: Do not undefine _FILE_OFFSET_BITSKhem Raj2022-12-312-0/+33
| | | | | | Fixes build with 64bit time_t Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kexec-tools-klibc: Fix type mismatch in calls to dtb_set_initrd on mipsKhem Raj2022-09-111-29/+24
| | | | | | | | | | Fixes kexec-elf-mips.c:163:42: error: incompatible pointer to integer conversion passing 'char *' to p arameter of type 'off_t' (aka 'long long') [-Wint-conversion] | dtb_set_initrd(&dtb_buf, &dtb_length, initrd_buf, initrd_buf + initrd_size); | ^~~~~~~~~~ Signed-off-by: Khem Raj <raj.khem@gmail.com>
* klibc: Fix build with kernel 5.19 headersKhem Raj2022-08-192-0/+35
| | | | | | Backport relevant patch. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* klibc: Upgrade to 2.0.10Khem Raj2022-08-1011-50/+9
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* grubby: fix syntax for ALTERNATIVEYi Zhao2022-06-301-1/+1
| | | | | | | ALTERNATIVE_${PN} -> ALTERNATIVE:${PN} Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* ubi-utils-klibc: Disable lzo compression by defaultKhem Raj2022-05-281-1/+2
| | | | | | | | This is still available if needed, however its obsolete and lzo has been removed from oe-core, if needed add meta-oe to layer mix and enable this in packageconfigs Signed-off-by: Khem Raj <raj.khem@gmail.com>
* layer.conf: Post release codename changesArmin Kuster2022-05-071-1/+1
| | | | | | | Post release add langdale to match core Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* klibc: Recognise --dyld-prefix clang optionKhem Raj2022-04-251-1/+4
| | | | | | This is added when usrmerge is enabled in distro Signed-off-by: Khem Raj <raj.khem@gmail.com>
* dracut: upgrade 055 -> 056Yi Zhao2022-04-062-1/+38
| | | | | | | | | | | | | | | * Add a patch to fix musl build: src/install/util.c:30:19: error: missing binary operator before token "(" 30 | #if __GLIBC_PREREQ(2, 30) == 0 | ^ make: *** [Makefile:57: src/install/util.o] Error 1 * Pass "-fPIC" to CFLAGS to fix build warning with musl build: WARNING: dracut-1_056-r0 do_package_qa: QA Issue: dracut: ELF binary /usr/lib/dracut/dracut-install has relocations in .text [textrel] Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Update LICENSE variable to use SPDX license identifiersKhem Raj2022-03-047-7/+7
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>