Makefile.efm32gg11 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. VPATH += :$(HALPATH)/efm32gg11
  2. VPATH += :$(HALPATH)/silabs_sdk/platform/Device/SiliconLabs/EFM32GG11B/Source/GCC
  3. VPATH += :$(HALPATH)/silabs_sdk/platform/Device/SiliconLabs/EFM32GG11B/Source
  4. VPATH += :$(HALPATH)/silabs_sdk/platform/emlib/src
  5. SRC += system_efm32gg11b.c efm32gg11_hal.c
  6. ASRC += startup_efm32gg11b.S
  7. #SiLabs Emlib stuff
  8. SRC += em_cmu.c em_system.c em_usart.c em_gpio.c
  9. EXTRAINCDIRS += $(HALPATH)/efm32gg11
  10. EXTRAINCDIRS += $(HALPATH)/silabs_sdk/platform/CMSIS/Include
  11. EXTRAINCDIRS += $(HALPATH)/silabs_sdk/platform/emlib/inc
  12. EXTRAINCDIRS += $(HALPATH)/silabs_sdk/platform/Device/SiliconLabs/EFM32GG11B/Include
  13. CFLAGS += -DHFXO_FREQ=7372800UL
  14. MCU_FLAGS = -mcpu=cortex-m4
  15. CC = arm-none-eabi-gcc
  16. OBJCOPY = arm-none-eabi-objcopy
  17. OBJDUMP = arm-none-eabi-objdump
  18. SIZE = arm-none-eabi-size
  19. AR = arm-none-eabi-ar rcs
  20. NM = arm-none-eabi-nm
  21. #Output Format = Binary for this target
  22. FORMAT = binary
  23. CFLAGS += -gdwarf-2 -mthumb -fmessage-length=0 -mno-sched-prolog -fno-builtin -ffunction-sections -fdata-sections
  24. CPPFLAGS += $(CFLAGS)
  25. ASFLAGS += $(CFLAGS)
  26. CDEFS += -DEFM32GG11B120F2048GQ64
  27. LDFLAGS += --specs=nano.specs -T $(HALPATH)/silabs_sdk/platform/Device/SiliconLabs/EFM32GG11B/Source/GCC/efm32gg11b.ld -Wl,--gc-sections -Wl,--start-group -lgcc -lc -lnosys -Wl,--end-group -lm