From 74762334298ba5dd979099753c0cf41f2989679e Mon Sep 17 00:00:00 2001 From: Luis Ortega Perez de Villar Date: Fri, 16 Aug 2013 16:53:44 +0200 Subject: scullc: Makefile: Declare LDDINC variable earlier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move the definition of LDDINC earlier into the file. This prevents the following compile time error: implicit declaration of function ‘KBUILD_STR’. --- scullc/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scullc/Makefile b/scullc/Makefile index 7c13241..c427b07 100644 --- a/scullc/Makefile +++ b/scullc/Makefile @@ -9,6 +9,7 @@ else DEBFLAGS = -O2 endif +LDDINC=$(PWD) EXTRA_CFLAGS += $(DEBFLAGS) -I$(LDDINC) TARGET = scullc @@ -25,7 +26,7 @@ KERNELDIR ?= /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) modules: - $(MAKE) -C $(KERNELDIR) M=$(PWD) LDDINC=$(PWD) modules + $(MAKE) -C $(KERNELDIR) M=$(PWD) modules endif -- cgit v1.2.1-18-gbd029