diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile index d0b90c7617b1aff94a526f69b62af40b02295092..40560b842bf474f9c07eee6ee92f8400327b8e78 100644 --- a/ports/stm32/Makefile +++ b/ports/stm32/Makefile @@ -42,7 +42,8 @@ OPENOCD ?= openocd OPENOCD_CONFIG ?= boards/openocd_stm32f4.cfg STARTUP_FILE ?= boards/startup_stm32$(MCU_SERIES).o -CROSS_COMPILE = arm-none-eabi- +# Select the cross compile prefix +CROSS_COMPILE ?= arm-none-eabi- INC += -I. INC += -I$(TOP)