From patchwork Sun Feb 12 23:15:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1741256 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=UNPcQFFZ; 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 4PFPCd18tGz23qt for ; Mon, 13 Feb 2023 10:42:37 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 55CEC85615; Mon, 13 Feb 2023 00:42:32 +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="UNPcQFFZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6450085760; Mon, 13 Feb 2023 00:18:09 +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-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) (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 227E1854EF for ; Mon, 13 Feb 2023 00:17:46 +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-io1-xd29.google.com with SMTP id j17so3935501ioa.9 for ; Sun, 12 Feb 2023 15:17:46 -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=5vWJfec7WMURJWmhXULZow9Qa20qCdThhVXtOMYqz/I=; b=UNPcQFFZVXSNQBAAZIHs127cZ6PyV+OOUztTnaLjxV6GS909lVht+ykE6d6ytc1Jfh rdCmiTHDIcanEUNId/pvD2lNAm0KmQHPugOdw6nzTGI7aeClh/V18gb+IeKde5YxFnU5 Z5DaSy3cA8oxaKTTYO3dVDl+s9qZz4HC+yQUg= 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=5vWJfec7WMURJWmhXULZow9Qa20qCdThhVXtOMYqz/I=; b=Bq6z8w9BUckqEIQ4BTfT1tp3RnIUjAcgXh0mY32nIOFGsW8HgwkTb4TlYo+C67RyQ4 cWWLF7WkQ2YLDFZG0zPS08VaIQTdEPtfY9NKBtFV1ZFjW/Je9+H3fu4s/Pli9dnyRemj ZTNSktMVCmAQR/z6V+OZhajITP+jEZkbd3EgATtgz+OgKGsFDLyDDuNjjcQu6kyl/soC qeZ5ptbopfr16PSlmJRa7wXn9PD6pDaub7ZSu0rsSK8cuSVVgoEvQpzIrxhXHUxpeMwy isxcyalukuIQ3P2rerWcvI6O65nxK6xG2j+n0B5CTY4zL6Aw+uvM3RhIEHefZDUGUX2D KjDA== X-Gm-Message-State: AO0yUKVLWMpBHXZIBXZXrZIGfdPXYRv5dZ6jPG6Mxy/tQSLhf/VKV7Xk szZtl7jki4LuhOsO4RDP5xdAbClmF0I3p0od X-Google-Smtp-Source: AK7set+gu9XpJhxJxWmlAs0HP5eNbxMehaqOOWXvuLJxmKLfhkVSZCSPA4CcHMZYhwLKk0CkpJncKA== X-Received: by 2002:a6b:e007:0:b0:734:87f8:8f88 with SMTP id z7-20020a6be007000000b0073487f88f88mr17425066iog.10.1676243865558; Sun, 12 Feb 2023 15:17:45 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id n16-20020a6b8b10000000b006dfbd35e995sm3627849iod.21.2023.02.12.15.17.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Feb 2023 15:17:45 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH v3 40/95] cmd: Add SPL Kconfigs for CMDLINE and HUSH Date: Sun, 12 Feb 2023 16:15:43 -0700 Message-Id: <20230212231638.1134219-41-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.581.gbfd45094c4-goog In-Reply-To: <20230212231638.1134219-1-sjg@chromium.org> References: <20230212231638.1134219-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 --- Changes in v3: - Rework commit submit - Use a consistent format for the comment cmd/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index c8792af883e..12b4dc7946f 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -23,6 +23,12 @@ config HUSH_PARSER If disabled, you get the old, much simpler behaviour with a somewhat smaller memory footprint. +config SPL_CMDLINE + def_bool n # Ensure that the command line is not enabled (SPL) + +config SPL_HUSH_PARSER + def_bool n # Eensure that the hush parser is not enabled (SPL) + config CMDLINE_EDITING bool "Enable command line editing" depends on CMDLINE