adds some consistency fixes for variable ISA settings
This commit is contained in:
		@@ -1,5 +1,7 @@
 | 
			
		||||
 | 
			
		||||
TARGET  = hello
 | 
			
		||||
ISA?=imc
 | 
			
		||||
 | 
			
		||||
C_SRCS  = $(wildcard *.c) 
 | 
			
		||||
HEADERS = $(wildcard *.h)
 | 
			
		||||
OPT ?= -O2
 | 
			
		||||
@@ -7,8 +9,12 @@ CFLAGS += $(OPT) -g
 | 
			
		||||
 | 
			
		||||
BOARD=iss
 | 
			
		||||
LINK_TARGET=link
 | 
			
		||||
RISCV_ARCH:=rv32e
 | 
			
		||||
RISCV_ABI:=ilp32e
 | 
			
		||||
RISCV_ARCH:=rv32$(ISA)
 | 
			
		||||
ifeq ($(ISA),e)
 | 
			
		||||
    RISCV_ABI:=ilp32e
 | 
			
		||||
else
 | 
			
		||||
    RISCV_ABI:=ilp32
 | 
			
		||||
endif
 | 
			
		||||
LDFLAGS += -g -Wl,--wrap=printf
 | 
			
		||||
 | 
			
		||||
compiler := $(shell which riscv64-unknown-elf-gcc)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user