Changeset 128e9a4 in clfs-embedded


Ignore:
Timestamp:
Jan 25, 2009, 1:53:06 AM (16 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
master
Children:
667c9bd
Parents:
220608f
Message:

Fixed variable page on x86

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

Legend:

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

    r220608f r128e9a4  
    2929    <title>Installation of uClibc</title>
    3030
    31     <note os="e">
     31    <note os="a">
    3232      <para>Below we are just telling uClibc to use its default configuration.
    3333      For those for more adventureous, you can use make menuconfig, and
     
    3535    </note>
    3636
    37     <para os="f">Create the default configuration:</para>
     37    <para os="p1">The following patch contains a number of updates to the
     38    &uclibc-version; branch by the uClibc developers:</para>
    3839
    39 <screen os="g"><userinput>make defconfig ARCH=i386</userinput></screen>
     40<screen os="p2"><userinput>patch -Np1 -i ../&uclibc-branch_update-patch;</userinput></screen>
    4041
    41    <para os="h">We will need to edit the configuration file, to make sure everything gets
     42    <para os="b">Create the default configuration:</para>
     43
     44<screen os="c"><userinput>make defconfig ARCH=i386</userinput></screen>
     45
     46   <para os="d">We will need to edit the configuration file, to make sure everything gets
    4247   compiled and put into its proper location:</para>
    4348
    44 <screen os="i"><userinput>cp .config{,.orig}
    45 sed -e "/^CROSS_COMPILER_PREFIX/s:=.*:=\"${CLFS_TARGET}-\":" \
     49<screen os="e"><userinput>cp .config{,.orig}
     50sed -e "/# TARGET_${CLFS_ARCH} is not set/TARGET_${CLFS_ARCH}=y/" \
     51    -e "/^TARGET_ARCH=\".*\"/TARGET_ARCH=\"$(CLFS__ARCH)\"/" \
     52    -e "/^CROSS_COMPILER_PREFIX/s:=.*:=\"${CLFS_TARGET}-\":" \
    4653    -e "/^KERNEL_HEADERS/s:=.*:=\"${CLFS}/usr/include\":" \
    4754    -e "/^SHARED_LIB_LOADER_PREFIX/s:=.*:=\"/lib\":" \
     
    5057    .config.orig > .config</userinput></screen>
    5158
    52     <para os="j">We will need to make sure that some settings in uClibc are set so we
    53     can utilize all the features of BusyBox:</para>
    54 
    55 <screen os="k"><userinput>UCLIBC_OPTIONS="DO_C99_MATH UCLIBC_HAS_RPC UCLIBC_HAS_CTYPE_CHECKED
    56     UCLIBC_HAS_WCHAR UCLIBC_HAS_HEXADECIMAL_FLOATS LDSO_PRELOAD_FILE_SUPPORT
    57     UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE UCLIBC_HAS_PRINTF_M_SPEC UCLIBC_HAS_IPV6
    58     UCLIBC_HAS_GLIBC_CUSTOM_PRINTF UCLIBC_USE_NETLINK UCLIBC_HAS_FTW"
    59 for config in $UCLIBC_OPTIONS; do
    60     cp .config{,.orig}
    61     sed -e "s:# ${config} is not set:${config}=y:" .config.orig > .config
    62 done
    63 UCLIBC_OPTIONS="UCLIBC_HAS_CTYPE_UNSAFE"
    64 for config in $UCLIBC_OPTIONS; do
    65     cp .config{,.orig}
    66     sed -e "s:${config}=y:# ${config} is not set:" .config.orig > .config
    67 done
    68 echo "UCLIBC_HAS_FULL_RPC=y" &gt;&gt; .config
    69 echo "UCLIBC_HAS_REENTRANT_RPC=y" &gt;&gt; .config</userinput></screen>
    70 
    71     <para os="l">We have made some changes to our config, let's make sure
     59    <para os="h">We have made some changes to our config, let's make sure
    7260    that we didn't miss and dependencies:</para>
    7361
    74 <screen os="m"><userinput>make oldconfig</userinput></screen>
     62<screen os="i"><userinput>make oldconfig</userinput></screen>
    7563
    76     <para os="n">Compile the package:</para>
     64    <para os="j">Compile the package:</para>
    7765
    78 <screen os="o"><userinput>make CC="${CLFS_TARGET}-gcc ${BUILD}"</userinput></screen>
     66<screen os="k"><userinput>make CC="${CLFS_TARGET}-gcc ${BUILD}"</userinput></screen>
    7967
    80     <para os="p">Install the package:</para>
     68    <para os="l">Install the package:</para>
    8169
    82 <screen os="q"><userinput>make PREFIX=${CLFS} install</userinput></screen>
     70<screen os="m"><userinput>make PREFIX=${CLFS} install</userinput></screen>
    8371
    8472  </sect2>
  • BOOK/cross-tools/x86/variables.xml

    r220608f r128e9a4  
    6666          <entry>i686-unknown-linux-uclibc</entry>
    6767        </row>
     68        <row>
     69          <entry>x86_64</entry>
     70          <entry>x86_64-unknown-linux-uclibc</entry>
     71        </row>
    6872      </tbody>
    6973
Note: See TracChangeset for help on using the changeset viewer.