mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[ion] Clean test.external_flash target
This commit is contained in:
@@ -12,6 +12,7 @@ endif
|
||||
SFLAGS += -Iion/include/ion/keyboard/$(ION_KEYBOARD_LAYOUT)
|
||||
|
||||
include ion/src/$(PLATFORM)/Makefile
|
||||
-include ion/test/$(PLATFORM)/Makefile
|
||||
include ion/src/shared/tools/Makefile
|
||||
|
||||
# We need to work around a GCC bug (concerning versions < 5.1). It is valid in
|
||||
@@ -42,10 +43,6 @@ tests += $(addprefix ion/test/,\
|
||||
utf8_helper.cpp\
|
||||
)
|
||||
|
||||
TEST_EXT_FLASH_REPROGRAM ?= 0
|
||||
SFLAGS += -DTEST_EXT_FLASH_REPROGRAM=$(TEST_EXT_FLASH_REPROGRAM)
|
||||
external_flash_tests += ion/test/external_flash.cpp
|
||||
|
||||
ifdef ION_STORAGE_LOG
|
||||
SFLAGS += -DION_STORAGE_LOG=1
|
||||
endif
|
||||
|
||||
1
ion/test/device/Makefile
Normal file
1
ion/test/device/Makefile
Normal file
@@ -0,0 +1 @@
|
||||
include ion/test/device/$(MODEL)/Makefile
|
||||
4
ion/test/device/n0110/Makefile
Normal file
4
ion/test/device/n0110/Makefile
Normal file
@@ -0,0 +1,4 @@
|
||||
TEST_EXT_FLASH_REPROGRAM ?= 0
|
||||
SFLAGS += -DTEST_EXT_FLASH_REPROGRAM=$(TEST_EXT_FLASH_REPROGRAM)
|
||||
test_ion_external_flash_src += ion/test/$(PLATFORM)/$(MODEL)/external_flash.cpp
|
||||
$(call object_for,$(test_ion_external_flash_src)): SFLAGS += $(ION_DEVICE_SFLAGS)
|
||||
@@ -4,13 +4,13 @@ QUIZ_USE_CONSOLE ?= 0
|
||||
$(call object_for,quiz/src/runner.cpp): SFLAGS += -DQUIZ_USE_CONSOLE=$(QUIZ_USE_CONSOLE)
|
||||
|
||||
define rule_for_quiz_symbols
|
||||
$$(BUILD_DIR)/quiz/src/$(1)_symbols.c: $$($(1)) | $$$$(@D)/.
|
||||
$$(BUILD_DIR)/quiz/src/$(subst _src,,$(1))_symbols.c: $$($(1)) | $$$$(@D)/.
|
||||
@ echo "AWK $$@"
|
||||
$$(Q) awk -f quiz/src/symbols.awk $$($(1)) > $$@
|
||||
endef
|
||||
|
||||
$(eval $(call rule_for_quiz_symbols,tests))
|
||||
$(eval $(call rule_for_quiz_symbols,external_flash_tests))
|
||||
$(eval $(call rule_for_quiz_symbols,test_ion_external_flash_src))
|
||||
|
||||
runner_src += $(addprefix quiz/src/, \
|
||||
assertions.cpp \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
executables += test_external_flash
|
||||
executables += test.external_flash
|
||||
|
||||
$(BUILD_DIR)/test_external_flash.$(EXE): LDSCRIPT = ion/test/external_flash_tests.ld
|
||||
$(BUILD_DIR)/test_external_flash.$(EXE): $(BUILD_DIR)/quiz/src/external_flash_tests_symbols.o $(runner_objs) $(call object_for,$(tests_external_flash)) $(call object_for,$(ion_device_dfu_relocated_src))
|
||||
$(BUILD_DIR)/test.external_flash.$(EXE): LDSCRIPT = ion/test/device/n0110/external_flash_tests.ld
|
||||
$(BUILD_DIR)/test.external_flash.$(EXE): $(BUILD_DIR)/quiz/src/test_ion_external_flash_symbols.o $(call object_for,$(src) $(ion_device_dfu_relocated_src) $(test_ion_external_flash_src) $(runner_src))
|
||||
|
||||
Reference in New Issue
Block a user