diff --git a/BUILD.gn b/BUILD.gn index f8eed29..29367b9 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -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, + ] } diff --git a/build/config.gni b/build/config.gni index 22864ae..5ba16f7 100644 --- a/build/config.gni +++ b/build/config.gni @@ -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"