From 06d3aa37938e515804cad22876685f7d527ebb96 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Wed, 31 Oct 2012 11:14:30 +0100 Subject: [PATCH] u-boot bsp: Generate dummy board name when it is called separately Top level BSP provides board_name but if is runs separately then this variable is not setup. Signed-off-by: Michal Simek --- data/uboot_v2_1_0.tcl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/data/uboot_v2_1_0.tcl b/data/uboot_v2_1_0.tcl index f7426eb..55513c8 100644 --- a/data/uboot_v2_1_0.tcl +++ b/data/uboot_v2_1_0.tcl @@ -70,7 +70,11 @@ proc generate_uboot {os_handle} { set config_file [open "xparameters.h" w] headerc $config_file - puts $config_file "#define XILINX_BOARD_NAME\t\"$board_name\"\n" + if { [info exists board_name] } { + puts $config_file "#define XILINX_BOARD_NAME\t\"$board_name\"\n" + } else { + puts $config_file "#define XILINX_BOARD_NAME\t\U-BOOT_BSP\n" + } # ****************************************************************************** # print system clock