From patchwork Fri Jul 19 12:43:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 813380 Delivered-To: patch@linaro.org Received: by 2002:adf:f288:0:b0:367:895a:4699 with SMTP id k8csp731770wro; Fri, 19 Jul 2024 05:44:04 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXA+spvAuPFmBLw3JiHEfc9ycYE6k2bxUQ7+iNQTFkHJwJXo62Gfv8sQzb9uZzmfPupuk3m3SlgHqcTAXzAyvR9 X-Google-Smtp-Source: AGHT+IH7eulUzZH4pKCrAThSORmiJhYpGH3t0W6s31uBcWoPvUe45J/XlVdOcvJFN8dpZiR8vkxA X-Received: by 2002:a05:651c:2213:b0:2ee:d5c3:3109 with SMTP id 38308e7fff4ca-2ef05d4405amr38725211fa.45.1721393044199; Fri, 19 Jul 2024 05:44:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721393044; cv=none; d=google.com; s=arc-20160816; b=alUMP67rOMmMlkTJCQibvYffAZUnjIDZsaOQFrRHQuNdGsj4EDIlGDRJIDwa21Ztqc Z/tfi36UuewnUx2il01sjQ38AbtsR2cKZsk8dn+xBXl82iuD90DvE1Wtr5Lkh+g/BVw3 D6GWo7qpNvo+hZ9lK+205LfQZsE4idgFJS36+j1fqI1iHQHzSplSBisf0kmN9XYI2TId v0vrM2CeirVNf3azSojmmx3y7q0v88BjonulH0NcDGcysCdEKB2j8ZAK48G4SvAwWmoN 1foVjEwPka7e2yk31oQS5Z4vr7GDTsyNUWrAKJezDXE7lOrgOefKfHQkIN3m7x6pNpo4 QLBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=nScEoNskmv45Lt2tjO7j1jnaqGA5YnHfESShhKL5dEw=; fh=SFj0aT9cyReSRKWe5Pb5kBmqOB49tOYOp4n78bWqlI8=; b=NQyEGF4HxYPkpT6JgoxJyT91hdIs3ZFdk6iAc/tP+Br72ufbw8zheTz8fk8ORXZGkL 8cWNxQUgG1soEfbMJQB8qbPkMc0ar/hKUP2XynuSAtELNr19YuZwRkGz+70IiSLrNPZJ uT6gPyZPnPqtCQmQKbQPEGHhhJTFLOEwvRDJ1urat2nk6bk1VX2cDFmMeKJsfb1TZb6t TOQkvzbHCZbjHkXuy+Ec2CFbfRQWDtHRc1dq8tsvtSx9VoRzEqCyUaA5YXG3eTgHXbJ/ VIak/ywH1JUR7CmEQLoMV0nFj+IW8v3LkV76PwfHEU10IEUbNJr+bn+UOJ3XDB3KLdmV dpUw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IoBhqVKq; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id 38308e7fff4ca-2ef0fd0d55bsi3324951fa.436.2024.07.19.05.44.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jul 2024 05:44:04 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IoBhqVKq; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3266E88BB3; Fri, 19 Jul 2024 14:43:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="IoBhqVKq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 998EF887CE; Fri, 19 Jul 2024 14:43:50 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A717388B94 for ; Fri, 19 Jul 2024 14:43:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-52e9a920e73so1817885e87.2 for ; Fri, 19 Jul 2024 05:43:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721393028; x=1721997828; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=nScEoNskmv45Lt2tjO7j1jnaqGA5YnHfESShhKL5dEw=; b=IoBhqVKq6Lav8jILfWG1UuAxsDJI7Tapf5G0vIbjkNeLroaFN6r04I7eOiJLRQGSng xNzR6JZzGXJ17novaORAvAbr+KoIRPMmCq+owoNhJtip8aQ7FmpEUgllTyM6YBwkbVAA 2X7wI/z8nhpw92hFWSOye2KZIsVc+QjV7R46Lg1G0X5YG3Nrb8g70Ikxmi8VVtAQ8cto jQa1yhM96cVikLo8wlpaQcxFduYIGIfaYmyn8gmFw49XLzS30PMK1pxDt1o+IXnnW7LT TmvWQH10d2tFr1TOBbh1PdtH+uYHerBq7BskjaFp2vFZRIWJFD84mvW/0t8vnge26g0h oAKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721393028; x=1721997828; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nScEoNskmv45Lt2tjO7j1jnaqGA5YnHfESShhKL5dEw=; b=jLC6h21YJMw898rLYP2Y2lRZEtNs031sAjjABxDN8IocQaKhURDoBen6+dfQwCugF5 HQTSWpqy5HPkg9dSdDeXFJp/DyzjMQdzfAIKsobRJ8dSNHzOj9pCAFdhSv3pdvRZISI8 YpzBSaD+e8Woa/wKimHxkJn/jhZVYEl5WOTbxSQ71eg8PfnRUVreeL7aFvke+poIJupu DEJcAtw/3g+ReOoTEn5OB4oW1YN13l5edOJ/QeNJq8iLenPykbJKPzwJdcbVR+2ETzC5 aOQKW/hOn0GDSrMz7kRP6VegUqcsSS6k9NMaE+yNWhNerEBecV3ZxRLi20G79+mxGwHD IioA== X-Forwarded-Encrypted: i=1; AJvYcCVscia4CMR/TY2h9Ad6Nce4LZIN/u9knL4wgxQ8hOcJGTc7I2GYow19FREUgjdk1KqU46iqtadDLHik20QFqhB/IBvpew== X-Gm-Message-State: AOJu0YxwguSf088VPdMrc21HjJ6BmXP5g0Z8yQXoXAKpmHFnM0xuo3f9 s9FtcxHMhm9HKHHNARKJg29cJZwAaPRwWvVJfJjb3DgGSCBn+NDTtwrUKokWOMM= X-Received: by 2002:a05:6512:2211:b0:52c:d085:9978 with SMTP id 2adb3069b0e04-52ee543f3eemr5062935e87.62.1721393027918; Fri, 19 Jul 2024 05:43:47 -0700 (PDT) Received: from [192.168.2.172] ([90.187.152.45]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7a3c785e97sm28577466b.39.2024.07.19.05.43.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jul 2024 05:43:47 -0700 (PDT) From: Caleb Connolly Date: Fri, 19 Jul 2024 14:43:41 +0200 Subject: [PATCH v5 01/11] efi: define struct efi_guid MIME-Version: 1.0 Message-Id: <20240719-b4-dynamic-uuid-v5-1-8a83de3fe3dc@linaro.org> References: <20240719-b4-dynamic-uuid-v5-0-8a83de3fe3dc@linaro.org> In-Reply-To: <20240719-b4-dynamic-uuid-v5-0-8a83de3fe3dc@linaro.org> To: Tom Rini , Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Mario Six , Alper Nebi Yasak , Abdellatif El Khlifi Cc: Richard Hughes , u-boot@lists.denx.de, Caleb Connolly X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1137; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=b3W8BuVY9KVN80vqbSH3Ez6m6ALhP6/nGoPftuCgZMA=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmml+AENfu72Cw5/lmy7c3mHdO6I+6h2dYknnRM aR8uMVx9TuJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZppfgAAKCRAFgzErGV9k tij6D/oCJu+VOIVx+ms8ZQt/QU2455ezOverRmUUj+d3rSnDgSB9I9aamQOXsx9NKK2cyhf08Be y94qCcVCeu1Tg3j6G4NETYBNFSLCWSf0OyaRagbbxAjBknPBkWYBYs7kpiFk7UrJXvadeF07X5x KXbBbLjUtDLry5tTwbMvyt0T3l5swci7lHtzqGPFhxB/SeEgMIcjBzRofoOQnOg+IE+jZC5XDpz K6u0f2OTDQSL3WRQgWl9452JsSxJu/SbIYeA5vh1CTiFASTWJgAPbJm3lyY6/51dS3UGPX0uF2g C6u9akS8Cef/cpv3NHGUJpYKbtS4uOabuBTpQAvg2/dMbRZtltUNbHErq8YrRrI+gtS5xq57zsc O6h0qgOJw9aiXd8R0wC1z4KUzU9r5EYLFWXTCmqfo+Ejdzb9jsxO5nGVVJvua35+V7BFGHYxX8f GX/ZfeWB3+qB64RPxd6Wtpn9bSSTvpbBWma9XNAxiuxIY+E+bJTAM0atL+oSyrYsL2kwBmZXLcq epTSGcB6et8x8WjRNfdU2D0Hkt8UUd6+2veRg+Z/beCEA5R2UY3G5UKj6+h4fsCuRrHdA1o/Ao3 m69gIL/k8JY+RsdNzuaLUMeTW4+DLQy+vq53fzizYIS/otxorwYzoKSJIXFmZ+5LssmEFmo+lnf IjxKziDwTQZLVYg== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean This let's us forward declare efi_guid_t in the UUID code without pulling in efi.h Signed-off-by: Caleb Connolly Reviewed-by: Ilias Apalodimas --- include/efi.h | 2 +- tools/eficapsule.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/efi.h b/include/efi.h index c3c4b93f860a..b92c961a2afd 100644 --- a/include/efi.h +++ b/include/efi.h @@ -73,9 +73,9 @@ struct efi_device_path { * EDK2 reference implementation both define EFI_GUID as * struct { u32 a; u16; b; u16 c; u8 d[8]; }; which is 4-byte * aligned. */ -typedef struct { +typedef struct efi_guid { u8 b[16]; } efi_guid_t __attribute__((aligned(4))); #define EFI_BITS_PER_LONG (sizeof(long) * 8) diff --git a/tools/eficapsule.h b/tools/eficapsule.h index 6efd07d2eb6b..97d077536d5b 100644 --- a/tools/eficapsule.h +++ b/tools/eficapsule.h @@ -23,9 +23,9 @@ #endif #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) -typedef struct { +typedef struct efi_guid { uint8_t b[16]; } efi_guid_t __aligned(8); #define EFI_GUID(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7) \