options:
  optimize : [ O1, O2, Oz, Ofast, Os ]
import:
 - bootloader.rtebuild
targets:
  arm:
    csettings   : [ --target=arm-arm-none-eabi, "-mcpu=${mcpu}${features}", "-mfloat-abi=${float}", "-%{optimize}", -fno-rtti, -fshort-enums, -fshort-wchar, -ffunction-sections ]
    cwarnings   : [ -Weverything, -Wno-covered-switch-default, -Wno-reserved-id-macro, -Wno-unused-macros, -Wno-extra, -Wno-gnu-statement-expression, -Wno-sign-conversion ]
    mapinfo     : [ "-Wl,--info=summarysizes", "-Wl,--map", "-Wl,--load_addr_map_info", "-Wl,--xref", "-Wl,--callgraph", "-Wl,--symbols", "-Wl,--info=sizes", "-Wl,--info=totals", "-Wl,--info=unused", "-Wl,--info=veneers", "-Wl,--list=${builddir}/${targetName}.map" ]
  armcm:
    toolchain   : ARMCC6_LTM
    features    : ""
    cflags      : [ "${csettings}", "${cwarnings}", -c, -xc, -std=c99 ]
    asmflags    : [ "${csettings}", "${cwarnings}", -c ]
    linkflags   : [ "${csettings}", "${cwarnings}", "${mapinfo}", "-Wl,--strict", "-Wl,--no_remove", "-Wl,--entry=Reset_Handler", "-Wl,--diag_suppress=L6314W" ]
    linkscript  : "config/core_m/rtebuild.sct"
  armcm23ns:
    mcpu      : cortex-m23
    float     : soft
    cflags    : [ -mcmse ]
  armcm33ns:
    mcpu      : cortex-m33
    float     : hard
    cflags    : [ -mcmse ]
