Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d013077

Browse files
committed
* Remove the 2p0_ 2p0 string from riscV instr set specification else
if does not find the right libgcc * added libbase to the list of LiteX libs to be linked (has memspeed and memtest)
1 parent a5e7994 commit d013077

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

LiteX/software/makefile.inc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ LITEX_PLATFORM?=radiona_ulx3s
1111

1212
BUILD_DIR?=$(LEARN_FPGA_DIR)/LiteX/build/$(LITEX_PLATFORM)
1313

14-
1514
include $(BUILD_DIR)/software/include/generated/variables.mak
1615
include $(SOC_DIRECTORY)/software/common.mak
1716

@@ -21,6 +20,14 @@ BIOS_SRC_DIR=$(LITEX_DIR)/litex/litex/soc/software/bios
2120
# some functions, e.g. floating-point) with libgcc (that has everything)
2221
LIBS:=$(LIBS:libcompiler_rt=libgcc)
2322

23+
# add libbase, that has memspeed and memtest
24+
LIBS += -lbase
25+
26+
# Remove the 2p0_ 2p0 string from riscV instr set
27+
# definition from LDFLAGS, else it does not find the
28+
# right libgcc
29+
LDFLAGS:=`echo $(LDFLAGS) | sed -E 's|2p0(_)?||'`
30+
2431
# Include path
2532
CFLAGS:=$(CFLAGS) -I../Libs -I$(BIOS_SRC_DIR)
2633
CXXFLAGS:=$(CXXFLAGS) -I../Libs -I../Libs/imgui -I$(BIOS_SRC_DIR) -fno-threadsafe-statics -fno-rtti

0 commit comments

Comments
 (0)