open question but probably useful (#31)

This commit is contained in:
rusefillc 2022-01-04 13:40:03 -05:00 committed by GitHub
parent 4bb9ac6162
commit dd4b3dd081
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -196,6 +196,15 @@ endif
#
RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk
ifeq ("$(wildcard $(RULESPATH)/rules.mk)","")
$(info 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
include $(RULESPATH)/arm-none-eabi.mk
include $(RULESPATH)/rules.mk