Commit 7587706f authored by Alessandro Rubini's avatar Alessandro Rubini

Makefile: include arch/Makefile earlier

This allows the arch-specific Makefile to set CONFIG_NO_PRINTF, it it
knows no printf is needed from ppsi (applies to wrpc and bathos).
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 4604f956
......@@ -37,6 +37,9 @@ CFLAGS += -Wall -O2 -ggdb -Iinclude -fno-common
# to avoid ifdef as much as possible, I use the kernel trick for OBJ variables
OBJ-y := fsm.o diag.o
# Include arch code. Each arch chooses its own time directory..
include arch-$(ARCH)/Makefile
# include pp_printf code, by default the "full" version. Please
# set CONFIG_PRINTF_NONE or CONFIG_PRINTF_XINT if needed.
ifndef CONFIG_NO_PRINTF
......@@ -49,9 +52,6 @@ endif
# We need this -I so <arch/arch.h> can be found
CFLAGS += -Iarch-$(ARCH)/include
# Include arch code. Each arch chooses its own time directory..
include arch-$(ARCH)/Makefile
# proto-standard is always included, as it provides default function
# so the extension can avoid duplication of code.
ifdef PROTO_EXT
......
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