From: Leif Lindholm leif.lindholm@linaro.org
Currently, only ".efi" files are recognized as valid ARM UEFI applications by BDS. This patch also makes ".EFI" files recognised.
Signed-off-by: Leif Lindholm leif.lindholm@linaro.org --- ArmPlatformPkg/Bds/BdsHelper.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/ArmPlatformPkg/Bds/BdsHelper.c b/ArmPlatformPkg/Bds/BdsHelper.c index fa3026c..d1889f4 100644 --- a/ArmPlatformPkg/Bds/BdsHelper.c +++ b/ArmPlatformPkg/Bds/BdsHelper.c @@ -205,6 +205,9 @@ HasFilePathEfiExtension ( IN CHAR16* FilePath ) { + if (StrCmp (FilePath + (StrSize(FilePath)/sizeof(CHAR16)) - 5, L".EFI") == 0) + return 1; + return (StrCmp (FilePath + (StrSize(FilePath)/sizeof(CHAR16)) - 5, L".efi") == 0); }