From: MingYue Liang <[email protected]>

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 <[email protected]>
Cc: Bob Feng <[email protected]>
Cc: Liming Gao <[email protected]>
Cc: Yuwei Chen <[email protected]>
---
 BaseTools/Source/Python/build/build.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/BaseTools/Source/Python/build/build.py 
b/BaseTools/Source/Python/build/build.py
index 07187c0361..0c6f801b33 100755
--- a/BaseTools/Source/Python/build/build.py
+++ b/BaseTools/Source/Python/build/build.py
@@ -63,6 +63,8 @@ from GenFds.FdfParser import FdfParser
 from AutoGen.IncludesAutoGen import IncludesAutoGen
 from GenFds.GenFds import resetFdsGlobalVariable
 from AutoGen.AutoGen import CalculatePriorityValue
+from GenFds.FdfParser import Warning
+
 
 ## standard targets of build command
 gSupportedTarget = ['all', 'genc', 'genmake', 'modules', 'libraries', 'fds', 
'clean', 'cleanall', 'cleanlib', 'run']
-- 
2.26.2.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#87135): https://edk2.groups.io/g/devel/message/87135
Mute This Topic: https://groups.io/mt/89471884/21656
Group Owner: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to