From: Gleb Natapov Date: Tue, 2 Sep 2003 16:29:02 +0300 Subject: [U-Boot-Users] [PATCH] POST doesn't compile on MPC824X Message-ID: <20030902132902.GM10453@nbase.co.il> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 - +#if CONFIG_POST & CFG_POST_ETHER #if defined(CONFIG_8xx) #include #elif defined(CONFIG_MPC8260) @@ -50,8 +50,6 @@ #include #include -#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 +#if CONFIG_POST & CFG_POST_UART #if defined(CONFIG_8xx) #include #elif defined(CONFIG_MPC8260) @@ -49,8 +50,6 @@ #include #include -#if CONFIG_POST & CFG_POST_UART - #define CTLR_SMC 0 #define CTLR_SCC 1