compile: combine common flags, and add RAM_LENGTH and FLASH_LENGTH

This commit is contained in:
Daniel Fekete 2017-07-27 06:34:37 +02:00
parent 7cf97498dd
commit 7e3196e0b1
1 changed files with 5 additions and 3 deletions

View File

@ -27,11 +27,13 @@ compiler.ar.cmd=arm-none-eabi-ar
compiler.c.elf.cmd=arm-none-eabi-gcc compiler.c.elf.cmd=arm-none-eabi-gcc
compiler.objcopy.cmd=arm-none-eabi-objcopy compiler.objcopy.cmd=arm-none-eabi-objcopy
compiler.S.flags=-mcpu={build.mcu} -DF_CPU={build.f_cpu} -mthumb -c -g -x assembler-with-cpp compiler.extra_flags=-mcpu={build.mcu} -DF_CPU={build.f_cpu} -mthumb -DSTM32GENERIC -DRAM_LENGTH={upload.maximum_data_size} -DFLASH_LENGTH={upload.maximum_size}
compiler.c.flags=-mcpu={build.mcu} -DF_CPU={build.f_cpu} -mthumb -c -g -MMD -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD compiler.S.flags={compiler.extra_flags} -c -g -x assembler-with-cpp
compiler.cpp.flags=-mcpu={build.mcu} -DF_CPU={build.f_cpu} -mthumb -c -g -Os {compiler.warning_flags} -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD compiler.c.flags={compiler.extra_flags} -c -g -MMD -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
compiler.cpp.flags={compiler.extra_flags} -c -g -Os {compiler.warning_flags} -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD
compiler.ar.flags=rcs compiler.ar.flags=rcs