<div dir="ltr">Hi all,<div><br></div><div>I can report that using CFLAGS_FOR_TARGET worked. e.g</div><div><br></div><div>CFLAGS_FOR_TARGET+=-qnolinkcmds -T $(exec_prefix)/mrm332/lib/linkcmds_ROM<br></div><div><br></div><div>
Will now use the ROM linker script instead of the RAM linker script which has the default name linkcmds</div><div><br></div><div>Cheers,</div><div>James</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 7 February 2014 10:03, James Fitzsimons <span dir="ltr"><<a href="mailto:james.fitzsimons@gmail.com" target="_blank">james.fitzsimons@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Thanks for your replies guys,<div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">Sebastian - I'll see if I can figure out how to work that into my makefile. I suppose I could try using the CFLAGS_FOR_TARGET again like I did with the header include path....</span><br>


</div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Peter - I'm targeting a M68332 (specifically the mrm332 bsp). Ideally I'd like a simple makefile switch I can turn on or off to target RAM or ROM, but if it's too difficult I'll just cheat and rename my linker scripts depending on where I want to load my code to.</span></div>


<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Cheers,</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">James Fitzsimons</span></div>
<div><div class="h5">

<div class="gmail_extra"><br><br><div class="gmail_quote">On 7 February 2014 00:41, Peter Dufault <span dir="ltr"><<a href="mailto:dufault@hda.com" target="_blank">dufault@hda.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div style="word-wrap:break-word">What target are you using?  On the MPC5554 I use the MMU to swap the flash and the RAM so it winds up being the same image.  Of course it means my development system needs to be loaded with RAM.<div>


<br><div><div><div><div>On Feb 6, 2014, at 04:37 , James Fitzsimons <<a href="mailto:james.fitzsimons@gmail.com" target="_blank">james.fitzsimons@gmail.com</a>> wrote:</div><br></div></div><blockquote type="cite">
<div><div><div dir="ltr">Hi all,<div><br></div><div>I'm slowly trying to figure out the RTEMS build process and how to bend it to my will!</div><div><br></div><div>I have two linker scripts, one for running out of RAM, and one for running out of ROM. </div>



<div><br></div><div>Is there anyway to override which linker file will be used in your makefile?</div><div><br></div><div>I found the following in my gcc-target-default.cfg </div><div><br></div><div><div>#</div><div># Allow user to override link commands (to build a prom image, perhaps)</div>



<div>#</div><div>ifndef LINKCMDS</div><div>LINKCMDS=$(PROJECT_RELEASE)/lib/linkcmds</div><div>endif</div></div><div><br></div><div>But overriding LINKCMDS and specifying a different linker script in my makefile didn't work.</div>



<div><br></div><div>Any advice would be gratefully received.</div><div><br></div><div>Thanks and regards,</div><div>James Fitzsimons </div></div></div></div><div>
_______________________________________________<br>rtems-users mailing list<br><a href="mailto:rtems-users@rtems.org" target="_blank">rtems-users@rtems.org</a><br><a href="http://www.rtems.org/mailman/listinfo/rtems-users" target="_blank">http://www.rtems.org/mailman/listinfo/rtems-users</a><br>


</div></blockquote></div><br><div>
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="line-height:normal;text-indent:0px;border-collapse:separate;letter-spacing:normal;font-variant:normal;text-transform:none;font-style:normal;white-space:normal;font-family:Helvetica;font-weight:normal;word-spacing:0px"><div style="word-wrap:break-word">


<font size="3"><span style="font-size:12px">Peter<br>-----------------<br>Peter Dufault<br>HD Associates, Inc.      Software and System Engineering</span></font></div></span></span>
</div>
<br></div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>