From 2ca438ca296cf53e255338aed3f504992c7d057a Mon Sep 17 00:00:00 2001
From: Andrew Ammerlaan <[email protected]>
Date: Wed, 15 Nov 2023 20:31:26 +0100
Subject: [PATCH] dist-kernel-utils.eclass: set arch to kernel for installation

Some kernel-install plugins may require locating files in the
installed kernel source tree, on e.g. amd64 they will fail to do
so if we do not use tc-arch-kernel.

sys-kernel/dkms' kernel-install plugin is an example of a
plugin that requires this fix.

Signed-off-by: Andrew Ammerlaan <[email protected]>
---
 eclass/dist-kernel-utils.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/dist-kernel-utils.eclass b/eclass/dist-kernel-utils.eclass
index d455c88ebee1c..ea993bf0e6ba3 100644
--- a/eclass/dist-kernel-utils.eclass
+++ b/eclass/dist-kernel-utils.eclass
@@ -135,7 +135,7 @@ dist-kernel_install_kernel() {
        ebegin "Installing the kernel via installkernel"
        # note: .config is taken relatively to System.map;
        # initrd relatively to bzImage
-       installkernel "${version}" "${image}" "${map}"
+       ARCH=$(tc-arch-kernel) installkernel "${version}" "${image}" "${map}"
        eend ${?} || die -n "Installing the kernel failed"
 }


Reply via email to