]> Zhao Yanbai Git Server - minix.git/commitdiff
Kernel: correctly set USE_ defines from Makefile 49/3049/1
authorDavid van Moolenbroek <david@minix3.org>
Fri, 17 Jul 2015 21:30:17 +0000 (23:30 +0200)
committerDavid van Moolenbroek <david@minix3.org>
Sat, 8 Aug 2015 16:56:37 +0000 (16:56 +0000)
Without defining these to 1, #if statements on them will fail.

Change-Id: Ifc4824a6ffacc4bebcfd6f1110c864d7eb16401a

minix/kernel/Makefile

index 0f1de8d655dd82687b453e1245145a4310f8493f..3cfaa1744b692e895c59253e5b7d876199f10f62 100644 (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