tests: gadget0: switch to Linker script generation

We're about to drop the very limited set of fixed linker scripts we
have, so convert all the in tree code to linker script generation
This commit is contained in:
Karl Palsson
2020-10-11 22:28:20 +00:00
parent 9ae81c798a
commit fd3c950b29
9 changed files with 31 additions and 63 deletions

View File

@@ -32,12 +32,9 @@ INCLUDES += $(patsubst %,-I%, . $(SHARED_DIR))
OPENCM3_DIR=../../
### This section can go to an arch shared rules eventually...
LDSCRIPT = ../../lib/stm32/f1/stm32f103x8.ld
OPENCM3_LIB = opencm3_stm32f1
OPENCM3_DEFS = -DSTM32F1
ARCH_FLAGS = -mthumb -mcpu=cortex-m3
#OOCD_INTERFACE = jlink
#OOCD_TARGET = stm32f1x
OOCD_FILE = openocd.stm32f103-generic.cfg
DEVICE=stm32f103x8
OOCD_FILE = openocd.$(BOARD).cfg
include $(OPENCM3_DIR)/mk/genlink-config.mk
include $(OPENCM3_DIR)/mk/genlink-rules.mk
include ../rules.mk