From f79fdc6c97c5799684f2ff0699b1d2900dfde109 Mon Sep 17 00:00:00 2001 From: Federico Vaga <federico.vaga@cern.ch> Date: Thu, 22 May 2014 14:16:51 +0200 Subject: [PATCH] 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 <federico.vaga@cern.ch> Acked-by: Alessandro Rubini <rubini@gnudd.com> --- kernel/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/Makefile b/kernel/Makefile index 9f0a492..69e21b7 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -8,7 +8,7 @@ KBUILD_EXTRA_SYMBOLS := $(FMC_DRV)/Module.symvers GIT_VERSION = $(shell cd $(src); git describe --dirty --long --tags) -ccflags-y += -I$M/include -I$(FMC_DRV)/include +ccflags-y += -I$(src)/include -I$(FMC_DRV)/include ccflags-y += $(WR_NIC_CFLAGS) ccflags-y += -DGIT_VERSION=\"$(GIT_VERSION)\" -- GitLab