From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 50B19C61DA4 for ; Thu, 23 Feb 2023 23:08:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2C8FB8575F; Fri, 24 Feb 2023 00:07:58 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="UkOdWuMm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2F3148597A; Fri, 24 Feb 2023 00:07:56 +0100 (CET) Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) (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 69D978575F for ; Fri, 24 Feb 2023 00:07:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-ed1-x52c.google.com with SMTP id o12so48575294edb.9 for ; Thu, 23 Feb 2023 15:07:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=JbR9lTZqlJ40shomBH2iGXVxkox36UR6KUqHsW/2zHU=; b=UkOdWuMmvXVJub1upmF+BIyJmI47l/HjyFKW5SZ8Str+36FPR3a8jorcjq4qwC22FB 3oEJeJNZBKKSdDnZMITUlWoxaDqyRMupeM0o9Ul3cL21oMbJwqB83XMQYp5dk2WM4y72 ZeJzEpPwcgDyz8AfsWCS+a2D1h3Av+6HWPCys= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JbR9lTZqlJ40shomBH2iGXVxkox36UR6KUqHsW/2zHU=; b=PTjemMUr/BPpqZnP7fF7y8xXspS8eGwPpSCqb+NxumPXL6XcfFjIqtU60MDOMysDe5 5GGfBES3YaMIVazoFWWZceChfuY4QMvV5I3w1dfL8jJh7I0g7X5orTLRba3d6hKLZ3EX 0Mr151uQ1Fkn5IghvK1wF1zjQvvotjp4sFhk3UMhDzVxIeXaIZ4nRDBqdoMY8Znct6gY qMTVVOOvK1r6K1d136JWBvZnJZrGYQpMXfh7Gter2Wf3Aow0Nl9apg62c5CouPrDkQFv z7YOT3kg3p0R3co0mQFVGUUz2fLm6HFAJhwIf+I/Tn6J4DC4ytWIe3NEepPJyjncttRP cwrg== X-Gm-Message-State: AO0yUKUbiSqSiGfR6nGE+j2BMSK64HHYAm5ypIznmrdtTLeWirgoJ3W9 4wuxmsPnfp1IXtErrfO6mIp7cfKLHJnx9MUSUsJxuw== X-Google-Smtp-Source: AK7set9lXgNz5zAMyd2ly9BpIclq+H335JoQGSoThW6/r+45ZGkxOvbiF/SAWEiBcimsNWt4Qevm5H/FgbMm/MqFTPg= X-Received: by 2002:a50:d082:0:b0:4ac:be0b:36ce with SMTP id v2-20020a50d082000000b004acbe0b36cemr6444647edd.4.1677193671613; Thu, 23 Feb 2023 15:07:51 -0800 (PST) MIME-Version: 1.0 References: <20230222163425.2043934-1-sjg@chromium.org> <20230222163425.2043934-31-sjg@chromium.org> <674D0952-F60E-4FD2-A8E4-4EE475EF1822@gmx.de> In-Reply-To: <674D0952-F60E-4FD2-A8E4-4EE475EF1822@gmx.de> From: Simon Glass Date: Thu, 23 Feb 2023 16:07:40 -0700 Message-ID: Subject: Re: [PATCH v5 30/44] lib: Add an SPL config for LIB_UUID To: Heinrich Schuchardt Cc: U-Boot Mailing List , Tom Rini , AKASHI Takahiro , Brandon Maier , Ilias Apalodimas , Kautuk Consul , =?UTF-8?Q?Pali_Roh=C3=A1r?= , Philippe Reynes , Rasmus Villemoes , Stefan Roese , Sughosh Ganu Content-Type: text/plain; charset="UTF-8" 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.6 at phobos.denx.de X-Virus-Status: Clean Hi Heinrich, On Wed, 22 Feb 2023 at 23:19, Heinrich Schuchardt wrote: > > > > Am 22. Februar 2023 17:34:11 MEZ schrieb Simon Glass : > >This is selected by PARTITION_UUIDS which has a separate option for SPL. > >Add an SPL option for LIB_UUID also, so that we can keep them consistent. > > > >Also add one for PARTITION_TYPE_GUID to avoid a build error in part_efi.c > >which wants to call a uuid function in SPL. > > > >Signed-off-by: Simon Glass > >--- > > > >(no changes since v1) > > > > disk/Kconfig | 8 ++++++++ > > lib/Kconfig | 4 ++++ > > 2 files changed, 12 insertions(+) > > > >diff --git a/disk/Kconfig b/disk/Kconfig > >index c9b9dbaf1a6..817b7c8c76d 100644 > >--- a/disk/Kconfig > >+++ b/disk/Kconfig > >@@ -149,6 +149,7 @@ config SPL_PARTITION_UUIDS > > bool "Enable support of UUID for partition in SPL" > > depends on SPL_PARTITIONS > > default y if SPL_EFI_PARTITION > >+ select SPL_LIB_UUID > > > > config PARTITION_TYPE_GUID > > bool "Enable support of GUID for partition type" > >@@ -157,4 +158,11 @@ config PARTITION_TYPE_GUID > > Activate the configuration of GUID type > > for EFI partition > > > >+config SPL_PARTITION_TYPE_GUID > > Hello Simon, > > you have seen my series for using the partition type guid to load main U-Boot. I would like to put that change into v2023.04. > > If my series goes in first, we will have to add a patch to this series to adjust dependencies. OK > > Can we use the mmc driver in sandbox_spl for testing loading main U-Boot from mmc based on different criteria like partition number, partion_type_guid, file name? > Yes you can. But I suggest using sandbox_vpl, since in that build we are using OF_REAL in SPL, i.e. it has an actual device tree. That means you won't have to adjust the sandbox mmc driver to use of-platdata (not that it would be particularly tricky). You'll need to update 'TEST_PY_TEST_SPEC: "test_vpl_help or test_spl"' in CI though, so it runs. Regards, Simon