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

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

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

1,799 次查看
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 项奖励
回复
4 回复数

1,793 次查看
ErichStyger
Specialist I

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

ErichStyger_0-1701271136917.png

 

Erich

0 项奖励
回复

1,792 次查看
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 项奖励
回复

1,789 次查看
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 项奖励
回复

1,787 次查看
tejacob
Contributor I

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

0 项奖励
回复