mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
build system: Overwrite TARGET_ARCH per arch
Add `TARGET_ARCH_<ARCH>` for each architecture (e.g. `TARGET_ARCH_CORTEX` for Cortex M) to allow users to overwrite the target triple for a specific arch from ~/.profile or ~/.bashrc (or the like) without overwriting it for all others as well.
This commit is contained in:
parent
b353733d83
commit
7c1949341e
@ -1,5 +1,6 @@
|
||||
# Target architecture for the build. Use arm-none-eabi if you are unsure.
|
||||
TARGET_ARCH ?= arm-none-eabi
|
||||
TARGET_ARCH_ARM7 ?= arm-none-eabi
|
||||
TARGET_ARCH ?= $(TARGET_ARCH_ARM7)
|
||||
|
||||
INCLUDES += -I$(RIOTBASE)/cpu/arm7_common/include/
|
||||
|
||||
|
@ -18,7 +18,8 @@ include $(RIOTCPU)/esp_common/Makefile.include
|
||||
|
||||
# regular Makefile
|
||||
|
||||
TARGET_ARCH ?= xtensa-esp32-elf
|
||||
TARGET_ARCH_ESP32 ?= xtensa-esp32-elf
|
||||
TARGET_ARCH ?= $(TARGET_ARCH_ESP32)
|
||||
|
||||
PSEUDOMODULES += esp_eth_hw
|
||||
PSEUDOMODULES += esp_gdbstub
|
||||
|
@ -24,7 +24,8 @@ include $(RIOTCPU)/esp_common/Makefile.include
|
||||
|
||||
# regular Makefile
|
||||
|
||||
TARGET_ARCH ?= xtensa-esp8266-elf
|
||||
TARGET_ARCH_ESP8266 ?= xtensa-esp8266-elf
|
||||
TARGET_ARCH ?= $(TARGET_ARCH_ESP8266)
|
||||
|
||||
PSEUDOMODULES += esp_sw_timer
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
# Target architecture for the build. Use avr if you are unsure.
|
||||
TARGET_ARCH ?= avr
|
||||
TARGET_ARCH_AVR ?= avr
|
||||
TARGET_ARCH ?= $(TARGET_ARCH_AVR)
|
||||
|
||||
CFLAGS_CPU = -mmcu=$(CPU) $(CFLAGS_FPU)
|
||||
CFLAGS_LINK = -ffunction-sections -fdata-sections -fno-builtin -fshort-enums
|
||||
|
@ -3,7 +3,8 @@ ifeq (,$(CPU_MODEL))
|
||||
endif
|
||||
|
||||
# Target triple for the build. Use arm-none-eabi if you are unsure.
|
||||
TARGET_ARCH ?= arm-none-eabi
|
||||
TARGET_ARCH_CORTEXM ?= arm-none-eabi
|
||||
TARGET_ARCH ?= $(TARGET_ARCH_CORTEXM)
|
||||
|
||||
# define build specific options
|
||||
CFLAGS_CPU = -mcpu=$(MCPU) -mlittle-endian -mthumb $(CFLAGS_FPU)
|
||||
|
@ -1,5 +1,6 @@
|
||||
# Target triple for the build.
|
||||
TARGET_ARCH ?= mips-mti-elf
|
||||
TARGET_ARCH_MIPS ?= mips-mti-elf
|
||||
TARGET_ARCH ?= $(TARGET_ARCH_MIPS)
|
||||
|
||||
ABI = 32
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
# Target architecture for the build. Use msp430-elf if you are unsure.
|
||||
TARGET_ARCH ?= msp430-elf
|
||||
TARGET_ARCH_MSP430 ?= msp430-elf
|
||||
TARGET_ARCH ?= $(TARGET_ARCH_MSP430)
|
||||
|
||||
MSP430_SUPPORT_FILES ?= $(RIOTCPU)/msp430_common/vendor/msp430-gcc-support-files
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
# Target architecture for the build.
|
||||
TARGET_ARCH ?= riscv-none-embed
|
||||
TARGET_ARCH_RISCV ?= riscv-none-embed
|
||||
TARGET_ARCH ?= $(TARGET_ARCH_RISCV)
|
||||
|
||||
# define build specific options
|
||||
CFLAGS_CPU = -march=rv32imac -mabi=ilp32 -mcmodel=medlow -msmall-data-limit=8
|
||||
|
Loading…
Reference in New Issue
Block a user