summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Ortega Perez de Villar <luiorpe1@upv.es>2013-08-16 19:15:59 +0200
committerJavier Martinez Canillas <javier.martinez@collabora.co.uk>2013-09-28 13:35:44 +0200
commit9b3d82f79a2a48ef97961ef917c50019667a1c25 (patch)
tree30293af572a6009fdd6e6b51c188edcd906a3d06
parentf76929f117abb38ad4f87f2eea0e83bdf549e820 (diff)
downloadldd3-9b3d82f79a2a48ef97961ef917c50019667a1c25.tar.gz
scullp: 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’.
-rw-r--r--scullp/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/scullp/Makefile b/scullp/Makefile
index f302570..069c515 100644
--- a/scullp/Makefile
+++ b/scullp/Makefile
@@ -9,6 +9,7 @@ else
DEBFLAGS = -O2
endif
+LDDINC=$(PWD)
EXTRA_CFLAGS += $(DEBFLAGS) -I$(LDDINC)
TARGET = scullp
@@ -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