Commit e83da482 authored by Alessandro Rubini's avatar Alessandro Rubini

Makefile: build softpll from local copy

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent e6657132
......@@ -20,15 +20,19 @@ PTP_NOPOSIX = ptp-noposix
# we miss CONFIG_ARCH_LM32 as we have no other archs by now
obj-y = arch/lm32/crt0.o arch/lm32/irq.o arch/lm32/debug.o
obj-y += wrc_main.o wrc_ptp.o monitor/monitor.o
LDS = arch/lm32/ram.ld
obj-y += wrc_main.o wrc_ptp.o monitor/monitor.o
obj-y += softpll/softpll_ng.o
# our linker script is preprocessed, so have a rule here
%.ld: %.ld.S $(AUTOCONF)
$(CC) -include $(AUTOCONF) -E -P $*.ld.S -o $@
cflags-y = -include $(AUTOCONF) -Iinclude -I.
cflags-y = -include $(AUTOCONF) -Iinclude -I. -Isoftpll
cflags-$(CONFIG_PP_PRINTF) += -I$(CURDIR)/pp_printf
......@@ -46,7 +50,6 @@ cflags-$(CONFIG_PTP_NOPOSIX) += \
-include $(PTP_NOPOSIX)/libposix/ptpd-wrappers.h \
-I$(PTP_NOPOSIX)/wrsw_hal \
-I$(PTP_NOPOSIX)/libptpnetif \
-I$(PTP_NOPOSIX)/softpll \
-I$(PTP_NOPOSIX)/PTPWRd
obj-$(CONFIG_PTP_NOPOSIX) += $(PTP_NOPOSIX)/PTPWRd/arith.o \
......@@ -61,8 +64,7 @@ obj-$(CONFIG_PTP_NOPOSIX) += $(PTP_NOPOSIX)/PTPWRd/arith.o \
$(PTP_NOPOSIX)/PTPWRd/wr_protocol.o \
$(PTP_NOPOSIX)/libposix/freestanding-startup.o \
$(PTP_NOPOSIX)/libposix/freestanding-wrapper.o \
$(PTP_NOPOSIX)/libposix/net.o \
$(PTP_NOPOSIX)/softpll/softpll_ng.o
$(PTP_NOPOSIX)/libposix/net.o
CFLAGS_PLATFORM = -mmultiply-enabled -mbarrel-shift-enabled
LDFLAGS_PLATFORM = -mmultiply-enabled -mbarrel-shift-enabled \
......
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