Commit aa08158c authored by Alessandro Rubini's avatar Alessandro Rubini

last steps to support pp_printf (still disabled)

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent a502f9db
...@@ -5,6 +5,15 @@ config MPRINTF ...@@ -5,6 +5,15 @@ config MPRINTF
boolean boolean
default y default y
config PP_PRINTF
boolean
default !MPRINTF
config PRINT_BUFSIZE
depends on PP_PRINTF
int "Size for the temporary output string of pp_printf"
default 128
config ETHERBONE config ETHERBONE
boolean "Compile Etherbone support in wrpc-sw" boolean "Compile Etherbone support in wrpc-sw"
help help
......
...@@ -20,7 +20,7 @@ obj-y += wrc_main.o wrc_ptp.o monitor/monitor.o ...@@ -20,7 +20,7 @@ obj-y += wrc_main.o wrc_ptp.o monitor/monitor.o
cflags-y = -include $(CURDIR)/include/generated/autoconf.h \ cflags-y = -include $(CURDIR)/include/generated/autoconf.h \
-Iinclude -I. -Iinclude -I.
cflags-$(CONFIG_PP_PRINTF) += -I $(CURDIR)/pp_printf cflags-$(CONFIG_PP_PRINTF) += -I$(CURDIR)/pp_printf
cflags-$(CONFIG_PTP_NOPOSIX) += \ cflags-$(CONFIG_PTP_NOPOSIX) += \
-ffreestanding \ -ffreestanding \
...@@ -61,6 +61,7 @@ LDFLAGS_PLATFORM = -mmultiply-enabled -mbarrel-shift-enabled \ ...@@ -61,6 +61,7 @@ LDFLAGS_PLATFORM = -mmultiply-enabled -mbarrel-shift-enabled \
include shell/shell.mk include shell/shell.mk
include tests/tests.mk include tests/tests.mk
include lib/lib.mk include lib/lib.mk
include pp_printf/printf.mk
include sockitowm/sockitowm.mk include sockitowm/sockitowm.mk
include dev/dev.mk include dev/dev.mk
......
# This is included from ../Makefile, for the wrc build system.
# The Makefile in this directory is preserved from the upstream version
obj-$(CONFIG_PP_PRINTF) += pp_printf/printf.o
ppprintf-$(CONFIG_PRINTF_FULL) += pp_printf/vsprintf-full.o
ppprintf-$(CONFIG_PRINTF_MINI) += pp_printf/vsprintf-mini.o
ppprintf-$(CONFIG_PRINTF_NONE) += pp_printf/vsprintf-none.o
ppprintf-$(CONFIG_PRINTF_XINT) += pp_printf/vsprintf-xint.o
ppprintf-y ?= pp_printf/vsprintf-xint.o
obj-$(CONFIG_PP_PRINTF) += $(ppprintf-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