[U-Boot-Users] [PATCH 2/2] add ability to disable ft_board_setup as part of bootm

Kumar Gala galak at kernel.crashing.org
Wed Aug 6 20:24:23 CEST 2008


if the environment variable 'no_ft_board_setup' is set we skip
doing the ft_board_setup().

Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
---
 lib_ppc/bootm.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lib_ppc/bootm.c b/lib_ppc/bootm.c
index d141fae..1fce037 100644
--- a/lib_ppc/bootm.c
+++ b/lib_ppc/bootm.c
@@ -193,7 +193,8 @@ do_bootm_linux(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[],
 		}
 #ifdef CONFIG_OF_BOARD_SETUP
 		/* Call the board-specific fixup routine */
-		ft_board_setup(of_flat_tree, gd->bd);
+		if (!getenv("no_ft_board_setup"))
+			ft_board_setup(of_flat_tree, gd->bd);
 #endif
 	}
 
-- 
1.5.5.1





More information about the U-Boot mailing list