回复: [edk2-devel] [PATCH] BaseTools: Catch the exception in build.py.
fengyunhua
fengyunhua at byosoft.com.cn
Thu Nov 5 01:15:56 UTC 2020
I tried this patch, modified OvmfPkgIa32.fdf
INF OvmfPkg/Sec/SecMain.inf
===>
INM OvmfPkg/Sec/SecMain.inf
the error message as below:
build.py...
c:\work\edk2\OvmfPkg\OvmfPkgIa32.fdf(118): error 3000: Invalid syntax/format
expected [FD.] near line 110, column 22: TRUE
on my opinion, "expected [FD.]" is not correct
-----邮件原件-----
发件人: bounce+27952+66996+5049190+8953120 at groups.io
<bounce+27952+66996+5049190+8953120 at groups.io> 代表 mliang2x
发送时间: 2020年11月4日 15:53
收件人: devel at edk2.groups.io
抄送: Mingyue Liang <mingyuex.liang at intel.com>; Bob Feng
<bob.c.feng at intel.com>; Liming Gao <gaoliming at byosoft.com.cn>; Yuwei Chen
<yuwei.chen at intel.com>
主题: [edk2-devel] [PATCH] BaseTools: Catch the exception in build.py.
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2988
In FDF file, if INF key word is wrongly written as INT,
build tool will report the execption. Build tool should
report the error message.
build.py In order to capture and handle the exception
of fdfparser, the user-defined exception class should
be imported.
Signed-off-by: Mingyue Liang <mingyuex.liang at intel.com>
Cc: Bob Feng <bob.c.feng at intel.com>
Cc: Liming Gao <gaoliming at byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen at intel.com>
---
BaseTools/Source/Python/build/build.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/BaseTools/Source/Python/build/build.py
b/BaseTools/Source/Python/build/build.py
index 1ab1e60a64..49165ea355 100755
--- a/BaseTools/Source/Python/build/build.py
+++ b/BaseTools/Source/Python/build/build.py
@@ -62,6 +62,7 @@ from AutoGen.ModuleAutoGenHelper import WorkSpaceInfo,
PlatformInfo
from GenFds.FdfParser import FdfParser
from AutoGen.IncludesAutoGen import IncludesAutoGen
from GenFds.GenFds import resetFdsGlobalVariable
+from GenFds.FdfParser import Warning
## standard targets of build command
gSupportedTarget = ['all', 'genc', 'genmake', 'modules', 'libraries',
'fds', 'clean', 'cleanall', 'cleanlib', 'run']
--
2.28.0.windows.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#67013): https://edk2.groups.io/g/devel/message/67013
Mute This Topic: https://groups.io/mt/78042840/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list