From patchwork Tue Sep 2 15:21:35 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 174 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=1756826538; bh=SGtC4GtEjmwwmSG3tuMHSloggvLxuwrjE/RCB49vXQQ=; 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=Co6avSZ0ha1rAjwSqi351I3tlWA3pj3eUiGbhM7jOSuC0drpKPymcN/zsEHsK//Bq BDlwx4NvgaMKfoPOZRvYxyS8hrq/2DdMOi9L8+4ffMJVnZK49IL1z9brqAKQBRYefd 9X5+XFRFCf/zT1x/ZcieWaMgrqaVIX65QLhUHRpbC/Mji+ilWXF0FaKZhJWMoKgcy7 /mtuAK2N19Dnie/FtwBbQzqxMJOZRoFWHPRWQWJKN7JkvdhSOROBV5q49C+hwXlGtB EenvzWZEXN6IHcE5YJxupgZ6hxiR6aTTjh2YL2mDj93eCZ7/YDJ3lQi8sJNsxgkJi5 MKrlIcyhlaeUQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id A467A67867 for ; Tue, 2 Sep 2025 09:22:18 -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 oKQjY0JsL9mM for ; Tue, 2 Sep 2025 09:22:18 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756826537; bh=SGtC4GtEjmwwmSG3tuMHSloggvLxuwrjE/RCB49vXQQ=; 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=NA6rD9ki9Aso4adFO6sOa8fSaiwU95dpX4DDdSIAJBTkS/5xA7qxMWNaLq1JVhRmw GkYpmWwlSc/8J7ma38/aKl42Rq8UgFsl+yWzYYLtUvKwaBtqB7KzO6dOcisvLto13n VaWpsr5VBwWIIw/bjpPrROYqlw6qOAKvstCmveIT/VB74L/3sJkQQC0tAWNzorIbeR 9Ihx9bN7GLffNdQrmU2NDzqRVlm5LKtAdU2vRWON0s7LROS6eRRdfg+h9PzLzsLMxA B3l5wc8UFKI8QmBbk6Zk+OVPjH8bavZ+aSU+zgNEf0P7aW4Fz47OmjWoSnUF9iNOcZ zkYG9TzKPhWaw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B86F3678EB for ; Tue, 2 Sep 2025 09:22:17 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756826533; bh=9EHZeJ22uPY8NbsHORorBoSiHyGUF/Z3p181QMB6mcA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IMIFAHmKxgmVTyWwYP683OZ9/HNR++GyQmTI45HStyefza/xGQRqN2isI2UN2wdhw BAFeBxx3FPtJA69XGCbbuFewj5A3lsa6P97oIqOYEXc36gvOz3Fw9yH9gK2ZYAgXbP dBTbgKX2RL0MMZW4hDPpaeoxRVEDp9bhN88UFw127Fep86RTk1qmP+AOqmq6rbxnYV U+0nxK4v20qmS7v7jPIXAPAWJT8xnumJVncSl2KFlWe3X41YeaB9fuPo8t66oL1dVX POuYm0zAvwVATLGvw+k3v5e0ehWkW2C0bkIh2HlUd8kBr/sKnGQZY815mGFSHcByAI fBykbEEodj2Xw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 0719A6788A; Tue, 2 Sep 2025 09:22:13 -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 yds1zBJcCU4d; Tue, 2 Sep 2025 09:22:12 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756826532; bh=4Eb3rJ7USdWWWgiky7uGcfviS29T7b52gTcWblMb72A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f8Rp085RCRCMSwZkw972VNpAlNjJb9Rs5ZJgu7H8Bgfvk8wh6Rm+TFQJtUijQxr3r t6L/9rl8wPhpcAsXMuH7rMprMZOIbWqvPRqpJE3JMzokmBmT0bh8z2EFH+YRnSm1n3 i6xMjb8SALASL3e4HTXLztQ5Xxs10j1DnQY5fCBlkNts3f1GunBBIuCvPEhbvsajaC TIBZp714Koq6NUng/OkeGTbTSMe8lG6d8m74YslGxChB0jPifmAkcKAD+uuE2YJNVB c1Ia2F1NDlfTq7X5izDZlzs5JhTpryt2d0hSb6Hw2jsLBQlVDwM3k+w+pHjU2y6liI WOAcAOiIO4Fyg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 7817D67867; Tue, 2 Sep 2025 09:22:12 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 2 Sep 2025 09:21:35 -0600 Message-ID: <20250902152158.2285264-4-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: 5IMVOP45DLI2RZMP6DXO54TN57Q5MFMU X-Message-ID-Hash: 5IMVOP45DLI2RZMP6DXO54TN57Q5MFMU 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 03/18] efi: Allow inclusion of EFI-runtime headers 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 Some headers use the __efi_runtime macro in their declarations. With the app we do not have a separate runtime sections, so define this to be empty. This allows the headers to be included from the app. Signed-off-by: Simon Glass --- include/efi.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/efi.h b/include/efi.h index 6c2c1f815dd..6caa51c38a7 100644 --- a/include/efi.h +++ b/include/efi.h @@ -58,6 +58,11 @@ struct udevice; #define EFI32_LOADER_SIGNATURE "EL32" #define EFI64_LOADER_SIGNATURE "EL64" +#ifdef CONFIG_EFI_APP +/* add an empty value for this so that efi_variables.h can be included */ +#define __efi_runtime +#endif + /** * struct efi_device_path - device path protocol *