Changeset e666df1 in clfs-embedded for BOOK/cross-tools/x86
- Timestamp:
- Nov 9, 2006, 4:56:08 PM (18 years ago)
- Branches:
- master
- Children:
- 4ef72df
- Parents:
- e2d2a2d
- Location:
- BOOK/cross-tools/x86
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/x86/uclibc-headers.xml
re2d2a2d re666df1 23 23 <title>Installation of uClibc Headers</title> 24 24 25 <para os="a">Since we are cross-compiling, we need to make sure when we 26 configuration for our architecture we get the correct information. The 27 following sed makes sure we are using the proper settings for our 28 architecture: (This is a place holder for the other architectures</para> 25 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 26 href="uclibc.xml" 27 xpointer="xpointer(//*[@os='a'])"/> 29 28 30 <screen os="b"><userinput>cp extra/Configs/Config.in extra/Configs/Config.in.orig 31 sed -e "s:default TARGET_i386:default TARGET_i386:" \ 32 extra/Configs/Config.in.orig > extra/Configs/Config.in</userinput></screen>29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 30 href="uclibc.xml" 31 xpointer="xpointer(//*[@os='b'])"/> 33 32 34 <para os="c">By default uClibc symlinks all its headers from the source, we 35 will change this behavious with the following sed:</para> 36 37 <screen os="d"><userinput>cp Makefile Makefile.orig 38 sed -e 's/$(LN) -fs/cp/g' Makefile.orig > Makefile 39 for file in `find libc/sysdeps/linux -name Makefile`; do 40 cp $file $file.orig 41 sed -e 's/$(LN) -fs/cp/g' -e 's@../libc/@$(TOPDIR)libc/@g' $file.orig > $file 42 done</userinput></screen> 33 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 34 href="uclibc.xml" 35 xpointer="xpointer(//*[@os='c'])"/> 43 36 44 <para os="e">Now we will ask uClibc to create a default configuration:</para> 37 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 38 href="uclibc.xml" 39 xpointer="xpointer(//*[@os='d'])"/> 45 40 46 <screen os="f"><userinput>make defconfig</userinput></screen> 41 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 42 href="uclibc.xml" 43 xpointer="xpointer(//*[@os='e'])"/> 44 45 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 46 href="uclibc.xml" 47 xpointer="xpointer(//*[@os='f'])"/> 48 49 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 50 href="uclibc.xml" 51 xpointer="xpointer(//*[@os='h'])"/> 52 53 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 54 href="uclibc.xml" 55 xpointer="xpointer(//*[@os='i'])"/> 47 56 48 57 <para os="g">Create the Headers:</para> … … 53 62 files were copied into the source directory of uClibc:</para> 54 63 55 <screen os="j"><userinput>rm include/{asm,asm-generic,linux}</userinput></screen> 64 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 65 href="uclibc.xml" 66 xpointer="xpointer(//*[@os='l'])"/> 56 67 57 <para os="k">Install the Headers:</para> 68 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 69 href="uclibc.xml" 70 xpointer="xpointer(//*[@os='m'])"/> 58 71 59 72 <screen os="l"><userinput>cp -a include/* ${CLFS}/usr/include</userinput></screen> -
BOOK/cross-tools/x86/uclibc.xml
re2d2a2d re666df1 59 59 .config.orig > .config</userinput></screen> 60 60 61 <para os="h">Compile the package:</para> 61 <para os="h">We will need to make sure that some settings in uClibc are set so we 62 can utilize all the features of BusyBox:</para> 62 63 63 <screen os="i"><userinput>make TARGET_ARCH=i386</userinput></screen> 64 <screen os="i"><userinput>UCLIBC_OPTIONS="DO_C99_MATH UCLIBC_HAS_RPC UCLIBC_HAS_CTYPE_CHECKED UCLIBC_HAS_WCHAR UCLIBC_HAS_HEXADECIMAL_FLOATS 65 UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE UCLIBC_HAS_PRINTF_M_SPEC UCLIBC_HAS_FTW UCLIBC_HAS_IPV6" 66 for config in $UCLIBC_OPTIONS; do 67 cp .config .config.orig 68 sed -e "s:# ${config} is not set:${config}=y:" .config.orig > .config 69 done 70 echo "UCLIBC_HAS_FULL_RPC=y" >> .config</userinput></screen> 64 71 65 <para os="j">We will remove the files that were copied over from our Linux Headers, these 72 <para os="j">Compile the package:</para> 73 74 <screen os="k"><userinput>make TARGET_ARCH=i386</userinput></screen> 75 76 <para os="l">We will remove the files that were copied over from our Linux Headers, these 66 77 files were copied into the source directory of uClibc:</para> 67 78 68 <screen os=" k"><userinput>rm include/{asm,asm-generic,linux}</userinput></screen>79 <screen os="m"><userinput>rm include/{asm,asm-generic,linux}</userinput></screen> 69 80 70 <para os=" l">Install the package:</para>81 <para os="n">Install the package:</para> 71 82 72 <screen os=" m"><userinput>make PREFIX=${CLFS} install</userinput></screen>83 <screen os="o"><userinput>make PREFIX=${CLFS} install</userinput></screen> 73 84 74 85 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.