[99fc891] | 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 | |
---|
[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 |
---|
[c14754c] | 31 | sed -e "s:default CONFIG_MIPS_ISA_1:default CONFIG_MIPS_ISA_${CLFS_MIPS_LEVEL}:" \ |
---|
| 32 | extra/Configs/Config.mips.orig > extra/Configs/Config.mips</userinput></screen> |
---|
[99fc891] | 33 | |
---|
[33bc2cb] | 34 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 35 | href="../x86/uclibc.xml" |
---|
| 36 | xpointer="xpointer(//*[@os='c'])"/> |
---|
[99fc891] | 37 | |
---|
[33bc2cb] | 38 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 39 | href="../x86/uclibc.xml" |
---|
| 40 | xpointer="xpointer(//*[@os='d'])"/> |
---|
[99fc891] | 41 | |
---|
[33bc2cb] | 42 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 43 | href="../x86/uclibc.xml" |
---|
| 44 | xpointer="xpointer(//*[@os='e'])"/> |
---|
[99fc891] | 45 | |
---|
[33bc2cb] | 46 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 47 | href="../x86/uclibc.xml" |
---|
| 48 | xpointer="xpointer(//*[@os='f'])"/> |
---|
[99fc891] | 49 | |
---|
[4884635] | 50 | <screen os="g"><userinput>make defconfig ARCH=mips</userinput></screen> |
---|
[99fc891] | 51 | |
---|
[33bc2cb] | 52 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 53 | href="../x86/uclibc.xml" |
---|
| 54 | xpointer="xpointer(//*[@os='h'])"/> |
---|
[99fc891] | 55 | |
---|
[33bc2cb] | 56 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 57 | href="../x86/uclibc.xml" |
---|
| 58 | xpointer="xpointer(//*[@os='i'])"/> |
---|
[99fc891] | 59 | |
---|
[33bc2cb] | 60 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 61 | href="../x86/uclibc.xml" |
---|
| 62 | xpointer="xpointer(//*[@os='j'])"/> |
---|
[99fc891] | 63 | |
---|
[33bc2cb] | 64 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 65 | href="../x86/uclibc.xml" |
---|
[0bd108d] | 66 | xpointer="xpointer(//*[@os='k'])"/> |
---|
[99fc891] | 67 | |
---|
[97c9564] | 68 | <para os="m1">If your MIPS system is Big Endian, you will |
---|
| 69 | need at add the following lines to your configuration:</para> |
---|
| 70 | |
---|
[be76242] | 71 | <screen os="m2"><userinput>echo "ARCH_ANY_ENDIAN=y" >> .config |
---|
| 72 | echo "ARCH_BIG_ENDIAN=y" >> .config |
---|
| 73 | echo "ARCH_WANTS_BIG_ENDIAN=y" >> .config</userinput></screen> |
---|
[97c9564] | 74 | |
---|
| 75 | <para os="m3">If your MIPS system is Little Endian, you will |
---|
| 76 | need at add the following lines to your configuration:</para> |
---|
| 77 | |
---|
[be76242] | 78 | <screen os="m4"><userinput>echo "ARCH_ANY_ENDIAN=y" >> .config |
---|
| 79 | echo "ARCH_LITTLE_ENDIAN=y" >> .config |
---|
| 80 | echo "ARCH_WANTS_LITTLE_ENDIAN=y" >> .config</userinput></screen> |
---|
[97c9564] | 81 | |
---|
[33bc2cb] | 82 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 83 | href="../x86/uclibc.xml" |
---|
[0bd108d] | 84 | xpointer="xpointer(//*[@os='l'])"/> |
---|
| 85 | |
---|
[f23b5ee] | 86 | <screen os="m"><userinput>make TARGET_ARCH=mips oldconfig</userinput></screen> |
---|
[99fc891] | 87 | |
---|
[33bc2cb] | 88 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 89 | href="../x86/uclibc.xml" |
---|
| 90 | xpointer="xpointer(//*[@os='n'])"/> |
---|
[99fc891] | 91 | |
---|
[8520e58] | 92 | <screen os="o"><userinput>make CC="${CC} ${BUILD}" TARGET_ARCH=mips</userinput></screen> |
---|
[99fc891] | 93 | |
---|
[0bd108d] | 94 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 95 | href="../x86/uclibc.xml" |
---|
| 96 | xpointer="xpointer(//*[@os='p'])"/> |
---|
| 97 | |
---|
| 98 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 99 | href="../x86/uclibc.xml" |
---|
| 100 | xpointer="xpointer(//*[@os='q'])"/> |
---|
| 101 | |
---|
[99fc891] | 102 | </sect2> |
---|
| 103 | |
---|
[33bc2cb] | 104 | <sect2 role="content" id="contents-uclibc"> |
---|
| 105 | <title/> |
---|
| 106 | |
---|
| 107 | <para>Details on this package are located in <xref |
---|
| 108 | linkend="contents-uclibc" role="."/></para> |
---|
[99fc891] | 109 | |
---|
| 110 | </sect2> |
---|
[33bc2cb] | 111 | |
---|
[99fc891] | 112 | </sect1> |
---|
[33bc2cb] | 113 | |
---|