Changeset 0bd108d in clfs-embedded for BOOK/cross-tools/x86


Ignore:
Timestamp:
Nov 12, 2006, 1:39:58 AM (18 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
master
Children:
4bdf1d0
Parents:
02ef21b
Message:

Fixed uclibc headers so they install instead of symlinking

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

Legend:

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

    r02ef21b r0bd108d  
    4747  xpointer="xpointer(//*[@os='f'])"/>
    4848
     49  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     50  href="uclibc.xml"
     51  xpointer="xpointer(//*[@os='g'])"/>
     52
     53  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     54  href="uclibc.xml"
     55  xpointer="xpointer(//*[@os='h'])"/>
     56
    4957<screen os="d1"><userinput>cp .config .config.orig
    5058sed -e "/^KERNEL_SOURCE/s:=.*:=\"${CLFS}/usr\":" \
     
    5664  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    5765  href="uclibc.xml"
    58   xpointer="xpointer(//*[@os='h'])"/>
     66  xpointer="xpointer(//*[@os='j'])"/>
    5967
    6068  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    6169  href="uclibc.xml"
    62   xpointer="xpointer(//*[@os='i'])"/>
     70  xpointer="xpointer(//*[@os='k'])"/>
    6371
    6472   <para os="d2">Create the Headers:</para>
     
    6876  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    6977  href="uclibc.xml"
    70   xpointer="xpointer(//*[@os='l'])"/>
     78  xpointer="xpointer(//*[@os='n'])"/>
    7179
    7280  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    7381  href="uclibc.xml"
    74   xpointer="xpointer(//*[@os='m'])"/>
     82  xpointer="xpointer(//*[@os='o'])"/>
    7583
    7684  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    7785  href="uclibc.xml"
    78   xpointer="xpointer(//*[@os='n'])"/>
     86  xpointer="xpointer(//*[@os='p'])"/>
    7987
    8088<screen os="d5"><userinput>cp -a include/* ${CLFS}/usr/include</userinput></screen>
  • BOOK/cross-tools/x86/uclibc.xml

    r02ef21b r0bd108d  
    3838   extra/Configs/Config.in.orig > extra/Configs/Config.in</userinput></screen>
    3939
    40     <note os="c">
     40    <para os="c">By default uClibc symlinks the headers to the source directory.
     41    This is not acceptable in our build scenario. So sed the Makefiles to copy them
     42    instead.</para>
     43
     44<screen os="d"><userinput>cp Makefile Makefile.orig
     45sed -e 's/$(LN) -fs/cp/g' Makefile.orig > Makefile
     46for file in `find libc/sysdeps/linux -name Makefile`; do
     47        cp $file $file.orig
     48        sed -e 's/$(LN) -fs/cp/g' -e 's@../libc/@$(TOPDIR)libc/@g' $file.orig > $file
     49done</userinput></screen>
     50
     51    <note os="e">
    4152      <para>Below we are just telling uClibc to use the default configuration of
    4253      uClibc. For those for more adventureous, you can use make menuconfig, and
     
    4455    </note>
    4556
    46     <para os="d">Create default configuration:</para>
     57    <para os="f">Create default configuration:</para>
    4758
    48 <screen os="e"><userinput>make defconfig</userinput></screen>
     59<screen os="g"><userinput>make defconfig</userinput></screen>
    4960
    50    <para os="f">We will need to edit the configuration file, to make sure everything gets
     61   <para os="h">We will need to edit the configuration file, to make sure everything gets
    5162   compiled and put into it's proper locations:</para>
    5263
    53 <screen os="g"><userinput>cp .config .config.orig
     64<screen os="i"><userinput>cp .config .config.orig
    5465sed -e "/^CROSS_COMPILER_PREFIX/s:=.*:=\"${CLFS_TARGET}-\":" \
    5566    -e "/^KERNEL_SOURCE/s:=.*:=\"${CLFS}/usr\":" \
     
    5970    .config.orig > .config</userinput></screen>
    6071
    61     <para os="h">We will need to make sure that some settings in uClibc are set so we
     72    <para os="j">We will need to make sure that some settings in uClibc are set so we
    6273    can utilize all the features of BusyBox:</para>
    6374
    64 <screen os="i"><userinput>UCLIBC_OPTIONS="DO_C99_MATH UCLIBC_HAS_RPC UCLIBC_HAS_CTYPE_CHECKED UCLIBC_HAS_WCHAR UCLIBC_HAS_HEXADECIMAL_FLOATS
     75<screen os="k"><userinput>UCLIBC_OPTIONS="DO_C99_MATH UCLIBC_HAS_RPC UCLIBC_HAS_CTYPE_CHECKED UCLIBC_HAS_WCHAR UCLIBC_HAS_HEXADECIMAL_FLOATS
    6576                UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE UCLIBC_HAS_PRINTF_M_SPEC UCLIBC_HAS_FTW UCLIBC_HAS_IPV6"
    6677for config in $UCLIBC_OPTIONS; do
     
    7081echo "UCLIBC_HAS_FULL_RPC=y" >> .config</userinput></screen>
    7182
    72     <para os="j">Compile the package:</para>
     83    <para os="l">Compile the package:</para>
    7384
    74 <screen os="k"><userinput>make TARGET_ARCH=i386</userinput></screen>
     85<screen os="m"><userinput>make TARGET_ARCH=i386</userinput></screen>
    7586
    76    <para os="l">We will remove the files that were copied over from our Linux Headers during
     87   <para os="n">We will remove the files that were copied over from our Linux Headers during
    7788   the building of uClibc. These files were copied into the include directory of the source
    7889   directory of uClibc:</para>
    7990
    80 <screen os="m"><userinput>rm include/{asm,asm-generic,linux}</userinput></screen>
     91<screen os="o"><userinput>rm include/{asm,asm-generic,linux}</userinput></screen>
    8192
    82     <para os="n">Install the package:</para>
     93    <para os="p">Install the package:</para>
    8394
    84 <screen os="o"><userinput>make PREFIX=${CLFS} install</userinput></screen>
     95<screen os="q"><userinput>make PREFIX=${CLFS} install</userinput></screen>
    8596
    8697  </sect2>
Note: See TracChangeset for help on using the changeset viewer.