Update ubuntu.md

This commit is contained in:
yude 2020-09-06 14:58:46 +09:00
parent be55163606
commit 652a54e848
No known key found for this signature in database
GPG Key ID: A49BFB97E0AB5435
1 changed files with 15 additions and 9 deletions

View File

@ -6,19 +6,25 @@
## ビルド ## ビルド
コマンドラインで下記を実行する コマンドラインで下記を実行する
* アップデート * パッケージの更新
```sudo apt -y update && sudo apt -y upgrade``` ```sudo apt -y update && sudo apt -y upgrade```
* ビルドに必要なパッケージをインストール * ビルドに必要なパッケージをインストール (gcc を除く)
```sudo apt -y install build-essential uuid-dev iasl git gcc-5 nasm python3-distutils``` ```sudo apt -y install build-essential uuid-dev iasl git nasm python3-distutils```
* edk2 をクローン * gcc-5 をインストール
```git clone https://github.com/tianocore/edk2.git``` Ubuntu 20.04 では既定では gcc-5 をインストールできません。ソースを追加します。
`echo "deb http://archive.ubuntu.com/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/xenial.list`
`sudo apt -y update`
`sudo apt -y install gcc-5`
* edk2 をクローン、submodule を更新
```git clone https://github.com/tianocore/edk2.git/```
```git submodule update --init```
* SprinkleOS をクローン * SprinkleOS をクローン
```cd edk2``` ```cd edk2```
```git clone https://gitlab.pepepper.cf/ecri/sprinkleos.git``` ```git clone https://gitlab.pepepper.cf/ecri/sprinkleos.git/```
* edk2 のconfigなどを生成する * edk2 を設定
```. edksetup.sh``` ```. edksetup.sh```
* target.txt の編集 * `target.txt` の編集
`Conf/target.txt`を開き、以下を編集する。 `Conf/target.txt` を開き、以下を編集する。
`- ACTIVE_PLATFORM = EmulatorPkg/EmulatorPkg.dsc` `- ACTIVE_PLATFORM = EmulatorPkg/EmulatorPkg.dsc`
`+ ACTIVE_PLATFORM = sprinkleos/sprinkleos.dsc` `+ ACTIVE_PLATFORM = sprinkleos/sprinkleos.dsc`
`- TARGET_ARCH = IA32` `- TARGET_ARCH = IA32`