diff --git a/benchmarks/dhrystone/Makefile b/benchmarks/dhrystone/Makefile index 2c867e9..42a88cd 100644 --- a/benchmarks/dhrystone/Makefile +++ b/benchmarks/dhrystone/Makefile @@ -8,7 +8,7 @@ HEADERS := dhry.h BOARD=iss LINK_TARGET=link RISCV_ARCH:=rv32$(ISA) -ifeq ($(ISA),e) +ifneq (,$(findstring e,$(ISA))) RISCV_ABI:=ilp32e else RISCV_ABI:=ilp32 diff --git a/hello-world/Makefile b/hello-world/Makefile index 50b9179..aaa1e40 100644 --- a/hello-world/Makefile +++ b/hello-world/Makefile @@ -1,4 +1,3 @@ - TARGET = hello ISA?=imc @@ -10,7 +9,7 @@ CFLAGS += $(OPT) -g BOARD=iss LINK_TARGET=link RISCV_ARCH:=rv32$(ISA) -ifeq ($(ISA),e) +ifneq (,$(findstring e,$(ISA))) RISCV_ABI:=ilp32e else RISCV_ABI:=ilp32