Linker command when building with west

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Linker command when building with west

Jump to solution
849 Views
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 Kudos
Reply
1 Solution
779 Views
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!
---------------------------------------------------------------------------------------------------------------------------

 

 

 

View solution in original post

0 Kudos
Reply
1 Reply
780 Views
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 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2350668%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELinker%20command%20when%20building%20with%20west%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2350668%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3EI%20build%20a%20project%20for%20a%26nbsp%3BMCXE31B%20dev.%20board%20using%20west%20like%20this%3A%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%3EA%20file%20called%26nbsp%3B%3C%2FP%3E%3CP%3E%5Cbuild_lwip%5Ccompile_commands.json%3C%2FP%3E%3CP%3EIs%20generated%20with%20all%20the%20compile%20commands%20which%20is%20great.%3C%2FP%3E%3CP%3EBut%20I%20would%20also%20like%20to%20see%20the%20linker%20command%20that%20is%20executed%20to%20build%20the%20.elf%20and%20.bin%20file.%3CBR%20%2F%3E%3CBR%20%2F%3EIs%20that%20command%20logged%20in%20some%20other%20file%20by%20the%20build%20system%3F%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%3EHello%26nbsp%3B%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%26nbsp%3B%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThanks%20for%20your%20post.%20You%20can%20find%20the%20relevant%20information%20using%20the%20command%20below.%26nbsp%3B%3CSPAN%20data-teams%3D%22true%22%3ESee%20attached%20picture.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-teams%3D%22true%22%3Egrep%20-rn%20%22MCXE31B_flash.ld%22%20build.ninja%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-teams%3D%22true%22%3Egrep%20-R%20%22objcopy%22%20build.ninja%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%20data-teams%3D%22true%22%3EHope%20it%20helps.%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%3ECeleste%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%20data-teams%3D%22true%22%3E---------------------------------------------------------------------------------------------------------------------------%3CBR%20%2F%3ENote%3A%20If%20this%20post%20answers%20your%20question%2C%20please%20click%20the%20%22ACCEPT%20AS%20SOLUTION%22%20button.%20Thank%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