summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Jacquin <bertrand@jacquin.bzh>2020-04-22 22:01:59 +0100
committerBertrand Jacquin <bertrand@jacquin.bzh>2020-10-18 00:21:01 +0100
commitb0d17fa3abf692179d5f3972a75eccbc2e0a8f7d (patch)
tree4469e6324463f57f466ccbea840118e49237c67c
parentdev-python/trezor: version bump (diff)
downloadportage-b0d17fa3abf692179d5f3972a75eccbc2e0a8f7d.tar.xz
eclass/linux-build: do not rely on debianutils to install kernel
-rw-r--r--eclass/linux-build.eclass11
1 files changed, 8 insertions, 3 deletions
diff --git a/eclass/linux-build.eclass b/eclass/linux-build.eclass
index 9255d3ea..7d10f0af 100644
--- a/eclass/linux-build.eclass
+++ b/eclass/linux-build.eclass
@@ -413,6 +413,7 @@ _linux-build_src_install_sources() {
_linux-build_src_install_build() {
einfo "Installing kernel"
emake install "${myopt[@]}" \
+ INSTALLKERNEL=../bin/true \
INSTALL_PATH="${WORKDIR}/boot"
if _linux-build_configval ARM ||
@@ -424,9 +425,13 @@ _linux-build_src_install_build() {
fi
insinto "/boot/${KV_FULL}"
- newins "${WORKDIR}/boot/config-${KV_FULL}" kernel.cfg
- newins "${WORKDIR}/boot/vmlinuz-${KV_FULL}" kernel.img
- newins "${WORKDIR}/boot/System.map-${KV_FULL}" System.map
+ newins "${BUILDDIR}/.config" kernel.cfg
+ newins "${BUILDDIR}/System.map" System.map
+
+ case "$(tc-arch-kernel)" in
+ x86) newins "${BUILDDIR}/arch/$(tc-arch-kernel)/boot/bzImage" kernel.img ;;
+ arm|arm64) newins "${BUILDDIR}/arch/$(tc-arch-kernel)/boot/Image" kernel.img ;;
+ esac
if _linux-build_configval CMDLINE_BOOL && _linux-build_configval CMDLINE ; then
insinto "/boot/${KV_FULL}"