Changeset 6bb43b3 for BOOK/cross-tools/sparc64
- Timestamp:
- Feb 21, 2006, 1:26:16 AM (19 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- cedcdaa
- Parents:
- e47ec16
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/sparc64/flags.xml
re47ec16 r6bb43b3 10 10 <?dbhtml filename="flags.html"?> 11 11 12 <para >We will need to setup target specific flags for the compiler12 <para os="a">We will need to setup target specific flags for the compiler 13 13 and linkers. You can choose the appropriate BUILD32 and BUILD64 14 14 from the table at the bottom of the page.</para> 15 15 16 <screen ><userinput>export BUILD32="[BUILD32 entries]"16 <screen os="b"><userinput>export BUILD32="[BUILD32 entries]" 17 17 export BUILD64="[BUILD64 entries]" 18 18 export GCCTARGET="[GCCTARGET entries]"</userinput></screen> 19 19 20 <para>You will need to set your host target triplet for 32 bit:</para> 20 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 21 href="../x86_64/flags.xml" 22 xpointer="xpointer(//*[@os='c'])"/> 21 23 22 <screen ><userinput>export LFS_TARGET32="sparcv9-unknown-linux-gnu"</userinput></screen>24 <screen os="d"><userinput>export LFS_TARGET32="sparcv9-unknown-linux-gnu"</userinput></screen> 23 25 24 <para>Let's perform a sanity check to prevent build issues. If our LFS_HOST matches our 25 target, we will get some failures during our cross-compile:</para> 26 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 27 href="../x86_64/flags.xml" 28 xpointer="xpointer(//*[@os='e'])"/> 26 29 27 <screen><userinput>if [ "${LFS_HOST}" = "${LFS_TARGET32}" ]; then \ 28 echo "Host and Target can't be the same." ; fi</userinput></screen> 30 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 31 href="../x86_64/flags.xml" 32 xpointer="xpointer(//*[@os='f'])"/> 29 33 30 <para>If the above test gave you "Host and Target can't be the same", you will need to change your LFS_HOST to a 31 a different target triplet:</para> 34 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 35 href="../x86_64/flags.xml" 36 xpointer="xpointer(//*[@os='g'])"/> 32 37 33 <screen><userinput>export LFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`"</userinput></screen> 38 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 39 href="../x86_64/flags.xml" 40 xpointer="xpointer(//*[@os='h'])"/> 34 41 35 <para>Lets add the build flags to <filename>~/.bashrc</filename> to 36 prevent issues if we stop and come back later.</para> 42 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 43 href="../x86_64/flags.xml" 44 xpointer="xpointer(//*[@os='i'])"/> 37 45 38 <screen ><userinput>echo export BUILD32=\""${BUILD32}\"" >> ~/.bashrc46 <screen os="j"><userinput>echo export BUILD32=\""${BUILD32}\"" >> ~/.bashrc 39 47 echo export BUILD64=\""${BUILD64}\"" >> ~/.bashrc 40 48 echo export GCCTARGET=\""${GCCTARGET}\"" >> ~/.bashrc … … 42 50 echo export LFS_HOST=\""${LFS_HOST}\"" >> ~/.bashrc</userinput></screen> 43 51 44 <para >The following table gives the entires for different Sparc 64 capable52 <para os="k">The following table gives the entires for different Sparc 64 capable 45 53 processors. Pick the processor that matches your system.</para> 46 54 47 <table >55 <table os="l"> 48 56 <title>List of architectures, target triplets, and recommended book</title> 49 57 <tgroup cols="2" align="center">
Note:
See TracChangeset
for help on using the changeset viewer.