Skip to content

Commit

Permalink
kernel-2.eclass: Use cross.eclass for figuring out CTARGET
Browse files Browse the repository at this point in the history
Use crossdev.eclass instead of manually parsing category. This makes it
automatically support LLVM/Clang crossdev.

Signed-off-by: Alfred Persson Forsberg <[email protected]>
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
alfredfo authored and thesamesam committed Aug 22, 2023
1 parent 7a2c1f9 commit 6472469
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions eclass/kernel-2.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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) ;;
Expand All @@ -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"}"

Expand Down

0 comments on commit 6472469

Please sign in to comment.