scripts,riscv32: fix compile error by missing zicsr with latest gcc

This commit is contained in:
Zihao Yu 2022-11-09 16:22:38 +08:00
parent 31a5a10f48
commit ad9504123f

View file

@ -1,5 +1,5 @@
CROSS_COMPILE := riscv64-linux-gnu-
COMMON_FLAGS := -fno-pic -march=rv32im -mabi=ilp32
COMMON_FLAGS := -fno-pic -march=rv32g -mabi=ilp32
CFLAGS += $(COMMON_FLAGS) -static
ASFLAGS += $(COMMON_FLAGS) -O0
LDFLAGS += -melf32lriscv