summaryrefslogtreecommitdiffstats
path: root/scullc
diff options
context:
space:
mode:
authorLuis Ortega Perez de Villar <luiorpe1@upv.es>2013-08-16 16:53:44 +0200
committerJavier Martinez Canillas <javier.martinez@collabora.co.uk>2013-09-28 13:35:43 +0200
commit74762334298ba5dd979099753c0cf41f2989679e (patch)
tree62a6780abd69dbd0cb4ffa024737516d5b66b6f7 /scullc
parent4511f805fd53dba5b6dc6b6fa0d28c82e3482b39 (diff)
downloadldd3-74762334298ba5dd979099753c0cf41f2989679e.tar.gz
scullc: Makefile: Declare LDDINC variable earlier
Move the definition of LDDINC earlier into the file. This prevents the following compile time error: implicit declaration of function ‘KBUILD_STR’.
Diffstat (limited to 'scullc')
-rw-r--r--scullc/Makefile3
1 files changed, 2 insertions, 1 deletions
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