avoid re-generating ld files (or a way to generate them from command line)

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

avoid re-generating ld files (or a way to generate them from command line)

1,792 Views
tejacob
Contributor I

hi,

i want to be able to build my projects from command line - which works great (simply calling "make" in the Debug directories works). however, i also want to keep my projects under version control in git.

every time i re-build using the ide the .ld files are updated (the "* MCUXpresso IDE v11.8.1 [Build 1197] [2023-10-27] on Nov 29, 2023, 3:38:19 PM" line), which makes it difficult to use under version control. can this be avoided if nothing has changed?

alternatively (this would be preferred) i would like to generate the .ld files (and everything else under Debug) from command line without using any java tools. is this possible? i'm running linux.

thanks, jacob

0 Kudos
Reply
4 Replies

1,786 Views
ErichStyger
Specialist I

There is an option in the linker settings not to re-generate the linker files:

ErichStyger_0-1701271136917.png

 

Erich

0 Kudos
Reply

1,785 Views
tejacob
Contributor I

thank you for your answer.

that will probably break things (make things go out of sync). i want them to be re-generated only when something actually has changed. currently they're always re-generated.

0 Kudos
Reply

1,782 Views
ErichStyger
Specialist I

The linker file only would need re-generation if you will change things related to the linker file memory mapping. So it would need no change e.g. if you change the sources of the project. Or if you use and change FreeMarker scripts (not sure if you are aware, see https://mcuoneclipse.com/2019/10/06/linking-bootloader-applications-with-eclipse-and-freemarker-scri...)

Erich

0 Kudos
Reply

1,780 Views
tejacob
Contributor I

ok, perhaps the right thing is to manage the linker files manually. thanks.

0 Kudos
Reply