つまずいたエラー・対策および解決策を並べました。
何か間違っている点があったら、ご指摘いただけると嬉しいです。
build.py...
: error 000E: File/directory not found in workspace
/home/*****/edk2/AppPkg (Please give file in absolute path or relative to WORKSPACE)
資料のAppPkgといったフォルダ名を記載する指示を、.dscファイル指定に変更するとできた
資料に記載されているtarget.txtのACTIVE_PLATFORMを.dscファイルにパス変更
build.py...
/home/*****/edk2/AppPkg/AppPkg.dsc(35): error 000E: File/directory not found in workspace
/home/*****/edk2/AppPkg/Hello/Hello.inf
資料に記載の通り、AppPkg.dscのHello.infのパスを書いている場所を確認したが、Applications
が入っていなかったため下のように修正
AppPkg/Hello/Hello.inf
→ AppPkg/Applications/Hello/Hello.inf
build.py...
: error 7000: Failed to execute command
make tbuild [/home/*****/edk2/Build/AppPkgX64/RELEASE_GCC5/X64/MdePkg/Library/BaseLib/BaseLib]
build.py...
: error F002: Failed to build module
/home/*****/edk2/MdePkg/Library/BaseLib/BaseLib.inf [X64, GCC5, RELEASE]
nasm notfound
と表示されたので、sudo apt install nasm
を実行
ビルドのエラー内容が変わった。
You may need to run:
make -C /home/.../edk2/BaseTools/Source/C
と表示されたので、実行
uuid/uuid.h: そのようなファイルやディレクトリはありません
と表示されたので、下のサイトを参考に、uuidを導入
https://kaworu.jpn.org/c/C言語でUUIDを生成する方法
sudo apt-get install uuid-dev
→404→sudo apt-get update
これで、make -C /.../edk2/BaseTools/Source/C
が実行できるようになり、nasmが導入できた。
OvmfPkgのビルドができなかった。
iasl
というコマンドが見つからないらしいので
sudo apt install iasl
を実行