blob: b5a17156e0fcc6b198ec5ced7fc54c39266c4afc [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001From 596cf4d04580b191d2f4f6082000534bdab13791 Mon Sep 17 00:00:00 2001
Brad Bishopbec4ebc2022-08-03 09:55:16 -04002From: Vishnu Banavath <vishnu.banavath@arm.com>
3Date: Sat, 11 Dec 2021 13:23:55 +0000
Patrick Williams92b42cb2022-09-03 06:53:57 -05004Subject: [PATCH 17/24] efi_loader: corstone1000: remove guid check from
Brad Bishopbec4ebc2022-08-03 09:55:16 -04005 corstone1000 config option
6
7Use generic fmp guid and no separte check is required for
8CORSTONE1000 target.
9
10Signed-off-by: Vishnu Banavath <vishnu.banavath@arm.com>
11Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
12---
13 lib/efi_loader/efi_capsule.c | 16 +---------------
14 1 file changed, 1 insertion(+), 15 deletions(-)
15
16diff --git a/lib/efi_loader/efi_capsule.c b/lib/efi_loader/efi_capsule.c
Patrick Williams92b42cb2022-09-03 06:53:57 -050017index e08e97cf3fb7..891143c33909 100644
Brad Bishopbec4ebc2022-08-03 09:55:16 -040018--- a/lib/efi_loader/efi_capsule.c
19+++ b/lib/efi_loader/efi_capsule.c
Patrick Williams92b42cb2022-09-03 06:53:57 -050020@@ -657,12 +657,6 @@ efi_status_t __efi_runtime EFIAPI efi_update_capsule(
Brad Bishopbec4ebc2022-08-03 09:55:16 -040021 i, &capsule->capsule_guid);
22
23 #if CONFIG_IS_ENABLED(TARGET_CORSTONE1000)
24- if (guidcmp(&corstone1000_capsule_guid, &capsule->capsule_guid)) {
25- ret = EFI_INVALID_PARAMETER;
26- log_err("Corstone1000: Invalid capsule GUID\n");
27- goto out;
28- }
29-
30 if (efi_size_in_pages(capsule->capsule_image_size) >
31 CORSTONE1000_CAPSULE_BUFFER_SIZE) {
32 log_err("Corstone1000: Capsule data size exceeds the shared buffer size\n");
Patrick Williams92b42cb2022-09-03 06:53:57 -050033@@ -688,15 +682,7 @@ efi_status_t __efi_runtime EFIAPI efi_update_capsule(
Brad Bishopbec4ebc2022-08-03 09:55:16 -040034 goto out;
35 #endif
36
37- if (!guidcmp(&capsule->capsule_guid,
38- &efi_guid_firmware_management_capsule_id)) {
39- ret = efi_capsule_update_firmware(capsule);
40- } else {
41- log_err("Unsupported capsule type: %pUs\n",
42- &capsule->capsule_guid);
43- ret = EFI_UNSUPPORTED;
44- }
45-
46+ ret = efi_capsule_update_firmware(capsule);
47 if (ret != EFI_SUCCESS)
48 goto out;
49 }
50--
Patrick Williams92b42cb2022-09-03 06:53:57 -0500512.37.1
Brad Bishopbec4ebc2022-08-03 09:55:16 -040052