eclass/toolchain-funcs: Sync with gentoo

It's from gentoo commit 1010cde56c21432c19c2dd5fa2a901e6fe82329d.
This commit is contained in:
Krzesimir Nowak 2021-12-21 09:35:07 +01:00
parent a58b103f26
commit aa96af3048

View File

@ -13,13 +13,11 @@
# in such a way that you can rely on the function always returning
# something sane.
# Flatcar: we still have some packages that use old EAPI, revert this
# change when we update those packages.
#case ${EAPI:-0} in
# # EAPI=0 is still used by crossdev, bug #797367
# 0|5|6|7|8) ;;
# *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
#esac
case ${EAPI:-0} in
# EAPI=0 is still used by crossdev, bug #797367
0|5|6|7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
if [[ -z ${_TOOLCHAIN_FUNCS_ECLASS} ]]; then
_TOOLCHAIN_FUNCS_ECLASS=1
@ -677,6 +675,7 @@ ninj() { [[ ${type} == "kern" ]] && echo $1 || echo $2 ; }
fi
;;
ia64*) echo ia64;;
loongarch*) ninj loongarch loong;;
m68*) echo m68k;;
metag*) echo metag;;
microblaze*) echo microblaze;;
@ -754,6 +753,7 @@ tc-endian() {
hppa*) echo big;;
i?86*) echo little;;
ia64*) echo little;;
loongarch*) echo little;;
m68*) echo big;;
mips*l*) echo little;;
mips*) echo big;;