Skip to content

Commit

Permalink
[CELADON] Integrate EFI shell in flashfiles zip
Browse files Browse the repository at this point in the history
Integrate EFI shell in flashfiles zip

EFI shell binary that is already part of Celadon source tree is copied to flashfiles zip to help developers boot celadon on platforms that do not have internal efi shell support in bios

Tracked-On: OAM-84428
Signed-off: debarghy [email protected]
  • Loading branch information
debarghyab committed Aug 8, 2019
1 parent d40b06d commit cbc1bb8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions releasetools/flashfiles_from_target_files
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,16 @@ def main(argv):
for fn, data in configs:
ifile = common.File(fn, data)
ifile.AddToZip(dest_zip)

# Add EFI shell to flashfiles zip
efiShellBinaryPath = os.path.join("device","linaro","bootloader","edk2","ShellBinPkg","UefiShell","X64","Shell.efi")
archivedEfiFilePath = "EFI/BOOT/BOOTX64.EFI"
if os.path.isfile(efiShellBinaryPath):
print "Adding EFI shell to flashfiles..."
dest_zip.write(efiShellBinaryPath, archivedEfiFilePath)
else:
print "EFI shell binary not found, skipping..."

print "All done."

if __name__ == '__main__':
Expand Down

0 comments on commit cbc1bb8

Please sign in to comment.