summaryrefslogtreecommitdiff
path: root/board/trab/cmd_trab.c
diff options
context:
space:
mode:
authorJon Loeliger <jdl@jdl.com>2007-06-11 19:03:23 -0500
committerWolfgang Denk <wd@denx.de>2007-07-04 00:35:03 +0200
commit9107ebe0d352420895ab69b715697bdebc8caf50 (patch)
tree9efe29c62f6f389028ea497a2a9f9b4450b780e3 /board/trab/cmd_trab.c
parent5e378003d592ea828ec69d6defcd4de79096dd5c (diff)
downloadu-boot-imx-9107ebe0d352420895ab69b715697bdebc8caf50.zip
u-boot-imx-9107ebe0d352420895ab69b715697bdebc8caf50.tar.gz
u-boot-imx-9107ebe0d352420895ab69b715697bdebc8caf50.tar.bz2
board/[k-z]*: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
This is a compatibility step that allows both the older form and the new form to co-exist for a while until the older can be removed entirely. All transformations are of the form: Before: #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) After: #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT) Signed-off-by: Jon Loeliger <jdl@freescale.com>
Diffstat (limited to 'board/trab/cmd_trab.c')
-rw-r--r--board/trab/cmd_trab.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/trab/cmd_trab.c b/board/trab/cmd_trab.c
index b82c8ed..7dd97a1 100644
--- a/board/trab/cmd_trab.c
+++ b/board/trab/cmd_trab.c
@@ -32,7 +32,7 @@
* TRAB board specific commands. Especially commands for burn-in and function
* test.
*/
-#if (CONFIG_COMMANDS & CFG_CMD_BSP)
+#if (CONFIG_COMMANDS & CFG_CMD_BSP) || defined(CONFIG_CMD_BSP)
/* limits for valid range of VCC5V in mV */
#define VCC5V_MIN 4500
@@ -846,7 +846,7 @@ int do_temp_log (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
{
int contact_temp;
int delay = 0;
-#if (CONFIG_COMMANDS & CFG_CMD_DATE)
+#if (CONFIG_COMMANDS & CFG_CMD_DATE) || defined(CONFIG_CMD_DATE)
struct rtc_time tm;
#endif
@@ -862,7 +862,7 @@ int do_temp_log (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
spi_init ();
while (1) {
-#if (CONFIG_COMMANDS & CFG_CMD_DATE)
+#if (CONFIG_COMMANDS & CFG_CMD_DATE) || defined(CONFIG_CMD_DATE)
rtc_get (&tm);
printf ("%4d-%02d-%02d %2d:%02d:%02d - ",
tm.tm_year, tm.tm_mon, tm.tm_mday,