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