|
|
|
@ -24,10 +24,10 @@ export RESET = # dfu-util has no support for resetting the device
|
|
|
|
|
# define build specific options
|
|
|
|
|
export CPU_USAGE = -mcpu=cortex-m3
|
|
|
|
|
export FPU_USAGE =
|
|
|
|
|
export CFLAGS += -ggdb -g3 -std=gnu99 -Os -Wall -Wstrict-prototypes $(CPU_USAGE) $(FPU_USAGE) -mlittle-endian -mthumb -mthumb-interwork -nostartfiles
|
|
|
|
|
export CFLAGS += -ggdb -g3 -std=gnu99 -Os -Wall -Wstrict-prototypes $(CPU_USAGE) $(FPU_USAGE) -mlittle-endian -mthumb -mno-thumb-interwork -nostartfiles
|
|
|
|
|
export CFLAGS += -ffunction-sections -fdata-sections -fno-builtin
|
|
|
|
|
export ASFLAGS += -ggdb -g3 $(CPU_USAGE) $(FPU_USAGE) -mlittle-endian
|
|
|
|
|
export LINKFLAGS += -ggdb -g3 -std=gnu99 $(CPU_USAGE) $(FPU_USAGE) -mlittle-endian -static -lgcc -mthumb -mthumb-interwork -nostartfiles
|
|
|
|
|
export LINKFLAGS += -ggdb -g3 -std=gnu99 $(CPU_USAGE) $(FPU_USAGE) -mlittle-endian -static -lgcc -mthumb -mno-thumb-interwork -nostartfiles
|
|
|
|
|
# $(LINKERSCRIPT) is specified in cpu/Makefile.include
|
|
|
|
|
export LINKFLAGS += -T$(LINKERSCRIPT)
|
|
|
|
|
export OFLAGS = -O ihex
|
|
|
|
|