mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-27 08:31:04 +02:00
eclass/kernel-2: Sync with Gentoo
It's from Gentoo commit c5f2fe5daab92a94070cfc41acb543941818c96b.
This commit is contained in:
parent
8b2d075ee8
commit
e19211ef43
@ -281,23 +281,20 @@
|
||||
# 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
|
||||
# Added by Daniel Ostrow <dostrow@gentoo.org>
|
||||
# This is an ugly hack to get around an issue with a 32-bit userland on ppc64.
|
||||
# I will remove it when I come up with something more reasonable.
|
||||
# Alfred Persson Forsberg <cat@catcream.org>
|
||||
# Moved this above inherit as crossdev.eclass uses CHOST internally.
|
||||
[[ ${PROFILE_ARCH} == ppc64 ]] && CHOST="powerpc64-${CHOST#*-}"
|
||||
|
||||
inherit crossdev estack multiprocessing toolchain-funcs
|
||||
|
||||
case ${EAPI} in
|
||||
7|8) ;;
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
# Added by Daniel Ostrow <dostrow@gentoo.org>
|
||||
# This is an ugly hack to get around an issue with a 32-bit userland on ppc64.
|
||||
# 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"}"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user