diff options
author | Luis Ortega Perez de Villar <luiorpe1@upv.es> | 2013-07-18 23:04:51 +0200 |
---|---|---|
committer | Luis Ortega Perez de Villar <luiorpe1@upv.es> | 2013-07-18 23:04:51 +0200 |
commit | a3143d5fd454559bb1e1ad8aac86e25430b56ac7 (patch) | |
tree | d0ecfca5508ecc5c96a25e4af5b46157cb7222be | |
parent | 6aae03d4a7d97ebb2e1ef48e71a20a48aa7655ca (diff) | |
download | ldd3-a3143d5fd454559bb1e1ad8aac86e25430b56ac7.tar.gz |
scull: 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-- | scull/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
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 |