From patchwork Thu Oct 26 18:31:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 738337 Delivered-To: patch@linaro.org Received: by 2002:a5d:5101:0:b0:32d:baff:b0ca with SMTP id s1csp33540wrt; Thu, 26 Oct 2023 11:35:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEAECSxs4I/r7nzwgpup2NUVz8VOAb0NRlNw0Y+J5HgeoQrW5J+kfsfgx14uQ3lOkhOfaF5 X-Received: by 2002:a05:600c:154e:b0:408:4083:fbf2 with SMTP id f14-20020a05600c154e00b004084083fbf2mr490607wmg.22.1698345344461; Thu, 26 Oct 2023 11:35:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698345344; cv=none; d=google.com; s=arc-20160816; b=B1/GfOlT0Sj3LCpFGL6zmoSqYEC8Ga55uQTE+hP9x8gf8JNElwTml2dM1Lk5pEHxmO W9aYXVJIcc+XUQy95tSdCG43FFC3+tafSuiOhZeZpipIjQWfInsvTNHBjFubVR3hhoSJ KC/pjeSr2zMug/cqx+Wi5MKkj1Ag+TL1a0czkrkaBJuEXrBJqfn5kXMqC2BrBJFjPUJE res1W48MYk6nU0DamK4lrgQ2zx7JsrcDlGFXxsCIUpYfo4ID29lQOGGSz7IwdJ8jnaGB smzocmFj2vvHpJ9p3TDUi65/i/RjdpmYu7dEkwc5bm1sbWYNU8fLbpRzNkzPfMBds+fK /kPA== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Mt3ZpnjRNZW37GgkDuYfBmQyv5NUf+wmGjucbYRybnQ=; fh=QlpVJKHiTQIYcwu3fehdzfZt6NmIUVRGka8LWg9vj3w=; b=KSLohbWbk/+/eCG8udOriJ7rZtw+DQeiqmBJxT3OeOCfnkv3vtjfdNqWXkVRqrkXWn Q9wph7s/NVFS3bjc05aoNCgV32JtkZP1PaEwY6Gs2kUpOSqGxEflV3LxJLi09SNEiiIC pGB5oOudAo6Ei3vE5GzWKYsp7LN6gpXnl2kz70yQHfcG47Fy/7I6Equ5Y2ynkkYYD9Lp HvXHoaZRktDUIlJz/CV+Y8qyc4fJufIypaML1XX69EMZVvdOf6LPZ2Vo1xBJJL6bFinG nMrDx7Y5gUNX6WlBOg3PkMRcklQQKhbFHPuIJGDDLuY6KoGelFUpkdRXb1RzkYXO6hWK ZKoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@konsulko.com header.s=google header.b=EU8+PV0l; 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=konsulko.com 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 h16-20020adffd50000000b0032da54d8a79si16310wrs.801.2023.10.26.11.35.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 11:35:44 -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=@konsulko.com header.s=google header.b=EU8+PV0l; 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=konsulko.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4161987BBB; Thu, 26 Oct 2023 20:32:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com 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=konsulko.com header.i=@konsulko.com header.b="EU8+PV0l"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DF18C87B77; Thu, 26 Oct 2023 20:32:02 +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-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) (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 5D84C87B79 for ; Thu, 26 Oct 2023 20:32:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x831.google.com with SMTP id d75a77b69052e-41cd6e1d4fbso9044221cf.1 for ; Thu, 26 Oct 2023 11:32:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1698345119; x=1698949919; darn=lists.denx.de; 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=Mt3ZpnjRNZW37GgkDuYfBmQyv5NUf+wmGjucbYRybnQ=; b=EU8+PV0l61A5Ql9wIwu7UYRRHj+V7ixpHsg4QK0HaDEOH+G7997a7P3OHhqWZsXn4x gHqHJeLZAQt3dI/Aox3sZB9IRIhDIK377ugcVXZbRaG5NfmXxRWhZZ9NthcaSVI7zNjd VPEBtVwT/JvtxRmzyzlfMSDP1xfOUdqdnfrs8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698345119; x=1698949919; 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=Mt3ZpnjRNZW37GgkDuYfBmQyv5NUf+wmGjucbYRybnQ=; b=vgxzXkpAvjz4dpUakc4+XtFWR5geKeAijNSKnh+3instwtrmTNnerVZL3mfZeg5aQw N04DpkB9xGVr2QSnH1iBpihq3lIW0n2VOkKmbXodb/zo3vXuwIvyYOGadcNJ7Vl0OK2j 4tTZU5VWktaGS7u6IGjjqaMyR0Uq1OeC0LWagHhwHXOLOfYEVW4l6GKirf0tVDgWae02 ejjujYMKWj8p+ahoLefYAtHBxJrlifnq3wmZwzitEHvXOzchjdLzmGGJz1L0pj8V9L+E rtWFOstgeeY/PQLoLXXcar5wDiLf+ET1BF8b06RFzMepuPBVpljuW+6dqKh0U6FFf4Vx pxHg== X-Gm-Message-State: AOJu0YzrMdoNTuaVrLbGIFpjySd2/BxW/0yXJ+woO8B3duuwAq+n+gOj wVUbpscHwTIg8C84VrhUWx/3vKdUvwvqY/nbIuOkcg== X-Received: by 2002:ad4:5c46:0:b0:66d:28fa:f4 with SMTP id a6-20020ad45c46000000b0066d28fa00f4mr601371qva.2.1698345118908; Thu, 26 Oct 2023 11:31:58 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b00-6400-6a0e-a72f-3fdd-31b7.res6.spectrum.com. [2603:6081:7b00:6400:6a0e:a72f:3fdd:31b7]) by smtp.gmail.com with ESMTPSA id az39-20020a05620a172700b00777611164c5sm5175623qkb.106.2023.10.26.11.31.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 11:31:58 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Cc: AKASHI Takahiro Subject: [v5 23/30] lib: uuid: move CONFIG_RANDOM_UUID Date: Thu, 26 Oct 2023 14:31:31 -0400 Message-Id: <20231026183138.636948-23-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231026183138.636948-1-trini@konsulko.com> References: <20231026183138.636948-1-trini@konsulko.com> 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.8 at phobos.denx.de X-Virus-Status: Clean From: AKASHI Takahiro This option is independent from any commands and should be managed under lib. For instance, drivers/block/rkmtd.c is a user. It would be better to remove this configuration. Signed-off-by: AKASHI Takahiro Reviewed-by: Tom Rini --- Changes in v5: - Take AKASHI Takahiro's RFC and add my RB tag --- cmd/Kconfig | 7 ------- lib/Kconfig | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index 0eb739203ade..dcf1e54c5ddc 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1132,13 +1132,6 @@ config CMD_GPT Enable the 'gpt' command to ready and write GPT style partition tables. -config RANDOM_UUID - bool "GPT Random UUID generation" - select LIB_UUID - help - Enable the generation of partitions with random UUIDs if none - are provided. - config CMD_GPT_RENAME bool "GPT partition renaming commands" depends on CMD_GPT diff --git a/lib/Kconfig b/lib/Kconfig index f6ca559897e7..b6d580c30615 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -74,6 +74,13 @@ config HAVE_PRIVATE_LIBGCC config LIB_UUID bool +config RANDOM_UUID + bool "GPT Random UUID generation" + select LIB_UUID + help + Enable the generation of partitions with random UUIDs if none + are provided. + config SPL_LIB_UUID depends on SPL bool