From 6947dff7dacc513efa2dbe4392c31ecb07ec50db Mon Sep 17 00:00:00 2001 From: Boris Vinogradov Date: Thu, 28 Mar 2019 10:02:57 +0300 Subject: [PATCH] stm32/Makefile: Allow to override CROSS_COMPILE with included Makefile. --- ports/stm32/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile index d0b90c7617..40560b842b 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)