How to Attach a LCF file to a Target

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

How to Attach a LCF file to a Target

3,349 Views
samsaprunoff
Contributor V
Good day everyone,
I am using CW for the Coldfire Ver 6.2 and I am having a hell of a time trying to figure out how to attach a linker control file (.lcf) to a target.  After going through all of the settings, etc, I cannot seem to find out where to do this...  Can anyone direct me as to where I am not looking or what am I doing wrong?
 
Cheers,
 
Sam
Labels (1)
0 Kudos
3 Replies

527 Views
CompilerGuru
NXP Employee
NXP Employee
To make CW use your lcf, just add it to your build target. Check if you have other lcfs in the same build target, if so, remove them out of the project or exclude them from this build target.
0 Kudos

527 Views
J2MEJediMaster
Specialist I
Add you .lcf file to the Project window (where all the file names are) using Project > Add files... Once your .lcf file appears in the Project window, find the column with the little red-and-white bullseye. This is the Target column. Is it all starting to make sense now? Next, click in this column, on the row where your .lcf file appears. You should have a black dot appear, which indicates that CodeWarrior recognizes the file as part of the build process for this target. If there are other .lcf files in there, click in their respective target columns to make the black dot go away. That way, you won't confuse the linker with multiple appearances of a linker file.

Sorry if these instructions seem a little basic, but you appeared to need an explict description.

---Tom
0 Kudos

527 Views
samsaprunoff
Contributor V
Good day Tom and CompilerGuru,
 
Thank you for the information!  I did not know that the "dotted" target column was actually editable...  Boy do I feel silly ...  Thanks again!
 
Cheers,
 
Sam
0 Kudos