From patchwork Thu Oct 26 05:30:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 738329 Delivered-To: patch@linaro.org Received: by 2002:adf:f842:0:b0:32d:baff:b0ca with SMTP id d2csp638978wrq; Wed, 25 Oct 2023 22:33:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGI0sMrAzuzUNe6/bj3fOOOFPPsb5vUgTnf75HmBY3x5LoswaXra+ZNEVTrkZTcEAG3O6IK X-Received: by 2002:adf:e4cf:0:b0:32d:81f7:43e4 with SMTP id v15-20020adfe4cf000000b0032d81f743e4mr12888491wrm.51.1698298428219; Wed, 25 Oct 2023 22:33:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698298428; cv=none; d=google.com; s=arc-20160816; b=u5t4vrSJqiNnvQh7vk5ulv9MuUgmN8S470GhC+SlbZSmVtyNMLi+OvZzuDfWC/RONn PIrbsWnnmzBK4OzGNdsZ0iYNek5FzmzyyCvMzEbbPtHgbWy34fps/Gd5baL/tWxSFiZX UMX13j2z+jjuCQYa291EsMaf744Chnp2x6zOmaNwFZ9zbsRhBbODoFjIQPI2sHdIqhQo LzcypmQCac9/hhdj2x8VtxVzBSlGZNrsB0IwwqTUjN5QlfQGJJmP1hx8ApsjUhyKXWtb FsmjHafmQVDhkKXI00lLl7FAKI6LLvnSG6gFLeUoejrMZ42flBxshuOYLppaok0QA6Ys slxQ== 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=ZfuXMOte++LWMschC/mgpQI0os8sthmLuLMLob48M3U=; fh=RsKNQde3hXRhkFNkXZDJxhxJUE2DI5qQDMHikPj4pmY=; b=C1SjR6kBJuR52YgPm6muWKO4iVSiB4xL2RInnTM0F9xWYuPzmEphslRx0WIjcy1yUf xe9wwdBBpXymGKi9vaY8qTreqPGAXMreP12DnUyIlUjrT64S/PfMe8DqGudkkGuU52xO W9qSnmo2zrYpAUFQt95DPiNruWOCeUNs2M+5D4JA6O1lA1avAdCKXejGYI4idPZbE1fR X9nqPPbcS0VsMXN0GQBdEj31FPh76ZJS5ESfGy3kqmDRiHf57Gy+HW5NGYzXbKFthvuA v7UEqCjuuykQ7xX9ntKOHgRdmrhdcJ/rA27XwvmpsKm69RizXbAvE5AGR7zzK+msqxCY lAqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ICLZhNb8; 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 a7-20020adfe5c7000000b0031ffe1596e3si8817184wrn.702.2023.10.25.22.33.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 22:33:48 -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=ICLZhNb8; 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 A1E2587B40; Thu, 26 Oct 2023 07:31:51 +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="ICLZhNb8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8560987B24; Thu, 26 Oct 2023 07:31: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-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) (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 2E08787B27 for ; Thu, 26 Oct 2023 07:31: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=takahiro.akashi@linaro.org Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-6bcdfcde944so109762b3a.1 for ; Wed, 25 Oct 2023 22:31:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698298306; x=1698903106; 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=ZfuXMOte++LWMschC/mgpQI0os8sthmLuLMLob48M3U=; b=ICLZhNb8b9pUSwMIljvtVxQYfeclkOQqRkxicFgDdV1BrXq9KPhole/9yS3fGWtIkN g+EFylgTtrJB+OSBE625yWwo4YQVRxTuFGtLoohIKNvrhxgvSGD8J9/0ZwrriwLfhKFd izzKv8qtjRWfSXJnU70zc5SFV1mnxYRqVdgiT5FMt/ZXTLydsoDx2aURCk3Dn20xG4ul TBIP6HId+gYZKdcx4wLDg8kI8aSv1p/xn83uRlM9Y3ZXU8oRGTng+ADhHqnq8Qs1wCsK 6j3pRS4+KDi6Vla4v3FUi0A2KTUcGE8kPc/0R6FJ58YDwiMDFLq/t0iz2zzkoXFzaKC3 qTRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698298306; x=1698903106; 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=ZfuXMOte++LWMschC/mgpQI0os8sthmLuLMLob48M3U=; b=Z4HYXNvBBztek0ogC5kb/RmFZhqlemob3fRtRd6GsJMsawaL271e9NZR6Pbu01ClTY 2hvRQJ2DzaUAqd9TjdFxZakrThHX5rhbtpycByE5TQtcdUyD2WUjsD3sVTiwTB7H51OM ZXN2h6uVo739UTKlVUNQnvJeO3yollKS5+g8VjA7ShbOau+1mRH3z3WRuAuKZe+CGQ0k Z5lJaq1e8gm7IuDYzG0rLFbDU5twXbeqcxNqWOYn5opV/KMroo5r4stLoQ472ojFEG2n uIdekvfaWOsnabxj9JT0mvGJgXo54WR6lUXFDHdkQ8qgStEIFI5i4pZMYkbsqr6BKC/S SSog== X-Gm-Message-State: AOJu0YxrNp3E6VfkqqmMCPN2LKXGBWlT+Qog98jZ/NsKe+DHJ2JRm2UX LCXtvGNMXiVRa6yL1QSip9pjmA== X-Received: by 2002:a05:6a21:33a4:b0:163:c167:964a with SMTP id yy36-20020a056a2133a400b00163c167964amr21430176pzb.1.1698298306544; Wed, 25 Oct 2023 22:31:46 -0700 (PDT) Received: from octopus.. ([2400:4050:c3e1:100:bca9:3af7:89e9:80b7]) by smtp.gmail.com with ESMTPSA id fa13-20020a056a002d0d00b006c06804cd39sm440715pfb.153.2023.10.25.22.31.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 22:31:46 -0700 (PDT) From: AKASHI Takahiro To: trini@konsulko.com, sjg@chromium.org, xypron.glpk@gmx.de, ilias.apalodimas@linaro.org Cc: jbx6244@gmail.com, u-boot@lists.denx.de, AKASHI Takahiro Subject: [RFC 12/13] lib: uuid: move CONFIG_RANDOM_UUID Date: Thu, 26 Oct 2023 14:30:51 +0900 Message-Id: <20231026053052.622453-13-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231026053052.622453-1-takahiro.akashi@linaro.org> References: <20231026053052.622453-1-takahiro.akashi@linaro.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.8 at phobos.denx.de X-Virus-Status: Clean 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 Reviewed-by: Ilias Apalodimas --- cmd/Kconfig | 7 ------- lib/Kconfig | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index 3a8483f7d042..c42745d06b39 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1143,13 +1143,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