[U-Boot] [PATCH] mpc83xx: fix mpc8313 in-tree building with NAND

Kim Phillips kim.phillips at freescale.com
Wed Sep 3 23:04:57 CEST 2008


From: Nick Spence <nick.spence at freescale.com>

and add mpc8313 NAND build to MAKEALL

Signed-off-by: Nick Spence <nick.spence at freescale.com>
Signed-off-by: Kim Phillips <kim.phillips at freescale.com>
---
 MAKEALL  |    2 +-
 Makefile |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/MAKEALL b/MAKEALL
index e382947..e49f994 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -320,7 +320,7 @@ LIST_8260="		\
 
 LIST_83xx="		\
 	MPC8313ERDB_33	\
-	MPC8313ERDB_66	\
+	MPC8313ERDB_NAND_66	\
 	MPC8315ERDB	\
 	MPC8323ERDB	\
 	MPC832XEMDS	\
diff --git a/Makefile b/Makefile
index 0f82e71..3d8b61c 100644
--- a/Makefile
+++ b/Makefile
@@ -2082,6 +2082,9 @@ MPC8313ERDB_NAND_66_config: unconfig
 		echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
 	fi ;
 	@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
+	@if [ "$(findstring _NAND_,$@)" ] ; then \
+		echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
+	fi ;
 
 MPC8315ERDB_config: unconfig
 	@$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
-- 
1.6.0.6.gc667



More information about the U-Boot mailing list