From 53e0ed0b907321dd74d70413c6870ff3b3ae02a2 Mon Sep 17 00:00:00 2001 From: Vighnesh Iyer Date: Wed, 13 Mar 2024 15:19:52 -0700 Subject: [PATCH] fixup fpga bootrom build for gcc 13 --- fpga/src/main/resources/vcu118/sdboot/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fpga/src/main/resources/vcu118/sdboot/Makefile b/fpga/src/main/resources/vcu118/sdboot/Makefile index e4636129..46078b69 100644 --- a/fpga/src/main/resources/vcu118/sdboot/Makefile +++ b/fpga/src/main/resources/vcu118/sdboot/Makefile @@ -5,12 +5,13 @@ BUILD_DIR := $(ROOT_DIR)/build CC=$(RISCV)/bin/riscv64-unknown-elf-gcc OBJCOPY=$(RISCV)/bin/riscv64-unknown-elf-objcopy OBJDUMP=$(RISCV)/bin/riscv64-unknown-elf-objdump -CFLAGS=-march=rv64ima -mcmodel=medany -O2 -std=gnu11 -Wall -nostartfiles +CFLAGS=-march=rv64ima_zicsr_zifencei -mcmodel=medany -O2 -std=gnu11 -Wall -nostartfiles CFLAGS+= -fno-common -g -DENTROPY=0 -mabi=lp64 -DNONSMP_HART=0 CFLAGS+= -I $(ROOT_DIR)/include -I. LFLAGS=-static -nostdlib -L $(ROOT_DIR)/linker -T sdboot.elf.lds -PBUS_CLK ?= 1000000 # default to 1MHz but really should be overridden +# default to 1MHz but really should be overridden +PBUS_CLK ?= 1000000 default: elf bin dump