only: reducing variable reuse hack

This commit is contained in:
Andrey 2024-01-15 19:25:02 -05:00 committed by rusefillc
parent 6ec38dad0c
commit 4489f050af
2 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,7 @@
ifeq ("$(wildcard $(RULESFILE))","")
$(info $(RULESFILE) not found. Chibios: Invoking "git submodule update --init")
CHIBIOS_FILE=$(CHIBIOS)/os/readme.txt
ifeq ("$(wildcard $(CHIBIOS_FILE))","")
$(info $(CHIBIOS_FILE) 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

View File

@ -16,7 +16,6 @@
CHIBIOS = ../firmware/ChibiOS
CHIBIOS_CONTRIB= ../firmware/ChibiOS-Contrib
RULESPATH = $(CHIBIOS)/os/common/startup/SIMIA32/compilers/GCC
RULESFILE = $(RULESPATH)/rules.mk
PROJECT_CPU=simulator