From patchwork Mon Mar 14 01:07:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 596887 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3qNfp414r8z9rxv for ; Mon, 14 Mar 2016 12:11:08 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b=nMyaetdQ; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id ACB26A7747; Mon, 14 Mar 2016 02:08:56 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pvqCB9ZoZYzP; Mon, 14 Mar 2016 02:08:56 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2E8FAA772F; Mon, 14 Mar 2016 02:08:56 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id ACAA7A75D5 for ; Mon, 14 Mar 2016 02:08:19 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4b-UJtgTc8Ms for ; Mon, 14 Mar 2016 02:08:19 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-io0-f180.google.com (mail-io0-f180.google.com [209.85.223.180]) by theia.denx.de (Postfix) with ESMTPS id 41E90A76E0 for ; Mon, 14 Mar 2016 02:08:19 +0100 (CET) Received: by mail-io0-f180.google.com with SMTP id m184so205815985iof.1 for ; Sun, 13 Mar 2016 18:08:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=fhfP52qudXtsJ+QpvB8cLHeRm/w1AVP7rz0cyUDhusM=; b=nMyaetdQ/rhVZu6ZTdzXIs/aT5OHzQDfvmmP+9FsZXYZh5WJckbFkcZt5TGyn8gNyX lZtXX54UlrDWzez/rRhblusvXuBc8Hzx0Q1jL1gx0A92eFic08I7Gsv3rL7I8TfWwk1S +d0kFMljj/g4/Wy6GOO/22QysYaO1u9yEPSW6xLoXkYsS3aS25ahYrgVy9cS9NxIuf1I 3nfvRUELOfIwdOXn57LUYCYBwiU7Z2dL3FTQqlRufyn9q/cF2/sJXJzBNbrYgjqi5lXm 29XBknsIOXI4Qia8+dlO4t/cBWADPYBOZJHpP54IeH7zOJlztHyDh4ExZcU9d7IB/Adk bYLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=fhfP52qudXtsJ+QpvB8cLHeRm/w1AVP7rz0cyUDhusM=; b=GqA6ngwIO2UtyoPjOmTkyi5iic5XQHPV7rJGCCioZouEzeJyjJPxAeMyihkIKR8cKu ZfrIXTskghTI6ErZQ1rqbWThzqjVzTkq3DiUenr/9WRAUnTSPLPvhyg0RKnVnBYVPWXk IgxpQMnX1L35qqZaLEz9o4Q/004kopfPIsf+A6HrHc9WHGS8ScQHprqcgYX27r8mSMp9 c7U++0GZ64C35Zft6SPPXtNXAKMiEaaBghO7Y58HnPwZTHvwkPMyNBqNj/9gkmDm27hX f836WUVNkuhKmga8LIVSbCuivT9QkhBBjPsQg3/qpOjI62W6IOcCjpeZrkLIkbg8RFa2 yMPg== X-Gm-Message-State: AD7BkJKeJP8ahz2gHtkMPrfozk94bi8xkZAj2hrdBky2Qzq5QdmBshw7mWUv6LFMsgt6fOt8 X-Received: by 10.107.132.18 with SMTP id g18mr23701804iod.47.1457917692732; Sun, 13 Mar 2016 18:08:12 -0700 (PDT) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by smtp.gmail.com with ESMTPSA id z200sm8508165iod.26.2016.03.13.18.07.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Mar 2016 18:08:09 -0700 (PDT) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 2D203222474; Sun, 13 Mar 2016 19:07:49 -0600 (MDT) From: Simon Glass To: U-Boot Mailing List Date: Sun, 13 Mar 2016 19:07:35 -0600 Message-Id: <1457917655-30547-10-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.7.0.rc3.207.g0ac5344 In-Reply-To: <1457917655-30547-1-git-send-email-sjg@chromium.org> References: <1457917655-30547-1-git-send-email-sjg@chromium.org> Cc: Tom Rini , Stephen Warren Subject: [U-Boot] [PATCH v2 9/9] Drop various features when the command line is not available X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Some features are only useful or meaningful when the command line is present. Ensure that these features are not compiled in when CONFIG_CMDLINE is not enabled. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v2: None include/config_fallbacks.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/config_fallbacks.h b/include/config_fallbacks.h index ddfe045..6b6ec00 100644 --- a/include/config_fallbacks.h +++ b/include/config_fallbacks.h @@ -97,4 +97,14 @@ # endif #endif +#ifndef CONFIG_CMDLINE +#undef CONFIG_CMDLINE_EDITING +#undef CONFIG_SYS_LONGHELP +#undef CONFIG_CMD_BOOTD +#undef CONFIG_CMD_RUN +#undef CONFIG_SYS_HUSH_PARSER +#undef CONFIG_CMD_ASKENV +#undef CONFIG_MENU +#endif + #endif /* __CONFIG_FALLBACKS_H */