Skip to contentSkip to conversation

POST doesn't compile on MPC824X

PATCH New Gleb Natapov 2 participants 2 messages Sep 2, 2003 – Sep 10, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 POST doesn't compile on MPC824X

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 --------------

post/ether.c +1 -3
diff -ur u-boot/post/ether.c u-boot.p/post/ether.c
@@ -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
post/uart.c +1 -2
diff -ur u-boot/post/uart.c u-boot.p/post/uart.c
@@ -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
 
#1 lore raw

PATCH 1/1 POST doesn't compile on MPC824X

Dear Gleb,

Quoted 5 lines · in message <[email protected]> you wrote:

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.

Thanks, added.

Best regards,

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
NOTE: The  Most  Fundamental  Particles  in  This  Product  Are  Held
Together  by  a  "Gluing" Force About Which Little is Currently Known
and Whose Adhesive Power Can Therefore Not Be Permanently Guaranteed.