File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ LITEX_PLATFORM?=radiona_ulx3s
11
11
12
12
BUILD_DIR ?= $(LEARN_FPGA_DIR )/LiteX /build /$(LITEX_PLATFORM )
13
13
14
-
15
14
include $(BUILD_DIR )/software /include /generated /variables . mak
16
15
include $(SOC_DIRECTORY )/software /common . mak
17
16
@@ -21,6 +20,14 @@ BIOS_SRC_DIR=$(LITEX_DIR)/litex/litex/soc/software/bios
21
20
# some functions, e.g. floating-point) with libgcc (that has everything)
22
21
LIBS := $(LIBS :libcompiler_rt = libgcc )
23
22
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
+
24
31
# Include path
25
32
CFLAGS := $(CFLAGS ) -I .. /Libs -I $(BIOS_SRC_DIR )
26
33
CXXFLAGS := $(CXXFLAGS ) -I .. /Libs -I .. /Libs /imgui -I $(BIOS_SRC_DIR ) -fno -threadsafe -statics -fno -rtti
You can’t perform that action at this time.
0 commit comments