From a9a3b3aee24eec84152603f3b56d6fa6cec00e82 Mon Sep 17 00:00:00 2001 From: Andrew Chambers Date: Sat, 20 Jul 2019 00:55:59 +1200 Subject: [PATCH] Remove absolute references to pwd in linux headers. Some distributions don't have pwd at this path. --- patches/linux-4.4.10/0002-absolute-pwd.diff | 30 +++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 patches/linux-4.4.10/0002-absolute-pwd.diff diff --git a/patches/linux-4.4.10/0002-absolute-pwd.diff b/patches/linux-4.4.10/0002-absolute-pwd.diff new file mode 100644 index 0000000..b858eb3 --- /dev/null +++ b/patches/linux-4.4.10/0002-absolute-pwd.diff @@ -0,0 +1,30 @@ +diff -u a/Makefile b/Makefile +--- a/Makefile ++++ b/Makefile +@@ -133,7 +133,7 @@ ifneq ($(KBUILD_OUTPUT),) + # check that the output directory actually exists + saved-output := $(KBUILD_OUTPUT) + KBUILD_OUTPUT := $(shell mkdir -p $(KBUILD_OUTPUT) && cd $(KBUILD_OUTPUT) \ +- && /bin/pwd) ++ && pwd) + $(if $(KBUILD_OUTPUT),, \ + $(error failed to create output directory "$(saved-output)")) + +@@ -924,7 +924,7 @@ ifdef CONFIG_BUILD_DOCSRC + $(Q)$(MAKE) $(build)=Documentation + endif + ifdef CONFIG_GDB_SCRIPTS +- $(Q)ln -fsn `cd $(srctree) && /bin/pwd`/scripts/gdb/vmlinux-gdb.py ++ $(Q)ln -fsn `cd $(srctree) && pwd`/scripts/gdb/vmlinux-gdb.py + endif + +$(call if_changed,link-vmlinux) + +@@ -1122,7 +1122,7 @@ _modinst_: + @rm -rf $(MODLIB)/kernel + @rm -f $(MODLIB)/source + @mkdir -p $(MODLIB)/kernel +- @ln -s `cd $(srctree) && /bin/pwd` $(MODLIB)/source ++ @ln -s `cd $(srctree) && pwd` $(MODLIB)/source + @if [ ! $(objtree) -ef $(MODLIB)/build ]; then \ + rm -f $(MODLIB)/build ; \ + ln -s $(CURDIR) $(MODLIB)/build ; \