From patchwork Sat Feb 4 00:25:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1737380 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=htFk7YvV; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P7tmM1cDfz23hn for ; Sat, 4 Feb 2023 11:33:23 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D441086038; Sat, 4 Feb 2023 01:29:46 +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="htFk7YvV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5F6718605B; Sat, 4 Feb 2023 01:29:28 +0100 (CET) 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,DKIMWL_WL_HIGH, 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-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) (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 ACE1586003 for ; Sat, 4 Feb 2023 01:28:50 +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@chromium.org Received: by mail-il1-x129.google.com with SMTP id l7so2793620ilf.0 for ; Fri, 03 Feb 2023 16:28:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HQeNJYI/HQF+u9VdQ3+BR4uHQHtNMd5LvxPrLkFu8nQ=; b=htFk7YvVWSrswgBHsR7USEqvRfoDMkae2Tylergze3NRg0+CKfysZ9UqIgzXecPAw4 rZ/GIKg/EzBXsiZ+yGrBCGlBVk+U6+d+R1zV8m/hFTCshrabHO+LgJXhBVo7+ln6VNSr wLuw8zSxIo6n2WjJcnVPEWBd7aXirGJszqF90= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HQeNJYI/HQF+u9VdQ3+BR4uHQHtNMd5LvxPrLkFu8nQ=; b=jjDA78tKVNE+d4H4VS2mN/JfhRJuE+sxslY4wflefED8YfHjfGVLA1mfMcPCC2wKhi whAb0wtrMyaWz0JQDvbhnkqUlFi0bPpdjWZLYd0upy0kWx6obeHYzhiCdXGxzkLjquHS j7bfKAUij0vvrf+ojx3mIqf5Guq/RWUF/CMyWfLWbqHeWdMiqy+kQu5bkYrxFOIxfHKU VfmAOJK74wr3dVTehV7cUzmpkAkzCH53T2+FnchYMG0fRUffxKQ9t4DdH2+QbXruzbIx U6v1oWhRHCmh4tZDUJ4BR4yqvwaMSsPVPorDWR5S1KdyyYuW+b1dQtyWnwVwM+Ry9J7E iZxQ== X-Gm-Message-State: AO0yUKWDvotlgvmq1EpWriVMjWmnMlnKMcUMH2BhpD453btCEBEGVnEY jOcAGz4ymqB8c3WC49kn/Pk4X95dl4MBvWK7 X-Google-Smtp-Source: AK7set+hsbGHOirYYWicMUkjSbWZPJNdg0I5KAOfB2xgj32TyFMDNiuBtv0VTwgt+u6lbHfODvUmdA== X-Received: by 2002:a92:c26d:0:b0:310:fbe4:52cc with SMTP id h13-20020a92c26d000000b00310fbe452ccmr9582532ild.4.1675470495668; Fri, 03 Feb 2023 16:28:15 -0800 (PST) Received: from kea.bld.corp.google.com ([2620:15c:183:200:5b65:12f1:51b7:8157]) by smtp.gmail.com with ESMTPSA id j12-20020a02cc6c000000b003adab954c5asm1270255jaq.153.2023.02.03.16.28.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Feb 2023 16:28:15 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [RFC PATCH v2 22/56] lib: Add an SPL config for LIB_UUID Date: Fri, 3 Feb 2023 17:25:45 -0700 Message-Id: <20230204002619.938387-23-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.519.gcb327c4b5f-goog In-Reply-To: <20230204002619.938387-1-sjg@chromium.org> References: <20230204002619.938387-1-sjg@chromium.org> MIME-Version: 1.0 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 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 + bool "Enable support of GUID for partition type (SPL)" + depends on SPL_EFI_PARTITION + help + Activate the configuration of GUID type + for EFI partition + endmenu diff --git a/lib/Kconfig b/lib/Kconfig index 6de50f31bc0..ffff5a316d4 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -74,6 +74,10 @@ config HAVE_PRIVATE_LIBGCC config LIB_UUID bool +config SPL_LIB_UUID + depends on SPL + bool + config SEMIHOSTING bool "Support semihosting" depends on ARM || RISCV