summaryrefslogtreecommitdiff
path: root/eclass/kernel-install.eclass
AgeCommit message (Collapse)Author
2023-07-21kernel-install.eclass: simplify caseSam James
Signed-off-by: Sam James <sam@gentoo.org>
2023-07-21kernel-install.eclass: kernel-install_get_qemu_arch: port to sparcSam James
Signed-off-by: Sam James <sam@gentoo.org>
2022-12-24kernel-install.eclass: drop EAPI 7 supportDavid Seifert
Signed-off-by: David Seifert <soap@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
2022-10-30kernel-install.eclass: Fix variable mismatchMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2022-10-29kernel-install.eclass: Account for PV/KV mismatchMichał Górny
Do not assume PV and kernel version must always match. Use PV for kernel install directory (i.e. /usr/src/linux) but get the release from the kernel build directory for the module directory. Update preinst version check to account for live ebuilds. Signed-off-by: Michał Górny <mgorny@gentoo.org>
2022-10-29kernel-install.eclass: Revert "Add KV_FULL [...]"Michał Górny
Reverts: 55a495ad71b0ce1620488f389baddeebc787ee64 Signed-off-by: Michał Górny <mgorny@gentoo.org>
2022-10-19kernel-install.eclass: Add KV_FULL for "upstream" kernel versionMichał Górny
Add a KV_FULL variable that defaults to the kernel version derived from PV, and can be used by ebuilds to override the version if necessary. Signed-off-by: Michał Górny <mgorny@gentoo.org>
2022-09-09kernel-install.eclass: support EAPI 8Mike Gilbert
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
2022-09-06kernel-install.eclass: pkg_preinst: fix symlinks for merged-usrMike Gilbert
Closes: https://bugs.gentoo.org/843821 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
2022-05-08kernel-install.eclass: add riscv supportSam James
Signed-off-by: Sam James <sam@gentoo.org>
2022-03-24*.eclass: @ECLASS-VARIABLE renamed to @ECLASS_VARIABLEUlrich Müller
Bug: https://bugs.gentoo.org/835396 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2021-12-16kernel-install.eclass: add ppc(32) supportGeorgy Yakovlev
Bug: https://bugs.gentoo.org/794799 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2021-09-02kernel-install.eclass: Set @PROVIDESMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2021-07-24kernel-install.eclass: Add a safety check for mismatched versionMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2021-07-07kernel-install.eclass: print uname() info after testGeorgy Yakovlev
Closes: https://github.com/gentoo/gentoo/pull/21549 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2021-06-03eclass/kernel-install.eclass: omit some dracut modules for testsGeorgy Yakovlev
some modules slow down or even fail to boot in our test environment force qemu dracut module while at it. Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2021-03-11kernel-install.eclass: Update symlink if target has no sourcesMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2021-03-11kernel-install.eclass: Refactor /usr/src/linux check to functionMichał Górny
Refactor the check whether /usr/src/linux should be updated to a separate function, to improve readability. Signed-off-by: Michał Górny <mgorny@gentoo.org>
2021-03-10kernel-install.eclass: Fix updating symlink w/ localversionMichał Górny
Closes: https://bugs.gentoo.org/775176 Signed-off-by: Michał Górny <mgorny@gentoo.org>
2021-03-07kernel-install.eclass: Fix handling EOF in test phaseMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2021-03-01kernel-install.eclass: Fix initrd cleanup for uefi=yesMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2021-02-28kernel-install.eclass: Include a RDEP on libelfMichał Górny
Closes: https://bugs.gentoo.org/732210 Signed-off-by: Michał Górny <mgorny@gentoo.org>
2021-02-28kernel-install.eclass: Fix bypassing dracut configsMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2021-01-16kernel-install.eclass: Improve error message on /boot problemsMichał Górny
Use the newly-introduced mount-boot.eclass nonfatal support to amend the error message with the instruction to run 'emerge --config' rather than rebuild the whole kernel. Signed-off-by: Michał Górny <mgorny@gentoo.org>
2021-01-16kernel-install.eclass: Improve failed install error messagesMichał Górny
Support and use nonfatal to provide a detailed error message when kernel postinst fails, in particular the correct 'emerge --config' command. Signed-off-by: Michał Górny <mgorny@gentoo.org>
2021-01-16kernel-install.eclass: Include SLOT in --config suggestionMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2021-01-16kernel-install.eclass: Update symlink before installingMichał Górny
Update symlink before actually installing the kernel. This primarily ensures that module rebuilds triggered by the upgrade will work correctly even if postinst fails. Besides, pkg_config() retries installing the kernel but does not update the symlink. Signed-off-by: Michał Górny <mgorny@gentoo.org>
2021-01-16kernel-install.eclass: Move common to kernel-install_install_allMichał Górny
Move the code shared by pkg_postinst() and pkg_config() to a new kernel-install_install_all() function. After all, the purpose of pkg_config() is to repeat what pkg_postinst() does normally. Keeping it in a common function improves maintainability. Signed-off-by: Michał Górny <mgorny@gentoo.org>
2021-01-13dist-kernel-utils.eclass: Introduce eclass for helper functionsMichał Górny
Move some of the utility functions from kernel-install.eclass into dist-kernel-utils.eclass, in order to permit using them without having all kernel-install phases exported. This will be used in order to support rebuilding initramfs in sys-fs/zfs-kmod. Since the eclasses are used only by dist-kernel project eclasses and ebuilds, update the function prefix while moving them. Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-29eclass/kernel-install.eclass: rework testsGeorgy Yakovlev
instead of using linux image we compile tiny static binary and use it as /sbin/init image is simply created using mkfs.ext4 -d option arm tests need qemu keyworded, so disabled for now Closes: https://github.com/gentoo/gentoo/pull/17305 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2020-08-28eclass/kernel-install.eclass: add ppc64 image pathGeorgy Yakovlev
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2020-08-28eclass/kernel-install.eclass: restrict tests on ppc64 (for now)Georgy Yakovlev
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2020-08-13kernel-install.eclass: Restrict tests on arm&arm64Michał Górny
Restrict tests on arches that currently lack a test image. Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-01kernel-install.eclass: Pass '-cpu max' on amd64 onlyMichał Górny
It seems to break testing on 32-bit x86. Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-07-18kernel-install.eclass: Run tests with '-cpu max'Michał Górny
Since dracut is using host system executables, qemu needs to be able to execute these executables independently of the CFLAGS used by the user. For this reason make sure to enable all supported instruction sets rather than the default. Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-06-29kernel-{build,install}.eclass: support Kconfig LOCALVERSIONDavid GUGLIELMI
Signed-off-by: David GUGLIELMI <david.guglielmi@gmail.com> Closes: https://bugs.gentoo.org/720930 Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-06-24kernel-install.eclass: Warn about linux-firmware in pkg_pretend()Michał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-06-24kernel-install.eclass: Add pkg_config() to reinstallMichał Górny
Add a pkg_config() phase that can be used to rebuild the initramfs and reinstall the kernel without rebuilding the whole package. Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-05-21kernel-{build,install}.eclass: more ARM supportAlexey Shvetsov
Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-04-29kernel-install.eclass: Print elog about symlink updateMichał Górny
Bug: https://bugs.gentoo.org/719910 Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-01-25kernel-install.eclass: Remove initramfs in postrmMichał Górny
Closes: https://bugs.gentoo.org/706332 Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-01-09kernel-install.eclass: Fix initrd locationMichał Górny
Closes: https://bugs.gentoo.org/705058 Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-01-09kernel-install.eclass: Install logic for dist-kernelsMichał Górny
Introduce a new eclass that contains common logic needed to test and install distribution kernels. This is the eclass common both to kernels built from source and installed from binary packages. Signed-off-by: Michał Górny <mgorny@gentoo.org>