Changeset 0bd108d in clfs-embedded for BOOK


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
Files:
5 edited

Legend:

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

    r02ef21b r0bd108d  
    4848
    4949  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    50   href="../x86/uclibc-headers.xml"
    51   xpointer="xpointer(//*[@os='d1'])"/>
     50  href="uclibc.xml"
     51  xpointer="xpointer(//*[@os='g'])"/>
    5252
    5353  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     
    5656
    5757  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     58  href="../x86/uclibc-headers.xml"
     59  xpointer="xpointer(//*[@os='d1'])"/>
     60
     61  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    5862  href="uclibc.xml"
    59   xpointer="xpointer(//*[@os='i'])"/>
     63  xpointer="xpointer(//*[@os='j'])"/>
     64
     65  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     66  href="uclibc.xml"
     67  xpointer="xpointer(//*[@os='k'])"/>
    6068
    6169  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     
    6775  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    6876  href="uclibc.xml"
    69   xpointer="xpointer(//*[@os='l'])"/>
     77  xpointer="xpointer(//*[@os='n'])"/>
    7078
    7179  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    7280  href="uclibc.xml"
    73   xpointer="xpointer(//*[@os='m'])"/>
     81  xpointer="xpointer(//*[@os='o'])"/>
    7482
    7583  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    7684  href="uclibc.xml"
    77   xpointer="xpointer(//*[@os='n'])"/>
     85  xpointer="xpointer(//*[@os='p'])"/>
    7886
    7987  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  • BOOK/cross-tools/mips/uclibc.xml

    r02ef21b r0bd108d  
    6363  xpointer="xpointer(//*[@os='j'])"/>
    6464
    65 <screen os="k"><userinput>make TARGET_ARCH=mips</userinput></screen>
     65  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     66  href="../x86/uclibc.xml"
     67  xpointer="xpointer(//*[@os='k'])"/>
    6668
    6769  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     
    6971  xpointer="xpointer(//*[@os='l'])"/>
    7072
    71   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    72   href="../x86/uclibc.xml"
    73   xpointer="xpointer(//*[@os='m'])"/>
     73<screen os="m"><userinput>make TARGET_ARCH=mips</userinput></screen>
    7474
    7575  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     
    8080  href="../x86/uclibc.xml"
    8181  xpointer="xpointer(//*[@os='o'])"/>
     82
     83  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     84  href="../x86/uclibc.xml"
     85  xpointer="xpointer(//*[@os='p'])"/>
     86
     87  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     88  href="../x86/uclibc.xml"
     89  xpointer="xpointer(//*[@os='q'])"/>
    8290
    8391  </sect2>
  • 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>
  • BOOK/general.ent

    r02ef21b r0bd108d  
    33<!ENTITY month "11"> <!-- Use two digits -->
    44<!ENTITY month_name "November">
    5 <!ENTITY day "9"> <!-- Use two digits -->
     5<!ENTITY day "12"> <!-- Use two digits -->
    66<!ENTITY year "2006"> <!-- Use four digits -->
    77
Note: See TracChangeset for help on using the changeset viewer.