options:
  optimize : [ O1, O2, O3, Ofast, Os ]
import:
 - bootloader.rtebuild
targets:
  arm:
    csettings   : [ "-mcpu=${mcpu}${features}", "-mfloat-abi=${float}", "-mfpu=auto", "-%{optimize}", -gdwarf-2, -ffunction-sections, -fdata-sections ]
    cwarnings   : [ -Wall, -Wextra, -Wshadow, -Wundef, -Wstrict-prototypes, -Wpedantic ]
    mapinfo     : [ "-Xlinker -Map=${builddir}/${targetName}.map" ]
  armcm:
    toolchain   : GCC
    features    : ""
    cflags      : [ "${csettings}", "${cwarnings}", -c, -xc, -std=gnu99 ]
    asmflags    : [ "${csettings}", "${cwarnings}", -c ]
    linkflags   : [ "${csettings}", "${cwarnings}", "${mapinfo}", --specs=nano.specs, --specs=rdimon.specs ]
    linkscript  : "config/core_m/rtebuild.ld"
  armcm23ns:
    mcpu      : cortex-m23
    float     : soft
    cflags    : [ -mcmse ]
  armcm33ns:
    mcpu      : cortex-m33
    float     : hard
    cflags    : [ -mcmse ]
  armcm35pns:
    mcpu      : cortex-m35p
    float     : hard
    cflags    : [ -mcmse ]
  armcm55ns:
    mcpu      : cortex-m55
    float     : hard
    cflags    : [ -mcmse ]
