Commit b5cb1844 authored by Adam Wujek's avatar Adam Wujek

Makefile: compile ppsi as .a not as .o

Does not change code size
Signed-off-by: 's avatarAdam Wujek <adam.wujek@creotech.pl>
parent 115e2625
...@@ -60,7 +60,7 @@ cflags-y += \ ...@@ -60,7 +60,7 @@ cflags-y += \
-I$(PPSI)/arch-wrpc/include \ -I$(PPSI)/arch-wrpc/include \
-I$(PPSI)/include -I$(PPSI)/include
obj-ppsi = $(PPSI)/ppsi.o obj-ppsi = $(PPSI)/ppsi.a
obj-$(CONFIG_PPSI) += $(obj-ppsi) obj-$(CONFIG_PPSI) += $(obj-ppsi)
# Below, CONFIG_PPSI is wrong, as we can't build these for the host # Below, CONFIG_PPSI is wrong, as we can't build these for the host
...@@ -117,7 +117,7 @@ ASFLAGS = -I. ...@@ -117,7 +117,7 @@ ASFLAGS = -I.
LDFLAGS = $(ldflags-y) \ LDFLAGS = $(ldflags-y) \
-Wl,--gc-sections -Os -lgcc -lc -Wl,--gc-sections -Os -lgcc -lc
WRC-O-FLAGS-$(CONFIG_LM32) = --gc-sections -e _start WRC-O-FLAGS-$(CONFIG_LM32) = -e _start
OBJS = $(obj-y) OBJS = $(obj-y)
...@@ -138,7 +138,7 @@ endif ...@@ -138,7 +138,7 @@ endif
all: tools $(OUTPUT).elf $(arch-files-y) all: tools $(OUTPUT).elf $(arch-files-y)
.PRECIOUS: %.elf %.bin .PRECIOUS: %.elf %.bin
.PHONY: all tools clean gitmodules $(PPSI)/ppsi.o extest liblinux .PHONY: all tools clean gitmodules $(PPSI)/ppsi.a extest liblinux
# we need to remove "ptpdump" support for ppsi if RAM size is small and # we need to remove "ptpdump" support for ppsi if RAM size is small and
# we include etherbone # we include etherbone
...@@ -161,7 +161,7 @@ $(obj-ppsi): gitmodules ...@@ -161,7 +161,7 @@ $(obj-ppsi): gitmodules
else \ else \
echo "Warning: keeping previous ppsi configuration" >& 2; \ echo "Warning: keeping previous ppsi configuration" >& 2; \
fi fi
$(MAKE) -C $(PPSI) ppsi.o WRPCSW_ROOT=.. \ $(MAKE) -C $(PPSI) ppsi.a WRPCSW_ROOT=.. \
CROSS_COMPILE=$(CROSS_COMPILE) CONFIG_NO_PRINTF=y CROSS_COMPILE=$(CROSS_COMPILE) CONFIG_NO_PRINTF=y
USER_CFLAGS="$(PPSI_USER_CFLAGS)" USER_CFLAGS="$(PPSI_USER_CFLAGS)"
......
Subproject commit 424bba500fa230300148aeb346c146c7d1e03eeb Subproject commit 93ab37847c5cfd95dbddbd817d9ba12fe99b1397
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