Build: fix target test_external_flash

This commit is contained in:
Émilie Feral
2019-04-17 11:02:15 +02:00
parent eb065dacba
commit 3f8218febb
4 changed files with 4 additions and 5 deletions

View File

@@ -26,8 +26,3 @@ $(BUILD_DIR)/quiz/src/%_symbols.o: SFLAGS += -Iquiz/src
$(BUILD_DIR)/test.$(EXE): $(BUILD_DIR)/quiz/src/tests_symbols.o $(runner_objs) $(call object_for,$(tests))
ifeq ($(MODEL),n0200)
$(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))
endif

View File

@@ -75,3 +75,5 @@ endif
@echo "Building an internal and an external binary for $<"
$(Q) $(OBJCOPY) -O binary -j .text.external -j .rodata.external $< $(basename $<).external.bin
$(Q) $(OBJCOPY) -O binary -j .isr_vector_table -j .header -j .text.internal -j .rodata.internal -j .init_array -j .data $< $(basename $<).internal.bin
include scripts/targets.device.$(MODEL).mak

View File

View File

@@ -0,0 +1,2 @@
$(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))