Changeset e666df1 in clfs-embedded


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

Updated Date
Added Busybox
Added Patches
Updated uClibc to build Busybox

Files:
6 added
8 edited

Legend:

Unmodified
Added
Removed
  • BOOK/cross-tools/common/binutils.xml

    re2d2a2d re666df1  
    2727    <title>Installation of Cross Binutils</title>
    2828
    29     <para os="da">It is important that Binutils be the first package compiled
    30     because both Glibc and GCC perform various tests on the available
     29    <para os="a">It is important that Binutils be the first package compiled
     30    because both uClibc and GCC perform various tests on the available
    3131    linker and assembler to determine which of their own features to
    3232    enable.</para>
    3333
    34 
    3534    <para os="p1">To make sure that the proper syntax is used for a couple of
    3635    tools, apply the following patch:</para>
     
    3837<screen os="p2"><userinput>patch -Np1 -i ../&binutils-posix-patch;</userinput></screen>
    3938
    40     <para os="a">The Binutils documentation recommends building Binutils outside of the
     39    <para os="b">The Binutils documentation recommends building Binutils outside of the
    4140    source directory in a dedicated build directory:</para>
    4241
    43 <screen os="b"><userinput>mkdir -v ../binutils-build
     42<screen os="c"><userinput>mkdir -v ../binutils-build
    4443cd ../binutils-build</userinput></screen>
    4544
    46     <para os="c">Prepare Binutils for compilation:</para>
    47 
    48 <screen os="bc"><userinput>../binutils-&binutils-version;/configure --prefix=${CLFS}/cross-tools \
     45    <para os="d">Prepare Binutils for compilation:</para>
     46
     47<screen os="e"><userinput>../binutils-&binutils-version;/configure --prefix=${CLFS}/cross-tools \
    4948   --host=${CLFS_HOST} --target=${CLFS_TARGET} --with-sysroot=${CLFS} \
    5049   --disable-nls --enable-shared --disable-multilib</userinput></screen>
    5150
    52     <variablelist os="bd">
     51    <variablelist os="f">
    5352      <title>The meaning of the configure options:</title>
    5453
    55       <varlistentry os="bd1">
     54      <varlistentry os="f1">
    5655        <term><parameter>--prefix=${CLFS}/cross-tools</parameter></term>
    5756        <listitem>
     
    6261      </varlistentry>
    6362
    64       <varlistentry os="bd2">
     63      <varlistentry os="f2">
    6564        <term><parameter>--host=${CLFS_HOST}</parameter></term>
    6665        <listitem>
     
    7170      </varlistentry>
    7271
    73       <varlistentry os="bd3">
     72      <varlistentry os="f3">
    7473        <term><parameter>--target=${CLFS_TARGET}</parameter></term>
    7574        <listitem>
     
    8079      </varlistentry>
    8180
    82       <varlistentry os="bd4">
     81      <varlistentry os="f4">
    8382        <term><parameter>--with-sysroot=${CLFS}</parameter></term>
    8483        <listitem>
     
    8988      </varlistentry>
    9089
    91       <varlistentry os="bd5">
     90      <varlistentry os="f5">
    9291        <term><parameter>--disable-nls</parameter></term>
    9392        <listitem>
     
    9796      </varlistentry>
    9897
    99       <varlistentry os="bd6">
     98      <varlistentry os="f6">
    10099        <term><parameter>--enable-shared</parameter></term>
    101100        <listitem>
     
    104103      </varlistentry>
    105104
    106       <varlistentry os="bd7">
     105      <varlistentry os="f7">
    107106        <term><parameter>--disable-multilib</parameter></term>
    108107        <listitem>
     
    114113    </variablelist>
    115114
    116     <para os="be">Compile the package:</para>
    117 
    118 <screen os="bf"><userinput>make configure-host
     115    <para os="g">Compile the package:</para>
     116
     117<screen os="h"><userinput>make configure-host
    119118make</userinput></screen>
    120119
    121     <variablelist os="bg">
     120    <variablelist os="i">
    122121      <title>The meaning of the make options:</title>
    123122
    124       <varlistentry os="bg1">
     123      <varlistentry os="i1">
    125124        <term><parameter>configure-host</parameter></term>
    126125        <listitem>
     
    132131    </variablelist>
    133132
    134     <para os="bh">Install the package:</para>
    135 
    136 <screen os="bi"><userinput>make install</userinput></screen>
    137 
    138     <para os="bj">Copy the <filename class="headerfile">libiberty.h</filename> file to
     133    <para os="j">Install the package:</para>
     134
     135<screen os="k"><userinput>make install</userinput></screen>
     136
     137    <para os="l">Copy the <filename class="headerfile">libiberty.h</filename> file to
    139138    <filename class="directory">${CLFS}/usr/include</filename> directory:</para>
    140139
    141 <screen os="bk"><userinput>cp -v ../binutils-&binutils-version;/include/libiberty.h ${CLFS}/usr/include</userinput></screen>
     140<screen os="m"><userinput>cp -v ../binutils-&binutils-version;/include/libiberty.h ${CLFS}/usr/include</userinput></screen>
    142141
    143142  </sect2>
  • 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>
  • BOOK/final-system/x86-chapter.xml

    re2d2a2d re666df1  
    1414  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/>
    1515  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/pkgmgt.xml"/>
     16  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/busybox.xml"/>
    1617
    1718</chapter>
  • BOOK/general.ent

    re2d2a2d re666df1  
    33<!ENTITY month "11"> <!-- Use two digits -->
    44<!ENTITY month_name "November">
    5 <!ENTITY day "5"> <!-- Use two digits -->
     5<!ENTITY day "9"> <!-- Use two digits -->
    66<!ENTITY year "2006"> <!-- Use four digits -->
    77
  • BOOK/materials/common/patches.xml

    re2d2a2d re666df1  
    2525        url="&patches-root;&binutils-posix-patch;"/></para>
    2626        <para>MD5 sum: <literal>&binutils-posix-patch-md5;</literal></para>
     27      </listitem>
     28    </varlistentry>
     29
     30    <varlistentry>
     31      <term>Busybox Fixes Patch - <token>&busybox-fixes-patch-size;</token>:</term>
     32      <listitem>
     33        <para>Download: <ulink
     34        url="&patches-root;&busybox-fixes-patch;"/></para>
     35        <para>MD5 sum: <literal>&busybox-fixes-patch-md5;</literal></para>
    2736      </listitem>
    2837    </varlistentry>
  • BOOK/packages.ent

    re2d2a2d re666df1  
    1010<!ENTITY binutils-md5 "e26e2e06b6e4bf3acf1dc8688a94c0d1">
    1111<!ENTITY binutils-home "http://sources.redhat.com/binutils/">
     12
     13<!ENTITY busybox-version "1.2.2.1">
     14<!ENTITY busybox-size "1,385 KB">
     15<!ENTITY busybox-url "http://busybox.net/downloads/busybox-&busybox-version;.tar.bz2">
     16<!ENTITY busybox-md5 "153f7a4d7580c19ed6f6570f039b64b5">
     17<!ENTITY busybox-home "http://www.busybox.net">
    1218
    1319<!ENTITY clfs-bootscripts-version "1.1-pre3">
  • BOOK/patches.ent

    re2d2a2d re666df1  
    99<!ENTITY binutils-posix-patch-md5 "7e42a8edc0c59246bbc58c428256113c">
    1010<!ENTITY binutils-posix-patch-size "4.9 KB">
     11
     12<!ENTITY busybox-fixes-patch "busybox-&busybox-version;-fiexes-1.patch">
     13<!ENTITY busybox-fixes-patch-md5 "6770300fc410a1f8996ba54c870dca8f">
     14<!ENTITY busybox-fixes-patch-size "4 KB">
    1115
    1216<!ENTITY gcc-cross_search-patch "gcc-&gcc-version;-cross_search_paths-1.patch">
Note: See TracChangeset for help on using the changeset viewer.