能够正常识别 link.lds 文件
This commit is contained in:
10
BUILD.gn
10
BUILD.gn
@@ -9,8 +9,16 @@ import("//build/buildcfg.gni")
|
|||||||
|
|
||||||
module_name = get_path_info(rebase_path("."), "name")
|
module_name = get_path_info(rebase_path("."), "name")
|
||||||
|
|
||||||
executable("out"){
|
executable("kunlun.out"){
|
||||||
deps=[":$module_name"]
|
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,
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -30,4 +30,4 @@ product_line="PLC"
|
|||||||
PLATFORM="CHIP"
|
PLATFORM="CHIP"
|
||||||
APP="0"
|
APP="0"
|
||||||
FLASH_SIZE="4"
|
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"
|
||||||
|
Reference in New Issue
Block a user