From patchwork Thu Oct 26 18:31:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1855944 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; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256 header.s=google header.b=KwpPKTxj; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SGZGc6910z202k for ; Fri, 27 Oct 2023 05:35:04 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 45FD987BB3; Thu, 26 Oct 2023 20:32:16 +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="KwpPKTxj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CAE808763F; Thu, 26 Oct 2023 20:32:00 +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-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) (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 9BD4187B51 for ; Thu, 26 Oct 2023 20:31:57 +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-qk1-x736.google.com with SMTP id af79cd13be357-778927f2dd3so86434285a.2 for ; Thu, 26 Oct 2023 11:31:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1698345116; x=1698949916; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=WiEHq7p8aMvtiykxv8utIa5Q8Rliz9M4cSuuKPx2Mrs=; b=KwpPKTxjUE8PXnojcM0ETyoM7ALMyEwk+/RWEnWDpQe+6230xASIu/JHOSrMdnIzuZ 0CAZvqNwO/afpZyxarcfVS0IN12w0BpAxFVWWPtPE9PxKfm54DE39cNv0s2IfXWlTxIA 8lQLPGFMRF+zEnduP5XUTO23gSCEwJRX6T7jo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698345116; x=1698949916; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WiEHq7p8aMvtiykxv8utIa5Q8Rliz9M4cSuuKPx2Mrs=; b=R0XVQeUEcGnWufEONv9j7qy2bTouF688fGiuJ0GbcE5Vxr9Puk1FIwSyLWV64YnOSE JX2us91A3DpkBk+ZicDryb3Cz5QZy1EQyC72T7minbn7VVdojoKgsq2qqAwsPsC1gbd/ xug6rcFyMnYGNUJumIof3LaN90LYj7gmtEhISolt0aNpoYP3f84bSJgXOZv1o5Li6KqL pnXobTcMGNZ1SYM6310TJzam9fmBotOvOewiBdq8mlOu1yMuAq0cAAOqVcMOk1IxYnnE cUBOuzoYaGPX4HE58ZoHFvC2joOpz3/G/hmhY9OIjjumkDdcqccn3tmDmqTPN84s2bak yzag== X-Gm-Message-State: AOJu0YzyI4bG3JcU0S4nbgMvsq1WW6Vg4vHDeBRQ5lUNgoHyeF9WANrt n37opw+Rpz8IUarnBjNkNZNSLykAfy27sox4RxKidQ== X-Google-Smtp-Source: AGHT+IHV/lHr0DvAcqYvLYMGMLvtxNQSX7p3VtLNKuy8sZdW4nWXbf6P0rjHgbTSzvxCmcntBPuB3w== X-Received: by 2002:a05:620a:1998:b0:778:9886:71cc with SMTP id bm24-20020a05620a199800b00778988671ccmr152890qkb.19.1698345116137; Thu, 26 Oct 2023 11:31:56 -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.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 11:31:55 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [v5 20/30] boot: Make preboot and bootcmd require CMDLINE Date: Thu, 26 Oct 2023 14:31:28 -0400 Message-Id: <20231026183138.636948-20-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 In order for a predefined "preboot" or "bootcmd" to be executed by the running system we must have a command line. Add CMDLINE as a dependency. Signed-off-by: Tom Rini --- boot/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boot/Kconfig b/boot/Kconfig index 40a04f43ee3d..fabf6fec2195 100644 --- a/boot/Kconfig +++ b/boot/Kconfig @@ -1558,6 +1558,7 @@ config BOOTARGS_SUBST config USE_BOOTCOMMAND bool "Enable a default value for bootcmd" + depends on CMDLINE help Provide a default value for the bootcmd entry in the environment. If autoboot is enabled this is what will be run automatically. Enable @@ -1577,6 +1578,7 @@ config BOOTCOMMAND config USE_PREBOOT bool "Enable preboot" + depends on CMDLINE help When this option is enabled, the existence of the environment variable "preboot" will be checked immediately before starting the