fixes ISA handling
This commit is contained in:
parent
1b8f78fe78
commit
fe1136c7ce
|
@ -8,7 +8,7 @@ HEADERS := dhry.h
|
||||||
BOARD=iss
|
BOARD=iss
|
||||||
LINK_TARGET=link
|
LINK_TARGET=link
|
||||||
RISCV_ARCH:=rv32$(ISA)
|
RISCV_ARCH:=rv32$(ISA)
|
||||||
ifeq ($(ISA),e)
|
ifneq (,$(findstring e,$(ISA)))
|
||||||
RISCV_ABI:=ilp32e
|
RISCV_ABI:=ilp32e
|
||||||
else
|
else
|
||||||
RISCV_ABI:=ilp32
|
RISCV_ABI:=ilp32
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
TARGET = hello
|
TARGET = hello
|
||||||
|
ISA?=imc
|
||||||
|
|
||||||
C_SRCS = $(wildcard *.c)
|
C_SRCS = $(wildcard *.c)
|
||||||
HEADERS = $(wildcard *.h)
|
HEADERS = $(wildcard *.h)
|
||||||
OPT ?= -O2
|
OPT ?= -O2
|
||||||
|
@ -7,8 +8,12 @@ CFLAGS += $(OPT) -g
|
||||||
|
|
||||||
BOARD=iss
|
BOARD=iss
|
||||||
LINK_TARGET=link
|
LINK_TARGET=link
|
||||||
RISCV_ARCH:=rv32e
|
RISCV_ARCH:=rv32$(ISA)
|
||||||
RISCV_ABI:=ilp32e
|
ifneq (,$(findstring e,$(ISA)))
|
||||||
|
RISCV_ABI:=ilp32e
|
||||||
|
else
|
||||||
|
RISCV_ABI:=ilp32
|
||||||
|
endif
|
||||||
LDFLAGS += -g -Wl,--wrap=printf
|
LDFLAGS += -g -Wl,--wrap=printf
|
||||||
|
|
||||||
compiler := $(shell which riscv64-unknown-elf-gcc)
|
compiler := $(shell which riscv64-unknown-elf-gcc)
|
||||||
|
|
Loading…
Reference in New Issue