source: clfs-sysroot/BOOK/cross-tools/arm/variables.xml@ 5d6eb6e

Last change on this file since 5d6eb6e was 518ba8b, checked in by Joe Ciccone <jciccone@…>, 18 years ago

Replaced backtics with $()

  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[02095ae]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-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
[518ba8b]22<screen os="b"><userinput>export LFS_HOST="$(echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g')"</userinput></screen>
[02095ae]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
[0c53a27]30<screen os="d"><userinput>export LFS_TARGET="arm-unknown-linux-gnu"</userinput></screen>
[02095ae]31
32 <bridgehead renderas="sect4">Copy settings to Environment</bridgehead>
33
34 <para os="e">Now we will add these to <filename>~/.bashrc</filename>, just in
35 case you have to exit and restart building later:</para>
36
[586feb7]37<screen os="f"><userinput>echo export LFS_HOST=\""${CLFS_HOST}\"" &gt;&gt; ~/.bashrc
38echo export LFS_TARGET=\""${CLFS_TARGET}\"" &gt;&gt; ~/.bashrc</userinput></screen>
[02095ae]39
40</sect1>
Note: See TracBrowser for help on using the repository browser.