[edk2] [RFC] Edk2 BaseTools Python3 Migration Update

Gary Lin glin at suse.com
Fri Dec 28 02:39:51 PST 2018

On Tue, Dec 25, 2018 at 07:50:43AM +0000, Gao, Liming wrote:
> Hi, all
>   On Python3 migration https://bugzilla.tianocore.org/show_bug.cgi?id=55, we update Edk2 BaseTools python source code with the compatible syntax to support Python2 and Python3 both. Here is code https://github.com/lgao4/edk2/tree/Python3 for dry run. To enable Python3, you just need to set PYTHON3_ENABLE environment as TRUE, then type edksetup.bat/edksetup.sh. Without this setting, BaseTools still run with Python2. So, there is no change for current usage model with Python27.
I've built OVMF with both python2 and python3 based on the branch and
the VM crashed immediately. The only message in the debug log is:

SecCoreStartupWithStack(0xFFFCC000, 0x820000)

The result of bisect showed the first bad commit is

 BaseTools: Update windows and linux run scripts file to use Python3


Gary Lin

>   But, we have no enough resource to fully verify Python2 and Python3 both. We will focus on Python3 validation. If anyone can help verify Python2, it will be great. And, if you meet with the issue on Python2, please file BZ. We still fix them.
> Thanks
> Liming
> _______________________________________________
> edk2-devel mailing list
> edk2-devel at lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel

More information about the edk2-devel mailing list