From patchwork Tue Jul 2 13:30: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: 809113 Delivered-To: patch@linaro.org Received: by 2002:adf:a199:0:b0:367:895a:4699 with SMTP id u25csp211850wru; Tue, 2 Jul 2024 06:31:01 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUfD0mY7qHjyPOIVZl/rX0u8Deesy2KvQtYzj0+x5m49g27kFU0HlICwo/A5LWRLBmZJOtQJz4spvTKXeEG/Vo+ X-Google-Smtp-Source: AGHT+IFaPV8Rb1hqQEnxGQU7dfLbmD2TiEYKGshH44jQWenYwspbGR4malXnHa9gQ6wM+g/4geA7 X-Received: by 2002:a17:907:7d89:b0:a6f:50ae:e0a with SMTP id a640c23a62f3a-a751443876cmr731952766b.37.1719927060809; Tue, 02 Jul 2024 06:31:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1719927060; cv=none; d=google.com; s=arc-20160816; b=b0SyDvKHBSWi6YZQPdzJ0fgUr4uT47leO/XA8kYUO9uL6v2jTpTNuzGvUDpErfOCl8 fnpdIvL53pHQT8r+AJscy881KBRVIyPaUZ/eX3X/26GE5GmV3J1yJJF879cuqsTYgn/c TUdzUzhq0Ig81WtrTroS8aZA0qD0FuTPkXG+3JraUwvCN+j7pHbMOqzBSXOwU0x71yaK 6GdfMDwYM/PvuV/OALDGJlkzKF4Bux++PtciiAOZw108aCpG+on+s0jy+D3c5rqH6PdT uSHsIie6bhtaCpGVatAcLZBVBwZljws2EC3MQLC+6mkJD35Kg6pYgT869uIyN4D+LDvQ 7TyQ== 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=RPPFs9NvfU3QusBSo7WM73tPDr4kWxWVSdGjo5PV/b0=; b=yRA3oa4exsQ93LavvQY2WcGtpOxmfqrpxCddfadG7H4QJ7lAp7iw7tKkw+FT29PvGU 4n7rU1vu+tjx19FKhUDRTDNH4tNH8aSJ/vPjAQ/4TIEGd6OSXaU2NSRXeFNh0yrLg7XV 0crzdEZtb/7rtlwaCTMdvm6HldU8AKdGfubYq3CoFPBTAUkd3R0gnSN9RuBwCN+cCVyG jxxFGpW3+l3bzUyoO0okKshKCldcZLD3csP1LEB23OffWn6sowtoEjAyn4d1evFDVbNj 6XfvAMpmv/Ey5PqqZnxTOE+NI2784PgHEOe3mx9Bh/MQ83ouC3Th9e8ZTOqf83S7XGK2 iVZQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PLZ0TOlm; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-a72ab049e77si470626566b.462.2024.07.02.06.31.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jul 2024 06:31:00 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PLZ0TOlm; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DBE3C885E4; Tue, 2 Jul 2024 15:30: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=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="PLZ0TOlm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 03AF1884FB; Tue, 2 Jul 2024 15:30:48 +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-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) (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 1CC4B880AE for ; Tue, 2 Jul 2024 15:30:46 +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-ej1-x633.google.com with SMTP id a640c23a62f3a-a72585032f1so458201166b.3 for ; Tue, 02 Jul 2024 06:30:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719927045; x=1720531845; 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=PLZ0TOlmlB7RD+Jiuo8SWlopyjPkmmJwDDNcjq9bp0ni46S43Ez2YJhquMfy9eDqR3 FGnwS9GZW2BlkoMWJZNlpN7Mj1qB9qIcVkjQIa/rU1zyvia9En3O4klPrrN9J58ElMR+ zde5oma/DzEh+4J4Tp0gCaVp5T0q8471SAezcrWmXEDGkBvW3cmeS70rSLEETHEJ8k2e iFk7syOElMXxNb5kxj9S1f8ao9LTFdBm9K4qAe9HXVHUC3/Yl0QAnK688YHLSRVo/9nZ zzUcl6B1sGwwEqPqdITlG33ZJPMgYI4JxQjOaEgxuEmeSEyjgjUvKQ2GejuyOOaEHDIB 6ucw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719927045; x=1720531845; 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=GCXQQQ4RFH2SSoLDRPrAvQrnuF31vnt6eaZwtUEAdzG9Dd6wsZeS/OkptSZ0o2pI5U OG+4VQIy9m2dO67DRUHW76dxWcQEIMHaOkqSNYA7rl/lGQqFTzkGA3EBtrhG643/+BJX YSI+dDVOfwd5/61eo80yJkQAS5sTE3bbos0OxpiiKbsXGcWT2j6dtWsX4+/UlrDaV/fd DOrG2S7yHnnIC3s5btIFbWH6tLFyW3tNYGtsAjiP0n+1a/qJ3JlYcVWSaWhMPrOm1oou 20yhYWHzKs0lVczHcnseP/CdoFDPdsOsRab7b2hLKfhm+b69RpYfiBMJQs220Vc3yXiv Bzaw== X-Forwarded-Encrypted: i=1; AJvYcCVH4FQMwAfbhgjPsvagnLI43dtqNIRVCFRFki1g8+gI8ZWr/6PbhRB7PL2OfoGnq48tIO6TMjH1GgI7xdG7Ve9pZg481w== X-Gm-Message-State: AOJu0YxGzY9Ksj7imCE2upnN/ZISJ5AX8Cntx4xuGWNa2+iQNd0Z4rfn H4IzUBVxi9uQpwj14yLQ0lyyhujSk2FB62joBVX8MTnBQ9qEGIDCtWBC+ZS6uok= X-Received: by 2002:a17:907:d15:b0:a70:c031:3359 with SMTP id a640c23a62f3a-a7514438b44mr702738166b.34.1719927045505; Tue, 02 Jul 2024 06:30:45 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::7424]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7430367d55sm323796166b.87.2024.07.02.06.30.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jul 2024 06:30:44 -0700 (PDT) From: Caleb Connolly Date: Tue, 02 Jul 2024 15:30:41 +0200 Subject: [PATCH v4 01/10] efi: define struct efi_guid MIME-Version: 1.0 Message-Id: <20240702-b4-dynamic-uuid-v4-1-a00c82d1f504@linaro.org> References: <20240702-b4-dynamic-uuid-v4-0-a00c82d1f504@linaro.org> In-Reply-To: <20240702-b4-dynamic-uuid-v4-0-a00c82d1f504@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/ZANAwAIAQWDMSsZX2S2AcsmYgBmhAEBRCW+jAWLpN23dnEkUJW0XfD4JSTmOxkQ3 GvembpFktiJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZoQBAQAKCRAFgzErGV9k tiaWD/4vFykJJF9vTWtwsIsdIYtO6Cq082mbtqzzTs1EdTGtupxX0kqRTtIbVQ3HcO4y2no2cDh m822kS4sS5WSgoojHOtTIXtDIsWfZSMuXD2c235m1eBNr57McymYfxLJEmiMln0SMm4lqWlQa5p sccc55u/cWLap/xpHPPkz+5/jgjK3Ol5DagCMkxjTJQZQ66SgqQjHMTbMwD/swjhFeJDMESMIEV DX8hWtj0FWxpB9RgtkciXMY1+RoKsIl4XYgmZdJiagoxzozciHD+SA0lTwJ7ayqmPDJzUmy/Edz nUiBeSQFZBvbRQ0EEaGlO1RXQ5T0yXeCEX10kqD3jUVX8zoKWSNnIYWPkH6wNHTIIZ9F1FQ/VHx WO/WcQ/csgY+r264svSQaXPrUn4PG29wYQgteVvKSCJrir9ILlyZudXLUESVwMp3H3carry5oYV rAtyQGh75UjE7ALa/UDQuMGSiKQC8aa2QMUrJIswcHK2/NUcZagfx1DiRNAxyB3ZHq77voUhPPi k0skJDTOL93piWEVr44tJgSQn5BKqbmtq6KDYyAB9hzvgNmwsVgbYqCb2SOeUnVnZVI41nG7007 lvM6e6FOZCLrStMu1pGKDk3BI9uaYKpGMY5fTRoWT6uwy2sR6OPlPC/7sYTetX6l1o6hz7P8S7/ LnnsBWj8Jy3Nbkw== 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 --- 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) \