source: clfs-embedded/BOOK/cross-tools/mips/uclibc.xml@ 2a5f9db

Last change on this file since 2a5f9db was 8c34ffe, checked in by Andrew Bradford <bradfa@…>, 14 years ago

MIPS uClibc config accounts for ABI and MIPS level

Updated uClibc instructions to account for different choices of ABI
selection and MIPS level selection.
Using long if/then/else/if/then. There might be a shorter way
of accomplishing this but it's clear what's going on.

  • Property mode set to 100644
File size: 2.8 KB
RevLine 
[1e4d687]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<!-- MIPS uClibc -->
9
10<sect1 id="ch-cross-tools-uclibc" role="wrap">
11 <?dbhtml filename="uclibc.html"?>
12
13 <title>uClibc-&uclibc-version;</title>
14
15 <indexterm zone="ch-cross-tools-uclibc">
16 <primary sortas="a-uClibc">uClibc</primary>
17 <secondary>cross tools</secondary>
18 </indexterm>
19
20 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
21 href="../common/uclibc.xml"
22 xpointer="xpointer(//*[@role='package'])"/>
23
24 <sect2 role="installation">
25 <title>Installation of uClibc</title>
26
27 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
28 href="../common/uclibc.xml"
29 xpointer="xpointer(//*[@os='a'])"/>
30
31 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
32 href="../common/uclibc.xml"
33 xpointer="xpointer(//*[@os='b'])"/>
34
35 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
36 href="../common/uclibc.xml"
37 xpointer="xpointer(//*[@os='c'])"/>
38
[8c34ffe]39 <para os="d">For the MIPS architecture, there are many different combinations
40 of configurations that can be used when building uClibc based on the choices
41 made previously for: endianess, ABI, and MIPS level. To ensure that the
42 proper configuration is used based on those choices, first copy the configuration
43 matching the endianess chosen, then update the ABI and MIPS level:</para>
44
45<screen os="e"><userinput>cp -v clfs/config.${CLFS_ARCH}.${CLFS_ENDIAN} .config
46if [ "${CLFS_ABI}" == "n32" ]; \
47then sed -i s/CONFIG_MIPS_O32_ABI/CONFIG_MIPS_N32_ABI/g .config; \
48elif [ "${CLFS_ABI}" == "64" ]; \
49then sed -i s/CONFIG_MIPS_O32_ABI/CONFIG_MIPS_N64_ABI/g .config; fi; \
50if [ "${CLFS_MIPS_LEVEL}" == "3" ]; \
51then sed -i s/CONFIG_MIPS_ISA_1/CONFIG_MIPS_ISA_3/g .config; fi</userinput></screen>
[1e4d687]52
53 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
54 href="../common/uclibc.xml"
[dfff918]55 xpointer="xpointer(//*[@os='f'])"/>
[1e4d687]56
57 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
58 href="../common/uclibc.xml"
59 xpointer="xpointer(//*[@os='g'])"/>
60
61 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
62 href="../common/uclibc.xml"
63 xpointer="xpointer(//*[@os='h'])"/>
64
65 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
66 href="../common/uclibc.xml"
67 xpointer="xpointer(//*[@os='i'])"/>
68
69 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
70 href="../common/uclibc.xml"
71 xpointer="xpointer(//*[@os='l'])"/>
72
73 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
74 href="../common/uclibc.xml"
75 xpointer="xpointer(//*[@os='j'])"/>
76
77 </sect2>
78
79 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
80 href="../common/uclibc.xml"
81 xpointer="xpointer(//*[@role='content'])"/>
82
83</sect1>
Note: See TracBrowser for help on using the repository browser.