回复: [edk2-discuss] edk2 build error


gaoliming
 

Please don't use the binary base tools. They are not maintained. Before you build, please make sure EDK_TOOLS_BIN be not set.

Thanks
Liming

-----邮件原件-----
发件人: discuss@edk2.groups.io <discuss@edk2.groups.io> 代表
alexgdi@outlook.com
发送时间: 2021年3月2日 22:07
收件人: discuss@edk2.groups.io
主题: [edk2-discuss] edk2 build error

Hello! I am trying to compile an EDK2 under Windows 10 using VS2019. When
compiling, I get an error from the GenFFs utility which says that the option -oi
is not valid. Here is part of the build script output.

Building ...
e:\fw\edk2\MdeModulePkg\Universal\Disk\PartitionDxe\PartitionDxe.inf
[X64]
GenFfs -t EFI_FV_FILETYPE_PEIM -g
9B3ADA4F-AE56-4c24-8DEA-F03B7558AE50 -o
e:\fw\Build\EmulatorX64\RELEASE_VS2019\FV\Ffs\9B3ADA4F-AE56-4c24-8D
EA-F03B7558AE50PcdPeim\9B3ADA4F-AE56-4c24-8DEA-F03B7558AE50.ffs
-oi
e:\fw\Build\EmulatorX64\RELEASE_VS2019\FV\Ffs\9B3ADA4F-AE56-4c24-8D
EA-F03B7558AE50PcdPeim\PEIPcdDataBaseSec.raw -oi
e:\fw\Build\EmulatorX64\RELEASE_VS2019\FV\Ffs\9B3ADA4F-AE56-4c24-8D
EA-F03B7558AE50PcdPeim\9B3ADA4F-AE56-4c24-8DEA-F03B7558AE50SEC1
.1.dpx -oi
e:\fw\Build\EmulatorX64\RELEASE_VS2019\FV\Ffs\9B3ADA4F-AE56-4c24-8D
EA-F03B7558AE50PcdPeim\9B3ADA4F-AE56-4c24-8DEA-F03B7558AE50SEC2
.1.pe32 -n 0 -oi
e:\fw\Build\EmulatorX64\RELEASE_VS2019\FV\Ffs\9B3ADA4F-AE56-4c24-8D
EA-F03B7558AE50PcdPeim\9B3ADA4F-AE56-4c24-8DEA-F03B7558AE50SEC3
.ui -oi
e:\fw\Build\EmulatorX64\RELEASE_VS2019\FV\Ffs\9B3ADA4F-AE56-4c24-8D
EA-F03B7558AE50PcdPeim\9B3ADA4F-AE56-4c24-8DEA-F03B7558AE50SEC4
.ver
Building ... e:\fw\edk2\MdeModulePkg\Core\Pei\PeiMain.inf [X64]
GenFfs: ERROR 1000: Unknown option
-oi

NMAKE : fatal error U1077: 'E:\fw\edk2-BaseTools-win32\GenFfs.EXE' :
return code '0x2'
Stop.

Thank you!



Join discuss@edk2.groups.io to automatically receive all group messages.