From mboxrd@z Thu Jan 1 00:00:00 1970 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 DBAC0C61DA4 for ; Wed, 22 Feb 2023 16:47:18 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B2E2585B92; Wed, 22 Feb 2023 17:38:10 +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="ODCrE1OT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2DCF985B2B; Wed, 22 Feb 2023 17:36:21 +0100 (CET) Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) (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 71F8D85B43 for ; Wed, 22 Feb 2023 17:35:19 +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-xd2e.google.com with SMTP id f14so971061iow.5 for ; Wed, 22 Feb 2023 08:35:19 -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=lSKWfzGKYPN4EzDbT21VOJyvK0vt6nF1EA9596XLXoc=; b=ODCrE1OTqhZquKdhH5hALl5w2cGwRnSDAr7z7iBuMnyw+UtksAl/slM21GzSouBtTY Il1KmlJ5YbsjpSE5T5aBrnCRRXzc7XqqArAOiJsG6b0Loat0oQEyGSM6cf3LN61vZJwl bIYsvYuspsiZep2aq2bgvirPX2Bsi1DHiLzIQ= 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=lSKWfzGKYPN4EzDbT21VOJyvK0vt6nF1EA9596XLXoc=; b=ufbY+DZ2/WB8MSF0YIRRsoHqs8P2uNq59bOQ88BuYerUzCCBbCQPKtd49F4wIqetrF J71yvtADwaHXKFqSSQylUgHmtryNzzEhz8j4f9lYcXzaBx3u2iBTaNKW3srobjEKb+R2 zDQm/7LzOlZL1GqeDGp5ji5qZAWD6OuKTaXyXFoh4tazA2GSKpaFgJJSlSXaotT4s8mt uLe2GnwhuTR6OTf+3atqpq9o1LlCs4Zadlv8pnEwit1OZuiy03Nlw6Scn3fwqlL0CgC/ lXKn34lfCJkcxt+eIMbMBPdBrYFLNeVUUiLurOMM8HR++y7QAMmQv+jJV7lK7YfJf+Ns qHnA== X-Gm-Message-State: AO0yUKXJcJVlZO920SlF2k/jBJ+jqypcN3uPu/TQQCanGrATvP5I8R8N RAfItFdnFtepcjlStZcyDNV17EYQFRXmGvLC X-Google-Smtp-Source: AK7set/OJIrdTdehEwG907EDTIgfk3sIgk90LG7W5gYlTYPlKgIhKUbf26uVWE8Kj2bKCREiGv+mpA== X-Received: by 2002:a5d:9a0a:0:b0:73a:3985:1e6 with SMTP id s10-20020a5d9a0a000000b0073a398501e6mr954214iol.3.1677083718905; Wed, 22 Feb 2023 08:35:18 -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 z26-20020a056602005a00b00716eb44b97esm2164541ioz.27.2023.02.22.08.35.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 08:35:18 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Heinrich Schuchardt , John Keeping Subject: [PATCH v5 44/44] command: Don't allow commands in SPL Date: Wed, 22 Feb 2023 09:34:25 -0700 Message-Id: <20230222163425.2043934-45-sjg@chromium.org> X-Mailer: git-send-email 2.39.2.637.g21b0678d19-goog In-Reply-To: <20230222163425.2043934-1-sjg@chromium.org> References: <20230222163425.2043934-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 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 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 --- Changes in v5: - Drop FSL_ISBC_KEY_EXT patch as it changes the size - Drop PHY_CADENCE_SIERRA patch as it changes the size Changes in v3: - Add a new patch to disallow commands in SPL include/command.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, \ -- 2.39.2.637.g21b0678d19-goog