diff options
author | Mike Gilbert <floppym@gentoo.org> | 2022-11-28 20:06:58 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2022-12-02 14:46:46 -0500 |
commit | eab470730a49f9de7d047f4ba4face78b65b1b62 (patch) | |
tree | 86c6086ba2426ca1225c7f8755be6bd27b7e644c /eclass/linux-info.eclass | |
parent | media-libs/sdl-mixer: Stabilize 1.2.12_p20221010 arm64, #883985 (diff) | |
download | gentoo-eab470730a49f9de7d047f4ba4face78b65b1b62.tar.gz gentoo-eab470730a49f9de7d047f4ba4face78b65b1b62.tar.bz2 gentoo-eab470730a49f9de7d047f4ba4face78b65b1b62.zip |
linux-info.eclass: getfilevar: pass 'need-compiler=' to make
This avoids some unnecessary Makefile logic and gives a nice speed up.
Before the change, linux-info_pkg_setup takes 11 to 15 seconds on my
AMD Phenom II. After, it takes 3 to 4 seconds.
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'eclass/linux-info.eclass')
-rw-r--r-- | eclass/linux-info.eclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass index fc125b0d7519..3e64cb9457a9 100644 --- a/eclass/linux-info.eclass +++ b/eclass/linux-info.eclass @@ -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 |