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 DFE09C77B73 for ; Sat, 6 May 2023 14:27:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6A60085E72; Sat, 6 May 2023 16:27:19 +0200 (CEST) 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="LCDbsqo2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5145E85E81; Sat, 6 May 2023 16:27:18 +0200 (CEST) Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) (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 661B485E72 for ; Sat, 6 May 2023 16:27:15 +0200 (CEST) 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-x12b.google.com with SMTP id e9e14a558f8ab-3310c01beb9so21445445ab.2 for ; Sat, 06 May 2023 07:27:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1683383234; x=1685975234; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=4ip7myzIKDysuWQXiRANffBIy7ekfd38qdrnOOCJrfc=; b=LCDbsqo2x4CWFtUsFuOqtAtudz8F4O0u5mMHkdQzd6wWvPJHnQj6pf2e95sMOyqb5D wyvXwvhnSD4csrekgBvV6mlbk/WLeNKOX0VwCFdFPhAv/rqQvU6y/NePwUDoOrqXWZQV MKmKh3Lzy2RRt7pi/D3ttITORC97kfJabAq4A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683383234; x=1685975234; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4ip7myzIKDysuWQXiRANffBIy7ekfd38qdrnOOCJrfc=; b=MryjqPITu1gBgerEtJwezN3a7dLt7rbFY6KEV2QRSkIDiOgSzWnjpxyWeu5WPrgexD vcbMX5c6mLxeHoJW5tE2Qj2Q0Xtuf2OxMhrzbVR7D9p/gfSmc+BHL8XvxNIR3m2Iohts pFYgnd8mA6COCQeNcPL+bMfyKPSkYPHg3KtwGHOgi08/vONCTAg1bAP/wZFQIc75X/e+ UAK0ZrzNbY2LT56Ez9FKfUFARXueRvlpFzD3AdndC3FshoUtiK2S8riqT/h1YH04kCkc N2cUE7h6dUKVRLsMXO87wTVNft3MZhQAOkPq863DvWo2UZ45eG2V23hJNqf89p2KbXfg J5Xg== X-Gm-Message-State: AC+VfDyWoK2GIpZwltmkFSAz8NYTBHZR62W93eAE/5qxaO0IJVGy6wQa QDbQOcMJpv3u2C6t10phUwoMzb+yxcCDe6DiZoo= X-Google-Smtp-Source: ACHHUZ6diABDj+Rfpim6ziJEN+QVGP7yxtdMn+eFA6jnSx+IAa5hAeo9RJdxxPjBLQ1iQhOE030Fuw== X-Received: by 2002:a92:d3c7:0:b0:32b:6dac:479f with SMTP id c7-20020a92d3c7000000b0032b6dac479fmr3570268ilh.15.1683383233939; Sat, 06 May 2023 07:27:13 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id t15-20020a02b18f000000b004063842e6aasm692070jah.46.2023.05.06.07.27.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 May 2023 07:27:13 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Andrew Davis , Heinrich Schuchardt , Ilias Apalodimas , John Keeping , Masahisa Kojima , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Stefan Roese , Tobias Waldekranz Subject: [PATCH] bootstd: Correct default boot command Date: Sat, 6 May 2023 08:27:09 -0600 Message-ID: <20230506142709.1382495-1-sjg@chromium.org> X-Mailer: git-send-email 2.40.1.521.gf1e218fcd8-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The patch to relax flag requirements was not accepted[1], so we still have to have separate bootcommands depending on CMD_BOOTFLOW_FULL. The previous attempt at this did not work, since it used the wrong name for the options. Fix this and change the message to mention BOOTSTD_FULL since this affects not just the flags, but all functionality, so is more likely what the user wants. Drop the useless condition on CMD_BOOTFLOW_FULL while we are here. [1] https://patchwork.ozlabs.org/project/uboot/patch/20230329071655.1959513-2-sjg@chromium.org/ Signed-off-by: Simon Glass Fixes: a91492b6e9c ("bootstd: Provide a default command") --- boot/Kconfig | 4 ++-- cmd/Kconfig | 2 +- cmd/bootflow.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/boot/Kconfig b/boot/Kconfig index 9882812eecb8..fad8e530b17f 100644 --- a/boot/Kconfig +++ b/boot/Kconfig @@ -1554,8 +1554,8 @@ config USE_BOOTCOMMAND config BOOTCOMMAND string "bootcmd value" depends on USE_BOOTCOMMAND && !USE_DEFAULT_ENV_FILE - default "bootflow scan -lb" if BOOTSTD_BOOTCOMMAND && CMD_BOOTFLOW_FULL - default "bootflow scan" if BOOTSTD_BOOTCOMMAND && !CMD_BOOTFLOW_FULL + default "bootflow scan -lb" if BOOTSTD_DEFAULTS && CMD_BOOTFLOW_FULL + default "bootflow scan" if BOOTSTD_DEFAULTS && !CMD_BOOTFLOW_FULL default "run distro_bootcmd" if !BOOTSTD_BOOTCOMMAND && DISTRO_DEFAULTS help This is the string of commands that will be used as bootcmd and if diff --git a/cmd/Kconfig b/cmd/Kconfig index e45b8847aef7..a630a343e25d 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -258,7 +258,7 @@ config CMD_BOOTFLOW config CMD_BOOTFLOW_FULL bool "bootflow - extract subcommands" depends on BOOTSTD_FULL - default y if BOOTSTD_FULL + default y help Add the ability to list the available bootflows, select one and obtain information about it. diff --git a/cmd/bootflow.c b/cmd/bootflow.c index cfe342269896..6cc58e48c7d0 100644 --- a/cmd/bootflow.c +++ b/cmd/bootflow.c @@ -125,7 +125,7 @@ static int do_bootflow_scan(struct cmd_tbl *cmdtp, int flag, int argc, dev = std->cur_bootdev; } else { if (has_args) { - printf("Flags not supported: enable CONFIG_BOOTFLOW_FULL\n"); + printf("Flags not supported: enable CONFIG_BOOTSTD_FULL\n"); return CMD_RET_USAGE; } boot = true; -- 2.40.1.521.gf1e218fcd8-goog