Skip to content

Commit

Permalink
linux-info.eclass: getfilevar: pass 'need-compiler=' to make
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
floppym committed Dec 2, 2022
1 parent 7ccd69b commit eab4707
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eclass/linux-info.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eab4707

Please sign in to comment.