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