[8f82e03] | 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 |
|
---|
[2a6ed66] | 8 | <sect1 id="ch-boot-bc">
|
---|
[8f82e03] | 9 | <?dbhtml filename="bc.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Bc-&bc-version;</title>
|
---|
| 12 |
|
---|
[2a6ed66] | 13 | <indexterm zone="ch-boot-bc">
|
---|
[8f82e03] | 14 | <primary sortas="a-Bc">Bc</primary>
|
---|
[2a6ed66] | 15 | <secondary>boot</secondary>
|
---|
[8f82e03] | 16 | </indexterm>
|
---|
| 17 |
|
---|
| 18 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 19 | href="../../final-system/common/bc.xml"
|
---|
| 20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
| 21 |
|
---|
| 22 | <sect2 role="installation">
|
---|
| 23 | <title>Installation of Bc</title>
|
---|
| 24 |
|
---|
[87d6725] | 25 | <para>We will install a <command>bc</command> program that can run
|
---|
| 26 | on the host system, as this is needed to compile the kernel.</para>
|
---|
| 27 |
|
---|
[8f82e03] | 28 | <para>Prepare Bc for compilation:</para>
|
---|
| 29 |
|
---|
[7cd7f99] | 30 | <screen><userinput>CC=gcc \
|
---|
| 31 | ./configure \
|
---|
| 32 | --prefix=/cross-tools</userinput></screen>
|
---|
[8f82e03] | 33 |
|
---|
| 34 | <variablelist>
|
---|
[86735361] | 35 | <title>The meaning of the configure option:</title>
|
---|
[8f82e03] | 36 |
|
---|
| 37 | <varlistentry>
|
---|
[2a6ed66] | 38 | <term><parameter>CC=gcc</parameter></term>
|
---|
[8f82e03] | 39 | <listitem>
|
---|
[2a6ed66] | 40 | <para>This ensures that we use the host's compiler to build Bc,
|
---|
| 41 | since we need it to run on the host system.</para>
|
---|
[8f82e03] | 42 | </listitem>
|
---|
| 43 | </varlistentry>
|
---|
| 44 |
|
---|
| 45 | </variablelist>
|
---|
| 46 |
|
---|
| 47 | <para>Compile the package:</para>
|
---|
| 48 |
|
---|
| 49 | <screen><userinput>make</userinput></screen>
|
---|
| 50 |
|
---|
| 51 | <para>Install the package:</para>
|
---|
| 52 |
|
---|
| 53 | <screen><userinput>make install</userinput></screen>
|
---|
| 54 |
|
---|
| 55 | </sect2>
|
---|
| 56 |
|
---|
| 57 | <sect2 role="content">
|
---|
| 58 | <title/>
|
---|
| 59 |
|
---|
| 60 | <para>Details on this package are located in <xref
|
---|
| 61 | linkend="contents-bc" role="."/></para>
|
---|
| 62 |
|
---|
| 63 | </sect2>
|
---|
| 64 |
|
---|
| 65 | </sect1>
|
---|