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 | <sect1 id="ch-cross-tools-uclibc" role="wrap">
|
---|
9 | <?dbhtml filename="uclibc.html"?>
|
---|
10 |
|
---|
11 | <title>uClibc-&uclibc-version;</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-cross-tools-uclibc">
|
---|
14 | <primary sortas="a-uClibc">uClibc</primary>
|
---|
15 | <secondary>cross tools</secondary>
|
---|
16 | </indexterm>
|
---|
17 |
|
---|
18 | <sect2 role="package">
|
---|
19 | <title/>
|
---|
20 |
|
---|
21 | <para>The uClibc package contains the main C library. This library provides
|
---|
22 | the basic routines for allocating memory, searching directories, opening and
|
---|
23 | closing files, reading and writing files, string handling, pattern matching,
|
---|
24 | arithmetic, and so on.</para>
|
---|
25 |
|
---|
26 | </sect2>
|
---|
27 |
|
---|
28 | <sect2 role="installation">
|
---|
29 | <title>Installation of uClibc</title>
|
---|
30 |
|
---|
31 | <note os="a">
|
---|
32 | <para>Below we are just telling uClibc to use its default configuration.
|
---|
33 | For those for more adventureous, you can use make menuconfig, and
|
---|
34 | do a more custom build for your uClibc installation.</para>
|
---|
35 | </note>
|
---|
36 |
|
---|
37 | <para os="b">The following patch contains the default configurations for
|
---|
38 | the architectures covered in this book:</para>
|
---|
39 |
|
---|
40 | <screen os="c"><userinput>patch -Np1 -i ../&uclibc-configs-patch;</userinput></screen>
|
---|
41 |
|
---|
42 | <para os="d">Now we will copy the configuration file best matching this
|
---|
43 | build and use that as the base:</para>
|
---|
44 |
|
---|
45 | <screen os="e"><userinput>cp -v clfs/config.${CLFS_ARCH}.${CLFS_ENDIAN} .config</userinput></screen>
|
---|
46 |
|
---|
47 | <para os="f">The config is a basic working system, but there are some
|
---|
48 | options that are architecture specifc that need to be set. The following
|
---|
49 | command will only bring up items that need a value that we did not
|
---|
50 | specify in our Generic config file:</para>
|
---|
51 |
|
---|
52 | <screen os="g"><userinput>make oldconfig</userinput></screen>
|
---|
53 |
|
---|
54 | <para os="h">Compile the package:</para>
|
---|
55 |
|
---|
56 | <screen os="i"><userinput>make</userinput></screen>
|
---|
57 |
|
---|
58 | <para os="l">Install the package:</para>
|
---|
59 |
|
---|
60 | <screen os="j"><userinput>make PREFIX=${CLFS} install</userinput></screen>
|
---|
61 |
|
---|
62 | </sect2>
|
---|
63 |
|
---|
64 | <sect2 id="contents-uclibc" role="content">
|
---|
65 | <title>Contents of uClibc</title>
|
---|
66 |
|
---|
67 | <segmentedlist>
|
---|
68 | <segtitle>Installed uClibc</segtitle>
|
---|
69 |
|
---|
70 | <seglistitem>
|
---|
71 | <seg>To Be Written</seg>
|
---|
72 | </seglistitem>
|
---|
73 | </segmentedlist>
|
---|
74 | <!--
|
---|
75 | <variablelist>
|
---|
76 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
77 | <?dbfo list-presentation="list"?>
|
---|
78 | <?dbhtml list-presentation="table"?>
|
---|
79 |
|
---|
80 | <varlistentry id="uclibc">
|
---|
81 | <term><filename
|
---|
82 | class="headerfile">/usr/include/{asm,linux}/*.h</filename></term>
|
---|
83 | <listitem>
|
---|
84 | <para>The Linux API headers</para>
|
---|
85 | <indexterm zone="ch-system-linux-headers linux-headers">
|
---|
86 | <primary
|
---|
87 | sortas="e-/usr/include/{asm,linux}/*.h">/usr/include/{asm,linux}/*.h</primary>
|
---|
88 | </indexterm>
|
---|
89 | </listitem>
|
---|
90 | </varlistentry>
|
---|
91 | </variablelist>
|
---|
92 | -->
|
---|
93 |
|
---|
94 | </sect2>
|
---|
95 | </sect1>
|
---|