From aa96af304866e3d37938b10ca827291d0646fc4c Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Tue, 21 Dec 2021 09:35:07 +0100 Subject: [PATCH] eclass/toolchain-funcs: Sync with gentoo It's from gentoo commit 1010cde56c21432c19c2dd5fa2a901e6fe82329d. --- .../portage-stable/eclass/toolchain-funcs.eclass | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sdk_container/src/third_party/portage-stable/eclass/toolchain-funcs.eclass b/sdk_container/src/third_party/portage-stable/eclass/toolchain-funcs.eclass index 032433daa7..77fb304940 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/toolchain-funcs.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/toolchain-funcs.eclass @@ -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;;