| 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
 | 
|---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
 | 
|---|
| 3 |   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
 | 
|---|
| 4 |   <!ENTITY % general-entities SYSTEM "../../general.ent">
 | 
|---|
| 5 |   %general-entities;
 | 
|---|
| 6 | ]>
 | 
|---|
| 7 | 
 | 
|---|
| 8 | <!-- Common uClibc -->
 | 
|---|
| 9 | 
 | 
|---|
| 10 | <sect1 id="ch-cross-tools-uclibc" role="wrap">
 | 
|---|
| 11 |   <?dbhtml filename="uclibc.html"?>
 | 
|---|
| 12 | 
 | 
|---|
| 13 |   <title>uClibc-&uclibc-version;</title>
 | 
|---|
| 14 | 
 | 
|---|
| 15 |   <indexterm zone="ch-cross-tools-uclibc">
 | 
|---|
| 16 |     <primary sortas="a-uClibc">uClibc</primary>
 | 
|---|
| 17 |     <secondary>cross tools</secondary>
 | 
|---|
| 18 |   </indexterm>
 | 
|---|
| 19 | 
 | 
|---|
| 20 |   <sect2 role="package">
 | 
|---|
| 21 |     <title/>
 | 
|---|
| 22 | 
 | 
|---|
| 23 |     <para>The uClibc package contains the main C library. This library provides
 | 
|---|
| 24 |     the basic routines for allocating memory, searching directories, opening and
 | 
|---|
| 25 |     closing files, reading and writing files, string handling, pattern matching,
 | 
|---|
| 26 |     arithmetic, and so on.</para>
 | 
|---|
| 27 | 
 | 
|---|
| 28 |   </sect2>
 | 
|---|
| 29 | 
 | 
|---|
| 30 |   <sect2 role="installation">
 | 
|---|
| 31 |     <title>Installation of uClibc</title>
 | 
|---|
| 32 | 
 | 
|---|
| 33 |     <note os="a">
 | 
|---|
| 34 |       <para>Below we are just telling uClibc to use its default configuration.
 | 
|---|
| 35 |       For those for more adventurous, you can use make menuconfig, and
 | 
|---|
| 36 |       do a more custom build for your uClibc installation.</para>
 | 
|---|
| 37 |     </note>
 | 
|---|
| 38 | 
 | 
|---|
| 39 |     <para os="b">The following patch contains the default configurations for
 | 
|---|
| 40 |     the architectures covered in this book:</para>
 | 
|---|
| 41 | 
 | 
|---|
| 42 | <screen os="c"><userinput>patch -Np1 -i ../&uclibc-configs-patch;</userinput></screen>
 | 
|---|
| 43 | 
 | 
|---|
| 44 |    <para os="d">Now we will copy the configuration file best matching this
 | 
|---|
| 45 |    build and use that as the base:</para>
 | 
|---|
| 46 | 
 | 
|---|
| 47 | <screen os="e"><userinput>cp -v clfs/config.${CLFS_ARCH}.${CLFS_ENDIAN} .config</userinput></screen>
 | 
|---|
| 48 | 
 | 
|---|
| 49 |     <para os="f">The config is a basic working system, but there are some
 | 
|---|
| 50 |     options that are architecture specifc that need to be set. The following
 | 
|---|
| 51 |     command will only bring up items that need a value that we did not
 | 
|---|
| 52 |     specify in our generic config file patch:</para>
 | 
|---|
| 53 | 
 | 
|---|
| 54 | <screen os="g"><userinput>make oldconfig</userinput></screen>
 | 
|---|
| 55 | 
 | 
|---|
| 56 |     <para os="h">Compile the package:</para>
 | 
|---|
| 57 | 
 | 
|---|
| 58 | <screen os="i"><userinput>make</userinput></screen>
 | 
|---|
| 59 | 
 | 
|---|
| 60 |     <para os="l">Install the package:</para>
 | 
|---|
| 61 | 
 | 
|---|
| 62 | <screen os="j"><userinput>make PREFIX=${CLFS} install</userinput></screen>
 | 
|---|
| 63 | 
 | 
|---|
| 64 |   </sect2>
 | 
|---|
| 65 | 
 | 
|---|
| 66 |   <sect2 id="contents-uclibc" role="content">
 | 
|---|
| 67 |     <title>Contents of uClibc</title>
 | 
|---|
| 68 | 
 | 
|---|
| 69 |     <segmentedlist>
 | 
|---|
| 70 |       <segtitle>Installed Programs</segtitle>
 | 
|---|
| 71 |       <segtitle>Installed Libraries</segtitle>
 | 
|---|
| 72 |       <segtitle>Installed Headers</segtitle>
 | 
|---|
| 73 |       <seglistitem>
 | 
|---|
| 74 |         <seg>ld-uClibc.so.0</seg>
 | 
|---|
| 75 |         <seg> libc.so.0, libcrypt.so.0, libdl.so.0, libm.so.0, libpthread.so.0,
 | 
|---|
| 76 |         librt.so.0</seg>
 | 
|---|
| 77 |         <seg>To be written...</seg>
 | 
|---|
| 78 |       </seglistitem>
 | 
|---|
| 79 |     </segmentedlist>
 | 
|---|
| 80 | 
 | 
