1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:32:45 +01:00

Merge pull request #14981 from maribu/target-arch

build system: Overwrite TARGET_ARCH per arch
This commit is contained in:
Francisco 2020-09-09 09:10:52 +02:00 committed by GitHub
commit f08e65cd0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 16 additions and 8 deletions

View File

@ -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/

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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