This commit is contained in:
rusefillc 2024-01-10 12:59:30 -05:00
parent 96118d65ac
commit 81cfe8205f
4 changed files with 17 additions and 7 deletions

View File

@ -2,7 +2,9 @@ BOARDCPPSRC = $(BOARD_DIR)/board_configuration.cpp
BOARDINC += $(BOARD_DIR)/generated/controllers/generated
# todo: do we even need this DFIRMWARE_ID?
DDEFS += -DFIRMWARE_ID=\"XXX\"
# todo: use meta-info.txt
SHORT_BOARD_NAME=XXX
# reduce memory usage monitoring

View File

@ -1,7 +0,0 @@
#!/bin/bash
export META_OUTPUT_ROOT_FOLDER=../../../generated/
cd ext/rusefi/firmware/
bash gen_config_board.sh ../../.. XXX

View File

@ -0,0 +1,13 @@
#!/bin/bash
#
# while recommended best option is to rely on GitHub Actions we can also code-generate locally using this script
# open issue is GitHub Action should be invoking this script in order to reduce existing code duplication
#
export META_OUTPUT_ROOT_FOLDER=../../../generated/
cd ext/rusefi/firmware/
# todo: use meta-info.txt
bash gen_config_board.sh ../../.. XXX

2
meta-info.txt Normal file
View File

@ -0,0 +1,2 @@
# todo: find a way for build-firmware.yaml to consume this file? maybe the other way around?
shortBoardName=XXX