Commit 0b1749b0 authored by Federico Vaga's avatar Federico Vaga

minor clean up in building files

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 26970ac1
......@@ -4,14 +4,15 @@
ifdef CONFIG_SUPER_REPO
ifdef CONFIG_SUPER_REPO_VERSION
SUBMODULE_VERSIONS += MODULE_INFO(version_$(CONFIG_SUPER_REPO),\"$(CONFIG_SUPER_REPO_VERSION)\");
SUBMODULE_VERSIONS-y += MODULE_INFO(version_$(CONFIG_SUPER_REPO),\"$(CONFIG_SUPER_REPO_VERSION)\");
endif
endif
# The library includes <sdb.h>, so point -I directtly there
# include our header before to avoid conflicts with the kernel
LINUXINCLUDE := -I$(src)/include -I$(src)/../../include -I$(src)/../../include/linux $(LINUXINCLUDE)
ccflags-y += -DADDITIONAL_VERSIONS="$(SUBMODULE_VERSIONS-y)"
ccflags-y += -Werror
ccflags-y += -I$(src)/../../include
obj-$(CONFIG_FMC) = fmc.o
......
......@@ -14,7 +14,7 @@ export CONFIG_FMC=m
all: modules
modules help install modules_install:
make -C $(LINUX) M=$(shell pwd)
clean modules help modules_install:
make -C $(LINUX) M=$(shell pwd) $@
.PHONY: all modules clean help install modules_install
......@@ -466,3 +466,5 @@ MODULE_LICENSE("GPL v2");
subsys_initcall(fmc_init);
module_exit(fmc_exit);
ADDITIONAL_VERSIONS;
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