[U-Boot] [PATCH 6/8] microblaze: Enable several ethernet driver compilation

Michal Simek monstr at monstr.eu
Wed Aug 31 12:57:54 CEST 2011


NET_MULTI enables to use several ethernet drivers but
microblaze-generic platform config file select only
one driver.

Signed-off-by: Michal Simek <monstr at monstr.eu>
---
 include/configs/microblaze-generic.h |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h
index c526006..4c76afd 100644
--- a/include/configs/microblaze-generic.h
+++ b/include/configs/microblaze-generic.h
@@ -63,11 +63,12 @@
 
 /* ethernet */
 #undef CONFIG_SYS_ENET
-#ifdef XILINX_EMACLITE_BASEADDR
-# define CONFIG_XILINX_EMACLITE		1
+#if defined(XILINX_EMACLITE_BASEADDR)
+# define CONFIG_XILINX_EMACLITE	1
 # define CONFIG_SYS_ENET
-#elif XILINX_LLTEMAC_BASEADDR
-# define CONFIG_XILINX_LL_TEMAC		1
+#endif
+#if defined(XILINX_LLTEMAC_BASEADDR)
+# define CONFIG_XILINX_LL_TEMAC	1
 # define CONFIG_SYS_ENET
 #endif
 
-- 
1.5.5.6



More information about the U-Boot mailing list