Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bl602如何更改ld脚本? #84

Open
FlyyingPiggy2020 opened this issue Oct 24, 2024 · 1 comment
Open

bl602如何更改ld脚本? #84

FlyyingPiggy2020 opened this issue Oct 24, 2024 · 1 comment

Comments

@FlyyingPiggy2020
Copy link

如果不更改bl_iot_sdk里面的代码能够不使用默认的ld脚本
而选择用自定义的ld脚本进行链接吗?

我对整个项目构建的过程不是很了解。
components/platform/soc/bl602/bl602/evb/evb.mk

我尝试在工程目录下定义了CONFIG_LINK_CUSTOMERCOMPONENT_ADD_LDFLAGSCOMPONENT_ADD_LINKER_DEPS之后,再去进行编译,但是最后打印出来的COMPONENT_LINKER_DEPSCOMPONENT_LDFLAGS是空的。

@FlyyingPiggy2020
Copy link
Author

我目前的解决方案是把bl_iot_sdk里面的bl602复制到工程当中,改名为bl602_ld
image

然后把makefile中的bl602改为bl602_ld
image

这样子就可以每个工程使用不同的ld脚本了。

但是感觉我这个做法不是很常规。。不知道当初你们设置CONFIG_LINK_CUSTOMER这个选项,应该如何使用?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant