From patchwork Mon Feb 6 19:04:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1738363 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=Fp34iBKh; 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 4P9bW40Mfnz23y2 for ; Tue, 7 Feb 2023 06:12:48 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 10D7E85C58; Mon, 6 Feb 2023 20:10:44 +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="Fp34iBKh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BB93385C65; Mon, 6 Feb 2023 20:09:25 +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-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) (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 85E8485C56 for ; Mon, 6 Feb 2023 20:09:12 +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-x12c.google.com with SMTP id l7so5125264ilf.0 for ; Mon, 06 Feb 2023 11:09:12 -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=AombHoxxwb9BUBgnn/SB0xiRjHcNOO8nGus/VdvIgJE=; b=Fp34iBKhIBKBLIG+KeRuCZlLT+NUKNQCp9kIoRV1ysWL44V4vLnvQWcDXhviVTqjOZ dYJ5g2c9wBvT0qAqF9muttE2efaG/gpgwSIVRaqrBc/uJudb6kaGpPRI2iCyYYrgRnLF vTVhscGGjzT7jI+CxSn8vzCmY6KPHO6Nc8XAA= 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=AombHoxxwb9BUBgnn/SB0xiRjHcNOO8nGus/VdvIgJE=; b=vE01E6xu9SIEu/BBAbw2TmL7PGs65iHxywhoyfiwxZ7cHG/YkhoqJftYXxN9w7nMGu +zyFAE0/912cGjW+Pvsh3Mhlburl6FCQLh1SJqajagusn0aL2R3WJl9ak/go0bkFeoG+ wDkFBrBfLC8pEaB4U0JYgWWyn6+SIIL/KPVGfqSUpbN3vQZE6HR+15QNz6/fLXtk9gRE Gbo9YGhlkcLgzag1buoAwHzj7h5SZKls/pks10RElX3MPmzugt4MUPKrYSA00h/1KNjw yzvFoovYr/rAwrPV2W/YZzSad7sH62q+RssjkuAqzI7AApcPkLmiFaIlMeLDcgdyHgeH zaGA== X-Gm-Message-State: AO0yUKUTXM7C1K1H6vsFwMP68LqT8m5ULYiKRkce9ZsXF9nu4dOgpOsB D6HFNN2/bg2R0dIgy0KP0I5EwgAoX0F/iatj X-Google-Smtp-Source: AK7set+BfFMc4IDhCtOVWnSi+JQuxIj5vw32OhRUsnH8WjdX2ryspzJIw59x310Pcy3sJXDTKnYN/A== X-Received: by 2002:a05:6e02:1cad:b0:310:c566:4692 with SMTP id x13-20020a056e021cad00b00310c5664692mr249545ill.22.1675710550465; Mon, 06 Feb 2023 11:09:10 -0800 (PST) Received: from kea.bld.corp.google.com ([2620:15c:183:200:34e9:6977:1cac:fd32]) by smtp.gmail.com with ESMTPSA id t24-20020a028798000000b00375a885f908sm749878jai.36.2023.02.06.11.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Feb 2023 11:09:10 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH v3 27/81] cmd: Add an SPL Kconfig for CMDLINE and HUSH Date: Mon, 6 Feb 2023 12:04:55 -0700 Message-Id: <20230206190550.1692420-28-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.519.gcb327c4b5f-goog In-Reply-To: <20230206190550.1692420-1-sjg@chromium.org> References: <20230206190550.1692420-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 At present we rely on this not existing to avoid building various command-line features. But with the new split configs this does not work. Add separates Kconfigs instead. Signed-off-by: Simon Glass --- (no changes since v1) cmd/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index 82321bd3293..f6a355422fe 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -23,6 +23,16 @@ config HUSH_PARSER If disabled, you get the old, much simpler behaviour with a somewhat smaller memory footprint. +config SPL_CMDLINE + def_bool n + help + Dummy option to ensure that the command line is not enabled in SPL. + +config SPL_HUSH_PARSER + def_bool n + help + Dummy option to ensure that the hush parser is not enabled in SPL. + config CMDLINE_EDITING bool "Enable command line editing" depends on CMDLINE