Bug: https://bugs.gentoo.org/953770
Signed-off-by: Mike Gilbert <[email protected]>
---
 eclass/linux-mod.eclass | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass
index c71ace53aa00..e086ff0270a7 100644
--- a/eclass/linux-mod.eclass
+++ b/eclass/linux-mod.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: linux-mod.eclass
@@ -605,7 +605,9 @@ linux-mod_src_compile() {
 
        local modulename libdir srcdir objdir i n myABI="${ABI}"
        set_arch_to_kernel
-       ABI="${KERNEL_ABI}"
+       if [[ -n ${KERNEL_ABI} ]]; then
+               ABI="${KERNEL_ABI}"
+       fi
 
        [[ -n ${KERNEL_DIR} ]] && addpredict "${KERNEL_DIR}/null.dwo"
 
-- 
2.50.0


Reply via email to