2 % This is part of CLFSja package.
4 % This is a CTIE change file for the original XML source of the CLFSbook.
7 <?xml version="1.0" encoding="ISO-8859-1"?>
9 <?xml version="1.0" encoding="UTF-8"?>
13 <title>How to Build a CLFS System</title>
15 <title>CLFS をどうやって作るか</title>
19 <para>The CLFS system will be built by using a previously installed
20 Unix system or Linux distribution (such as Debian, Fedora, openSUSE,
21 or Ubuntu). This existing system (the host) will be used as a starting
22 point to provide necessary programs, including a compiler, linker, and shell,
23 to build the new system. Select the <quote>development</quote> option
24 during the distribution installation to be able to access these
28 CLFS システムは、既にインストールされている Unix システムや Linux ディストリビューション (Debian、Fedora、openSUSE、Ubuntu など) を利用して構築していきます。
29 この既存のシステム(ホスト)は、CLFS 構築のためにさまざまなプログラム類を利用する基盤となります。
30 プログラム類とはコンパイラー、リンカー、シェルなどです。
31 したがってそのディストリビューションのインストール時には "開発 (development)" オプションを選択し、それらのプログラム類が利用できるようにしておく必要があります。
36 <para>As an alternative to installing an entire separate distribution onto
37 your machine, you may wish to use a livecd. Most distributions provide
38 a livecd, which provides an environment to which you can add the required
39 tools onto, allowing you to successfully follow the instructions in this
40 book. Remember that if you reboot the livecd you will need to reconfigure
41 the host environment before continuing with your build.</para>
44 コンピューター内にインストールされているディストリビューションを利用するのではなく LiveCD を利用することもできます。
45 ディストリビューションにはたいてい LiveCD があります。
46 これを利用して必要なツールを導入した上で、本書に示す手順を進めていくことができます。
47 ただし LiveCD を再起動した場合には、ビルド作業を再開する前に必ずホスト環境を再整備しなければならない点には注意してください。
52 <para><xref linkend="chapter-partitioning"/> of this book describes how
53 to create a new Linux native partition and file system, the place
54 where the new CLFS system will be compiled and installed. <xref
55 linkend="chapter-getting-materials"/> explains which packages and
56 patches need to be downloaded to build a CLFS system and how to store
57 them on the new file system. <xref linkend="chapter-final-preps"/>
58 discusses the setup for an appropriate working environment. Please read
59 <xref linkend="chapter-final-preps"/> carefully as it explains several
60 important issues the developer should be aware of before beginning to
61 work through <xref linkend="chapter-cross-tools"/> and
65 <xref linkend="chapter-partitioning"/>では、新しく構築する Linux のためのパーティションとファイルシステムの生成方法について説明します。
66 そのパーティション上にて CLFS システムをコンパイルしインストールします。
67 <xref linkend="chapter-getting-materials"/>では CLFS 構築に必要となるパッケージとパッチについて説明します。
68 これらをダウンロードして新たなファイルシステム内に保存します。
69 <xref linkend="chapter-final-preps"/>は作業環境の準備について述べています。
70 この章では重要な説明を行っていますので、<xref linkend="chapter-cross-tools"/>以降に進む前に是非注意して読んでください。
75 <para><xref linkend="chapter-cross-tools"/> explains the installation of
76 cross-compile tools which will be built on the host but be able to compile
77 programs that run on the target machine. These cross-compile tools will
78 be used to create a temporary, minimal system that will be the basis for
79 building the final CLFS system. Some of these packages are needed to resolve
80 circular dependencies—for example, to compile a compiler, you need a
84 <xref linkend="chapter-cross-tools"/> ではクロスコンパイルツールのインストール方法を説明します。
85 これはホストシステム上に生成していきますが、ターゲットマシンにて動作するプログラムをコンパイルできるものです。
86 このクロスコンパイルツールにより一時システムを構築し、これをベースとして最終的な CLFS システムを作り上げます。
87 パッケージの中には自分自身を循環的に必要とするような依存関係を持つものがあります。
88 例えばコンパイラーをコンパイルするためにはコンパイラーが必要となります。
93 <para>The process of building cross-compile tools first involves building and
94 installing all the necessary tools to create a build system for the target
95 machine. With these cross-compiled tools, we eliminate any
96 dependencies on the toolchain from our host distro.</para>
99 クロスコンパイルツールの構築作業はまず初めに、ターゲットマシン用のビルドシステムを作るために必要となるツール類をビルドしインストールします。
100 その作業ではツールチェーン内にホストシステムへの依存がないようにしていきます。
105 <para>After we build our <quote>Cross-Tools</quote>, we start building
106 a very minimal working system in
107 <filename class="directory">/tools</filename>, using the cross-toolchain in
108 <filename class="directory">/cross-tools</filename>. Once the temporary
109 system is finished, we perform a few additional tasks to prepare to
110 enter this temporary build environment, either by booting or chrooting into
111 it. For more details about the difference between these methods, see
112 <xref linkend="ch-temp-system-choose"/>.</para>
115 "クロスツール" を作り上げた次には <filename
116 class="directory">/tools</filename> ディレクトリ内に必要最小限の一時システムを構築します。
117 これは <filename class="directory">/cross-tools</filename> ディレクトリ内にあるクロスツールチェーンを用いて行います。
118 一時システムが出来上がったら多少の作業を行った後に、再起動を行うか chroot を行うかのいずれかを通じて一時システムのビルド環境へ入ります。
119 再起動か chroot かの違いについての詳細は <xref linkend="ch-temp-system-choose"/> を参照してください。
124 <para>In <xref linkend="chapter-building-system"/>, after having booted
125 or chrooted into the temporary build environment, the full CLFS system is
129 <xref linkend="chapter-building-system"/> では、再起動または chroot により一時的なビルド環境に入り完全な CLFS システムを構築します。
134 <para>To finish the installation, several configuration files are created in
135 <xref linkend="chapter-system-config"/>, and the kernel and boot loader are
136 set up in <xref linkend="chapter-bootable"/>.
137 <xref linkend="chapter-finalizing"/>
138 contains information on furthering the CLFS experience beyond this book.
139 After the steps in this book have been implemented, the computer will be
140 ready to reboot into the new CLFS system.</para>
143 インストールの仕上げとして<xref linkend="chapter-system-config"/>にてベースシステムの設定を行い、<xref
144 linkend="chapter-bootable"/>にてカーネルとブートローダーを設定します。
145 <xref linkend="chapter-finalizing"/>では CLFS システム構築経験を踏まえて、その先に進むための情報を示します。
146 本書に示す作業をすべて実施すれば、新たな CLFS システムを起動することが出来ます。
151 <para>This is the process in a nutshell. Detailed information on each
152 step is discussed in the following chapters and package descriptions.
153 Items that may seem complicated will be clarified, and everything will
154 fall into place as the reader embarks on the CLFS adventure.</para>
158 各作業の詳細はこれ以降の章やパッケージの説明を参照してください。
159 内容が難しいと思っていても、それは徐々に理解していけるはずです。
160 読者の皆さんには、是非 CLFS アドベンチャーに挑んで頂きたいと思います。