[Clfs-commits] commit: r4551 - /branches/clfs-embedded/BOOK/cross-tools/x86/uclibc.xml
svn at cross-lfs.org
svn at cross-lfs.org
Sun Jan 25 01:55:25 PST 2009
Author: jim
Date: Sun Jan 25 09:55:24 2009
New Revision: 4551
Log:
Reverted accidental commit x86/uclibc.xml
Modified:
branches/clfs-embedded/BOOK/cross-tools/x86/uclibc.xml
Modified: branches/clfs-embedded/BOOK/cross-tools/x86/uclibc.xml
==============================================================================
--- branches/clfs-embedded/BOOK/cross-tools/x86/uclibc.xml (original)
+++ branches/clfs-embedded/BOOK/cross-tools/x86/uclibc.xml Sun Jan 25 09:55:24 2009
@@ -28,46 +28,58 @@
<sect2 role="installation">
<title>Installation of uClibc</title>
- <note os="a">
+ <note os="e">
<para>Below we are just telling uClibc to use its default configuration.
For those for more adventureous, you can use make menuconfig, and
do a more custom build for your uClibc installation.</para>
</note>
- <para os="p1">The following patch contains a number of updates to the
- &uclibc-version; branch by the uClibc developers:</para>
+ <para os="f">Create the default configuration:</para>
-<screen os="p2"><userinput>patch -Np1 -i ../&uclibc-branch_update-patch;</userinput></screen>
+<screen os="g"><userinput>make defconfig ARCH=i386</userinput></screen>
- <para os="b">Create the default configuration:</para>
-
-<screen os="c"><userinput>make defconfig ARCH=i386</userinput></screen>
-
- <para os="d">We will need to edit the configuration file, to make sure everything gets
+ <para os="h">We will need to edit the configuration file, to make sure everything gets
compiled and put into its proper location:</para>
-<screen os="e"><userinput>cp .config{,.orig}
-sed -e "/# TARGET_${CLFS_ARCH} is not set/TARGET_${CLFS_ARCH}=y/" \
- -e "/^TARGET_ARCH=\".*\"/TARGET_ARCH=\"$(CLFS__ARCH)\"/" \
- -e "/^CROSS_COMPILER_PREFIX/s:=.*:=\"${CLFS_TARGET}-\":" \
+<screen os="i"><userinput>cp .config{,.orig}
+sed -e "/^CROSS_COMPILER_PREFIX/s:=.*:=\"${CLFS_TARGET}-\":" \
-e "/^KERNEL_HEADERS/s:=.*:=\"${CLFS}/usr/include\":" \
-e "/^SHARED_LIB_LOADER_PREFIX/s:=.*:=\"/lib\":" \
-e "/^DEVEL_PREFIX/s:=.*:=\"/usr\":" \
-e "/^RUNTIME_PREFIX/s:=.*:=\"/\":" \
.config.orig > .config</userinput></screen>
- <para os="h">We have made some changes to our config, let's make sure
+ <para os="j">We will need to make sure that some settings in uClibc are set so we
+ can utilize all the features of BusyBox:</para>
+
+<screen os="k"><userinput>UCLIBC_OPTIONS="DO_C99_MATH UCLIBC_HAS_RPC UCLIBC_HAS_CTYPE_CHECKED
+ UCLIBC_HAS_WCHAR UCLIBC_HAS_HEXADECIMAL_FLOATS LDSO_PRELOAD_FILE_SUPPORT
+ UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE UCLIBC_HAS_PRINTF_M_SPEC UCLIBC_HAS_IPV6
+ UCLIBC_HAS_GLIBC_CUSTOM_PRINTF UCLIBC_USE_NETLINK UCLIBC_HAS_FTW"
+for config in $UCLIBC_OPTIONS; do
+ cp .config{,.orig}
+ sed -e "s:# ${config} is not set:${config}=y:" .config.orig > .config
+done
+UCLIBC_OPTIONS="UCLIBC_HAS_CTYPE_UNSAFE"
+for config in $UCLIBC_OPTIONS; do
+ cp .config{,.orig}
+ sed -e "s:${config}=y:# ${config} is not set:" .config.orig > .config
+done
+echo "UCLIBC_HAS_FULL_RPC=y" >> .config
+echo "UCLIBC_HAS_REENTRANT_RPC=y" >> .config</userinput></screen>
+
+ <para os="l">We have made some changes to our config, let's make sure
that we didn't miss and dependencies:</para>
-<screen os="i"><userinput>make oldconfig</userinput></screen>
+<screen os="m"><userinput>make oldconfig</userinput></screen>
- <para os="j">Compile the package:</para>
+ <para os="n">Compile the package:</para>
-<screen os="k"><userinput>make CC="${CLFS_TARGET}-gcc ${BUILD}"</userinput></screen>
+<screen os="o"><userinput>make CC="${CLFS_TARGET}-gcc ${BUILD}"</userinput></screen>
- <para os="l">Install the package:</para>
+ <para os="p">Install the package:</para>
-<screen os="m"><userinput>make PREFIX=${CLFS} install</userinput></screen>
+<screen os="q"><userinput>make PREFIX=${CLFS} install</userinput></screen>
</sect2>
More information about the Clfs-commits
mailing list