Changeset e666df1 in clfs-embedded for BOOK/cross-tools/x86


Ignore:
Timestamp:
Nov 9, 2006, 4:56:08 PM (17 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
master
Children:
4ef72df
Parents:
e2d2a2d
Message:

Updated Date
Added Busybox
Added Patches
Updated uClibc to build Busybox

Location:
BOOK/cross-tools/x86
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BOOK/cross-tools/x86/uclibc-headers.xml

    re2d2a2d re666df1  
    2323    <title>Installation of uClibc Headers</title>
    2424
    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'])"/>
    2928
    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'])"/>
    3332
    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'])"/>
    4336
    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'])"/>
    4540
    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'])"/>
    4756
    4857   <para os="g">Create the Headers:</para>
     
    5362   files were copied into the source directory of uClibc:</para>
    5463
    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'])"/>
    5667
    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'])"/>
    5871
    5972<screen os="l"><userinput>cp -a include/* ${CLFS}/usr/include</userinput></screen>
  • BOOK/cross-tools/x86/uclibc.xml

    re2d2a2d re666df1  
    5959    .config.orig > .config</userinput></screen>
    6060
    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>
    6263
    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"
     66for config in $UCLIBC_OPTIONS; do
     67        cp .config .config.orig
     68        sed -e "s:# ${config} is not set:${config}=y:" .config.orig > .config
     69done
     70echo "UCLIBC_HAS_FULL_RPC=y" >> .config</userinput></screen>
    6471
    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
    6677   files were copied into the source directory of uClibc:</para>
    6778
    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>
    6980
    70     <para os="l">Install the package:</para>
     81    <para os="n">Install the package:</para>
    7182
    72 <screen os="m"><userinput>make PREFIX=${CLFS} install</userinput></screen>
     83<screen os="o"><userinput>make PREFIX=${CLFS} install</userinput></screen>
    7384
    7485  </sect2>
Note: See TracChangeset for help on using the changeset viewer.