Hi,
I was following below link to build UEfiPayload for coreboot to boot from,

https://github.com/tianocore/edk2/blob/master/UefiPayloadPkg/BuildAndIntegrationInstructions.txt

but getting below error,
would appreciate help, thanks.


~/src/opensource/edk2 [master| ]
03:04 $ build -p UefiPayloadPkg\UefiPayloadPkg.dsc -t GCC5 -a IA32
Build environment: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29
Build start time: 03:04:57, Feb.03 2023

WORKSPACE        = /home//src/opensource/edk2
EDK_TOOLS_PATH   = /home//src/opensource/edk2/BaseTools
CONF_PATH        = /home//src/opensource/edk2/Conf
PYTHON_COMMAND   = /usr/bin/python3.8


build.py...
 : error C0DE: Unknown fatal error when processing [/home//src/opensource/edk2/UefiPayloadPkgUefiPayloadPkg.dsc]

(Please send email to devel@edk2.groups.io for help, attaching following call stack trace!)

(Python 3.8.10 on linux) Traceback (most recent call last):
  File "/home//src/opensource/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2692, in Main
    MyBuild = Build(Target, Workspace, Option,LogQ)
  File "/home//src/opensource/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 815, in __init__
    self.InitPreBuild()
  File "/home//src/opensource/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1015, in InitPreBuild
    self.LoadConfiguration()
  File "/home//src/opensource/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 971, in LoadConfiguration
    self.GetToolChainAndFamilyFromDsc (self.PlatformFile)
  File "/home//src/opensource/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 905, in GetToolChainAndFamilyFromDsc
    dscobj = self.BuildDatabase[File, BuildArch]
  File "/home//src/opensource/edk2/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py", line 104, in __getitem__
    BuildObject = self.CreateBuildObject(FilePath, Arch, Target, Toolchain)
  File "/home//src/opensource/edk2/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py", line 120, in CreateBuildObject
    MetaFileStorage(self.WorkspaceDb, FilePath, FileType)
  File "/home//src/opensource/edk2/BaseTools/Source/Python/Workspace/MetaFileTable.py", line 426, in __new__
    reval = Class._FILE_TABLE_[FileType](*Args)
  File "/home//src/opensource/edk2/BaseTools/Source/Python/Workspace/MetaFileTable.py", line 303, in __init__
    MetaFileTable.__init__(self, Cursor, MetaFile, MODEL_FILE_DSC, Temporary, FromItem)
  File "/home//src/opensource/edk2/BaseTools/Source/Python/Workspace/MetaFileTable.py", line 39, in __init__
    MetaFile.TimeStamp,
  File "/home//src/opensource/edk2/BaseTools/Source/Python/Common/Misc.py", line 1539, in TimeStamp
    return os.stat(self.Path)[8]
  File "/home//src/opensource/edk2/BaseTools/Source/Python/Common/LongFilePathOs.py", line 51, in stat
    return os.stat(LongFilePath(path))
FileNotFoundError: [Errno 2] No such file or directory: '/home//src/opensource/edk2/UefiPayloadPkgUefiPayloadPkg.dsc'





Thanks & Regards
Ritul Guru
+91-9916513186