Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

Commit

Permalink
shoehorn: handle missing kernel.elf
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Heider <[email protected]>
  • Loading branch information
Axel Heider authored and lsf37 committed Jul 6, 2022
1 parent 50aadce commit 9eef25a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake-tool/helpers/shoehorn.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ def main() -> int:
rootservers = []
is_dtb_present = False
is_good_fit = False
kernel_elf = None

with libarchive.memory_reader(get_cpio(image)) as archive:
for entry in archive:
Expand All @@ -160,6 +161,9 @@ def main() -> int:
else:
rootservers.append(get_bytes(entry))

if not kernel_elf:
die('missing kernel.elf')

# Enumerate the regions as we encounter them for diagnostic purposes.
region_counter = -1
last_region = len(platform['memory'])
Expand Down

0 comments on commit 9eef25a

Please sign in to comment.