diff --git a/platform/xilinx/HOWTO.md b/platform/xilinx/HOWTO.md index 3f339d7..f012208 100644 --- a/platform/xilinx/HOWTO.md +++ b/platform/xilinx/HOWTO.md @@ -175,7 +175,7 @@ - **target_cpu**: 目标 CPU ID[^2]; - **os**: 操作系统类型[^1],必须与 BSP/Domain 匹配; - **language**: 编程语言,"C" 或 "C++"; -- *bsp*: 应用所使用的 BSP 名称,若未指定则会自动创建名为 `_` 的 BSP/Domain. +- *bsp*: 应用所使用的 BSP 名称,若未指定则会自动创建名为 `_bsp` 的 BSP/Domain. - *bsp_lib*: 针对自动创建的 BSP/Domain 所使用库的配置,与 [bsps](#bsps) 中 `libs` 对应; - *bsp_config*: 针对自动创建的 BSP/Domain 配置与 [bsps](#bsps) 中 `config` 对应; - *mem_layout*: 应用内存布局,包括堆栈大小和堆大小等; diff --git a/platform/xilinx/util.tcl b/platform/xilinx/util.tcl index a191e14..671a4bd 100644 --- a/platform/xilinx/util.tcl +++ b/platform/xilinx/util.tcl @@ -250,7 +250,7 @@ proc _create_app {app_name app_config platform_name is_vitis} { set os [dict get $app_config os] set lang [dict get $app_config language] set sources [dict get $app_config sources] - set bsp_name "${os}_${cpu}" + set bsp_name "${app_name}_bsp" # Configure BSP/Domain for application if {[dict exists $app_config bsp] && [dict get $app_config bsp] ne ""} {