class101

http://goo.gl/miqX5L

Jan 14th, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.97 KB | None | 0 0
  1. --- a/scripts/Makefile.headersinst
  2. +++ b/scripts/Makefile.headersinst
  3. @@ -78,9 +78,12 @@
  4.  quiet_cmd_install = INSTALL $(printdir) ($(words $(all-files))\
  5.                              file$(if $(word 2, $(all-files)),s))
  6.        cmd_install = \
  7. -        $(CONFIG_SHELL) $< $(installdir) $(srcdir) $(input-files1-name); \
  8. -        $(CONFIG_SHELL) $< $(installdir) $(oldsrcdir) $(input-files2-name); \
  9. -        $(CONFIG_SHELL) $< $(installdir) $(gendir) $(input-files3-name); \
  10. +        # $(CONFIG_SHELL) $< $(installdir) $(srcdir) $(input-files1-name); \
  11. +        # $(CONFIG_SHELL) $< $(installdir) $(oldsrcdir) $(input-files2-name); \
  12. +        # $(CONFIG_SHELL) $< $(installdir) $(gendir) $(input-files3-name); \
  13. +        xargs $(CONFIG_SHELL) $< $(installdir) < $(INSTALL_HDR_PATH)/.input-files1-name; \
  14. +        xargs $(CONFIG_SHELL) $< $(installdir) < $(INSTALL_HDR_PATH)/.input-files2-name; \
  15. +        xargs $(CONFIG_SHELL) $< $(installdir) < $(INSTALL_HDR_PATH)/.input-files3-name; \
  16.          for F in $(wrapper-files); do                                   \
  17.                  echo "\#include <asm-generic/$$F>" > $(installdir)/$$F;    \
  18.          done;                                                           \
  19. @@ -109,7 +112,17 @@
  20.  $(install-file): scripts/headers_install.sh $(input-files1) $(input-files2) $(input-files3) FORCE
  21.     $(if $(unwanted),$(call cmd,remove),)
  22.     $(if $(wildcard $(dir $@)),,$(shell mkdir -p $(dir $@)))
  23. +   $(shell echo -n > $(INSTALL_HDR_PATH)/.input-files)
  24. +   $(foreach f,$(input-files1),$(shell echo -n "$(f) " >> \
  25. +           $(INSTALL_HDR_PATH)/.input-files1))
  26. +   $(foreach f,$(input-files2),$(shell echo -n "$(f) " >> \
  27. +           $(INSTALL_HDR_PATH)/.input-files2))
  28. +   $(foreach f,$(input-files3),$(shell echo -n "$(f) " >> \
  29. +           $(INSTALL_HDR_PATH)/.input-files3))
  30.     $(call if_changed,install)
  31. +   @rm $(INSTALL_HDR_PATH)/.input-files1
  32. +   @rm $(INSTALL_HDR_PATH)/.input-files2
  33. +   @rm $(INSTALL_HDR_PATH)/.input-files3
  34.  
  35.  else
  36.  __headerscheck: $(subdirs) $(check-file)
Add Comment
Please, Sign In to add comment