Kernel: correctly set USE_ defines from Makefile

Without defining these to 1, #if statements on them will fail.

Change-Id: Ifc4824a6ffacc4bebcfd6f1110c864d7eb16401a
This commit is contained in:
David van Moolenbroek 2015-07-17 23:30:17 +02:00
parent a082b2af62
commit efa7e3e6d2

View file

@ -49,20 +49,20 @@ SRCS+= smp.c
.if ${USE_WATCHDOG} != "no"
SRCS+= watchdog.c
CPPFLAGS+= -DUSE_WATCHDOG
CPPFLAGS+= -DUSE_WATCHDOG=1
.endif
# Extra debugging routines
.if ${USE_SYSDEBUG} != "no"
SRCS+= debug.c
CPPFLAGS+= -DUSE_SYSDEBUG
CPPFLAGS+= -DUSE_SYSDEBUG=1
.endif
# These come last, so the profiling buffer is at the end of the data segment
SRCS+= profile.c do_sprofile.c
.if ${USE_LIVEUPDATE} != "no"
CPPFLAGS+= -DUSE_UPDATE
CPPFLAGS+= -DUSE_UPDATE=1
.endif
CLEANFILES+=extracted-errno.h extracted-mfield.h extracted-mtype.h procoffsets.h