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

Last change on this file since a6966fa was 3ca2208, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Several fixes for PDF look.

  • Property mode set to 100644
File size: 2.6 KB
Line 
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-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 | \
23 sed "s/$(echo $MACHTYPE | cut -d- -f2)/cross/")"</userinput></screen>
24
25 <para os="c">Now you will need to set the target triplet for the target
26 architecture. You can do this by running the same command as above, just
27 running it on the target machine. If you can't run the command on the
28 target machine, you can use the table at the bottom of this page. Set
29 the command using the method listed below:</para>
30
31<screen os="d"><userinput>export CLFS_TARGET="{target triplet}"</userinput></screen>
32
33 <para os="e">Now we will add these to <filename>~/.bashrc</filename>, just in
34 case you have to exit and restart building later:</para>
35
36<screen os="f"><userinput>echo export CLFS_HOST=\""${CLFS_HOST}\"" &gt;&gt; ~/.bashrc
37echo export CLFS_TARGET=\""${CLFS_TARGET}\"" &gt;&gt; ~/.bashrc</userinput></screen>
38
39 <table os="g">
40 <title>Processor Type and Target Triplets</title>
41 <?dbfo table-width="4.5in" ?>
42
43 <tgroup cols="2">
44
45 <colspec colnum="1" colwidth="2.5in" colname="Processor"/>
46 <colspec colnum="2" colwidth="2in" colname="Triplet"/>
47
48 <thead>
49 <row>
50 <entry>Processor</entry>
51 <entry>Target Triplet</entry>
52 </row>
53 </thead>
54
55 <tbody>
56 <row>
57 <entry>486 Compatibles</entry>
58 <entry>i486-pc-linux-uclibc</entry>
59 </row>
60 <row>
61 <entry>Pentium, K6, 586 Compatibles</entry>
62 <entry>i586-pc-linux-uclibc</entry>
63 </row>
64 <row>
65 <entry>Pentium II, Pentium III, Pentium 4</entry>
66 <entry>i686-pc-linux-uclibc</entry>
67 </row>
68 <row>
69 <entry>Athlon, Duron</entry>
70 <entry>i686-pc-linux-uclibc</entry>
71 </row>
72 </tbody>
73
74 </tgroup>
75
76 </table>
77
78</sect1>
Note: See TracBrowser for help on using the repository browser.