Changeset f32f537 for cross-tools/common/variables.xml
- Timestamp:
- Feb 21, 2006, 1:26:16 AM (19 years ago)
- Children:
- 4a9cdca
- Parents:
- 360c931
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cross-tools/common/variables.xml
r360c931 rf32f537 14 14 architecture tools</bridgehead> 15 15 16 <para >This method is recommended for all LiveCD based distro's.</para>16 <para os="a">This method is recommended for all LiveCD based distro's.</para> 17 17 18 <para >During the building of the cross-compile tools you will need to18 <para os="b">During the building of the cross-compile tools you will need to 19 19 set a few variables that will be dependent on your particular needs. 20 20 The first variable will be the triplet of the <envar>HOST</envar> machine. … … 23 23 command:</para> 24 24 25 <screen ><userinput>export LFS_HOST="${MACHTYPE}"</userinput></screen>25 <screen os="c"><userinput>export LFS_HOST="${MACHTYPE}"</userinput></screen> 26 26 27 <para >Now you will need to set the target triplet for the target28 architec ure. You can do this by running the same command as above, just27 <para os="d">Now you will need to set the target triplet for the target 28 architecture. You can do this by running the same command as above, just 29 29 running it on the target machine. If you can't run the command on the 30 30 target machine, you can use the table at the bottom of this page. Set 31 31 the command using the method listed below:</para> 32 32 33 <screen ><userinput>export LFS_TARGET="{target triplet}"</userinput></screen>33 <screen os="e"><userinput>export LFS_TARGET="{target triplet}"</userinput></screen> 34 34 35 35 <bridgehead renderas="sect4">Configuration # 2 - Creating same 36 36 architecture tools</bridgehead> 37 37 38 <para >You can also create <quote>clean</quote> tools on your current38 <para os="f">You can also create <quote>clean</quote> tools on your current 39 39 distro. This will ensure that you have all the prerequisites for the 40 40 LFS build.</para> 41 41 42 <para >You will need to set your host target triplet a little differently.42 <para os="g">You will need to set your host target triplet a little differently. 43 43 To set this information you can issue the following commands:</para> 44 44 45 <screen ><userinput>export LFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`"</userinput></screen>45 <screen os="h"><userinput>export LFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`"</userinput></screen> 46 46 47 <para >Now you will need to set the target triplet for the target, which47 <para os="i">Now you will need to set the target triplet for the target, which 48 48 in this case is very simple. Set the command using the method listed 49 49 below:</para> 50 50 51 <screen ><userinput>export LFS_TARGET="${MACHTYPE}"</userinput></screen>51 <screen os="j"><userinput>export LFS_TARGET="${MACHTYPE}"</userinput></screen> 52 52 53 53 <bridgehead renderas="sect4">Sanity Check</bridgehead> 54 54 55 <para >Let's perform a sanity check to prevent build issues. If our LFS_HOST matches our55 <para os="k">Let's perform a sanity check to prevent build issues. If our LFS_HOST matches our 56 56 target, we will get some failures during our cross-compile:</para> 57 57 58 <screen ><userinput>if [ "${LFS_HOST}" = "${LFS_TARGET}" ]; then \58 <screen os="l"><userinput>if [ "${LFS_HOST}" = "${LFS_TARGET}" ]; then \ 59 59 echo "Host and Target can't be the same." ; fi</userinput></screen> 60 60 61 <para >If you received an message, "Host and Target can't be the same."61 <para os="m">If you received an message, "Host and Target can't be the same." 62 62 You will need to use the other Configuration Method. This will prevent build 63 63 issues during the early phases of the build.</para> … … 65 65 <bridgehead renderas="sect4">Copy settings to Environment</bridgehead> 66 66 67 <para >Now we will add these to <filename>~/.bashrc</filename>, just in67 <para os="n">Now we will add these to <filename>~/.bashrc</filename>, just in 68 68 case you have to exit and restart building later:</para> 69 69 70 <screen ><userinput>echo export LFS_HOST=\""${LFS_HOST}\"" >> ~/.bashrc70 <screen os="o"><userinput>echo export LFS_HOST=\""${LFS_HOST}\"" >> ~/.bashrc 71 71 echo export LFS_TARGET=\""${LFS_TARGET}\"" >> ~/.bashrc</userinput></screen> 72 72 73 <table >73 <table os="p"> 74 74 <title>List of architectures, target triplets, and recommended book</title> 75 75 <tgroup cols="2" align="center">
Note:
See TracChangeset
for help on using the changeset viewer.