rusefillc 2022-07-27 02:49:01 -04:00
parent daa24403d1
commit e3fee8bef5
1 changed files with 4 additions and 3 deletions

View File

@ -1,14 +1,15 @@
ifeq ("$(wildcard $(RULESFILE))","")
$(info Chibios: Invoking "git submodule update --init")
$(info $(RULESFILE) not found. Chibios: Invoking "git submodule update --init")
$(shell git submodule update --init)
$(info Invoked "git submodule update --init")
# make is not happy about newly checked out module for some reason but next invocation would work
$(error Please run 'make' again. Please make sure you have 'git' command in PATH)
endif
ifeq ("$(wildcard $(CHIBIOS_CONTRIB)/os/hal/hal.mk)","")
$(info Contrib: Invoking "git submodule update --init")
CHIBIOS_CONTRIB_FILE=$(CHIBIOS_CONTRIB)/os/hal/hal.mk
ifeq ("$(wildcard $(CHIBIOS_CONTRIB_FILE))","")
$(info $(CHIBIOS_CONTRIB_FILE) not found. Contrib: Invoking "git submodule update --init")
$(shell git submodule update --init)
$(info Invoked "git submodule update --init")
# make is not happy about newly checked out module for some reason but next invocation would work