From: Peter Tyser Date: Wed, 4 Nov 2009 05:31:07 +0000 (-0600) Subject: ppc: Move conditional compilation of kgdb.c to Makefile X-Git-Tag: v2009.11-rc2~39 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=425d3b666eee5c58fdb82fb894a535dd71782a05;p=oweals%2Fu-boot.git ppc: Move conditional compilation of kgdb.c to Makefile Signed-off-by: Peter Tyser --- diff --git a/lib_ppc/Makefile b/lib_ppc/Makefile index 399b41e31e..60a76253b2 100644 --- a/lib_ppc/Makefile +++ b/lib_ppc/Makefile @@ -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) diff --git a/lib_ppc/kgdb.c b/lib_ppc/kgdb.c index 78c2f0c475..d3eb1f35a9 100644 --- a/lib_ppc/kgdb.c +++ b/lib_ppc/kgdb.c @@ -1,8 +1,5 @@ #include #include - -#if defined(CONFIG_CMD_KGDB) - #include #include #include @@ -322,5 +319,3 @@ kgdb_breakpoint(int argc, char *argv[]) breakinst: .long 0x7d821008\n\ "); } - -#endif