From patchwork Tue Sep 2 15:21:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 178 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756826550; bh=1Qh/4CVz/kyNVwgY5a+ZZ1Q2ZcXTfXeyP3GGUSBy3Pc=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=itjom3F0CtHQU2O91mmArEau7WQj0lddqYEMm0PbyVL+NbyenKuNEPN9D5n9quZBu K4UAtwsUPgPRm+FmiKh5LRZVqxry1zXdzICyBUw3PmdpX8yyXh+d36DvNIcXNiKC2e t5Qj3ahgbRs/qEYE+X3ZYYZ6A4EzMSx+C/pERqNZ19c3NujbBFroz6BFsmZJsIQmMu uEbaAYQvC9jxe4QFoudzuFZwJ0nWxl/FQYEzhonRWvEb3u34OTDC9B3hak1E+np21D BsyipjNunMWNoIkk3JNtDsnD7sKQ/pEpF2MHcwzrivuuP2X2Xto479Blr5Lc3AEYnn H9cABMEHHG12g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6E53C67867 for ; Tue, 2 Sep 2025 09:22:30 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Zz3NI9lCCg45 for ; Tue, 2 Sep 2025 09:22:30 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756826550; bh=1Qh/4CVz/kyNVwgY5a+ZZ1Q2ZcXTfXeyP3GGUSBy3Pc=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=itjom3F0CtHQU2O91mmArEau7WQj0lddqYEMm0PbyVL+NbyenKuNEPN9D5n9quZBu K4UAtwsUPgPRm+FmiKh5LRZVqxry1zXdzICyBUw3PmdpX8yyXh+d36DvNIcXNiKC2e t5Qj3ahgbRs/qEYE+X3ZYYZ6A4EzMSx+C/pERqNZ19c3NujbBFroz6BFsmZJsIQmMu uEbaAYQvC9jxe4QFoudzuFZwJ0nWxl/FQYEzhonRWvEb3u34OTDC9B3hak1E+np21D BsyipjNunMWNoIkk3JNtDsnD7sKQ/pEpF2MHcwzrivuuP2X2Xto479Blr5Lc3AEYnn H9cABMEHHG12g== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5AB77678D3 for ; Tue, 2 Sep 2025 09:22:30 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756826547; bh=u+X83B0UVnp2mP3OsUOlMTDfUaRAyJ7vJW4yOvYjf3A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ih8uK1Gelg5ACivBdMAdBAdZJV/do7c5gN5e3zUso5RWf3OYZ2rVVhzal/gooFtyi ZhYJzKKgardD/jdV6PhY9rLa7OwnkW07mIB3Pg3sGpGNYp/1b4KIGyxZrLzq0WLw7A LYozO9+BEzyOdnsNJTJDhc5WPZiyNSCknM50ojDB7UmMh6aHxTQU/0XtnGO6i25BqC 1LYNL5RYA3cl8VHoop51yExC0tyP5yeVR0aCS2+mQWZOVbgKtr6kAyj8EXXS7J7qEX UEWm6S81yOK4H0fEyZUfxZfHhG1Lw4Yj7qOgHH2lIMs2qS3SCbucO3Q9PijdK25S5P HmrLsWL6b+mtw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id A2783678C7; Tue, 2 Sep 2025 09:22:27 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id XhfKeSLH2BFy; Tue, 2 Sep 2025 09:22:27 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756826540; bh=5xVG1MbIkA/EHRhAca7hq+2SKFtbk5hI3x4K0PUA9kk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iUXFUI91U0AFwedNsNN7WVKVrYqujJy+iJ2IH7SWd1SgvzlZZxeIgAfiRdZVL1MWz as1gy51MoD6kNl8qVcbZ0pNAuks66SHfoCV1s2+8qkQaqoe0QFmB4eBU77/lpHghvJ rK+a7lw57hZZSTP6Nu3LK6RFF6I6bMugxcH4LxNYUk8K/QHI6SSXXCs1dYntIAojSg bZTp9PEg1I6yj7xmCSbIGcTYSVdGaSdfmIgrYSBO+RIdMSPz8JLYcpI8S9moJ6pySQ KTb4uYgmHnOI+kKFAtLOWQUm/m+ImBukyxCA0We0sZRgmhvcoQxCsXAmb/YRZ6LCMb ExkLXhh3vKesQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id D6FD267867; Tue, 2 Sep 2025 09:22:19 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 2 Sep 2025 09:21:38 -0600 Message-ID: <20250902152158.2285264-7-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250902152158.2285264-1-sjg@u-boot.org> References: <20250902152158.2285264-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: XLNBPDOCVI7YTW5D53THA5ADN2DDFKAT X-Message-ID-Hash: XLNBPDOCVI7YTW5D53THA5ADN2DDFKAT X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt , Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 06/18] efi: Move loaded-image, fs and device-path GUIDs to common List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Allow these to be used from the app, when EFI_LOADER is disabled. Signed-off-by: Simon Glass --- include/efi.h | 6 ++++++ include/efi_loader.h | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/efi.h b/include/efi.h index 6caa51c38a7..e9ca4840352 100644 --- a/include/efi.h +++ b/include/efi.h @@ -171,6 +171,12 @@ extern const efi_guid_t efi_guid_image_security_database; /* Access to Shim variables */ extern const efi_guid_t efi_shim_lock; +extern const efi_guid_t efi_guid_loaded_image; +extern const efi_guid_t efi_guid_loaded_image_device_path; +extern const efi_guid_t efi_guid_device_path; + +extern const efi_guid_t efi_simple_file_system_protocol_guid; + /* Generic EFI table header */ struct efi_table_hdr { u64 signature; diff --git a/include/efi_loader.h b/include/efi_loader.h index 57bf508adb9..2caaaf56e3e 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -316,7 +316,6 @@ extern const efi_guid_t efi_block_io_guid; /* GUID of the EFI_SIMPLE_NETWORK_PROTOCOL */ extern const efi_guid_t efi_net_guid; extern const efi_guid_t efi_guid_console_control; -extern const efi_guid_t efi_guid_device_path; /* GUID of the EFI system partition */ extern const efi_guid_t efi_system_partition_guid; /* event group ExitBootServices() invoked */ @@ -331,10 +330,7 @@ extern const efi_guid_t efi_guid_event_group_ready_to_boot; extern const efi_guid_t efi_guid_event_group_reset_system; /* event group return to efibootmgr */ extern const efi_guid_t efi_guid_event_group_return_to_efibootmgr; -extern const efi_guid_t efi_guid_loaded_image; -extern const efi_guid_t efi_guid_loaded_image_device_path; extern const efi_guid_t efi_guid_device_path_to_text_protocol; -extern const efi_guid_t efi_simple_file_system_protocol_guid; extern const efi_guid_t efi_file_info_guid; /* GUID for file system information */ extern const efi_guid_t efi_file_system_info_guid;