]> git.dujemihanovic.xyz Git - u-boot.git/commit
bootm: don't call booti_setup for EFI images
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 13 Jun 2023 06:18:27 +0000 (08:18 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 16 Jun 2023 04:45:20 +0000 (06:45 +0200)
commit4533b3d0a346ab974b59badc61c904f3adb55a84
tree7b5a026c3cc9844fdd55bc806327f8fdc70edd14
parenta61e6ad76914a30a562ac01339c5d21f3283def8
bootm: don't call booti_setup for EFI images

On the arm64 architecture booti_setup() is called for EFI FIT images.
This function call fails because EFI images typically do not have a
kernel signature.

Check that the operating system property "os" of the image is "linux"
before invoking booti_setup().

Fixes: 487b5fa6deb1 ("bootm: Handle kernel_noload on arm64")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
boot/bootm.c