ports: Allow overriding CROSS_COMPILE in a custom makefile.

Many ports already allow overriding CROSS_COMPILE.  This modifies the
remaining ports to allow it as well.
pull/5466/head
David Lechner 2019-12-21 14:22:26 -06:00 zatwierdzone przez Damien George
rodzic d56bc6e03d
commit e79424d672
8 zmienionych plików z 9 dodań i 9 usunięć

Wyświetl plik

@ -6,7 +6,7 @@ QSTR_DEFS = qstrdefsport.h
# include py core make definitions
include $(TOP)/py/py.mk
CROSS_COMPILE = arm-none-eabi-
CROSS_COMPILE ?= arm-none-eabi-
INC += -I.
INC += -I$(TOP)

Wyświetl plik

@ -39,7 +39,7 @@ PORT ?= /dev/ttyACM0
BAUD ?= 115200
FLASH_MODE ?= qio
FLASH_SIZE ?= detect
CROSS_COMPILE = xtensa-lx106-elf-
CROSS_COMPILE ?= xtensa-lx106-elf-
ESP_SDK = $(shell $(CC) -print-sysroot)/usr
INC += -I.

Wyświetl plik

@ -9,7 +9,7 @@ QSTR_DEFS = qstrdefsport.h
include $(TOP)/py/py.mk
ifeq ($(CROSS), 1)
CROSS_COMPILE = arm-none-eabi-
CROSS_COMPILE ?= arm-none-eabi-
endif
INC += -I.

Wyświetl plik

@ -47,7 +47,7 @@ MICROPY_VFS_FAT ?= 0
MPY_CROSS = ../../mpy-cross/mpy-cross
MPY_TOOL = ../../tools/mpy-tool.py
CROSS_COMPILE = arm-none-eabi-
CROSS_COMPILE ?= arm-none-eabi-
INC += -I.
INC += -I../..

Wyświetl plik

@ -7,7 +7,7 @@ QSTR_DEFS = qstrdefsport.h
include $(TOP)/py/py.mk
XC16 = /opt/microchip/xc16/v1.35
CROSS_COMPILE = $(XC16)/bin/xc16-
CROSS_COMPILE ?= $(XC16)/bin/xc16-
PARTFAMILY = dsPIC33F
PART = 33FJ256GP506

Wyświetl plik

@ -9,7 +9,7 @@ include $(TOP)/py/py.mk
ARCH = $(shell uname -m)
ifneq ("$(ARCH)", "ppc64")
ifneq ("$(ARCH)", "ppc64le")
CROSS_COMPILE = powerpc64le-linux-
CROSS_COMPILE ?= powerpc64le-linux-
endif
endif

Wyświetl plik

@ -34,7 +34,7 @@ OPENOCD ?= openocd
OPENOCD_CONFIG ?= boards/openocd_stm32f4.cfg
STARTUP_FILE ?= lib/stm32lib/CMSIS/STM32$(MCU_SERIES_UPPER)xx/Source/Templates/gcc/startup_$(CMSIS_MCU_LOWER).o
CROSS_COMPILE = arm-none-eabi-
CROSS_COMPILE ?= arm-none-eabi-
INC += -I.
INC += -I..

Wyświetl plik

@ -20,10 +20,10 @@ endif
ifeq ($(USE_ARDUINO_TOOLCHAIN),1)
$(info Using ARDUINO toolchain)
CROSS_COMPILE = $(ARDUINO)/hardware/tools/arm-none-eabi/bin/arm-none-eabi-
CROSS_COMPILE ?= $(ARDUINO)/hardware/tools/arm-none-eabi/bin/arm-none-eabi-
else
$(info Using toolchain from PATH)
CROSS_COMPILE = arm-none-eabi-
CROSS_COMPILE ?= arm-none-eabi-
endif
CFLAGS_TEENSY = -DF_CPU=96000000 -DUSB_SERIAL -D__MK20DX256__