andreiw / UefiToolsPkg

Various useful utilities for UEFI
121 stars 40 forks source link

How to build? #3

Open harrywangca opened 3 years ago

harrywangca commented 3 years ago

Totally new to edk and this. Please help me to do my very first build on Ubuntu.

I untar edk2-edk2-stable202108-rc1.tar on my ubuntu and put UefiToolsPkg into edk2-edk2-stable202108-rc1.

My steps to build:

cd edk2-edk2-stable202108-rc1 source edksetup.sh build -p UefiToolsPkg/trunk/UefiToolsPkg.dsc edk2-edk2-stable202108-rc1/UefiToolsPkg/trunk/UefiToolsPkg.dsc(44): error 000E: File/directory not found in workspace edk2-edk2-stable202108-rc1/UefiToolsPkg/trunk/StdLib/StdLib.inc edk2-edk2-stable202108-rc1/StdLib/StdLib.inc

I searched edk2-edk2-stable202108-rc1 and only found these: ./UefiToolsPkg/trunk/Library/StdLibDevConsole ./UefiToolsPkg/trunk/Library/StdLibUefi ./UefiToolsPkg/trunk/Library/StdLibInteractiveIO

In README.md under StdLibDevConsole: This is a fixed-up version of edk2's StdLib/LibC/Uefi/Devices/Console.

Do I need do some changes in UefiToolsPkg.dsc?

Thank you Harry

kocoman1 commented 2 years ago

do you still need help? I was able to complie it.. but needed to remove qemuvideo in drivers because of error.. but I didn't need qemuvideo anyway for now

yyh-yyh-yyh commented 10 months ago

i only build to come out ShellPlatVars.efi, the others no come out .efi, the environment is win11 wsl ubuntu22.04("git clone https://github.com/tianocore/edk2)

yyh-yyh-yyh commented 9 months ago

Totally new to edk and this. Please help me to do my very first build on Ubuntu.

I untar edk2-edk2-stable202108-rc1.tar on my ubuntu and put UefiToolsPkg into edk2-edk2-stable202108-rc1.

My steps to build:

cd edk2-edk2-stable202108-rc1 source edksetup.sh build -p UefiToolsPkg/trunk/UefiToolsPkg.dsc edk2-edk2-stable202108-rc1/UefiToolsPkg/trunk/UefiToolsPkg.dsc(44): error 000E: File/directory not found in workspace edk2-edk2-stable202108-rc1/UefiToolsPkg/trunk/StdLib/StdLib.inc edk2-edk2-stable202108-rc1/StdLib/StdLib.inc

I searched edk2-edk2-stable202108-rc1 and only found these: ./UefiToolsPkg/trunk/Library/StdLibDevConsole ./UefiToolsPkg/trunk/Library/StdLibUefi ./UefiToolsPkg/trunk/Library/StdLibInteractiveIO

In README.md under StdLibDevConsole: This is a fixed-up version of edk2's StdLib/LibC/Uefi/Devices/Console.

Do I need do some changes in UefiToolsPkg.dsc?

Thank you Harry

after copy one StdLib from other, report error as below error 4000: Instance of library class [LibC] is not found in [/home/vUDK2017/UefiToolsPkg/Applications/grep/grep.inf] [X64] consumed by module [/home/vUDK2017/UefiToolsPkg/Applications/grep/grep.inf]

additional,i can build pass with UefiToolsPkg2023.dsc, but only come out ShellPlatVars.efi , i main want grep.efi,it not come out, then me manually add UefiToolsPkg/Applications/grep/grep.inf Components into UefiToolsPkg2023.dsc, can not build successfully,report error as below: /home/vUDK2017/UefiToolsPkg/UefiToolsPkg2023.dsc(...): error 4000: Instance of library class [LibC] is not found in [/home/vUDK2017/UefiToolsPkg/Applications/grep/grep.inf] [X64] consumed by module [/home/vUDK2017/UefiToolsPkg/Applications/grep/grep.inf]