common/ non-cmd: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
[oweals/u-boot.git] / common / kgdb.c
index 6de6ec99a22273c4ff8fd7ac515fcf42cff6ac85..7a3e6d6edbb11370dc39c185e67d35dfcead5865 100644 (file)
@@ -92,7 +92,7 @@
 #include <kgdb.h>
 #include <command.h>
 
-#if (CONFIG_COMMANDS & CFG_CMD_KGDB)
+#if (CONFIG_COMMANDS & CFG_CMD_KGDB) || defined(CONFIG_CMD_KGDB)
 
 #undef KGDB_DEBUG