[a9e389d] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" |
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/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 | <para os="a">Since we are cross-compiling, we need to make sure when we |
---|
| 32 | configuration for our architecture we get the correct information. The |
---|
| 33 | following sed makes sure we are using the proper settings for our |
---|
| 34 | architecture: (This is a place holder for the other architectures</para> |
---|
| 35 | |
---|
| 36 | <screen os="b"><userinput>cp extra/Configs/Config.in extra/Configs/Config.in.orig |
---|
| 37 | sed -e "s:default TARGET_i386:default TARGET_i386:" \ |
---|
| 38 | extra/Configs/Config.in.orig > extra/Configs/Config.in</userinput></screen> |
---|
| 39 | |
---|
| 40 | <para os="c">Create default configuration:</para> |
---|
| 41 | |
---|
| 42 | <screen os="d"><userinput>make defconfig</userinput></screen> |
---|
| 43 | |
---|
| 44 | <para os="e">We will need to edit the configuration file, to make sure everything gets |
---|
| 45 | compiled and put into it's proper locations:</para> |
---|
| 46 | |
---|
| 47 | <screen os="f"><userinput>cp .config .config.orig |
---|
| 48 | sed -e "/^CROSS_COMPILER_PREFIX/s:=.*:=\"${CLFS_TARGET}-\":" \ |
---|
| 49 | -e "/^KERNEL_SOURCE/s:=.*:=\"${CLFS}/usr\":" \ |
---|
| 50 | -e "/^SHARED_LIB_LOADER_PREFIX/s:=.*:=\"/lib\":" \ |
---|
| 51 | -e "/^DEVEL_PREFIX/s:=.*:=\"/usr\":" \ |
---|
| 52 | -e "/^RUNTIME_PREFIX/s:=.*:=\"/\":" \ |
---|
| 53 | .config.orig > .config</userinput></screen> |
---|
| 54 | |
---|
| 55 | <para os="g">Compile the package:</para> |
---|
| 56 | |
---|
| 57 | <screen os="h"><userinput>make TARGET_ARCH=i386</userinput></screen> |
---|
| 58 | |
---|
| 59 | <para os="i">We will remove the files that were copied over from our Linux Headers, these |
---|
| 60 | files were copied into the source directory of uClibc:</para> |
---|
| 61 | |
---|
| 62 | <screen os="j"><userinput>rm include/{asm,asm-generic,linux}</userinput></screen> |
---|
| 63 | |
---|
| 64 | <para os="k">Install the package:</para> |
---|
| 65 | |
---|
| 66 | <screen os="l"><userinput>make PREFIX=${CLFS} install</userinput></screen> |
---|
| 67 | |
---|
| 68 | </sect2> |
---|
| 69 | |
---|
| 70 | <sect2 id="contents-uclibc" role="content"> |
---|
| 71 | <title>Contents of uClibc</title> |
---|
| 72 | |
---|
| 73 | <segmentedlist> |
---|
| 74 | <segtitle>Installed uClibc</segtitle> |
---|
| 75 | |
---|
| 76 | <seglistitem> |
---|
| 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="uclibc"> |
---|
| 87 | <term><filename |
---|
| 88 | class="headerfile">/usr/include/{asm,linux}/*.h</filename></term> |
---|
| 89 | <listitem> |
---|
| 90 | <para>The Linux API headers</para> |
---|
| 91 | <indexterm zone="ch-system-linux-headers linux-headers"> |
---|
| 92 | <primary |
---|
| 93 | sortas="e-/usr/include/{asm,linux}/*.h">/usr/include/{asm,linux}/*.h</primary> |
---|
| 94 | </indexterm> |
---|
| 95 | </listitem> |
---|
| 96 | </varlistentry> |
---|
| 97 | --> |
---|
| 98 | </variablelist> |
---|
| 99 | |
---|
| 100 | </sect2> |
---|
| 101 | </sect1> |
---|