Commit c54cfe24 authored by Alessandro Rubini's avatar Alessandro Rubini

build: avoid internal "ptpdump" support in ppsi, when RAM won't fit

Etherbone won't fit with a full ppsi in the default RAM size for SPEC
cards. So this commit uses a ppsi hack to avoid internal ptpdump,
activating it when CONFIG_RAMSIZE is not 128kB and CONFIG_ETHERBONE is
set.

We should rather compare RAMSIZE with "< 131072", but neither gnu make
nor this version of Kconfig support numeric comparison.

This hack will soon disappera, as ppsi is gaining Kconfig support, so
wrpc-sw will be able to pass proper configuration. Also, 128kB will soon
be the default for SPEC images.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 0c2a3029
......@@ -111,10 +111,20 @@ all: tools $(OUTPUT).ram $(OUTPUT).vhd $(OUTPUT).mif
.PRECIOUS: %.elf %.bin
.PHONY: all tools clean gitmodules $(PPSI)/ppsi.o
# we need to remove "ptpdump" support for ppsi if RAM size is small and
# we include etherbone
ifneq ($CONFIG_RAMSIZE,131072)
ifdef CONFIG_ETHERBONE
PPSI_USER_CFLAGS = -DCONFIG_NO_PTPDUMP
endif
endif
PPSI_USER_CFLAGS += -DDIAG_PUTS=uart_sw_write_string
$(obj-ppsi):
$(MAKE) -C $(PPSI) ARCH=wrpc PROTO_EXT=whiterabbit \
CROSS_COMPILE=$(CROSS_COMPILE) CONFIG_NO_PRINTF=y \
USER_CFLAGS="-DDIAG_PUTS=uart_sw_write_string"
USER_CFLAGS="$(PPSI_USER_CFLAGS)"
sdb-lib/libsdbfs.a:
$(MAKE) -C sdb-lib
......
ppsi @ 2ec857c8
Subproject commit 1668b65cb98349804dae8d3dda5b3a9707bfa545
Subproject commit 2ec857c84f502ff674347ec4852ea74b8bef6cbb
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment