[ktap] [PATCH 1/2] Set PWD in Makefile

  • From: Anders Darander <anders@xxxxxxxxxxxxxx>
  • To: <ktap@xxxxxxxxxxxxx>
  • Date: Mon, 11 Nov 2013 14:09:17 +0100

When cross-compiling using e.g. buildroot, PWD was not reset in the Makefile.
That caused PWD to have an incorrect value, and thus building the module failed.

Signed-off-by: Anders Darander <anders@xxxxxxxxxxxxxx>
---
 Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile b/Makefile
index 07e1568..85374e9 100644
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,7 @@ ktapvm-y      := $(INTP_OBJS)
 
 KVERSION ?= $(shell uname -r)
 KERNEL_SRC ?= /lib/modules/$(KVERSION)/build
+PWD := $(shell pwd)
 mod:
        $(MAKE) -C $(KERNEL_SRC) M=$(PWD) modules
 
-- 
1.8.4.2


Other related posts:

  • » [ktap] [PATCH 1/2] Set PWD in Makefile - Anders Darander