X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fbuild%2FMakefile;h=79f3d7d400f2f0f7acec8119924f172f403e09f9;hp=3ced5a91b946bbbef7c7c7c3016044154a8cea42;hb=9dd0a80f28ca47a1fb69992dcd96e7526bf5175c;hpb=cbf35ad72de3a7a1f6eee3e8b2b35d7f31df22a5 diff --git a/palacios/build/Makefile b/palacios/build/Makefile index 3ced5a9..79f3d7d 100644 --- a/palacios/build/Makefile +++ b/palacios/build/Makefile @@ -1,6 +1,6 @@ # Makefile for GeekOS kernel, userspace, and tools # Copyright (c) 2004,2005 David H. Hovemeyer -# $Revision: 1.47 $ +# $Revision: 1.48 $ # This is free software. You are permitted to use, # redistribute, and modify it as specified in the file "COPYING". @@ -46,6 +46,34 @@ VPATH := $(PROJECT_ROOT)/src # as are SERIAL_PRINT_DEBUG # DEBUG=1 +DEBUG_SECTIONS= + +ifeq ($(DEBUG_SHADOW_PAGING),1) +DEBUG_SECTIONS := $(DEBUG_SECTIONS) -DDEBUG_SHADOW_PAGING +endif +ifeq ($(DEBUG_CTRL_REGS),1) +DEBUG_SECTIONS := $(DEBUG_SECTIONS) -DDEBUG_CTRL_REGS +endif +ifeq ($(DEBUG_INTERRUPTS),1) +DEBUG_SECTIONS := $(DEBUG_SECTIONS) -DDEBUG_INTERRUPTS +endif +ifeq ($(DEBUG_IO),1) +DEBUG_SECTIONS := $(DEBUG_SECTIONS) -DDEBUG_IO +endif +ifeq ($(DEBUG_KEYBOARD),1) +DEBUG_SECTIONS := $(DEBUG_SECTIONS) -DDEBUG_KEYBOARD +endif +ifeq ($(DEBUG_PIC),1) +DEBUG_SECTIONS := $(DEBUG_SECTIONS) -DDEBUG_PIC +endif +ifeq ($(DEBUG_DEBUG_PIT),1) +DEBUG_SECTIONS := $(DEBUG_SECTIONS) -DDEBUG_PIT +endif +ifeq ($(DEBUG_NVRAM),1) +DEBUG_SECTIONS := $(DEBUG_SECTIONS) -DDEBUG_NVRAM +endif + + # # XED=1 means that libxed will be included @@ -57,8 +85,8 @@ DEBUG=1 XED=0 ifeq ($(DEBUG),1) - JRLDEBUG= -DSERIAL_PRINT_DEBUG=1 -DSERIAL_PRINT_DEBUG_LEVEL=10 -DSERIAL_PRINT=1 -DVMM_DEBUG=1 -DVMM_INFO=1 -DVMM_TRACE=1 -#-DDEBUG_SHADOW_PAGING -DDEBUG_CTRL_REGS -DDEBUG_INTERRUPTS -DDEBUG_IO + JRLDEBUG= -DSERIAL_PRINT_DEBUG=1 -DSERIAL_PRINT_DEBUG_LEVEL=10 -DSERIAL_PRINT=1 -DVMM_DEBUG=1 -DVMM_INFO=1 -DVMM_TRACE=1 $(DEBUG_SECTIONS) + else JRLDEBUG= -DSERIAL_PRINT_DEBUG=0 -DSERIAL_PRINT_DEBUG_LEVEL=999999 -DSERIAL_PRINT=0 -DVMM_DEBUG=0 -DVMM_INFO=0 -DVMM_TRACE=0 endif