Message ID | 20230206190550.1692420-69-sjg@chromium.org |
---|---|
State | RFC |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=<UNKNOWN>) 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=ltfC0q3R; 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 4P9bl11cwfz23r8 for <incoming@patchwork.ozlabs.org>; Tue, 7 Feb 2023 06:23:09 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D6BB38613F; Mon, 6 Feb 2023 20:13:54 +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="ltfC0q3R"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id ACA5485EE9; Mon, 6 Feb 2023 20:10:49 +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-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) (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 B8F7585C88 for <u-boot@lists.denx.de>; Mon, 6 Feb 2023 20:10:07 +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-x129.google.com with SMTP id w2so1401510ilg.8 for <u-boot@lists.denx.de>; Mon, 06 Feb 2023 11:10:07 -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=SSfzCe2LmkfYukEN9yXZ5/LYkkXsmpZ1Hj/oILST2RI=; b=ltfC0q3Rsi6xJH95aGOkIn+tIrxREhyJW3TF197JE+rXWpRuxbMAfWNEVUuRpf2c9i +iTfb6GonDXeuE38sc85UcmDYwh8jLL+oMvwsN++OzmI9AxN37/zkiuh38KpP5ewM+t2 N0P5vxYw+xZR9qxyt2pQyS+TnVa8L1qMyOp24= 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=SSfzCe2LmkfYukEN9yXZ5/LYkkXsmpZ1Hj/oILST2RI=; b=7rQEuEeW9wybVhGwSZV4VDUejVyPKVFL5TmteW5Fhk6FxBcVaXf3O3VFV55xHcqVWJ RrGDqW6Z+unHAnH9XSG6dKzVsfuxrs8MFwzQS3TTBNgX4rFjDDx/Yr8Cvb0cNAzssMbU UoA90NlD0qF8CXQJAnRZNvrA2AEYpiqlsd66KXCbUH4iTm76fERizooqsOJLmRTklN3A YDtgbGJLkYanQC2wlJGgwgCv3Yy+sjAAqs+uHW9S6csyPqf/xTp6oArjlZwtESjMfJFw hqblcOKXTm7CJneS+XZnoAdltz14/iAwmQBOJhAYsRfcDTALFy7OO37lQn3BOHKnR5/5 8/XQ== X-Gm-Message-State: AO0yUKWsSx+l/k0krmGIV4lAov9/zZbeZ0sGEqEPUlcr/cGvXwmgpkjW yzxS+k8+8PJ+S1PoFEPapusXUvz9oqnib5+o X-Google-Smtp-Source: AK7set/J8OfFz/fmP8nuxZ/NK7LfH+D3Az3zvv85Dymq84P0psKnZMMhGbHTXVEH3g4rXd98xsa+3w== X-Received: by 2002:a05:6e02:1b88:b0:303:8cff:983b with SMTP id h8-20020a056e021b8800b003038cff983bmr322750ili.14.1675710585416; Mon, 06 Feb 2023 11:09:45 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Feb 2023 11:09:45 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org> Subject: [PATCH v3 68/81] command: Don't allow commands in SPL Date: Mon, 6 Feb 2023 12:05:36 -0700 Message-Id: <20230206190550.1692420-69-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 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean |
Series |
RFC: Migrate to split config
|
expand
|
diff --git a/include/command.h b/include/command.h index 0db48980624..1b018cb98e7 100644 --- a/include/command.h +++ b/include/command.h @@ -376,7 +376,7 @@ int cmd_source_script(ulong addr, const char *fit_uname, const char *confname); U_BOOT_SUBCMDS_DO_CMD(_cmdname) \ U_BOOT_SUBCMDS_COMPLETE(_cmdname) -#ifdef CONFIG_CMDLINE +#if CONFIG_IS_ENABLED(CMDLINE) #define U_BOOT_CMDREP_MKENT_COMPLETE(_name, _maxargs, _cmd_rep, \ _usage, _help, _comp) \ { #_name, _maxargs, _cmd_rep, cmd_discard_repeatable, \
At present we compile commands into U-Boot SPL even though they cannot be used. This wastes space. Adjust the condition to avoid this. Signed-off-by: Simon Glass <sjg@chromium.org> --- Changes in v3: - Add a new patch to disallow commands in SPL include/command.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)