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