能够正常识别 link.lds 文件

This commit is contained in:
2025-01-17 11:09:30 +08:00
parent 83882c7ac2
commit de211907a4
2 changed files with 10 additions and 2 deletions

View File

@@ -9,8 +9,16 @@ import("//build/buildcfg.gni")
module_name = get_path_info(rebase_path("."), "name")
executable("out"){
executable("kunlun.out"){
deps=[":$module_name"]
link_path=rebase_path("${kl_ld_script}")
link_file=get_path_info(link_path,"file")
link_dir=get_path_info(link_path,"dir")
ldflags=[
"-Wl,-T" + link_file,
"-Wl,-u_printf_float",
"-L" + link_dir,
]
}

View File

@@ -30,4 +30,4 @@ product_line="PLC"
PLATFORM="CHIP"
APP="0"
FLASH_SIZE="4"
kl_ld_script="//startup/ldscripts/riscv3/link_psram_8m_cco_plc_only.ld"
kl_ld_script="//startup/ldscripts/riscv3/link_psram_8m_cco_plc_only.lds"