Changeset 0dad5b9 in clfs-embedded
- Timestamp:
- Jan 25, 2009, 12:12:02 PM (16 years ago)
- Branches:
- master
- Children:
- 4a4fe83
- Parents:
- 667c9bd
- Files:
-
- 1 added
- 2 deleted
- 10 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/arm-chapter.xml
r667c9bd r0dad5b9 16 16 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="arm/abi.xml"/> 17 17 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="arm/variables.xml"/> 18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href=" arm/linux-headers.xml"/>18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/linux-headers.xml"/> 19 19 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gmp.xml"/> 20 20 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/mpfr.xml"/> 21 21 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/binutils.xml"/> 22 22 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gcc-static.xml"/> 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href=" arm/uclibc.xml"/>23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/uclibc.xml"/> 24 24 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gcc-final.xml"/> 25 25 -
BOOK/cross-tools/arm/variables.xml
r667c9bd r0dad5b9 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="../mips/variables.xml" 31 xpointer="xpointer(//*[@os='e1'])"/> 32 33 <screen os="e2"><userinput>export CLFS_ENDIAN=$(echo ${CLFS_TARGET} | sed -e 's/armeb/BIG/' -e 's/arm/LITTLE/'</userinput></screen> 27 <screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/arm.*/arm/g')</userinput></screen> 34 28 35 29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 37 31 xpointer="xpointer(//*[@os='e'])"/> 38 32 39 <screen os="f"><userinput>echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc 40 echo export CLFS_ARCH=\""${CLFS_ARCH}\"" >> ~/.bashrc 41 echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" >> ~/.bashrc</userinput></screen> 33 <screen os="f"><userinput>export CLFS_ENDIAN=$(echo ${CLFS_TARGET} | 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> 42 39 43 <table os="g"> 40 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 41 href="../x86/variables.xml" 42 xpointer="xpointer(//*[@os='g'])"/> 43 44 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 45 href="../x86/variables.xml" 46 xpointer="xpointer(//*[@os='h'])"/> 47 48 <table os="i"> 44 49 <title>Processor Type and Target Triplets</title> 45 50 <?dbfo table-width="5in" ?> -
BOOK/cross-tools/common/uclibc.xml
r667c9bd r0dad5b9 29 29 <title>Installation of uClibc</title> 30 30 31 <note os=" e">31 <note os="a"> 32 32 <para>Below we are just telling uClibc to use its default configuration. 33 33 For those for more adventureous, you can use make menuconfig, and … … 35 35 </note> 36 36 37 <para os="f">Create the default configuration:</para> 37 <para os="p1">The following patch contains a number of updates to the 38 &uclibc-version; branch by the uClibc developers:</para> 38 39 39 <screen os=" g"><userinput>make defconfig ARCH=i386</userinput></screen>40 <screen os="p2"><userinput>patch -Np1 -i ../&uclibc-branch_update-patch;</userinput></screen> 40 41 41 <para os="h">We will need to edit the configuration file, to make sure everything gets 42 <para os="b">Copy the uClibc config file from where you downloaded it:</para> 43 44 <screen os="c"><userinput>cp ${CLFS}/sources/uClibc.config .config</userinput></screen> 45 46 <para os="d">We will need to edit the configuration file, to make sure everything gets 42 47 compiled and put into its proper location:</para> 43 48 44 <screen os="i"><userinput>cp .config{,.orig} 45 sed -e "/^CROSS_COMPILER_PREFIX/s:=.*:=\"${CLFS_TARGET}-\":" \ 46 -e "/^KERNEL_HEADERS/s:=.*:=\"${CLFS}/usr/include\":" \ 47 -e "/^SHARED_LIB_LOADER_PREFIX/s:=.*:=\"/lib\":" \ 48 -e "/^DEVEL_PREFIX/s:=.*:=\"/usr\":" \ 49 -e "/^RUNTIME_PREFIX/s:=.*:=\"/\":" \ 50 .config.orig > .config</userinput></screen> 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\"${BUILD_INSTALL_DIR}/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> 51 58 52 <para os="j">We will need to make sure that some settings in uClibc are set so we 53 can utilize all the features of BusyBox:</para> 54 55 <screen os="k"><userinput>UCLIBC_OPTIONS="DO_C99_MATH UCLIBC_HAS_RPC UCLIBC_HAS_CTYPE_CHECKED 56 UCLIBC_HAS_WCHAR UCLIBC_HAS_HEXADECIMAL_FLOATS LDSO_PRELOAD_FILE_SUPPORT 57 UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE UCLIBC_HAS_PRINTF_M_SPEC UCLIBC_HAS_IPV6 58 UCLIBC_HAS_GLIBC_CUSTOM_PRINTF UCLIBC_USE_NETLINK UCLIBC_HAS_FTW" 59 for config in $UCLIBC_OPTIONS; do 60 cp .config{,.orig} 61 sed -e "s:# ${config} is not set:${config}=y:" .config.orig > .config 62 done 63 UCLIBC_OPTIONS="UCLIBC_HAS_CTYPE_UNSAFE" 64 for config in $UCLIBC_OPTIONS; do 65 cp .config{,.orig} 66 sed -e "s:${config}=y:# ${config} is not set:" .config.orig > .config 67 done 68 echo "UCLIBC_HAS_FULL_RPC=y" >> .config 69 echo "UCLIBC_HAS_REENTRANT_RPC=y" >> .config</userinput></screen> 70 71 <para os="l">We have made some changes to our config, let's make sure 59 <para os="f">We have made some changes to our config, let's make sure 72 60 that we didn't miss and dependencies:</para> 73 61 74 <screen os=" m"><userinput>make oldconfig</userinput></screen>62 <screen os="g"><userinput>make oldconfig</userinput></screen> 75 63 76 <para os=" n">Compile the package:</para>64 <para os="h">Compile the package:</para> 77 65 78 <screen os=" o"><userinput>make CC="${CLFS_TARGET}-gcc ${BUILD}"</userinput></screen>66 <screen os="i"><userinput>make CC="${CLFS_TARGET}-gcc ${BUILD}"</userinput></screen> 79 67 80 <para os=" p">Install the package:</para>68 <para os="l">Install the package:</para> 81 69 82 <screen os=" q"><userinput>make PREFIX=${CLFS} install</userinput></screen>70 <screen os="j"><userinput>make PREFIX=${CLFS} install</userinput></screen> 83 71 84 72 </sect2> -
BOOK/cross-tools/mips-chapter.xml
r667c9bd r0dad5b9 16 16 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips/abi.xml"/> 17 17 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips/variables.xml"/> 18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href=" mips/linux-headers.xml"/>18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/linux-headers.xml"/> 19 19 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gmp.xml"/> 20 20 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/mpfr.xml"/> 21 21 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/binutils.xml"/> 22 22 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gcc-static.xml"/> 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href=" mips/uclibc.xml"/>23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/uclibc.xml"/> 24 24 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gcc-final.xml"/> 25 25 -
BOOK/cross-tools/mips/variables.xml
r667c9bd r0dad5b9 25 25 xpointer="xpointer(//*[@os='c'])"/> 26 26 27 <screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/mips.*/mips/' -e 's/mipsel.*/mips/' </userinput></screen>27 <screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/mips.*/mips/' -e 's/mipsel.*/mips/')</userinput></screen> 28 28 29 <para os="e1">Now we will setup out default endian needed we need to build:</para> 29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 30 href="../x86/variables.xml" 31 xpointer="xpointer(//*[@os='e'])"/> 30 32 31 <screen os="e2"><userinput>export CLFS_ENDIAN=$(echo ${CLFS_TARGET} | sed -e 's/mipsel/LITTLE/' -e 's/mips/BIG/'</userinput></screen> 33 <screen os="f"><userinput>export CLFS_ENDIAN=$(echo ${CLFS_TARGET} | 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> 32 39 33 40 <para os="m1">Now you will need to set the MIPS LEVEL. This determines how your … … 40 47 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 41 48 href="../x86/variables.xml" 42 xpointer="xpointer(//*[@os=' e'])"/>49 xpointer="xpointer(//*[@os='g'])"/> 43 50 44 <screen os=" f"><userinput>echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc51 <screen os="h"><userinput>echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc 45 52 echo export CLFS_ARCH=\""${CLFS_ARCH}\"" >> ~/.bashrc 46 53 echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" >> ~/.bashrc 54 echo export CLFS_NOT_ENDIAN=\""${CLFS_NOT_ENDIAN}\"" >> ~/.bashrc 47 55 echo export CLFS_MIPS_LEVEL=\""${CLFS_MIPS_LEVEL}\"" >> ~/.bashrc</userinput></screen> 48 56 49 <table os=" g">57 <table os="i"> 50 58 <title>Processor Type and Target Triplets</title> 51 59 <?dbfo table-width="5.5in" ?> -
BOOK/cross-tools/wrt-chapter.xml
r667c9bd r0dad5b9 16 16 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips/abi.xml"/> 17 17 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips/variables.xml"/> 18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href=" mips/linux-headers.xml"/>18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/linux-headers.xml"/> 19 19 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gmp.xml"/> 20 20 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/mpfr.xml"/> 21 21 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/binutils.xml"/> 22 22 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gcc-static.xml"/> 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href=" mips/uclibc.xml"/>23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/uclibc.xml"/> 24 24 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gcc-final.xml"/> 25 25 -
BOOK/cross-tools/x86-chapter.xml
r667c9bd r0dad5b9 16 16 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86/abi.xml"/> 17 17 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86/variables.xml"/> 18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href=" x86/linux-headers.xml"/>18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/linux-headers.xml"/> 19 19 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gmp.xml"/> 20 20 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/mpfr.xml"/> 21 21 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/binutils.xml"/> 22 22 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gcc-static.xml"/> 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href=" x86/uclibc.xml"/>23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/uclibc.xml"/> 24 24 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gcc-final.xml"/> 25 25 -
BOOK/cross-tools/x86/variables.xml
r667c9bd r0dad5b9 25 25 <para os="c">Now we will setup out default architecture needed we need to build:</para> 26 26 27 <screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/i.86/i386/' </userinput></screen>27 <screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/i.86/i386/')</userinput></screen> 28 28 29 <para os="e">Now we will add this to <filename>~/.bashrc</filename>, just in 29 <para os="e">Now we will setup out default endian needed we need to build and set the one we don't need:</para> 30 31 <screen os="f"><userinput>export CLFS_ENDIAN=LITTLE 32 export CLFS_NOT_ENDIAN=BIG</userinput></screen> 33 34 <para os="g">Now we will add this to <filename>~/.bashrc</filename>, just in 30 35 case you have to exit and restart building later:</para> 31 36 32 <screen os="f"><userinput>echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc 33 echo export CLFS_ARCH=\""${CLFS_ARCH}\"" >> ~/.bashrc</userinput></screen> 37 <screen os="h"><userinput>echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc 38 echo export CLFS_ARCH=\""${CLFS_ARCH}\"" >> ~/.bashrc 39 echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" >> ~/.bashrc 40 echo export CLFS_NOT_ENDIAN=\""${CLFS_NOT_ENDIAN}\"" >> ~/.bashrc</userinput></screen> 34 41 35 <table os=" g">42 <table os="i"> 36 43 <title>Processor Type and Target Triplets</title> 37 44 <?dbfo table-width="4.5in" ?> -
BOOK/general.ent
r667c9bd r0dad5b9 36 36 <!ENTITY redhat "ftp://sources.redhat.com/pub/"> 37 37 <!ENTITY kernel "http://www.kernel.org/pub/"> 38 <!ENTITY sourceforge "http://prdownloads.sourceforge.net/"> 38 <!ENTITY sourceforge "http://master.dl.sourceforge.net/"> 39 <!ENTITY svn-clfs-config "http://svn.cross-lfs.org/svn/repos/cross-lfs/branches/clfs-embedded/config/"> 39 40 <!ENTITY svn-clfs-software "http://svn.cross-lfs.org/svn/repos/cross-lfs/branches/clfs-embedded/software/"> 40 41 -
BOOK/materials/common/packages.xml
r667c9bd r0dad5b9 88 88 89 89 <varlistentry> 90 <term>uClibc Config File (&uclibc-config-version;) - <token>&uclibc-config-size;</token>:</term> 91 <listitem> 92 <para>Home page: <ulink url="&uclibc-config-home;"/></para> 93 <para>Download: <ulink url="&uclibc-config-url;"/></para> 94 <para>MD5 sum: <literal>&uclibc-config-md5;</literal></para> 95 </listitem> 96 </varlistentry> 97 98 <varlistentry> 90 99 <term>Zlib (&zlib-version;) - <token>&zlib-size;</token>:</term> 91 100 <listitem> -
BOOK/packages.ent
r667c9bd r0dad5b9 67 67 <!ENTITY uclibc-home "http://uclibc.org/"> 68 68 69 <!ENTITY uclibc-config-version "&uclibc-version;"> 70 <!ENTITY uclibc-config-size "9 KB"> 71 <!ENTITY uclibc-config-url "&svn-clfs-config;uClibc-&uclibc-config-version;.config"> 72 <!ENTITY uclibc-config-md5 "744ec0160bf17418d118f47a4aed4fa6"> 73 <!ENTITY uclibc-config-home " "> 74 69 75 <!ENTITY zlib-version "1.2.3"> 70 76 <!ENTITY zlib-size "485 KB">
Note:
See TracChangeset
for help on using the changeset viewer.