diff options
Diffstat (limited to 'common/recipes-bsp/gummiboot/files/0005-Auto-detect-both-x64-and-ia32-boot-.efi-payloads.patch')
| -rw-r--r-- | common/recipes-bsp/gummiboot/files/0005-Auto-detect-both-x64-and-ia32-boot-.efi-payloads.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/common/recipes-bsp/gummiboot/files/0005-Auto-detect-both-x64-and-ia32-boot-.efi-payloads.patch b/common/recipes-bsp/gummiboot/files/0005-Auto-detect-both-x64-and-ia32-boot-.efi-payloads.patch new file mode 100644 index 00000000..049218d3 --- /dev/null +++ b/common/recipes-bsp/gummiboot/files/0005-Auto-detect-both-x64-and-ia32-boot-.efi-payloads.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | From 58204c946ec8f626d1b5997188b17978fcba5c9b Mon Sep 17 00:00:00 2001 | ||
| 2 | Message-Id: <58204c946ec8f626d1b5997188b17978fcba5c9b.1367616193.git.dvhart@linux.intel.com> | ||
| 3 | From: Darren Hart <dvhart@linux.intel.com> | ||
| 4 | Date: Fri, 3 May 2013 14:21:25 -0700 | ||
| 5 | Subject: [PATCH] Auto detect both x64 and ia32 boot*.efi payloads | ||
| 6 | |||
| 7 | The EFI specification documents /EFI/BOOT/bootx64.efi for x86_64 | ||
| 8 | machines and /EFI/BOOT/bootia32.efi for ia32 machines. Update the auto | ||
| 9 | detection to allow for both. | ||
| 10 | |||
| 11 | Signed-off-by: Darren Hart <dvhart@linux.intel.com> | ||
| 12 | --- | ||
| 13 | src/efi/gummiboot.c | 4 +++- | ||
| 14 | 1 files changed, 3 insertions(+), 1 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/src/efi/gummiboot.c b/src/efi/gummiboot.c | ||
| 17 | index 3013873..ed68934 100644 | ||
| 18 | --- a/src/efi/gummiboot.c | ||
| 19 | +++ b/src/efi/gummiboot.c | ||
| 20 | @@ -1941,7 +1941,9 @@ EFI_STATUS EFIAPI efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *sys_table) { | ||
| 21 | config_entry_add_loader_auto(&config, loaded_image->DeviceHandle, root_dir, loaded_image_path, | ||
| 22 | L"auto-efi-shell", L"EFI Shell", L"\\shellx64.efi"); | ||
| 23 | config_entry_add_loader_auto(&config, loaded_image->DeviceHandle, root_dir, loaded_image_path, | ||
| 24 | - L"auto-efi-default", L"EFI Default Loader", L"\\EFI\\BOOT\\BOOTX64.EFI"); | ||
| 25 | + L"auto-efi-default-64", L"EFI Default Loader (x64)", L"\\EFI\\BOOT\\BOOTX64.EFI"); | ||
| 26 | + config_entry_add_loader_auto(&config, loaded_image->DeviceHandle, root_dir, loaded_image_path, | ||
| 27 | + L"auto-efi-default-32", L"EFI Default Loader (ia32)", L"\\EFI\\BOOT\\BOOTIA32.EFI"); | ||
| 28 | config_entry_add_osx(&config); | ||
| 29 | efivar_set(L"LoaderEntriesAuto", config.entries_auto, FALSE); | ||
| 30 | |||
| 31 | -- | ||
| 32 | 1.7.5.4 | ||
| 33 | |||
