From ab6bbdd5cd2a271ac795f1f44a94f77e41edf29f Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Fri, 26 Jan 2018 23:40:40 +0100 Subject: 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. --- pkgs/os-specific/linux/kernel-headers/no-relocs.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pkgs/os-specific/linux/kernel-headers/no-relocs.patch (limited to 'pkgs/os-specific/linux/kernel-headers/no-relocs.patch') diff --git a/pkgs/os-specific/linux/kernel-headers/no-relocs.patch b/pkgs/os-specific/linux/kernel-headers/no-relocs.patch new file mode 100644 index 00000000000..67e8b19e23b --- /dev/null +++ b/pkgs/os-specific/linux/kernel-headers/no-relocs.patch @@ -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 -- cgit 1.4.1