Commit ed6f65c1 authored by Adam Wujek's avatar Adam Wujek 💬

kernel: get rid of FMC_DRV from Makefiles

Signed-off-by: Adam Wujek's avatarAdam Wujek <>
parent d40ca8ed
......@@ -6,8 +6,6 @@ REPO_PARENT=$(shell /bin/pwd)/..
# by default use the fmc-bus within the repository
FMC_BUS ?= $(shell pwd)/fmc-bus/
export FMC_BUS
FMC_DRV ?= $(FMC_BUS)/kernel/
export FMC_DRV
RUNME := $(shell test -d $(FMC_DRV) || git submodule update --init)
KBUILD_EXTRA_SYMBOLS := $(FMC_BUS)/kernel/Module.symvers
# For this CSM_VERSION, please see documentation
......@@ -9,7 +9,7 @@ endif
# The library includes <sdb.h>, so point -I directtly there
# include our header before to avoid conflicts with the kernel
LINUXINCLUDE := -I$(FMC_DRV)/include -I$(src)/include/linux $(LINUXINCLUDE)
LINUXINCLUDE := -I$(FMC_BUS)/kernel/include -I$(src)/include/linux $(LINUXINCLUDE)
ccflags-y += -I$(src)/include
ccflags-y += $(WR_NIC_CFLAGS)
ccflags-y += -DGIT_VERSION=\"$(GIT_VERSION)\"
......@@ -7,9 +7,10 @@ LINUX ?= /lib/modules/$(shell uname -r)/build
# by default use the fmc-bus within the repository
FMC_BUS ?= $(shell pwd)/../fmc-bus/
FMC_DRV ?= $(FMC_BUS)/kernel/
# FMC_DRV has to be absolut path, due to beeing passed to the Kbuild
FMC_DRV = $(shell realpath -f $(FMC_DRV) )
export FMC_DRV
export FMC_BUS
GIT_VERSION = $(shell git describe --dirty --long --tags)
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