This code originates from 21 years ago, but I don't think it ever made
sense. KBUILD_OUTPUT was never written anywhere until last year. Now it
is written to the Makefile in the output directory, which is what we're
trying to locate in the first place!
Signed-off-by: James Le Cuirot <
chewi@gentoo.org>
---
eclass/linux-info.eclass | 27 ---------------------------
1 file changed, 27 deletions(-)
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
index c395eca9ee85f..067c94ccdc1f8 100644
--- a/eclass/linux-info.eclass
+++ b/eclass/linux-info.eclass
@@ -464,25 +464,6 @@ kernel_is() {
"${1:-${KV_MAJOR:-0}}.${2:-${KV_MINOR:-0}}.${3:-${KV_PATCH:-0}}"
}
-# @FUNCTION: get_makefile_extract_function
-# @INTERNAL
-# @DESCRIPTION:
-# Check if the Makefile is valid for direct parsing.
-# Check status results:
-# - PASS, use 'getfilevar' to extract values
-# - FAIL, use 'getfilevar_noexec' to extract values
-# The check may fail if:
-# - make is not present
-# - corruption exists in the kernel makefile
-get_makefile_extract_function() {
- [[ -n ${SKIP_KERNEL_CHECK} ]] && return
- local a='' b='' mkfunc='getfilevar'
- a="$(getfilevar VERSION ${KERNEL_MAKEFILE})"
- b="$(getfilevar_noexec VERSION ${KERNEL_MAKEFILE})"
- [[ "${a}" != "${b}" ]] && mkfunc='getfilevar_noexec'
- e