diff --git a/kernel/Makefile b/kernel/Makefile
index 9f0a492b3f054a3663faf8e76eeb0d1d892f40c9..69e21b7f21f86b307150337d319101a71b1b184b 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)\"