source: branches/contrib/openwrt/patches/trunk/030_fix_kernel_build_xargs.patch @ 516

Last change on this file since 516 was 516, checked in by amain, 6 years ago

Fix various small build issues

File size: 1.4 KB
  • new file openwrt/target/linux/generic/patches-3.8/001-headersinst-xargs.patch

    - +  
     1--- a/scripts/Makefile.headersinst      2013-03-11 12:04:39.034212322 +0100
     2+++ b/scripts/Makefile.headersinst      2013-03-11 12:06:17.462215866 +0100
     3@@ -71,7 +71,7 @@
     4 quiet_cmd_install = INSTALL $(printdir) ($(words $(all-files))\
     5                             file$(if $(word 2, $(all-files)),s))
     6       cmd_install = \
     7-        $(PERL) $< $(installdir) $(SRCARCH) $(input-files); \
     8+        xargs $(PERL) $< $(installdir) $(SRCARCH) < $(INSTALL_HDR_PATH)/.input-files; \
     9         for F in $(wrapper-files); do                                   \
     10                 echo "\#include <asm-generic/$$F>" > $(installdir)/$$F;    \
     11         done;                                                           \
     12@@ -100,7 +100,9 @@
     13 $(install-file): scripts/headers_install.pl $(input-files) FORCE
     14        $(if $(unwanted),$(call cmd,remove),)
     15        $(if $(wildcard $(dir $@)),,$(shell mkdir -p $(dir $@)))
     16+       @echo $(input-files) > $(INSTALL_HDR_PATH)/.input-files
     17        $(call if_changed,install)
     18+       @rm $(INSTALL_HDR_PATH)/.input-files
     19 
     20 else
     21 __headerscheck: $(subdirs) $(check-file)
Note: See TracBrowser for help on using the repository browser.