[99fc891] | 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" [
|
---|
[99fc891] | 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 |
|
---|
[33bc2cb] | 18 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 19 | href="../x86/uclibc.xml"
|
---|
| 20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
[99fc891] | 21 |
|
---|
| 22 | <sect2 role="installation">
|
---|
| 23 | <title>Installation of uClibc</title>
|
---|
| 24 |
|
---|
[680e44d] | 25 | <para os="a">Since we are cross-compiling, we need to make sure when we
|
---|
| 26 | configuration for our architecture we get the correct information. The
|
---|
| 27 | following sed makes sure we are using the proper settings for our
|
---|
| 28 | architecture:</para>
|
---|
[99fc891] | 29 |
|
---|
[4884635] | 30 | <screen os="b"><userinput>cp extra/Configs/Config.mips extra/Configs/Config.mips.orig
|
---|
[3ca2208] | 31 | sed -e \
|
---|
| 32 | "s:default CONFIG_MIPS_ISA_1:default CONFIG_MIPS_ISA_${CLFS_MIPS_LEVEL}:" \
|
---|
| 33 | extra/Configs/Config.mips.orig > extra/Configs/Config.mips</userinput></screen>
|
---|
[99fc891] | 34 |
|
---|
[33bc2cb] | 35 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 36 | href="../x86/uclibc.xml"
|
---|
| 37 | xpointer="xpointer(//*[@os='e'])"/>
|
---|
[99fc891] | 38 |
|
---|
[33bc2cb] | 39 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 40 | href="../x86/uclibc.xml"
|
---|
| 41 | xpointer="xpointer(//*[@os='f'])"/>
|
---|
[99fc891] | 42 |
|
---|
[4884635] | 43 | <screen os="g"><userinput>make defconfig ARCH=mips</userinput></screen>
|
---|
[99fc891] | 44 |
|
---|
[33bc2cb] | 45 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 46 | href="../x86/uclibc.xml"
|
---|
| 47 | xpointer="xpointer(//*[@os='h'])"/>
|
---|
[99fc891] | 48 |
|
---|
[33bc2cb] | 49 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 50 | href="../x86/uclibc.xml"
|
---|
| 51 | xpointer="xpointer(//*[@os='i'])"/>
|
---|
[99fc891] | 52 |
|
---|
[33bc2cb] | 53 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 54 | href="../x86/uclibc.xml"
|
---|
| 55 | xpointer="xpointer(//*[@os='j'])"/>
|
---|
[99fc891] | 56 |
|
---|
[33bc2cb] | 57 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 58 | href="../x86/uclibc.xml"
|
---|
[0bd108d] | 59 | xpointer="xpointer(//*[@os='k'])"/>
|
---|
[99fc891] | 60 |
|
---|
[97c9564] | 61 | <para os="m1">If your MIPS system is Big Endian, you will
|
---|
| 62 | need at add the following lines to your configuration:</para>
|
---|
| 63 |
|
---|
[be76242] | 64 | <screen os="m2"><userinput>echo "ARCH_ANY_ENDIAN=y" >> .config
|
---|
| 65 | echo "ARCH_BIG_ENDIAN=y" >> .config
|
---|
| 66 | echo "ARCH_WANTS_BIG_ENDIAN=y" >> .config</userinput></screen>
|
---|
[97c9564] | 67 |
|
---|
| 68 | <para os="m3">If your MIPS system is Little Endian, you will
|
---|
| 69 | need at add the following lines to your configuration:</para>
|
---|
| 70 |
|
---|
[be76242] | 71 | <screen os="m4"><userinput>echo "ARCH_ANY_ENDIAN=y" >> .config
|
---|
| 72 | echo "ARCH_LITTLE_ENDIAN=y" >> .config
|
---|
| 73 | echo "ARCH_WANTS_LITTLE_ENDIAN=y" >> .config</userinput></screen>
|
---|
[97c9564] | 74 |
|
---|
[33bc2cb] | 75 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 76 | href="../x86/uclibc.xml"
|
---|
[0bd108d] | 77 | xpointer="xpointer(//*[@os='l'])"/>
|
---|
| 78 |
|
---|
[c06227f] | 79 | <screen os="m"><userinput>make oldconfig</userinput></screen>
|
---|
[99fc891] | 80 |
|
---|
[33bc2cb] | 81 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 82 | href="../x86/uclibc.xml"
|
---|
| 83 | xpointer="xpointer(//*[@os='n'])"/>
|
---|
[99fc891] | 84 |
|
---|
[c06227f] | 85 | <screen os="o"><userinput>make CC="${CC} ${BUILD}"</userinput></screen>
|
---|
[99fc891] | 86 |
|
---|
[0bd108d] | 87 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 88 | href="../x86/uclibc.xml"
|
---|
| 89 | xpointer="xpointer(//*[@os='p'])"/>
|
---|
| 90 |
|
---|
| 91 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 92 | href="../x86/uclibc.xml"
|
---|
| 93 | xpointer="xpointer(//*[@os='q'])"/>
|
---|
| 94 |
|
---|
[99fc891] | 95 | </sect2>
|
---|
| 96 |
|
---|
[33bc2cb] | 97 | <sect2 role="content" id="contents-uclibc">
|
---|
| 98 | <title/>
|
---|
| 99 |
|
---|
| 100 | <para>Details on this package are located in <xref
|
---|
| 101 | linkend="contents-uclibc" role="."/></para>
|
---|
[99fc891] | 102 |
|
---|
| 103 | </sect2>
|
---|
[33bc2cb] | 104 |
|
---|
[99fc891] | 105 | </sect1>
|
---|
[33bc2cb] | 106 |
|
---|