|---|
| 81 |     <variablelist>
 | 
|---|
| 82 |       <bridgehead renderas="sect3">Short Descriptions</bridgehead>
 | 
|---|
| 83 |       <?dbfo list-presentation="list"?>
 | 
|---|
| 84 |       <?dbhtml list-presentation="table"?>
 | 
|---|
| 85 | 
 | 
|---|
| 86 |       <varlistentry id="ld-uClibc">
 | 
|---|
| 87 |         <term><command>ld-uClibc</command></term>
 | 
|---|
| 88 |         <listitem>
 | 
|---|
| 89 |           <para>The uClibc dynamic linker / loader</para>
 | 
|---|
| 90 |           <indexterm zone="ch-cross-tools-uclibc ld-uClibc">
 | 
|---|
| 91 |             <primary sortas="b-ld-uClibc">ld-uClibc</primary>
 | 
|---|
| 92 |           </indexterm>
 | 
|---|
| 93 |         </listitem>
 | 
|---|
| 94 |       </varlistentry>
 | 
|---|
| 95 | 
 | 
|---|
| 96 |       <varlistentry id="libc">
 | 
|---|
| 97 |         <term><filename class="libraryfile">libc</filename></term>
 | 
|---|
| 98 |         <listitem>
 | 
|---|
| 99 |           <para>The C library</para>
 | 
|---|
| 100 |           <indexterm zone="ch-cross-tools-uclibc libc">
 | 
|---|
| 101 |             <primary sortas="c-libc">libc</primary>
 | 
|---|
| 102 |           </indexterm>
 | 
|---|
| 103 |         </listitem>
 | 
|---|
| 104 |       </varlistentry>
 | 
|---|
| 105 | 
 | 
|---|
| 106 |       <varlistentry id="libcrypt">
 | 
|---|
| 107 |         <term><filename class="libraryfile">libcrypt</filename></term>
 | 
|---|
| 108 |         <listitem>
 | 
|---|
| 109 |           <para>The cryptographic library</para>
 | 
|---|
| 110 |           <indexterm zone="ch-cross-tools-uclibc libcrypt">
 | 
|---|
| 111 |             <primary sortas="c-libcrypt">libcrypt</primary>
 | 
|---|
| 112 |           </indexterm>
 | 
|---|
| 113 |         </listitem>
 | 
|---|
| 114 |       </varlistentry>
 | 
|---|
| 115 | 
 | 
|---|
| 116 |       <varlistentry id="libdl">
 | 
|---|
| 117 |         <term><filename class="libraryfile">libdl</filename></term>
 | 
|---|
| 118 |         <listitem>
 | 
|---|
| 119 |           <para>The uClibc dynamic linker / loader library</para>
 | 
|---|
| 120 |           <indexterm zone="ch-cross-tools-uclibc libdl">
 | 
|---|
| 121 |             <primary sortas="c-libdl">libdl</primary>
 | 
|---|
| 122 |           </indexterm>
 | 
|---|
| 123 |         </listitem>
 | 
|---|
| 124 |       </varlistentry>
 | 
|---|
| 125 | 
 | 
|---|
| 126 |       <varlistentry id="libm">
 | 
|---|
| 127 |         <term><filename class="libraryfile">libm</filename></term>
 | 
|---|
| 128 |         <listitem>
 | 
|---|
| 129 |           <para>The math library</para>
 | 
|---|
| 130 |           <indexterm zone="ch-cross-tools-uclibc libm">
 | 
|---|
| 131 |             <primary sortas="c-libm">libm</primary>
 | 
|---|
| 132 |           </indexterm>
 | 
|---|
| 133 |         </listitem>
 | 
|---|
| 134 |       </varlistentry>
 | 
|---|
| 135 | 
 | 
|---|
| 136 |       <varlistentry id="libpthread">
 | 
|---|
| 137 |         <term><filename class="libraryfile">libpthread</filename></term>
 | 
|---|
| 138 |         <listitem>
 | 
|---|
| 139 |           <para>The POSIX thread library</para>
 | 
|---|
| 140 |           <indexterm zone="ch-cross-tools-uclibc libpthread">
 | 
|---|
| 141 |             <primary sortas="c-libpthread">libpthread</primary>
 | 
|---|
| 142 |           </indexterm>
 | 
|---|
| 143 |         </listitem>
 | 
|---|
| 144 |       </varlistentry>
 | 
|---|
| 145 | 
 | 
|---|
| 146 |       <varlistentry id="librt">
 | 
|---|
| 147 |         <term><filename class="libraryfile">librt</filename></term>
 | 
|---|
| 148 |         <listitem>
 | 
|---|
| 149 |           <para>The clock and timer library</para>
 | 
|---|
| 150 |           <indexterm zone="ch-cross-tools-uclibc librt">
 | 
|---|
| 151 |             <primary sortas="c-librt">librt</primary>
 | 
|---|
| 152 |           </indexterm>
 | 
|---|
| 153 |         </listitem>
 | 
|---|
| 154 |       </varlistentry>
 | 
|---|
| 155 | 
 | 
|---|
| 156 |     </variablelist>
 | 
|---|
| 157 |   </sect2>
 | 
|---|
| 158 | </sect1>
 | 
|---|