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

initialize fmc-bus submodule if required

Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 3bce9901
......@@ -10,8 +10,6 @@ export FMC_BUS
FMC_BUS_ABS ?= $(abspath $(FMC_BUS) )
export FMC_BUS_ABS
RUNME := $(shell test -d $(FMC_DRV) || git submodule update --init)
DIRS = $(FMC_BUS) kernel tools
.PHONY: all clean modules install modules_install $(DIRS)
......@@ -26,4 +24,10 @@ modules_install: TARGET = modules_install
$(DIRS):
$(MAKE) -C $@ $(TARGET)
$(FMC_BUS): fmc-bus-init_repo
# init submodule if missing
fmc-bus-init_repo:
@test -d $(FMC_BUS)/doc || ( echo "Checking out submodule $(FMC_BUS)"; git submodule update --init $(FMC_BUS) )
kernel: $(FMC_BUS)
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