Changeset e2d2a2d in clfs-embedded for BOOK


Ignore:
Timestamp:
Nov 8, 2006, 9:17:42 PM (18 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
master
Children:
e666df1
Parents:
a58af15
Message:

Added some notes to the uClibc build. Added the target set to uClibc headers.

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

Legend:

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

    ra58af15 re2d2a2d  
    2323    <title>Installation of uClibc Headers</title>
    2424
    25     <para os="a">By default uClibc symlinks all its headers from the source, we
     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>
     29
     30<screen os="b"><userinput>cp extra/Configs/Config.in extra/Configs/Config.in.orig
     31sed -e "s:default TARGET_i386:default TARGET_i386:" \
     32   extra/Configs/Config.in.orig > extra/Configs/Config.in</userinput></screen>
     33
     34    <para os="c">By default uClibc symlinks all its headers from the source, we
    2635    will change this behavious with the following sed:</para>
    2736       
    28 <screen os="b"><userinput>cp Makefile Makefile.orig
     37<screen os="d"><userinput>cp Makefile Makefile.orig
    2938sed -e 's/$(LN) -fs/cp/g' Makefile.orig > Makefile
    3039for file in `find libc/sysdeps/linux -name Makefile`; do
     
    3342done</userinput></screen>
    3443
    35     <para os="c">Now we will ask uClibc to create a default configuration:</para>
     44    <para os="e">Now we will ask uClibc to create a default configuration:</para>
    3645
    37 <screen os="d"><userinput>make defconfig</userinput></screen>
     46<screen os="f"><userinput>make defconfig</userinput></screen>
    3847
    39    <para os="e">Create the Headers:</para>
     48   <para os="g">Create the Headers:</para>
    4049
    41 <screen os="f"><userinput>make KERNEL_SOURCE=${CLFS}/usr TARGET_ARCH=i386 headers</userinput></screen>
     50<screen os="h"><userinput>make KERNEL_SOURCE=${CLFS}/usr TARGET_ARCH=i386 headers</userinput></screen>
    4251
    43    <para os="g">We will remove the files that were copied over from our Linux Headers, these
     52   <para os="i">We will remove the files that were copied over from our Linux Headers, these
    4453   files were copied into the source directory of uClibc:</para>
    4554
    46 <screen os="h"><userinput>rm include/{asm,asm-generic,linux}</userinput></screen>
     55<screen os="j"><userinput>rm include/{asm,asm-generic,linux}</userinput></screen>
    4756
    48    <para os="i">Install the Headers:</para>
     57   <para os="k">Install the Headers:</para>
    4958
    50 <screen os="j"><userinput>cp -a include/* ${CLFS}/usr/include</userinput></screen>
     59<screen os="l"><userinput>cp -a include/* ${CLFS}/usr/include</userinput></screen>
    5160
    5261  </sect2>
  • BOOK/cross-tools/x86/uclibc.xml

    ra58af15 re2d2a2d  
    3838   extra/Configs/Config.in.orig > extra/Configs/Config.in</userinput></screen>
    3939
    40     <para os="c">Create default configuration:</para>
     40    <note os="c">
     41      <para>Below we are just telling uClibc to use the default configuration of
     42      uClibc. For those for more adventureous, you can use make menuconfig, and
     43      do a more custom build of your uClibc.</para>
     44    </note>
    4145
    42 <screen os="d"><userinput>make defconfig</userinput></screen>
     46    <para os="d">Create default configuration:</para>
    4347
    44    <para os="e">We will need to edit the configuration file, to make sure everything gets
     48<screen os="e"><userinput>make defconfig</userinput></screen>
     49
     50   <para os="f">We will need to edit the configuration file, to make sure everything gets
    4551   compiled and put into it's proper locations:</para>
    4652
    47 <screen os="f"><userinput>cp .config .config.orig
     53<screen os="g"><userinput>cp .config .config.orig
    4854sed -e "/^CROSS_COMPILER_PREFIX/s:=.*:=\"${CLFS_TARGET}-\":" \
    4955    -e "/^KERNEL_SOURCE/s:=.*:=\"${CLFS}/usr\":" \
     
    5359    .config.orig > .config</userinput></screen>
    5460
    55     <para os="g">Compile the package:</para>
     61    <para os="h">Compile the package:</para>
    5662
    57 <screen os="h"><userinput>make TARGET_ARCH=i386</userinput></screen>
     63<screen os="i"><userinput>make TARGET_ARCH=i386</userinput></screen>
    5864
    59    <para os="i">We will remove the files that were copied over from our Linux Headers, these
     65   <para os="j">We will remove the files that were copied over from our Linux Headers, these
    6066   files were copied into the source directory of uClibc:</para>
    6167
    62 <screen os="j"><userinput>rm include/{asm,asm-generic,linux}</userinput></screen>
     68<screen os="k"><userinput>rm include/{asm,asm-generic,linux}</userinput></screen>
    6369
    64     <para os="k">Install the package:</para>
     70    <para os="l">Install the package:</para>
    6571
    66 <screen os="l"><userinput>make PREFIX=${CLFS} install</userinput></screen>
     72<screen os="m"><userinput>make PREFIX=${CLFS} install</userinput></screen>
    6773
    6874  </sect2>
Note: See TracChangeset for help on using the changeset viewer.