summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel-headers/no-relocs.patch
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2018-01-26 23:40:40 +0100
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-10-23 23:20:42 -0400
commitab6bbdd5cd2a271ac795f1f44a94f77e41edf29f (patch)
treea6726593f0f08195af1274cb9ad4552bea53acf5 /pkgs/os-specific/linux/kernel-headers/no-relocs.patch
parent88cd633ea4dec7b9a247c0fd8ccb95f4982f5bf7 (diff)
downloadnixpkgs-ab6bbdd5cd2a271ac795f1f44a94f77e41edf29f.tar
nixpkgs-ab6bbdd5cd2a271ac795f1f44a94f77e41edf29f.tar.gz
nixpkgs-ab6bbdd5cd2a271ac795f1f44a94f77e41edf29f.tar.bz2
nixpkgs-ab6bbdd5cd2a271ac795f1f44a94f77e41edf29f.tar.lz
nixpkgs-ab6bbdd5cd2a271ac795f1f44a94f77e41edf29f.tar.xz
nixpkgs-ab6bbdd5cd2a271ac795f1f44a94f77e41edf29f.tar.zst
nixpkgs-ab6bbdd5cd2a271ac795f1f44a94f77e41edf29f.zip
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.
Diffstat (limited to 'pkgs/os-specific/linux/kernel-headers/no-relocs.patch')
-rw-r--r--pkgs/os-specific/linux/kernel-headers/no-relocs.patch13
1 files changed, 13 insertions, 0 deletions
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