Linker command when building with west

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Linker command when building with west

跳至解决方案
850 次查看
jonasa
Contributor III

Hi, 

I build a project for a MCXE31B dev. board using west like this:

west build -b frdmmcxe31b -d build_lwip mcuxsdk\examples\lwip_examples\lwip_ping_enet_qos\bm

 

A file called 

\build_lwip\compile_commands.json

Is generated with all the compile commands which is great.

But I would also like to see the linker command that is executed to build the .elf and .bin file.

Is that command logged in some other file by the build system?

 

0 项奖励
回复
1 解答
780 次查看
Celeste_Liu
NXP Employee
NXP Employee

Hello @jonasa ,

 

Thanks for your post. You can find the relevant information using the command below. See attached picture.

grep -rn "MCXE31B_flash.ld" build.ninja

grep -R "objcopy" build.ninja

 

Hope it helps.

BR

Celeste

 

---------------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!
---------------------------------------------------------------------------------------------------------------------------

 

 

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
781 次查看
Celeste_Liu
NXP Employee
NXP Employee

Hello @jonasa ,

 

Thanks for your post. You can find the relevant information using the command below. See attached picture.

grep -rn "MCXE31B_flash.ld" build.ninja

grep -R "objcopy" build.ninja

 

Hope it helps.

BR

Celeste

 

---------------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!
---------------------------------------------------------------------------------------------------------------------------

 

 

 

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2350668%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E4%BD%BF%E7%94%A8%E8%A5%BF%E6%96%87%E6%9E%84%E5%BB%BA%E6%97%B6%E7%9A%84%E9%93%BE%E6%8E%A5%E5%99%A8%E5%91%BD%E4%BB%A4%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2350668%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%E3%80%81%20%3C%2FP%3E%3CP%3E%E6%88%91%E4%B8%BA%20MCXE31B%20%E5%BC%80%E5%8F%91%E4%BA%BA%E5%91%98%E6%9E%84%E5%BB%BA%E4%BA%86%E4%B8%80%E4%B8%AA%E9%A1%B9%E7%9B%AE%E3%80%82%E6%9D%BF%E6%98%AF%E8%BF%99%E6%A0%B7%E4%BD%BF%E7%94%A8%E8%A5%BF%E6%96%B9%E7%9A%84%EF%BC%9A%3CBR%20%2F%3E%3CBR%20%2F%3Ewest%20build%20-b%20frdmmcxe31b%20-d%20build_lwip%20mcuxsdk%5Cexamples%5Clwip_examples%5Clwip_ping_enet_qos%5Cbm%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E4%B8%80%E4%B8%AA%E5%90%8D%E4%B8%BA%20%3C%2FP%3E%3CP%3E%5Cbuild_lwip%5Ccompile_commands.json%3C%2FP%3E%3CP%3E%E6%98%AF%E4%B8%8E%E6%89%80%E6%9C%89%E7%BC%96%E8%AF%91%E5%91%BD%E4%BB%A4%E4%B8%80%E8%B5%B7%E7%94%9F%E6%88%90%E7%9A%84%EF%BC%8C%E8%BF%99%E5%BE%88%E5%A5%BD%E3%80%82%3C%2FP%3E%3CP%3E%E4%BD%86%E6%88%91%E4%B9%9F%E6%83%B3%E7%9C%8B%E7%9C%8B%E4%B8%BA%E6%9E%84%E5%BB%BA%20.elf%20%E8%80%8C%E6%89%A7%E8%A1%8C%E7%9A%84%E9%93%BE%E6%8E%A5%E5%99%A8%E5%91%BD%E4%BB%A4%E5%92%8C%20.bin%E9%94%89%E5%88%80%3CBR%20%2F%3E%3CBR%20%2F%3E%E8%AF%A5%E5%91%BD%E4%BB%A4%E6%98%AF%E5%90%A6%E7%94%B1%E7%BC%96%E8%AF%91%E7%B3%BB%E7%BB%9F%E8%AE%B0%E5%BD%95%E5%9C%A8%E5%85%B6%E4%BB%96%E6%96%87%E4%BB%B6%E4%B8%AD%EF%BC%9F%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2352151%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Linker%20command%20when%20building%20with%20west%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2352151%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F157113%22%20target%3D%22_blank%22%3E%40jonasa%3C%2FA%3E%E3%80%81%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%E8%B0%A2%E8%B0%A2%E6%82%A8%E7%9A%84%E5%B8%96%E5%AD%90%E3%80%82%E6%82%A8%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8%E4%B8%8B%E9%9D%A2%E7%9A%84%E5%91%BD%E4%BB%A4%E6%9F%A5%E6%89%BE%E7%9B%B8%E5%85%B3%E4%BF%A1%E6%81%AF%E3%80%82%20%3CSPAN%20data-teams%3D%22true%22%3E%E8%A7%81%E9%99%84%E5%9B%BE%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-teams%3D%22true%22%3Egrep-rn%20%22%20mcxe31b_flash.LD%20%22%20build.ninja%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-teams%3D%22true%22%3Egrep-R%20%22%20objcopy%20%22%20build.ninja%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%20data-teams%3D%22true%22%3E%E5%B8%8C%E6%9C%9B%E5%AF%B9%E6%82%A8%E6%9C%89%E6%89%80%E5%B8%AE%E5%8A%A9%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-teams%3D%22true%22%3EBR%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-teams%3D%22true%22%3E%E8%A5%BF%E8%8E%B1%E6%96%AF%E7%89%B9%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%20data-teams%3D%22true%22%3E---------------------------------------------------------------------------------------------------------------------------%3CBR%20%2F%3E%E6%B3%A8%EF%BC%9A%E5%A6%82%E6%9E%9C%E6%9C%AC%E5%B8%96%E5%9B%9E%E7%AD%94%E4%BA%86%E6%82%A8%E7%9A%84%E9%97%AE%E9%A2%98%EF%BC%8C%E8%AF%B7%E7%82%B9%E5%87%BB%22ACCEPT%20AS%20SOLUTION%22%20%E6%8C%89%E9%92%AE%E3%80%82Thank%20you!%3CBR%20%2F%3E---------------------------------------------------------------------------------------------------------------------------%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E