source: BOOK/cross-tools/common/file.xml@ 2cc1e81

systemd
Last change on this file since 2cc1e81 was ad1b07d, checked in by Chris Staub <chris@…>, 9 years ago

Removed extra spaces

  • Property mode set to 100644
File size: 2.3 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-file" role="wrap">
9 <?dbhtml filename="file.html"?>
10
11 <title>File-&file-version;</title>
12
13 <indexterm zone="ch-cross-tools-file">
14 <primary sortas="a-File">File</primary>
15 <secondary>cross tools</secondary>
16 </indexterm>
17
18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
19 href="../../final-system/common/file.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
21
22 <sect2 role="installation">
23 <title>Installation of File</title>
24
25 <para>One method that <command>file</command> uses for identifying a given
26 file is to run <quote>magic tests</quote>, where it compares the file's
27 contents to data in <quote>magic files</quote>, which contain information
28 about a number of standard file formats. When File is compiled, it will run
29 <command>file -C</command> to combine the information from the
30 magic files in its source tree into a single <filename>magic.mgc</filename>
31 file, which it will use after it is installed. When we build File in
32 <xref linkend="chapter-temp-system"/>, it will be cross-compiled, so it
33 will not be able to run the <command>file</command> program that it just
34 built, which means that we need one that will run on the host system.</para>
35
36 <para>Prepare File for compilation:</para>
37
38<screen><userinput>./configure \
39 --prefix=/cross-tools</userinput></screen>
40
41 <variablelist>
42 <title>The meaning of the configure options:</title>
43
44 <varlistentry>
45 <term><parameter>--prefix=/cross-tools</parameter></term>
46 <listitem>
47 <para>This tells the configure script to prepare to install the
48 package in the <filename class="directory">/cross-tools</filename>
49 directory.</para>
50 </listitem>
51 </varlistentry>
52
53 </variablelist>
54
55 <para>Compile the package:</para>
56
57<screen><userinput>make</userinput></screen>
58
59 <para>Install the package:</para>
60
61<screen><userinput>make install</userinput></screen>
62
63 </sect2>
64
65 <sect2 role="content">
66 <title/>
67
68 <para>Details on this package are located in <xref
69 linkend="contents-file" role="."/></para>
70
71 </sect2>
72
73</sect1>
Note: See TracBrowser for help on using the repository browser.