gcc.rtebuild 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. options:
  2. optimize : [ O1, O2, O3, Ofast, Os ]
  3. import:
  4. - bootloader.rtebuild
  5. targets:
  6. arm:
  7. toolchain: GCC
  8. csettings : [ -mlittle-endian, -gdwarf-3, "-%{optimize}", -fmessage-length=0, -ffunction-sections, -fdata-sections ]
  9. cwarnings : [ -Wall, -Wextra, -Wshadow, -Wundef, -Wstrict-prototypes ]
  10. armcm:
  11. features : ""
  12. cflags : [ -xc, -std=gnu99, -c, "-mcpu=${cpu}${features}", "-mfloat-abi=${float}", "${csettings}", "${cwarnings}" ]
  13. asmflags : [ -c, "-mcpu=${cpu}${features}", "-mfloat-abi=${float}", "${csettings}", "${cwarnings}" ]
  14. linkflags : [ "-mcpu=${cpu}${features}", "-mfloat-abi=${float}", "${csettings}", "${cwarnings}", "-Xlinker -Map=${builddir}/${targetName}.map", --specs=nano.specs, --specs=rdimon.specs ]
  15. linkscript : "config/core_m/rtebuild.ld"
  16. armcm23ns:
  17. cpu : cortex-m23
  18. float : soft
  19. cflags : [ -mcmse ]
  20. armcm33ns:
  21. cpu : cortex-m33
  22. float : hard
  23. cflags : [ -mcmse ]
  24. armcm35pns:
  25. cpu : cortex-m35p
  26. float : hard
  27. cflags : [ -mcmse ]
  28. armcm55ns:
  29. cpu : cortex-m55
  30. float : hard
  31. cflags : [ -mcmse ]