[a9e389d] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[bd48e48] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[a9e389d] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[f9de3a9] | 8 | <!-- Common uClibc -->
|
---|
| 9 |
|
---|
[a9e389d] | 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 |
|
---|
[0dad5b9] | 33 | <note os="a">
|
---|
[e57d05e] | 34 | <para>Below we are just telling uClibc to use its default configuration.
|
---|
[32994be] | 35 | For those for more adventurous, you can use make menuconfig, and
|
---|
[e57d05e] | 36 | do a more custom build for your uClibc installation.</para>
|
---|
[e2d2a2d] | 37 | </note>
|
---|
[a9e389d] | 38 |
|
---|
[a9bbc46] | 39 | <para os="b">The following patch contains the default configurations for
|
---|
| 40 | the architectures covered in this book:</para>
|
---|
[a9e389d] | 41 |
|
---|
[a9bbc46] | 42 | <screen os="c"><userinput>patch -Np1 -i ../&uclibc-configs-patch;</userinput></screen>
|
---|
[e2d2a2d] | 43 |
|
---|
[a9bbc46] | 44 | <para os="d">Now we will copy the configuration file best matching this
|
---|
| 45 | build and use that as the base:</para>
|
---|
[0dad5b9] | 46 |
|
---|
[7faf029] | 47 | <screen os="e"><userinput>cp -v clfs/config.${CLFS_ARCH}.${CLFS_ENDIAN} .config</userinput></screen>
|
---|
[0dad5b9] | 48 |
|
---|
[b327081] | 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:</para>
|
---|
[e666df1] | 53 |
|
---|
[0dad5b9] | 54 | <screen os="g"><userinput>make oldconfig</userinput></screen>
|
---|
[e666df1] | 55 |
|
---|
[0dad5b9] | 56 | <para os="h">Compile the package:</para>
|
---|
[f23b5ee] | 57 |
|
---|
[a9bbc46] | 58 | <screen os="i"><userinput>make</userinput></screen>
|
---|
[f23b5ee] | 59 |
|
---|
[0dad5b9] | 60 | <para os="l">Install the package:</para>
|
---|
[a9e389d] | 61 |
|
---|
[0dad5b9] | 62 | <screen os="j"><userinput>make PREFIX=${CLFS} install</userinput></screen>
|
---|
[a9e389d] | 63 |
|
---|
| 64 | </sect2>
|
---|
| 65 |
|
---|
| 66 | <sect2 id="contents-uclibc" role="content">
|
---|
| 67 | <title>Contents of uClibc</title>
|
---|
| 68 |
|
---|
| 69 | <segmentedlist>
|
---|
| 70 | <segtitle>Installed uClibc</segtitle>
|
---|
| 71 |
|
---|
| 72 | <seglistitem>
|
---|
| 73 | <seg>To Be Written</seg>
|
---|
| 74 | </seglistitem>
|
---|
| 75 | </segmentedlist>
|
---|
[6561a0f] | 76 | <!--
|
---|
[a9e389d] | 77 | <variablelist>
|
---|
| 78 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 79 | <?dbfo list-presentation="list"?>
|
---|
| 80 | <?dbhtml list-presentation="table"?>
|
---|
| 81 |
|
---|
[6561a0f] | 82 | <varlistentry id="uclibc">
|
---|
[a9e389d] | 83 | <term><filename
|
---|
| 84 | class="headerfile">/usr/include/{asm,linux}/*.h</filename></term>
|
---|
| 85 | <listitem>
|
---|
| 86 | <para>The Linux API headers</para>
|
---|
| 87 | <indexterm zone="ch-system-linux-headers linux-headers">
|
---|
| 88 | <primary
|
---|
| 89 | sortas="e-/usr/include/{asm,linux}/*.h">/usr/include/{asm,linux}/*.h</primary>
|
---|
| 90 | </indexterm>
|
---|
| 91 | </listitem>
|
---|
| 92 | </varlistentry>
|
---|
| 93 | </variablelist>
|
---|
[6561a0f] | 94 | -->
|
---|
[a9e389d] | 95 |
|
---|
| 96 | </sect2>
|
---|
| 97 | </sect1>
|
---|