X-Git-Url: https://git.cryptolib.org/?p=arm-crypto-lib.git;a=blobdiff_plain;f=Makefile_cortexm3_conf.inc;fp=Makefile_cortexm3_conf.inc;h=491b7edea3872932369d88b1b97adff816557711;hp=0000000000000000000000000000000000000000;hb=566eed8328ea61e4b18a7a77031ca22cdaf21ccc;hpb=2b315cbc6459229aa65274be41647394be099b85 diff --git a/Makefile_cortexm3_conf.inc b/Makefile_cortexm3_conf.inc new file mode 100644 index 0000000..491b7ed --- /dev/null +++ b/Makefile_cortexm3_conf.inc @@ -0,0 +1,22 @@ +BOARD = lm3s9b90_cm3 +MCU_TARGET = cortex-m3 +MCU_OPTS = -mthumb +OPTIMIZE = -Os -fomit-frame-pointer +FLASHCMD = $(OPENOCD) -f openocd.cfg \ + -c "init" \ + -c "halt" \ + -c "flash write_image erase $(1) 0 bin" \ + -c "reset run" \ + -c "shutdown" + +override CFLAGS_A = $(COMMON_FLAGS) \ + -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $(1))) +override CFLAGS = $(COMMON_FLAGS) \ + -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $@)) + +override LDFLAGS = -g -T lm3s9b90.ld -Wl,--gc-sections \ + -Wl,--entry=reset_isr \ + -Wl,-Map,# no space at the end + +override ASFLAGS = -mcpu=$(MCU_TARGET) +