summaryrefslogtreecommitdiff
path: root/toolchain/kernel-headers/patches/3.9.11/headersinst-xargs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/kernel-headers/patches/3.9.11/headersinst-xargs.patch')
-rw-r--r--toolchain/kernel-headers/patches/3.9.11/headersinst-xargs.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/toolchain/kernel-headers/patches/3.9.11/headersinst-xargs.patch b/toolchain/kernel-headers/patches/3.9.11/headersinst-xargs.patch
new file mode 100644
index 000000000..62222b21b
--- /dev/null
+++ b/toolchain/kernel-headers/patches/3.9.11/headersinst-xargs.patch
@@ -0,0 +1,22 @@
+diff -Nur linux-3.9.9.orig/scripts/Makefile.headersinst linux-3.9.9/scripts/Makefile.headersinst
+--- linux-3.9.9.orig/scripts/Makefile.headersinst 2013-07-03 19:56:36.000000000 +0200
++++ linux-3.9.9/scripts/Makefile.headersinst 2013-07-18 15:46:50.000000000 +0200
+@@ -72,7 +72,7 @@
+ quiet_cmd_install = INSTALL $(printdir) ($(words $(all-files))\
+ file$(if $(word 2, $(all-files)),s))
+ cmd_install = \
+- $(PERL) $< $(installdir) $(SRCARCH) $(input-files); \
++ xargs $(PERL) $< $(installdir) $(SRCARCH) < $(INSTALL_HDR_PATH)/.input-files; \
+ for F in $(wrapper-files); do \
+ echo "\#include <asm-generic/$$F>" > $(installdir)/$$F; \
+ done; \
+@@ -101,7 +101,9 @@
+ $(install-file): scripts/headers_install.pl $(input-files) FORCE
+ $(if $(unwanted),$(call cmd,remove),)
+ $(if $(wildcard $(dir $@)),,$(shell mkdir -p $(dir $@)))
++ @echo $(input-files) > $(INSTALL_HDR_PATH)/.input-files
+ $(call if_changed,install)
++ @rm $(INSTALL_HDR_PATH)/.input-files
+
+ else
+ __headerscheck: $(subdirs) $(check-file)