source: clfs-embedded/BOOK/cross-tools/x86/variables.xml@ 14af48c

Last change on this file since 14af48c was bd48e48, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Updated CLFS-Embedded book sources to use DocBook-XML DTD 4.5.

  • Property mode set to 100644
File size: 2.5 KB
RevLine 
[a9e389d]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" [
[a9e389d]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-cross-tools-variables">
9 <?dbhtml filename="variables.html"?>
10
11 <title>Build Variables</title>
12
13 <bridgehead renderas="sect4">Setting Host and Target</bridgehead>
14
15 <para os="a">During the building of the cross-compile tools you will need to
16 set a few variables that will be dependent on your particular needs.
17 The first variable will be the triplet of the <envar>HOST</envar> machine.
18 You will need to set the <envar>CHOST</envar> triplet to match your
19 particular needs. To set this information you can issue the following
20 command:</para>
21
22<screen os="b"><userinput>export CLFS_HOST="$(echo $MACHTYPE | sed "s/$(echo $MACHTYPE | cut -d- -f2)/cross/")"</userinput></screen>
23
24 <para os="c">Now you will need to set the target triplet for the target
25 architecture. You can do this by running the same command as above, just
26 running it on the target machine. If you can't run the command on the
27 target machine, you can use the table at the bottom of this page. Set
28 the command using the method listed below:</para>
29
[e57d05e]30<screen os="d"><userinput>export CLFS_TARGET="{target triplet}"</userinput></screen>
[a9e389d]31
32 <para os="e">Now we will add these to <filename>~/.bashrc</filename>, just in
33 case you have to exit and restart building later:</para>
34
35<screen os="f"><userinput>echo export CLFS_HOST=\""${CLFS_HOST}\"" &gt;&gt; ~/.bashrc
36echo export CLFS_TARGET=\""${CLFS_TARGET}\"" &gt;&gt; ~/.bashrc</userinput></screen>
37
38 <table os="g">
39 <title>Processor Type and Target Triplets</title>
40 <tgroup cols="2" align="center">
41 <colspec colname="Processor"/>
42 <colspec colname="Triplet"/>
43 <thead>
44 <row>
45 <entry>Processor</entry>
46 <entry>Target Triplet</entry>
47 </row>
48 </thead>
49 <tbody>
50 <row>
51 <entry>486 Compatibles</entry>
52 <entry>i486-pc-linux-uclibc</entry>
53 </row>
54 <row>
55 <entry>Pentium, K6, 586 Compatibles</entry>
56 <entry>i586-pc-linux-uclibc</entry>
57 </row>
58 <row>
59 <entry>Pentium II, Pentium III, Pentium 4</entry>
60 <entry>i686-pc-linux-uclibc</entry>
61 </row>
62 <row>
63 <entry>Athlon, Duron</entry>
64 <entry>i686-pc-linux-uclibc</entry>
65 </row>
66 </tbody>
67 </tgroup>
68 </table>
69
70</sect1>
Note: See TracBrowser for help on using the repository browser.