eclass/linux-info: Sync with Gentoo

It's from Gentoo commit eab470730a49f9de7d047f4ba4face78b65b1b62.
This commit is contained in:
Flatcar Buildbot 2022-12-05 07:14:22 +00:00
parent e639a14623
commit 8d4dd68e0a

View File

@ -238,7 +238,9 @@ getfilevar() {
# Pass dot-config=0 to avoid the config check in kernels prior to 5.4.
[[ ${EAPI:-0} == [0123] ]] && nonfatal() { "$@"; }
echo -e "e:\\n\\t@echo \$(${1})\\ninclude ${basefname}" | \
nonfatal emake -C "${basedname}" --no-print-directory M="${T}" dot-config=0 need-config= ${BUILD_FIXES} -s -f - 2>/dev/null
nonfatal emake -C "${basedname}" --no-print-directory M="${T}" \
dot-config=0 need-config= need-compiler= \
${BUILD_FIXES} -s -f - 2>/dev/null
ARCH=${myARCH}
fi