From a3143d5fd454559bb1e1ad8aac86e25430b56ac7 Mon Sep 17 00:00:00 2001 From: Luis Ortega Perez de Villar Date: Thu, 18 Jul 2013 23:04:51 +0200 Subject: scull: 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’. --- scull/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scull/Makefile b/scull/Makefile index ac6383a..34b90e9 100644 --- a/scull/Makefile +++ b/scull/Makefile @@ -9,6 +9,8 @@ else DEBFLAGS = -O2 endif +LDDINC=$(PWD)/../include + EXTRA_CFLAGS += $(DEBFLAGS) EXTRA_CFLAGS += -I$(LDDINC) @@ -25,7 +27,7 @@ KERNELDIR ?= /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) modules: - $(MAKE) -C $(KERNELDIR) M=$(PWD) LDDINC=$(PWD)/../include modules + $(MAKE) -C $(KERNELDIR) M=$(PWD) modules endif -- cgit v1.2.1-18-gbd029