<div dir="ltr">Did I miss something? - where does it it get the rtl & compiler source? TIA John </div><div class="gmail_extra"><br><div class="gmail_quote">On 18 August 2015 at 16:27, Chris Moody <span dir="ltr"><<a href="mailto:inquiry@greensnakedesign.com" target="_blank">inquiry@greensnakedesign.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><span class="">
<br>
<br>
<div>On 08/18/2015 01:24 AM, Michael Ring
wrote:<br>
</div>
<blockquote type="cite">
This is how I build fpc trunk cross compiler:<br>
<br>
echo "Building fpchf-linux from trunk"<br>
SUBARCH=armv7<br>
CROSSOPT="-dREVINC -dFPC_ARMHF -CX -CpARMV7A -CfVFPV3_D16
-OpARMV7A -O2 -OoFASTMATH -XX -Xs"<br>
//CROSSOPT="-dREVINC -dFPC_ARMHF -CX -CpARMV6 -CfVFPV2 -OpARMV6
-O2 -OoFASTMATH -XX -Xs"<br>
OPT="-dFPC_ARMHF"<br>
make clean buildbase CROSSINSTALL=1 OS_TARGET=linux
CPU_TARGET=arm OPT="$OPT" OVERRIDEVERSIONCHECK=1
CROSSOPT="$CROSSOPT" BINUTILSPREFIX=arm-linux-gnueabihf- || exit 1<br>
sudo make installbase CROSSINSTALL=1 OS_TARGET=linux
CPU_TARGET=arm OPT="$OPT" OVERRIDEVERSIONCHECK=1
CROSSOPT="$CROSSOPT" BINUTILSPREFIX=arm-linux-gnueabihf- || exit 1<br>
sudo mv /usr/local/lib/fpc/3.1.1/ppcrossarm
/usr/local/lib/fpc/3.1.1/ppcrossarmhf<br>
<br>
Please note that the rtl is fine for Raspberry Pi 2 (the new quad
core board) as this is a version that uses armv7 commandset.<br>
<br>
For old Raspberry Pi you need to use the commented out CROSSOPT,
this will create rtl that is suitable for old raspberries.<br>
<br>
You should not try to use fpc 2.6.4 as this compiler does not
support armhf. Most likely the 3.0 pre-release will compile the
same way, but I never tried.<br>
<br>
You need to have cross-binutils installed as you need
arm-linux-gnueabihf-* tools to be able to successfully compile. <br>
<br>
Michael<br>
<br>
</blockquote></span>
Hi Michael,<br>
<br>
Just to make sure, I run the script on the desktop right? just to
make sure its not to be ran on the Pi.<br>
<br>
Thanks again!<span class="HOEnZb"><font color="#888888"><br>
<br>
Chris<br>
</font></span></div>
<br>_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" rel="noreferrer" target="_blank">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br></blockquote></div><br></div>