linux-headers: Fix Darwin cross build

Carefully fake cc-version and cc-fullversion to avoid needing a compiler
for the kernel itself to build the headers.

For some reason, doing `make install_headers` twice, first without
INSTALL_HDR_PATH=$out then with, is neccessary to get this to work.
This commit is contained in:
Daiderd Jordan
2018-10-23 23:20:42 -04:00
committed by John Ericson
parent 88cd633ea4
commit ab6bbdd5cd
4 changed files with 82 additions and 7 deletions
@@ -0,0 +1,13 @@
diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index fad55160dcb9..a48c8331cbb2 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -239,7 +239,7 @@ ifdef CONFIG_RETPOLINE
endif
archscripts: scripts_basic
- $(Q)$(MAKE) $(build)=arch/x86/tools relocs
+ $(Q)$(MAKE) $(build)=arch/x86/tools
###
# Syscall table generation