Commit b15ffc99 authored by Alessandro Rubini's avatar Alessandro Rubini

for-ppsi: Makefile changes to please "make -j8"

We need to link ppsi/proto-standard/libstd.a explicitly, but we also
need a rule to generate it, or parallel compilation fails saying it
has no rule. The makefile depended on build order (my fault), as
building ppsi/ppsi.o, with its rule), also built libstd.a

BTW, this removes ppsi/arch-wrpc/libarch.a from the dependencies,
because it is already linked in making ppsi/ppsi.o (otoh the need for
an explicit mention of libstd.a can't easily be solved in ppsi
itself, so it remains here).
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent b01313dc
......@@ -75,12 +75,14 @@ cflags-$(CONFIG_PPSI) += \
-I$(PTP_NOPOSIX)/PTPWRd \
-include $(PTP_NOPOSIX)/PTPWRd/dep/trace.h \
obj-ppsi = \
$(PPSI)/ppsi.o \
$(PPSI)/proto-standard/libstd.a
obj-$(CONFIG_PPSI) += \
monitor/monitor_ppsi.o \
lib/ppsi-wrappers.o \
$(PPSI)/ppsi.o \
$(PPSI)/arch-wrpc/libarch.a \
$(PPSI)/proto-standard/libstd.a
$(obj-ppsi)
CFLAGS_PLATFORM = -mmultiply-enabled -mbarrel-shift-enabled
LDFLAGS_PLATFORM = -mmultiply-enabled -mbarrel-shift-enabled \
......@@ -111,7 +113,7 @@ all: tools $(OUTPUT).ram $(OUTPUT).vhd $(OUTPUT).mif
.PRECIOUS: %.elf %.bin
.PHONY: all tools clean gitmodules $(PPSI)/ppsi.o
$(PPSI)/ppsi.o:
$(obj-ppsi):
$(MAKE) -C $(PPSI) ARCH=wrpc PROTO_EXT=whiterabbit \
CROSS_COMPILE=$(CROSS_COMPILE) CONFIG_NO_PRINTF=y
......
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