2018-09-12 04:22:54 -06:00
|
|
|
#
|
|
|
|
# Configure the GCC_TARGET_ARCH variable and append the
|
|
|
|
# appropriate RISC-V ISA extensions.
|
|
|
|
#
|
|
|
|
|
|
|
|
ifeq ($(BR2_riscv),y)
|
|
|
|
|
2018-10-21 13:12:01 -06:00
|
|
|
ifeq ($(BR2_RISCV_64),y)
|
2018-09-12 04:22:54 -06:00
|
|
|
GCC_TARGET_ARCH := rv64i
|
2018-10-21 13:12:01 -06:00
|
|
|
else
|
|
|
|
GCC_TARGET_ARCH := rv32i
|
2018-09-12 04:22:54 -06:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_RISCV_ISA_RVM),y)
|
|
|
|
GCC_TARGET_ARCH := $(GCC_TARGET_ARCH)m
|
|
|
|
endif
|
|
|
|
ifeq ($(BR2_RISCV_ISA_RVA),y)
|
|
|
|
GCC_TARGET_ARCH := $(GCC_TARGET_ARCH)a
|
|
|
|
endif
|
|
|
|
ifeq ($(BR2_RISCV_ISA_RVF),y)
|
|
|
|
GCC_TARGET_ARCH := $(GCC_TARGET_ARCH)f
|
|
|
|
endif
|
|
|
|
ifeq ($(BR2_RISCV_ISA_RVD),y)
|
|
|
|
GCC_TARGET_ARCH := $(GCC_TARGET_ARCH)d
|
|
|
|
endif
|
|
|
|
ifeq ($(BR2_RISCV_ISA_RVC),y)
|
|
|
|
GCC_TARGET_ARCH := $(GCC_TARGET_ARCH)c
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|