Commit c1eee4db authored by Aurelio Colosimo's avatar Aurelio Colosimo Committed by Alessandro Rubini

Makefile: actually build ppsi

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 0408b799
......@@ -66,6 +66,25 @@ obj-$(CONFIG_PTP_NOPOSIX) += wrc_ptp.o \
$(PTP_NOPOSIX)/libposix/freestanding-startup.o \
$(PTP_NOPOSIX)/libposix/freestanding-wrapper.o
cflags-$(CONFIG_PPSI) += \
-ffreestanding \
-Iinclude \
-I$(PPSI)/include \
-I$(PPSI)/arch-spec/include \
-I$(PPSI)/proto-ext-whiterabbit \
-Iboards/spec
# FIXM: The following it temporary, untile we clean up
cflags-$(CONFIG_PPSI) += \
-I$(PTP_NOPOSIX)/PTPWRd \
-I$(PTP_NOPOSIX)/wrsw_hal \
-include $(PTP_NOPOSIX)/PTPWRd/dep/trace.h \
obj-$(CONFIG_PPSI) += wrc_ptp_ppsi.o \
monitor/monitor_ppsi.o \
$(PPSI)/ppsi.o \
$(PPSI)/arch-spec/libarch.a
CFLAGS_PLATFORM = -mmultiply-enabled -mbarrel-shift-enabled
LDFLAGS_PLATFORM = -mmultiply-enabled -mbarrel-shift-enabled \
-nostdlib -T $(LDS)
......@@ -96,6 +115,10 @@ all: tools $(OUTPUT).ram $(OUTPUT).vhd
.PRECIOUS: %.elf %.bin
.PHONY: all tools clean gitmodules $(PPSI)/ppsi.o
$(PPSI)/ppsi.o:
$(MAKE) -C $(PPSI) ARCH=spec PROTO_EXT=whiterabbit HAS_FULL_DIAG=y \
CROSS_COMPILE=$(CROSS_COMPILE)
$(OUTPUT).elf: $(LDS) $(AUTOCONF) gitmodules $(OUTPUT).o
$(CC) $(CFLAGS) -DGIT_REVISION=\"$(REVISION)\" -c revision.c
${CC} -o $@ revision.o $(OUTPUT).o $(LDFLAGS)
......
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