edk2-porting / edk2-msm

Broken edk2 port for Qualcomm platforms xD
https://renegade-project.tech/
BSD 2-Clause "Simplified" License
2.32k stars 439 forks source link

Build for New adding device winnerlte #248

Closed Ost268 closed 1 year ago

Ost268 commented 1 year ago

(Python 3.8.10 on linux) Traceback (most recent call last): File "/home/ost268/edk2-msm/Common/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2695, in Main MyBuild.Launch() File "/home/ost268/edk2-msm/Common/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2490, in Launch self._MultiThreadBuildPlatform() File "/home/ost268/edk2-msm/Common/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2282, in _MultiThreadBuildPlatform Wa, self.BuildModules = self.PerformAutoGen(BuildTarget,ToolChain) File "/home/ost268/edk2-msm/Common/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2133, in PerformAutoGen Wa = WorkspaceAutoGen( File "/home/ost268/edk2-msm/Common/edk2/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py", line 43, in init self._InitWorker(Workspace, MetaFile, Target, Toolchain, Arch, *args, **kwargs) File "/home/ost268/edk2-msm/Common/edk2/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py", line 116, in _InitWorker self.ProcessModuleFromPdf() File "/home/ost268/edk2-msm/Common/edk2/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py", line 212, in ProcessModuleFromPdf if self.FdfProfile: File "/home/ost268/edk2-msm/Common/edk2/BaseTools/Source/Python/Common/caching.py", line 28, in get Value = obj.dict[self._function.name] = self._function(obj) File "/home/ost268/edk2-msm/Common/edk2/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py", line 188, in FdfProfile Fdf.ParseFile() File "/home/ost268/edk2-msm/Common/edk2/BaseTools/Source/Python/GenFds/FdfParser.py", line 1320, in ParseFile while self._GetFd() or self._GetFv() or self._GetFmp() or self._GetCapsule() or self._GetRule() or self._GetOptionRom(): File "/home/ost268/edk2-msm/Common/edk2/BaseTools/Source/Python/GenFds/FdfParser.py", line 2116, in _GetFv isFile = self._GetFileStatement(FvObj) File "/home/ost268/edk2-msm/Common/edk2/BaseTools/Source/Python/GenFds/FdfParser.py", line 2564, in _GetFileStatement self._GetFilePart(FfsFileObj) File "/home/ost268/edk2-msm/Common/edk2/BaseTools/Source/Python/GenFds/FdfParser.py", line 2660, in _GetFilePart raise Warning.ExpectedCurlyClose(self.FileName, self.CurrentLineNumber) GenFds.FdfParser.Warning: expected '}' near line 6, column 18: "ButtonsDxe"

BigfootACA commented 1 year ago

looks like a syntax error?

Ost268 commented 1 year ago

https://github.com/Ost268/edk2-msm https://github.com/Ost268/edk2-msm-binary

qaz6750 commented 1 year ago

I think the problem may be here https://github.com/Ost268/edk2-msm/blob/master/Platform/Samsung/sm8150/winnerlte.fdf.inc

Try to delete buttonsdxe

Ost268 commented 1 year ago

Building ... /home/ost268/edk2-msm/Common/edk2/MdeModulePkg/Application/UiApp/UiApp.inf [AARCH64] /usr/bin/aarch64-linux-gnu-ld: error: Optimization level must be between 0 and 3 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [GNUmakefile:415: /home/ost268/edk2-msm/workspace/Build/winnerlte/RELEASE_CLANG38/AARCH64/MdeModulePkg/Application/UiApp/UiApp/DEBUG/UiApp.dll] error 1

qaz6750 commented 1 year ago

Please refer to https://github.com/edk2-porting/edk2-msm/pull/197/commits/ce907c749a77abdb7ccc4d18d50f2a9f110b10e8

Ost268 commented 1 year ago

Building ... /home/ost268/edk2-msm/Common/edk2/MdeModulePkg/Application/UiApp/UiApp.inf [AARCH64] /usr/bin/aarch64-linux-gnu-ld: error: Optimization level must be between 0 and 3 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [GNUmakefile:415: /home/ost268/edk2-msm/workspace/Build/winnerlte/RELEASE_CLANG38/AARCH64/MdeModulePkg/Application/UiApp/UiApp/DEBUG/UiApp.dll] error1

build.py... : error 7000: Failed to execute command make -s tbuild [/home/ost268/edk2-msm/workspace/Build/winnerlte/RELEASE_CLANG38/AARCH64/MdeModulePkg/Application/UiApp/UiApp]

build.py... : error 7000: Failed to execute command make -s tbuild [/home/ost268/edk2-msm/workspace/Build/winnerlte/RELEASE_CLANG38/AARCH64/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe]

build.py... : error F002: Failed to build module /home/ost268/edk2-msm/Common/edk2/MdeModulePkg/Application/UiApp/UiApp.inf [AARCH64, CLANG38, RELEASE]

Ost268 commented 1 year ago

Not work

Ost268 commented 1 year ago

Build error for any device

qaz6750 commented 1 year ago

image

Ost268 commented 1 year ago

Fd File Name:SM8150_UEFI (/home/ost268/edk2-msm/workspace/Build/winnerlte/RELEASE_CLANG38/FV/SM8150_UEFI.fd)

Generate Region at Offset 0x0 Region Size = 0x1000000 Region Name = FV

Generating FVMAIN_COMPACT FV

Generating FVMAIN FV ######################################## ######################################## ######################################## ############## GUID cross reference file can be found at /home/ost268/edk2-msm/workspace/Build/winnerlte/RELEASE_CLANG38/FV/Guid.xref

FV Space Information FVMAIN [99%Full] 33987456 (0x2069b80) total, 33987448 (0x2069b78) used, 8 (0x8) free FVMAIN_COMPACT [40%Full] 16777216 (0x1000000) total, 6751816 (0x670648) used, 10025400 (0x98f9b8) free

Ost268 commented 1 year ago

boot after build, memory map failed Image