Commit a395d96c 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 bd5d7490
......@@ -9,8 +9,6 @@ export FMC_BUS
FMC_BUS_ABS ?= $(abspath $(FMC_BUS) )
export FMC_BUS_ABS
RUNME := $(shell test -d $(FMC_BUS) || git submodule update --init)
DIRS = $(FMC_BUS) kernel tools
.PHONY: all clean modules install modules_install $(DIRS)
......@@ -25,6 +23,12 @@ 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)
include scripts/gateware.mk
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