From patchwork Tue Apr 10 16:10:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 151669 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 78D70B7027 for ; Wed, 11 Apr 2012 02:12:23 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5219A8CD41; Tue, 10 Apr 2012 16:12:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cr2RQVJfkvvB; Tue, 10 Apr 2012 16:12:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 483478CF74; Tue, 10 Apr 2012 16:11:41 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 64DC88F753 for ; Tue, 10 Apr 2012 16:11:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id BBF538CF16 for ; Tue, 10 Apr 2012 16:11:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jMtwd1XHPK1q for ; Tue, 10 Apr 2012 16:11:13 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (mail.free-electrons.com [88.190.12.23]) by whitealder.osuosl.org (Postfix) with ESMTP id 6E7368CD3E for ; Tue, 10 Apr 2012 16:11:12 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id 0C02B186; Tue, 10 Apr 2012 18:10:35 +0200 (CEST) Received: from localhost (humanoidz.org [82.247.183.72]) by mail.free-electrons.com (Postfix) with ESMTPSA id 9F71C1AE for ; Tue, 10 Apr 2012 18:10:21 +0200 (CEST) From: Thomas Petazzoni To: buildroot@busybox.net Date: Tue, 10 Apr 2012 18:10:48 +0200 Message-Id: <68fa343e6e49a655e65d48ec6674f148823bd662.1334074065.git.thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: References: In-Reply-To: References: Subject: [Buildroot] [PATCH 4/5] busybox: enable useful hush suboptions X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Our default Busybox configuration enables the ash shell, but since this shell doesn't work on noMMU platforms, we enable the hush shell instead. However, the hush shell by itself isn't very useful without interactive mode, support for loops, if and case statements, etc. So we enable them. The drawback of this method is that those options are forcefully selected, regarless of the users choices. The other solution would be to have a separate Busybox configuration for noMMU platforms, or work with fragments of Busybox configurations. Signed-off-by: Thomas Petazzoni --- package/busybox/busybox.mk | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk index 59448d5..7e05ead 100644 --- a/package/busybox/busybox.mk +++ b/package/busybox/busybox.mk @@ -131,6 +131,11 @@ define BUSYBOX_DISABLE_MMU_APPLETS $(call KCONFIG_DISABLE_OPT,CONFIG_SWAPONOFF,$(BUSYBOX_BUILD_CONFIG)) $(call KCONFIG_DISABLE_OPT,CONFIG_ASH,$(BUSYBOX_BUILD_CONFIG)) $(call KCONFIG_ENABLE_OPT,CONFIG_HUSH,$(BUSYBOX_BUILD_CONFIG)) + $(call KCONFIG_ENABLE_OPT,CONFIG_HUSH_IF,$(BUSYBOX_BUILD_CONFIG)) + $(call KCONFIG_ENABLE_OPT,CONFIG_HUSH_LOOPS,$(BUSYBOX_BUILD_CONFIG)) + $(call KCONFIG_ENABLE_OPT,CONFIG_HUSH_CASE,$(BUSYBOX_BUILD_CONFIG)) + $(call KCONFIG_ENABLE_OPT,CONFIG_HUSH_FUNCTIONS,$(BUSYBOX_BUILD_CONFIG)) + $(call KCONFIG_ENABLE_OPT,CONFIG_HUSH_INTERACTIVE,$(BUSYBOX_BUILD_CONFIG)) endef endif