Split out scripts/code.py into scripts/code.py and scripts/data.py

This is to avoid unexpected script behavior even though data.py should
always return 0 bytes for littlefs. Maybe a check for this should be
added to CI?
This commit is contained in:
Christopher Haster
2022-02-18 23:57:25 -06:00
parent b045436c23
commit 2cdabe810d
3 changed files with 242 additions and 2 deletions

View File

@@ -44,6 +44,7 @@ override CFLAGS += -Wextra -Wshadow -Wjump-misses-init -Wundef
ifdef VERBOSE
override TESTFLAGS += -v
override CODEFLAGS += -v
override DATAFLAGS += -v
override COVERAGEFLAGS += -v
endif
ifdef EXEC
@@ -52,9 +53,11 @@ endif
ifdef BUILDDIR
override TESTFLAGS += --build-dir="$(BUILDDIR:/=)"
override CODEFLAGS += --build-dir="$(BUILDDIR:/=)"
override DATAFLAGS += --build-dir="$(BUILDDIR:/=)"
endif
ifneq ($(NM),nm)
override CODEFLAGS += --nm-tool="$(NM)"
override DATAFLAGS += --nm-tool="$(NM)"
endif
@@ -77,6 +80,10 @@ tags:
code: $(OBJ)
./scripts/code.py -S $^ $(CODEFLAGS)
.PHONY: data
data: $(OBJ)
./scripts/data.py -S $^ $(DATAFLAGS)
.PHONY: test
test:
./scripts/test.py $(TESTFLAGS)