ppc: Move conditional compilation of kgdb.c to Makefile
authorPeter Tyser <ptyser@xes-inc.com>
Wed, 4 Nov 2009 05:31:07 +0000 (23:31 -0600)
committerWolfgang Denk <wd@denx.de>
Tue, 24 Nov 2009 22:41:11 +0000 (23:41 +0100)
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
lib_ppc/Makefile
lib_ppc/kgdb.c

index 399b41e31e0e30143ebedd10b2bfc08a208a045b..60a76253b268a34bfa236e2198e66c93ac3d6130 100644 (file)
@@ -35,7 +35,7 @@ COBJS-y       += bootm.o
 COBJS-y        += cache.o
 COBJS-y        += extable.o
 COBJS-y        += interrupts.o
-COBJS-y        += kgdb.o
+COBJS-$(CONFIG_CMD_KGDB) += kgdb.o
 COBJS-y        += time.o
 
 SRCS   := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
index 78c2f0c47588103d01b1e77d6834bbbddcc1e8a3..d3eb1f35a9fd90191268cf0336522aa280c05795 100644 (file)
@@ -1,8 +1,5 @@
 #include <common.h>
 #include <command.h>
-
-#if defined(CONFIG_CMD_KGDB)
-
 #include <kgdb.h>
 #include <asm/signal.h>
 #include <asm/processor.h>
@@ -322,5 +319,3 @@ kgdb_breakpoint(int argc, char *argv[])
             breakinst: .long 0x7d821008\n\
            ");
 }
-
-#endif