[U-Boot-Users] [PATCH] POST doesn't compile on MPC824X

Gleb Natapov gleb at nbase.co.il
Tue Sep 2 15:29:02 CEST 2003


Hello,

POST compilation fails in post/ether.c and post/uart.c on MPC824X
even though I didn't configure CFG_POST_ETHER and CFG_POST_UART

Attached patch moves checking of these options before error occurs.

--
			Gleb.
-------------- next part --------------
diff -ur u-boot/post/ether.c u-boot.p/post/ether.c
--- u-boot/post/ether.c	2003-07-18 02:16:57.000000000 +0300
+++ u-boot.p/post/ether.c	2003-09-02 15:22:45.000000000 +0300
@@ -38,7 +38,7 @@
 #ifdef CONFIG_POST
 
 #include <post.h>
-
+#if CONFIG_POST & CFG_POST_ETHER
 #if defined(CONFIG_8xx)
 #include <commproc.h>
 #elif defined(CONFIG_MPC8260)
@@ -50,8 +50,6 @@
 #include <command.h>
 #include <net.h>
 
-#if CONFIG_POST & CFG_POST_ETHER
-
 #define MIN_PACKET_LENGTH	64
 #define MAX_PACKET_LENGTH	256
 #define TEST_NUM		1
diff -ur u-boot/post/uart.c u-boot.p/post/uart.c
--- u-boot/post/uart.c	2003-05-13 00:51:17.000000000 +0300
+++ u-boot.p/post/uart.c	2003-09-02 15:22:40.000000000 +0300
@@ -39,6 +39,7 @@
 #ifdef CONFIG_POST
 
 #include <post.h>
+#if CONFIG_POST & CFG_POST_UART
 #if defined(CONFIG_8xx)
 #include <commproc.h>
 #elif defined(CONFIG_MPC8260)
@@ -49,8 +50,6 @@
 #include <command.h>
 #include <net.h>
 
-#if CONFIG_POST & CFG_POST_UART
-
 #define CTLR_SMC 0
 #define CTLR_SCC 1
 


More information about the U-Boot mailing list