浏览代码

Minor cleanup

Wolfgang Denk 18 年之前
父节点
当前提交
5196a7a03b
共有 4 个文件被更改,包括 21 次插入21 次删除
  1. 5 5
      MAKEALL
  2. 13 13
      Makefile
  3. 1 1
      board/tqm5200/tqm5200.c
  4. 2 2
      include/configs/TQM5200.h

+ 5 - 5
MAKEALL

@@ -25,11 +25,11 @@ LIST_5xx="	\
 #########################################################################
 #########################################################################
 
 
 LIST_5xxx="	\
 LIST_5xxx="	\
-	BC3450		cpci5200	EVAL5200	icecube_5100	\
-	icecube_5200	lite5200b	mcc200		o2dnt		\
-	pf5200		PM520		TB5200		Total5100	\
-	Total5200	Total5200_Rev2	TQM5200		TQM5200_B	\
-	TQM5200S	fo300						\
+	BC3450		cpci5200	EVAL5200	fo300		\
+	icecube_5100	icecube_5200	lite5200b	mcc200		\
+	o2dnt		pf5200		PM520		TB5200		\
+	Total5100	Total5200	Total5200_Rev2	TQM5200		\
+	TQM5200_B	TQM5200S					\
 "
 "
 
 
 #########################################################################
 #########################################################################

+ 13 - 13
Makefile

@@ -417,16 +417,22 @@ Total5200_Rev2_lowboot_config:	unconfig
 		}
 		}
 	@./mkconfig -a Total5200 ppc mpc5xxx total5200
 	@./mkconfig -a Total5200 ppc mpc5xxx total5200
 
 
-TQM5200_config	\
-TQM5200_B_config \
-TQM5200_B_HIGHBOOT_config \
-TQM5200S_config \
-TQM5200S_HIGHBOOT_config \
-TQM5200_STK100_config \
 cam5200_config \
 cam5200_config \
+fo300_config \
 MiniFAP_config \
 MiniFAP_config \
-fo300_config:	unconfig
+TQM5200S_config \
+TQM5200S_HIGHBOOT_config \
+TQM5200_B_config \
+TQM5200_B_HIGHBOOT_config \
+TQM5200_config	\
+TQM5200_STK100_config:	unconfig
 	@ >include/config.h
 	@ >include/config.h
+	@[ -z "$(findstring cam5200,$@)" ] || \
+		{ echo "#define CONFIG_CAM5200"	>>include/config.h ; \
+		  echo "#define CONFIG_TQM5200S"	>>include/config.h ; \
+		  echo "#define CONFIG_TQM5200_B"	>>include/config.h ; \
+		  echo "... TQM5200S on Cam5200" ; \
+		}
 	@[ -z "$(findstring fo300,$@)" ] || \
 	@[ -z "$(findstring fo300,$@)" ] || \
 		{ echo "#define CONFIG_FO300"	>>include/config.h ; \
 		{ echo "#define CONFIG_FO300"	>>include/config.h ; \
 		  echo "... TQM5200 on FO300" ; \
 		  echo "... TQM5200 on FO300" ; \
@@ -435,12 +441,6 @@ fo300_config:	unconfig
 		{ echo "#define CONFIG_MINIFAP"	>>include/config.h ; \
 		{ echo "#define CONFIG_MINIFAP"	>>include/config.h ; \
 		  echo "... TQM5200_AC on MiniFAP" ; \
 		  echo "... TQM5200_AC on MiniFAP" ; \
 		}
 		}
-	@[ -z "$(findstring cam5200,$@)" ] || \
-		{ echo "#define CONFIG_CAM5200"	>>include/config.h ; \
-		  echo "#define CONFIG_TQM5200S"	>>include/config.h ; \
-		  echo "#define CONFIG_TQM5200_B"	>>include/config.h ; \
-		  echo "... TQM5200S on Cam5200" ; \
-		}
 	@[ -z "$(findstring STK100,$@)" ] || \
 	@[ -z "$(findstring STK100,$@)" ] || \
 		{ echo "#define CONFIG_STK52XX_REV100"	>>include/config.h ; \
 		{ echo "#define CONFIG_STK52XX_REV100"	>>include/config.h ; \
 		  echo "... on a STK52XX.100 base board" ; \
 		  echo "... on a STK52XX.100 base board" ; \

+ 1 - 1
board/tqm5200/tqm5200.c

@@ -293,7 +293,7 @@ int checkboard (void)
 #elif defined(CONFIG_FO300)
 #elif defined(CONFIG_FO300)
 # define CARRIER_NAME	"FO300"
 # define CARRIER_NAME	"FO300"
 #else
 #else
-# error "Unknown carrier board"
+# error "UNKNOWN"
 #endif
 #endif
 
 
 	puts (	"Board: " MODULE_NAME " (TQ-Components GmbH)\n"
 	puts (	"Board: " MODULE_NAME " (TQ-Components GmbH)\n"

+ 2 - 2
include/configs/TQM5200.h

@@ -37,7 +37,7 @@
 #define CONFIG_TQM5200		1	/* ... on TQM5200 module		*/
 #define CONFIG_TQM5200		1	/* ... on TQM5200 module		*/
 #undef CONFIG_TQM5200_REV100		/*  define for revision 100 modules	*/
 #undef CONFIG_TQM5200_REV100		/*  define for revision 100 modules	*/
 
 
-/* On a Cameron board or on a FO300 board or ...				*/
+/* On a Cameron or on a FO300 board or ...				*/
 #if !defined(CONFIG_CAM5200) && !defined(CONFIG_FO300)
 #if !defined(CONFIG_CAM5200) && !defined(CONFIG_FO300)
 #define CONFIG_STK52XX		1	/* ... on a STK52XX board		*/
 #define CONFIG_STK52XX		1	/* ... on a STK52XX board		*/
 #endif
 #endif
@@ -71,7 +71,7 @@
 
 
 #undef FO300_SILENT_CONSOLE_WHEN_S1_CLOSED		/* silent console on PSC1 when S1 */
 #undef FO300_SILENT_CONSOLE_WHEN_S1_CLOSED		/* silent console on PSC1 when S1 */
 							/* switch is open */
 							/* switch is open */
-#endif
+#endif	/* CONFIG_FO300 */
 
 
 #ifdef CONFIG_STK52XX
 #ifdef CONFIG_STK52XX
 #define CONFIG_PS2KBD			/* AT-PS/2 Keyboard		*/
 #define CONFIG_PS2KBD			/* AT-PS/2 Keyboard		*/