From 30a0d34151d2cf27e8efba0f395da95cda8a5c5b Mon Sep 17 00:00:00 2001 From: Santosh Raghav Srivatsan Date: Sun, 5 Dec 2021 15:55:43 -0500 Subject: [PATCH] Fixed Makefile --- runtime/Makefile | 2 +- tests/runtime/simple64/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/Makefile b/runtime/Makefile index 964a8370..cd5bfa74 100644 --- a/runtime/Makefile +++ b/runtime/Makefile @@ -9,7 +9,7 @@ AR = $(RISCV64_TOOLCHAIN_PATH)/bin/riscv64-unknown-elf-gcc-ar DP = $(RISCV64_TOOLCHAIN_PATH)/bin/riscv64-unknown-elf-objdump CP = $(RISCV64_TOOLCHAIN_PATH)/bin/riscv64-unknown-elf-objcopy -CFLAGS += -O3 -march=rv64i -mabi=lp64 -Wstack-usage=1024 -fno-exceptions -fdata-sections -ffunction-sections +CFLAGS += -O3 -march=rv64imfd -mabi=lp64d -Wstack-usage=1024 -fno-exceptions -fdata-sections -ffunction-sections CFLAGS += -I./include -I../hw PROJECT = libvortexrt diff --git a/tests/runtime/simple64/Makefile b/tests/runtime/simple64/Makefile index 10ff5fef..2078b238 100644 --- a/tests/runtime/simple64/Makefile +++ b/tests/runtime/simple64/Makefile @@ -7,7 +7,7 @@ AR = $(RISCV64_TOOLCHAIN_PATH)/bin/riscv64-unknown-elf-gcc-ar DP = $(RISCV64_TOOLCHAIN_PATH)/bin/riscv64-unknown-elf-objdump CP = $(RISCV64_TOOLCHAIN_PATH)/bin/riscv64-unknown-elf-objcopy -CFLAGS += -march=rv64i -mabi=lp64 -O3 -Wstack-usage=1024 -ffreestanding -nostartfiles -fdata-sections -ffunction-sections +CFLAGS += -march=rv64imfd -mabi=lp64d -O3 -Wstack-usage=1024 -ffreestanding -nostartfiles -fdata-sections -ffunction-sections CFLAGS += -I$(VORTEX_RT_PATH)/include -I$(VORTEX_RT_PATH)/../hw LDFLAGS += -Wl,-Bstatic,-T,$(VORTEX_RT_PATH)/linker/vx_link64.ld -Wl,--noinhibit-exec,--gc-sections $(VORTEX_RT_PATH)/libvortexrt.a