headersinst-xargs.patch 1.1 KB

12345678910111213141516171819202122
  1. diff -Nur linux-3.9.9.orig/scripts/Makefile.headersinst linux-3.9.9/scripts/Makefile.headersinst
  2. --- linux-3.9.9.orig/scripts/Makefile.headersinst 2013-07-03 19:56:36.000000000 +0200
  3. +++ linux-3.9.9/scripts/Makefile.headersinst 2013-07-18 15:46:50.000000000 +0200
  4. @@ -72,7 +72,7 @@
  5. quiet_cmd_install = INSTALL $(printdir) ($(words $(all-files))\
  6. file$(if $(word 2, $(all-files)),s))
  7. cmd_install = \
  8. - $(PERL) $< $(installdir) $(SRCARCH) $(input-files); \
  9. + xargs $(PERL) $< $(installdir) $(SRCARCH) < $(INSTALL_HDR_PATH)/.input-files; \
  10. for F in $(wrapper-files); do \
  11. echo "\#include <asm-generic/$$F>" > $(installdir)/$$F; \
  12. done; \
  13. @@ -101,7 +101,9 @@
  14. $(install-file): scripts/headers_install.pl $(input-files) FORCE
  15. $(if $(unwanted),$(call cmd,remove),)
  16. $(if $(wildcard $(dir $@)),,$(shell mkdir -p $(dir $@)))
  17. + @echo $(input-files) > $(INSTALL_HDR_PATH)/.input-files
  18. $(call if_changed,install)
  19. + @rm $(INSTALL_HDR_PATH)/.input-files
  20. else
  21. __headerscheck: $(subdirs) $(check-file)