Sunday, February 11, 2018

Build Python .py file to standalone application in UEFI

It is included after EfiPy_r0.1.9(24622). And its sample is at:
1. Source code: Host\AppPkg\py2efi\Samples
2. Target folder: fsx:\EFI\Tools\Samples\py2efi
It is called Py2Efi and is built on UEFI shell.

Sample in this document:
   fsx:\EFI\Tools\Samples\py2efi\CpuId\
   included files: CpuIds.py and Setup.py

Build CpuIds.py to CpuIds.efi file
  fsx:\EFI\Tools\Samples\py2efi\CpuId\>python Setup.py py2efi

Result:
  CpuIds.efi is produced at fsx:\EFI\Tools\Samples\py2efi\CpuId\dist\CpuIds.efi

Note:
  Py2Efi is from Py2EXE
https://pypi.python.org/pypi/py2exe/
http://www.py2exe.org/

No comments:

Post a Comment