% % This is part of CLFSja package. % % This is a CTIE change file for the original XML source of the CLFSbook. % @x @y @z @x Build Variables @y ビルド変数 @z @x Setting Host and Target @y ホストおよびターゲットの設定 @z @x During the building of the cross-compile tools you will need to set a few variables that will be dependent on your particular needs. The first variable will be the triplet of the host machine, which will be put into the CLFS_HOST variable. To account for the possibility that the host and target are the same arch, as cross-compiling won't work when host and target are the same, part of the triplet needs to be changed slightly - in our case, we will change part of the triplet to "cross". Set CLFS_HOST using the following command: @y クロスコンパイルツールをビルドする間には、環境に合わせた固有の情報を変数に設定しておく必要があります。 一つめの変数はホストマシンのターゲットの三つ組 (target triplets) を変数 CLFS_HOST に設定します。 ホストとターゲットのアーキテクチャーは同一である可能性があるわけですが、両者が同一であるとクロスコンパイル作業がうまく出来ません。 そこで三つ組の情報は一部を微妙に変える必要があります。 ここでは三つ組の情報に "cross" を加えます。 以下のコマンドにより CLFS_HOST を設定します。 @z @x Now you will need to set the triplet for the target architecture. Set the target variable using the following command: @y ターゲットアーキテクチャーに対応してターゲットの三つ組 (target triplets) を設定する必要があります。 以下のコマンドを使ってターゲット変数を設定します。 @z @x Replace [target triplet] with the appropriate machine triplet using the table at the bottom of the page. @y [target triplet] の部分は、本ページ最後に示すターゲットの三つ組の中から適切なものを選んで置き換えてください。 @z @x Copy settings to the Environment @y 環境への設定コピー @z @x Now add these to ~/.bashrc, just in case you have to exit and restart building later: @y 上のビルド変数を ~/.bashrc に加えておきます。 こうすることで、再ログインした場合などに設定し忘れることがないようにします。 @z @x Processor Type and Target Triplets @y プロセッサータイプとターゲットの三つ組 (Target Triplets) @z @x Processor Target Triplet @y プロセッサー ターゲットの三つ組 @z @x 386 Compatibles Not Supported By Glibc @y 386 互換 Glibc 未対応 @z @x 486 Compatibles i486-pc-linux-gnu @y 486 互換 i486-pc-linux-gnu @z @x Pentium, K6, 586 Compatibles i586-pc-linux-gnu @y Pentium, K6, 586 互換 i586-pc-linux-gnu @z @x Pentium II, Pentium III, Pentium 4 i686-pc-linux-gnu @y Pentium II, Pentium III, Pentium 4 i686-pc-linux-gnu @z @x Athlon, Duron i686-pc-linux-gnu @y Athlon, Duron i686-pc-linux-gnu @z