]> www.infradead.org Git - users/rw/ppcboot.git/commitdiff
Fix comment in status_led.h
authorwdenk <wdenk>
Fri, 9 Feb 2001 16:46:08 +0000 (16:46 +0000)
committerwdenk <wdenk>
Fri, 9 Feb 2001 16:46:08 +0000 (16:46 +0000)
Fix options for native compiler in tools/Makefile

common/cmd_reginfo.c
include/cmd_reginfo.h
include/status_led.h
tools/Makefile

index 92862017bca09c4dc59da71f14ad2b5c55ae7a78..74a8dc3c6618f4cf65ff44121470ad4a3f41ee4e 100644 (file)
@@ -26,7 +26,7 @@
 #include <cmd_boot.h>
 #include <mpc8xx.h>
 
-#if (CONFIG_COMMANDS & CFG_CMD_REGINFO)
+#if defined(CONFIG_8xx) && (CONFIG_COMMANDS & CFG_CMD_REGINFO)
 
 void do_reginfo(cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[])
 {
@@ -85,4 +85,4 @@ void do_reginfo(cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[])
 
 }
 
-#endif /* CFG_CMD_REGINFO */
+#endif /* CONFIG_8xx && CFG_CMD_REGINFO */
index 923186623317206ca3289ca33b2c80c9bfb332d3..248c59bc74776b3721339d35c91b96dc9726b10e 100644 (file)
@@ -24,7 +24,7 @@
 #ifndef        _CMD_REGINFO_H_
 #define        _CMD_REGINFO_H_
 
-#if (CONFIG_COMMANDS & CFG_CMD_REGINFO)
+#if defined(CONFIG_8xx) && (CONFIG_COMMANDS & CFG_CMD_REGINFO)
 
 #define        CMD_TBL_REGINFO MK_CMD_TBL_ENTRY(                                       \
        "reginfo",      3,      2,      1,      do_reginfo,                     \
@@ -35,6 +35,6 @@ void do_reginfo (cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[]);
 
 #else
 #define CMD_TBL_REGINFO
-#endif /* CFG_CMD_REGINFO */
+#endif /* CONFIG_8xx && CFG_CMD_REGINFO */
 
 #endif /* _CMD_REGINFO_H_ */
index 1df32ff1c6ef9e8399ccd1a83e28f65a6bf9fd49..b84fa93b852e65c9fe1ff6f2f54d41677dc7ca45 100644 (file)
@@ -94,8 +94,8 @@ void status_led_set  (int led, int state);
 # define STATUS_LED_BIT1       0x00000020      /* LED 1 is on PB.26    */
 # define STATUS_LED_PERIOD1    (1 * CFG_HZ)
 # define STATUS_LED_STATE1     STATUS_LED_OFF
-# define STATUS_LED_BIT2       0x00000008      /* LED 2 is on PB.28    */
 /* IDE LED usable for other purposes, too */
+# define STATUS_LED_BIT2       0x00000008      /* LED 2 is on PB.28    */
 # define STATUS_LED_PERIOD2    (1 * CFG_HZ)
 # define STATUS_LED_STATE2     STATUS_LED_OFF
 
index 663a454e76a6e1e414336cbc755d6a43cc6f13d0..d4018c1539815a272c61d3bf5f4ce7b58b878edf 100644 (file)
@@ -32,9 +32,9 @@ TOOLSUBDIRS = gdb
 #
 # Use native tools and options
 #
-CPPFLAGS   = -Wall -pedantic -I../include -I..
+CPPFLAGS   = -Wall -pedantic -I../include -I.. -DTEXT_BASE=$(TEXT_BASE)
 CFLAGS     = $(CPPFLAGS) -O
-AFLAGS    = -D__ASSEMBLY__  $(CPPFLAGS)
+AFLAGS    = -D__ASSEMBLY__ $(CPPFLAGS)
 CC        = $(HOSTCC)
 MAKEDEPEND = makedepend