Commit 58933a6a authored by Alessandro Rubini's avatar Alessandro Rubini

Makefile: support CONFIG_NO_PRINTF

If you "export CONFIG_NO_PRINTF=y", no printf will be built in the
binary. This is needed when ppsi is built within wrpc-sw (which has
its own pp_printf implementation).

This will become a Kconfig item, when Kconfig is added.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 7238a35f
......@@ -27,10 +27,12 @@ OBJ-y := fsm.o
# include pp_printf code, by default the "full" version. Please
# set CONFIG_PRINTF_NONE or CONFIG_PRINTF_XINT if needed.
ifndef CONFIG_NO_PRINTF
OBJ-y += pp_printf/pp-printf.o
pp_printf/pp-printf.o: $(wildcard pp_printf/*.[ch])
$(MAKE) -C pp_printf pp-printf.o
endif
include diag/Makefile
......
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