summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred Persson Forsberg <cat@catcream.org>2023-08-02 00:32:35 +0200
committerSam James <sam@gentoo.org>2023-08-22 19:03:37 +0100
commit6472469a0333ea9088e815c0741c2dfb200987b5 (patch)
tree80b88fd41cc501bb572ba975f1e4ca20b7e07b84
parentsys-libs/musl: Support LLVM/Clang crossdev (diff)
downloadgentoo-6472469a0333ea9088e815c0741c2dfb200987b5.tar.gz
gentoo-6472469a0333ea9088e815c0741c2dfb200987b5.tar.bz2
gentoo-6472469a0333ea9088e815c0741c2dfb200987b5.zip
kernel-2.eclass: Use cross.eclass for figuring out CTARGET
Use crossdev.eclass instead of manually parsing category. This makes it automatically support LLVM/Clang crossdev. Signed-off-by: Alfred Persson Forsberg <cat@catcream.org> Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--eclass/kernel-2.eclass7
1 files changed, 1 insertions, 6 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index bdeabb9fc2dc..dc9ed25e8b60 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -281,7 +281,7 @@
# If you do change them, there is a chance that we will not fix resulting bugs;
# that of course does not mean we're not willing to help.
-inherit estack multiprocessing toolchain-funcs
+inherit crossdev estack multiprocessing toolchain-funcs
case ${EAPI} in
7|8) ;;
@@ -293,11 +293,6 @@ esac
# I will remove it when I come up with something more reasonable.
[[ ${PROFILE_ARCH} == ppc64 ]] && CHOST="powerpc64-${CHOST#*-}"
-export CTARGET=${CTARGET:-${CHOST}}
-if [[ ${CTARGET} == ${CHOST} && ${CATEGORY/cross-} != ${CATEGORY} ]]; then
- export CTARGET=${CATEGORY/cross-}
-fi
-
HOMEPAGE="https://www.kernel.org/ https://wiki.gentoo.org/wiki/Kernel ${HOMEPAGE}"
: "${LICENSE:="GPL-2"}"