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 9, 2019
1 parent cbc1bb8 commit da06968
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions releasetools/flashfiles_from_target_files
Original file line number Diff line number Diff line change
Expand Up @@ -456,14 +456,15 @@ def main(argv):
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..."
# Add EFI shell to flashfiles zip for UEFI platforms
if (intel_common.CheckIfSocEFI(unpack_dir, None))[0]:
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)

This comment has been minimized.

Copy link
@tanminger

tanminger Aug 12, 2019

Contributor

Also need to check whether the /EFI/BOOT/BOOTX64.efi exist. If already exist, then need not replaced.
In the feature, we will make the installer.efi as EFI/BOOT/BOOTX64.efi to install directly.

else:
print "EFI shell binary not found, skipping..."

print "All done."

Expand Down

0 comments on commit da06968

Please sign in to comment.