Skip to content

Commit

Permalink
u-boot bsp: Generate dummy board name when it is called separately
Browse files Browse the repository at this point in the history
Top level BSP provides board_name but if is runs separately
then this variable is not setup.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
  • Loading branch information
Michal Simek committed Oct 31, 2012
1 parent 6a57504 commit 06d3aa3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion data/uboot_v2_1_0.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06d3aa3

Please sign in to comment.