Changeset a9bbc46 in clfs-embedded for BOOK/cross-tools/x86
- Timestamp:
- Nov 28, 2010, 7:46:43 AM (14 years ago)
- Branches:
- master
- Children:
- d9bcc87
- Parents:
- 87d09b7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/x86/variables.xml
r87d09b7 ra9bbc46 15 15 <para os="a">During the building of the cross-compile tools you will need to 16 16 set a few variables that will be dependent on your particular needs. 17 You will need to set the target triplet for the target 18 architecture. You can do this by running the same command as above, just 19 running it on the target machine. If you can't run the command on the 20 target machine, you can use the table at the bottom of this page. Set 17 You will need to set the target triplet for the target architecture. As well 18 as the CPUs type and endianess. If you do not know what triplet you want, 19 you can use the table at the bottom of this page as a reference. Set 21 20 the command using the method listed below:</para> 22 21 23 22 <screen os="b"><userinput>export CLFS_HOST=$(echo ${MACHTYPE} | sed "s/-[^-]*/-cross/") 24 export CLFS_TARGET= "{target triplet}"</userinput></screen>23 export CLFS_TARGET=<replaceable>[target triplet]</replaceable></userinput></screen> 25 24 26 <para os="c">Now we will setup out default architecture needed we need to build:</para> 25 <para os="c">Now we will set the architecture and endianess of the CPU based 26 on the target triplet provided above:</para> 27 27 28 <screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/i.86/i386/')</userinput></screen> 29 30 <para os="e">Now we will setup out default endian needed we need to build and set the one we don't need:</para> 31 32 <screen os="f"><userinput>export CLFS_ENDIAN=LITTLE 33 export CLFS_NOT_ENDIAN=BIG</userinput></screen> 28 <screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/i.86/i386/') 29 export CLFS_ENDIAN=little</userinput></screen> 34 30 35 31 <para os="g">Now we will add this to <filename>~/.bashrc</filename>, just in … … 39 35 echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc 40 36 echo export CLFS_ARCH=\""${CLFS_ARCH}\"" >> ~/.bashrc 41 echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" >> ~/.bashrc 42 echo export CLFS_NOT_ENDIAN=\""${CLFS_NOT_ENDIAN}\"" >> ~/.bashrc</userinput></screen> 37 echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" >> ~/.bashrc</userinput></screen> 43 38 44 39 <table os="i">
Note:
See TracChangeset
for help on using the changeset viewer.