- Timestamp:
- Nov 28, 2010, 3:46:43 PM (14 years ago)
- Branches:
- master
- Children:
- d9bcc87
- Parents:
- 87d09b7
- Location:
- BOOK
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/arm/variables.xml
r87d09b7 ra9bbc46 25 25 xpointer="xpointer(//*[@os='c'])"/> 26 26 27 <screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/arm.*/arm/g')</userinput></screen> 28 29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 30 href="../x86/variables.xml" 31 xpointer="xpointer(//*[@os='e'])"/> 32 33 <screen os="f"><userinput>export CLFS_ENDIAN=$(echo ${CLFS_ARCH} | sed -e 's/armeb/BIG/' -e 's/arm/LITTLE/') 34 if [ "${CLFS_ENDIAN}" = "LITTLE" ]; then 35 export CLFS_NOT_ENDIAN=BIG 36 else 37 export CLFS_NOT_ENDIAN=LITTLE 38 fi</userinput></screen> 27 <screen os="d"><userinput>export CLFS_ARCH=arm 28 export CLFS_ENDIAN=<replaceable>[endianess]</replaceable></userinput></screen> 39 29 40 30 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 58 48 <row> 59 49 <entry>Processor</entry> 50 <entry>Endianess</entry> 60 51 <entry>Target Triplet</entry> 61 52 </row> … … 64 55 <tbody> 65 56 <row> 66 <entry>Generic arm, little endian</entry> 57 <entry>Generic arm</entry> 58 <entry>little</entry> 67 59 <entry>arm-unknown-linux-uclibc</entry> 68 60 </row> 69 61 <row> 70 <entry>Generic arm, version 5, little endian</entry> 62 <entry>Generic arm, version 5</entry> 63 <entry>little</entry> 71 64 <entry>armv5l-unknown-linux-uclibc</entry> 72 65 </row> 73 66 <row> 74 <entry>Generic arm, version 5, big endian</entry> 67 <entry>Generic arm, version 5</entry> 68 <entry>big</entry> 75 69 <entry>armv5b-unknown-linux-uclibc</entry> 76 70 </row> -
BOOK/cross-tools/common/uclibc.xml
r87d09b7 ra9bbc46 35 35 </note> 36 36 37 <para os=" p1">The following patch contains a number of updates to the38 &uclibc-version; branch by the uClibc developers:</para>37 <para os="b">The following patch contains the default configurations for 38 the architectures covered in this book:</para> 39 39 40 <screen os=" p2"><userinput>patch -Np1 -i ../&uclibc-branch_update-patch;</userinput></screen>40 <screen os="c"><userinput>patch -Np1 -i ../&uclibc-configs-patch;</userinput></screen> 41 41 42 <para os="b">Copy the uClibc config file from where you downloaded it:</para> 42 <para os="d">Now we will copy the configuration file best matching this 43 build and use that as the base:</para> 43 44 44 <screen os="c"><userinput>cp ${CLFS}/sources/uClibc-&uclibc-version;.config .config</userinput></screen> 45 46 <para os="d">We will need to edit the configuration file, to make sure everything gets 47 compiled and it's compiled to the proper architecture:</para> 48 49 <screen os="e"><userinput>cp .config{,.orig} 50 sed -e "s@# TARGET_${CLFS_ARCH} is not set@TARGET_${CLFS_ARCH}=y@" \ 51 -e "s@\(^TARGET_ARCH=\).*@\1\"${CLFS_ARCH}\"@" \ 52 -e "s@\(^CROSS_COMPILER_PREFIX=\).*@\1\"${CLFS_TARGET}-\"@" \ 53 -e "s@\(^KERNEL_HEADERS=\).*@\1\"${CLFS}/usr/include\"@" \ 54 -e "s@.*\(^ARCH_${CLFS_NOT_ENDIAN}_ENDIAN\).*@# \1 is not set@g" \ 55 -e "s@.*\(ARCH_${CLFS_ENDIAN}_ENDIAN\).*@\1=y@g" \ 56 -e "s@.*\(ARCH_WANTS_${CLFS_ENDIAN}_ENDIAN\).*@\1=y@g" \ 57 .config.orig > .config</userinput></screen> 45 <screen os="e"><userinput>cp clfs/config.${CLFS_ARCH}.${CLFS_ENDIAN} .config</userinput></screen> 58 46 59 47 <para os="f">The config is a basic working system, but there are some … … 66 54 <para os="h">Compile the package:</para> 67 55 68 <screen os="i"><userinput>make CROSS=${CLFS_TARGET}- CC="${CLFS_TARGET}-gcc ${BUILD}"</userinput></screen>56 <screen os="i"><userinput>make</userinput></screen> 69 57 70 58 <para os="l">Install the package:</para> -
BOOK/cross-tools/mips/variables.xml
r87d09b7 ra9bbc46 25 25 xpointer="xpointer(//*[@os='c'])"/> 26 26 27 <screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/mips64/mips/')</userinput></screen> 28 29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 30 href="../x86/variables.xml" 31 xpointer="xpointer(//*[@os='e'])"/> 32 33 <screen os="f"><userinput>export CLFS_ENDIAN=$(echo ${CLFS_ARCH} | sed -e 's/mipsel/LITTLE/' -e 's/mips/BIG/') 34 if [ "${CLFS_ENDIAN}" = "LITTLE" ]; then 35 export CLFS_NOT_ENDIAN=BIG 36 else 37 export CLFS_NOT_ENDIAN=LITTLE 38 fi</userinput></screen> 27 <screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/\(mips\)\(64\)\?\(el\)\?-.*/\1\3/') 28 export CLFS_ENDIAN=$(echo ${CLFS_ARCH} | sed -e 's/mipsel/little/' -e 's/mips/big/')</userinput></screen> 39 29 40 30 <para os="m1">Now you will need to set the MIPS LEVEL. This determines how your … … 53 43 echo export CLFS_ARCH=\""${CLFS_ARCH}\"" >> ~/.bashrc 54 44 echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" >> ~/.bashrc 55 echo export CLFS_NOT_ENDIAN=\""${CLFS_NOT_ENDIAN}\"" >> ~/.bashrc56 45 echo export CLFS_MIPS_LEVEL=\""${CLFS_MIPS_LEVEL}\"" >> ~/.bashrc</userinput></screen> 57 46 -
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"> -
BOOK/general.ent
r87d09b7 ra9bbc46 3 3 <!ENTITY month "11"> <!-- Use two digits --> 4 4 <!ENTITY month_name "November"> 5 <!ENTITY day "2 1"> <!-- Use two digits -->5 <!ENTITY day "28"> <!-- Use two digits --> 6 6 <!ENTITY year "2010"> <!-- Use four digits --> 7 7 -
BOOK/introduction/common/changelog.xml
r87d09b7 ra9bbc46 36 36 </listitem> 37 37 --> 38 39 <listitem> 40 <para>November 28, 2010</para> 41 <itemizedlist> 42 <listitem> 43 <para>[jciccone] - Updated uClibc to 0.9.31.</para> 44 </listitem> 45 </itemizedlist> 46 </listitem> 38 47 39 48 <listitem> -
BOOK/materials/common/packages.xml
r87d09b7 ra9bbc46 124 124 125 125 <varlistentry> 126 <term>uClibc Config File (&uclibc-config-version;) - <token>&uclibc-config-size;</token>:</term>127 <listitem>128 <para>Home page: <ulink url="&uclibc-config-home;"/></para>129 <para>Download: <ulink url="&uclibc-config-url;"/></para>130 <para>MD5 sum: <literal>&uclibc-config-md5;</literal></para>131 </listitem>132 </varlistentry>133 134 <varlistentry>135 126 <term>Zlib (&zlib-version;) - <token>&zlib-size;</token>:</term> 136 127 <listitem> -
BOOK/materials/common/patches.xml
r87d09b7 ra9bbc46 29 29 30 30 <varlistentry> 31 <term>uClibc Branch Update Patch - <token>&uclibc-branch_update-patch-size;</token>:</term>31 <term>uClibc Configs Patch - <token>&uclibc-configs-patch-size;</token>:</term> 32 32 <listitem> 33 33 <para>Download: <ulink 34 url="&patches-root;&uclibc- branch_update-patch;"/></para>35 <para>MD5 sum: <literal>&uclibc- branch_update-patch-md5;</literal></para>34 url="&patches-root;&uclibc-configs-patch;"/></para> 35 <para>MD5 sum: <literal>&uclibc-configs-patch-md5;</literal></para> 36 36 </listitem> 37 37 </varlistentry> -
BOOK/packages.ent
r87d09b7 ra9bbc46 74 74 <!ENTITY mpfr-home "http://www.mpfr.org/"> 75 75 76 <!ENTITY uclibc-version "0.9.3 0.1">77 <!ENTITY uclibc-size "2,2 31KB">76 <!ENTITY uclibc-version "0.9.31"> 77 <!ENTITY uclibc-size "2,244 KB"> 78 78 <!ENTITY uclibc-url "http://www.uclibc.org/downloads/uClibc-&uclibc-version;.tar.bz2"> 79 <!ENTITY uclibc-md5 " 1a4b84e5536ad8170563ffa88c34679c">79 <!ENTITY uclibc-md5 "52fb8a494758630c8d3ddd7f1e0daafd"> 80 80 <!ENTITY uclibc-home "http://uclibc.org/"> 81 82 <!ENTITY uclibc-config-version "&uclibc-version;">83 <!ENTITY uclibc-config-size "5 KB">84 <!ENTITY uclibc-config-url "&svn-clfs-config;uClibc-&uclibc-config-version;.config">85 <!ENTITY uclibc-config-md5 "ed62fb231034de4f6edea2f6da488613">86 <!ENTITY uclibc-config-home " ">87 81 88 82 <!ENTITY zlib-version "1.2.3"> -
BOOK/patches.ent
r87d09b7 ra9bbc46 9 9 <!ENTITY busybox-branch_update-patch-size "15 KB"> 10 10 11 <!ENTITY uclibc- branch_update-patch "uClibc-&uclibc-version;-branch_update-1.patch">12 <!ENTITY uclibc- branch_update-patch-md5 "7f1ca40d176b74b865977fb085a5eb7f">13 <!ENTITY uclibc- branch_update-patch-size "36KB">11 <!ENTITY uclibc-configs-patch "uClibc-&uclibc-version;-configs-1.patch"> 12 <!ENTITY uclibc-configs-patch-md5 "386e96413ff440f8c4c088be8fa3827e"> 13 <!ENTITY uclibc-configs-patch-size "52 KB"> 14 14 15 15 <!-- Beyond patches -->
Note:
See TracChangeset
for help on using the changeset viewer.