]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTool/GenC: Fix build error when type is BASE or USER_DEFINED.
authorJiewen Yao <jiewen.yao@intel.com>
Wed, 20 Feb 2019 11:33:18 +0000 (19:33 +0800)
committerJiewen Yao <jiewen.yao@intel.com>
Fri, 22 Feb 2019 04:20:36 +0000 (12:20 +0800)
commit4247c24fba94283e74c97103e0b9b67da9b4ea5b
tree89797faa91c9cef3504434eec6565804ad218268
parent08b4ad6283c362fff412baa95fb49dc5dc7ccb3c
BaseTool/GenC: Fix build error when type is BASE or USER_DEFINED.

https://bugzilla.tianocore.org/show_bug.cgi?id=1544

1) The GenC tool does not include the constructor/destructor for
USER_DEFINED module. It should be included.
Only constructor/destructor with BASE type is included here.
The constructor/destructor with PEI/DXE/SMM type is still excluded
to keep original behavior.

2) The GenC tool includes the UnloadImage code for BASE module.
It should NOT be included.

3) The GenC tool uses EFI_STATUS and ASSERT_EFI_ERROR for BASE type.
It should use RETURN_STATUS and ASSERT_RETURN_ERROR.

4) The GenC tool miss DebugLib.h for BASE or USER_DEFINED module
AutoGen.c. Only Base.h is there. It should add Library/DebugLib.h.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/AutoGen/GenC.py