From 81cfe8205f7b755ec4d77465245928405ff3e9e6 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Wed, 10 Jan 2024 12:59:30 -0500 Subject: [PATCH] progress --- board.mk | 2 ++ generate-meta-data.sh | 7 ------- manual-generate-meta-data.sh | 13 +++++++++++++ meta-info.txt | 2 ++ 4 files changed, 17 insertions(+), 7 deletions(-) delete mode 100755 generate-meta-data.sh create mode 100644 manual-generate-meta-data.sh create mode 100644 meta-info.txt diff --git a/board.mk b/board.mk index bfef81354..c10fa9ebb 100644 --- a/board.mk +++ b/board.mk @@ -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 diff --git a/generate-meta-data.sh b/generate-meta-data.sh deleted file mode 100755 index 1adf6ee65..000000000 --- a/generate-meta-data.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -export META_OUTPUT_ROOT_FOLDER=../../../generated/ - -cd ext/rusefi/firmware/ - -bash gen_config_board.sh ../../.. XXX \ No newline at end of file diff --git a/manual-generate-meta-data.sh b/manual-generate-meta-data.sh new file mode 100644 index 000000000..d9ed7aa6d --- /dev/null +++ b/manual-generate-meta-data.sh @@ -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 \ No newline at end of file diff --git a/meta-info.txt b/meta-info.txt new file mode 100644 index 000000000..53850cbd0 --- /dev/null +++ b/meta-info.txt @@ -0,0 +1,2 @@ +# todo: find a way for build-firmware.yaml to consume this file? maybe the other way around? +shortBoardName=XXX \ No newline at end of file