From 008b18270f8d9d3e0c7a1eebb0cb4531e4e60ebe Mon Sep 17 00:00:00 2001 From: Lans Zhang Date: Mon, 24 Jul 2017 12:31:26 +0800 Subject: [PATCH] shim: use fallback loading SELoader Signed-off-by: Lans Zhang --- ...ack-allow-to-search-.csv-in-EFI-BOOT.patch | 27 +++++++ .../recipes-bsp/shim/shim/bootia32.csv | Bin 0 -> 102 bytes .../recipes-bsp/shim/shim/bootx64.csv | Bin 0 -> 100 bytes .../recipes-bsp/shim/shim_git.bb | 66 +++++++++++------- 4 files changed, 69 insertions(+), 24 deletions(-) create mode 100644 meta-efi-secure-boot/recipes-bsp/shim/shim/0013-fallback-allow-to-search-.csv-in-EFI-BOOT.patch create mode 100644 meta-efi-secure-boot/recipes-bsp/shim/shim/bootia32.csv create mode 100644 meta-efi-secure-boot/recipes-bsp/shim/shim/bootx64.csv diff --git a/meta-efi-secure-boot/recipes-bsp/shim/shim/0013-fallback-allow-to-search-.csv-in-EFI-BOOT.patch b/meta-efi-secure-boot/recipes-bsp/shim/shim/0013-fallback-allow-to-search-.csv-in-EFI-BOOT.patch new file mode 100644 index 0000000..a876179 --- /dev/null +++ b/meta-efi-secure-boot/recipes-bsp/shim/shim/0013-fallback-allow-to-search-.csv-in-EFI-BOOT.patch @@ -0,0 +1,27 @@ +From d008d75860433bc640aaf1c2dabe5742912bdac4 Mon Sep 17 00:00:00 2001 +From: Lans Zhang +Date: Mon, 24 Jul 2017 15:15:33 +0800 +Subject: [PATCH] fallback: allow to search .csv in \EFI\BOOT + +Signed-off-by: Lans Zhang +--- + fallback.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/fallback.c b/fallback.c +index 5e4a396..8c408fd 100644 +--- a/fallback.c ++++ b/fallback.c +@@ -729,8 +729,7 @@ find_boot_options(EFI_HANDLE device) + continue; + } + if (!StrCmp(fi->FileName, L".") || +- !StrCmp(fi->FileName, L"..") || +- !StrCaseCmp(fi->FileName, L"BOOT")) { ++ !StrCmp(fi->FileName, L"..")) { + FreePool(buffer); + buffer = NULL; + continue; +-- +2.7.5 + diff --git a/meta-efi-secure-boot/recipes-bsp/shim/shim/bootia32.csv b/meta-efi-secure-boot/recipes-bsp/shim/shim/bootia32.csv new file mode 100644 index 0000000000000000000000000000000000000000..c2d784e1ba967691904bd6f1ad8f302c8d7e6abf GIT binary patch literal 102 zcmezWFPOoV!G|HAA(0`4A(f$sArr_lW-wyV1M<>