Added flag to enable/disable debug symbols in the kernel
authorJohn Hodge <tpg@prelude.(none)>
Mon, 28 Dec 2009 13:29:02 +0000 (21:29 +0800)
committerJohn Hodge <tpg@prelude.(none)>
Mon, 28 Dec 2009 13:29:02 +0000 (21:29 +0800)
- `export DEBUG_BUILD=yes` will enable a debug build, any other value
  will disable DWARF debug.

Kernel/Makefile
Kernel/Makefile.BuildNum
Kernel/system.c
Usermode/Applications/Makefile.cfg

index 427f4e0..4cf661a 100644 (file)
@@ -20,10 +20,10 @@ CFLAGS              += -Wall -Werror -O3 -fno-stack-protector -fno-builtin
 ASFLAGS                += -D ARCH=\"$(ARCH)\"
 LDFLAGS                += -T arch/$(ARCHDIR)/link.ld
 
-if $(KERNEL_DEBUG) != "" then
+ifeq ($(DEBUG_BUILD),yes)
        LDFLAGS += -g
-if $(KERNEL_DEBUG) != "" then
        CFLAGS += -g
+endif
 
 OBJ = $(addprefix arch/$(ARCHDIR)/,$(A_OBJ))
 OBJ += heap.o messages.o debug.o modules.o lib.o syscalls.o system.o threads.o drvutil.o
index 41c16ab..60218c4 100644 (file)
@@ -1 +1 @@
-BUILD_NUM = 1124
+BUILD_NUM = 1128
index 3d1ebca..8c2d19d 100644 (file)
@@ -3,7 +3,7 @@
  * Architecture Independent System Init
  * system.c
  */
-#define DEBUG  1
+#define DEBUG  0
 #include <common.h>
 
 // === TYPES ===
index fd8bc45..0418fb7 100644 (file)
@@ -3,9 +3,9 @@
 
 -include ../../../Makefile.cfg
 # satisfying 2 deep applications
-if $(ACESSDIR) == "" then
+ifeq ($(ACESSDIR),)
        -include ../../../../Makefile.cfg
-#endif
+endif
 ACESSUSERDIR := $(ACESSDIR)/Usermode
 
 ASFLAGS = -felf

UCC git Repository :: git.ucc.asn.au