slimbootloader/BootloaderCommonPkg
Atharva Lele 1c807e51fa
Fix OsLoader handling of non-container images and remove PcdContainerBootEnabled (#1843)
* OsLoader: set default status to EFI_UNSUPPORTED when parsing a boot image

This was set to EFI_SUCCESS which resulted in ParseBootImages() returning
EFI_SUCCESS even if the boot image was not a container or a component.

Thus, the boot would continue and fail at a later stage due to the
LoadedImage structure not being populated correctly.

Setting it to EFI_UNSUPPORTED will result in ParseBootImages() returning
EFI_UNSUPPORTED if a non-supported boot image is provided and OsLoader
will attempt to boot the next entry in the boot options list.

Signed-off-by: Atharva Lele <atharva.lele@intel.com>

* Remove PcdContainerBootEnabled PCD

SBL requires boot images to be packaged as a container or a component

Signed-off-by: Atharva Lele <atharva.lele@intel.com>

---------

Signed-off-by: Atharva Lele <atharva.lele@intel.com>
2023-03-10 14:14:13 -08:00
..
Include OsLoader - Container Type Cleanup (#1816) 2023-02-02 09:19:31 -08:00
Library fix: [RPL-P] Build error when ENABLE_SOURCE_DEBUG=1. 2023-03-07 14:16:13 -07:00
BootloaderCommonPkg.dec Fix OsLoader handling of non-container images and remove PcdContainerBootEnabled (#1843) 2023-03-10 14:14:13 -08:00