Commit 850a447c authored by Federico Vaga's avatar Federico Vaga

Makefile: use kbuild variable 'src' instead of 'M' variable

The Kbuild writesin 'src' the correct path to the source code automatically.
This avoid us to explicitly write 'M' variable
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
Acked-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 428e191f
LINUX ?= /lib/modules/$(shell uname -r)/build LINUX ?= /lib/modules/$(shell uname -r)/build
ZIO ?= $(M)/../zio ZIO ?= $(src)/../zio
FMC_BUS ?= $(M)/../fmc-bus FMC_BUS ?= $(src)/../fmc-bus
KBUILD_EXTRA_SYMBOLS := \ KBUILD_EXTRA_SYMBOLS := \
$(ZIO)/Module.symvers \ $(ZIO)/Module.symvers \
...@@ -14,7 +14,7 @@ ccflags-y = \ ...@@ -14,7 +14,7 @@ ccflags-y = \
-I$(FMC_BUS)/kernel/include \ -I$(FMC_BUS)/kernel/include \
-I$(FMC_BUS)/kernel/include/linux \ -I$(FMC_BUS)/kernel/include/linux \
-I$(FMC_BUS) \ -I$(FMC_BUS) \
-I$M -I$(src)
ccflags-y += -DGIT_VERSION=\"$(GIT_VERSION)\" ccflags-y += -DGIT_VERSION=\"$(GIT_VERSION)\"
#ccflags-y += -DDEBUG #ccflags-y += -DDEBUG
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment