0002-absolute-pwd.diff 1.0 KB

123456789101112131415161718192021222324252627282930
  1. diff -u a/Makefile b/Makefile
  2. --- a/Makefile
  3. +++ b/Makefile
  4. @@ -133,7 +133,7 @@ ifneq ($(KBUILD_OUTPUT),)
  5. # check that the output directory actually exists
  6. saved-output := $(KBUILD_OUTPUT)
  7. KBUILD_OUTPUT := $(shell mkdir -p $(KBUILD_OUTPUT) && cd $(KBUILD_OUTPUT) \
  8. - && /bin/pwd)
  9. + && pwd)
  10. $(if $(KBUILD_OUTPUT),, \
  11. $(error failed to create output directory "$(saved-output)"))
  12. @@ -924,7 +924,7 @@ ifdef CONFIG_BUILD_DOCSRC
  13. $(Q)$(MAKE) $(build)=Documentation
  14. endif
  15. ifdef CONFIG_GDB_SCRIPTS
  16. - $(Q)ln -fsn `cd $(srctree) && /bin/pwd`/scripts/gdb/vmlinux-gdb.py
  17. + $(Q)ln -fsn `cd $(srctree) && pwd`/scripts/gdb/vmlinux-gdb.py
  18. endif
  19. +$(call if_changed,link-vmlinux)
  20. @@ -1122,7 +1122,7 @@ _modinst_:
  21. @rm -rf $(MODLIB)/kernel
  22. @rm -f $(MODLIB)/source
  23. @mkdir -p $(MODLIB)/kernel
  24. - @ln -s `cd $(srctree) && /bin/pwd` $(MODLIB)/source
  25. + @ln -s `cd $(srctree) && pwd` $(MODLIB)/source
  26. @if [ ! $(objtree) -ef $(MODLIB)/build ]; then \
  27. rm -f $(MODLIB)/build ; \
  28. ln -s $(CURDIR) $(MODLIB)/build ; \