If KBUILD_OUTPUT is set but doesn't exist, the Makefile will try to
create it, which will probably fail due to permissions issues. We don't actually want to write anything here, so there is no need to set it.
Signed-off-by: James Le Cuirot <
chewi@gentoo.org>
---
eclass/linux-info.eclass | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
index 42cde638cf276..c395eca9ee85f 100644
--- a/eclass/linux-info.eclass
+++ b/eclass/linux-info.eclass
@@ -234,10 +234,11 @@ getfilevar() {
basedname="$(dirname ${2})"
# We use nonfatal because we want the caller to take care of things #373151
+ # Pass KBUILD_OUTPUT= because this will probably break if it doesn't exist.
# Pass need-config= to make to avoid config check in kernel Makefile.
# Pass dot-config=0 to avoid the config check in kernels prior to 5.4.
echo -e "e:\\n\\t@echo \$(${1})\\ninclude ${basefname}" | \
- nonfatal emake -C "${basedname}" --no-print-directory M="${T}" \
+ nonfatal emake -C "${basedname}" --no-print-directory M="${T}" KBUILD_OUTPUT= \
ARCH="$(tc-arch-kernel)" dot-config=0 need-config= need-compiler= -s -f - 2>/dev/null
fi
}
--
2.49.0
--- SoupGate-Win32 v1.05
* Origin: fsxNet U