From patchwork Tue Dec 9 20:46:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Bultel X-Patchwork-Id: 419247 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 77DCD140079 for ; Wed, 10 Dec 2014 07:46:54 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C90B891E7D; Tue, 9 Dec 2014 20:46:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6cx6TKY49HNN; Tue, 9 Dec 2014 20:46:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 1FFCE91F10; Tue, 9 Dec 2014 20:46:45 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 408CC1C2357 for ; Tue, 9 Dec 2014 20:46:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3DE23A2350 for ; Tue, 9 Dec 2014 20:46:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CvBK83lFLCav for ; Tue, 9 Dec 2014 20:46:43 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [212.27.42.5]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 0696FA22DF for ; Tue, 9 Dec 2014 20:46:43 +0000 (UTC) Received: from thierry-desktop.basystemes.fr (unknown [78.221.72.141]) by smtp5-g21.free.fr (Postfix) with ESMTP id 4FF81D480E8; Tue, 9 Dec 2014 21:45:20 +0100 (CET) From: Thierry Bultel To: buildroot@buildroot.org Date: Tue, 9 Dec 2014 21:46:38 +0100 Message-Id: <1418157998-3183-1-git-send-email-tbultel@free.fr> X-Mailer: git-send-email 1.9.1 Cc: Thierry Bultel Subject: [Buildroot] [PATCH 1/1] util-linux: add an option to build host programs X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" Signed-off-by: Thierry Bultel --- package/util-linux/Config.in | 5 +++++ package/util-linux/util-linux.mk | 12 ++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/package/util-linux/Config.in b/package/util-linux/Config.in index 07e1fbb..f913fef 100644 --- a/package/util-linux/Config.in +++ b/package/util-linux/Config.in @@ -12,6 +12,11 @@ config BR2_PACKAGE_UTIL_LINUX if BR2_PACKAGE_UTIL_LINUX +config BR2_PACKAGE_UTIL_LINUX_HOST_PROGRAMS + bool "all programs on host" + help + Install all programs on the host + config BR2_PACKAGE_UTIL_LINUX_LIBBLKID select BR2_PACKAGE_UTIL_LINUX_LIBUUID depends on BR2_USE_MMU # fork diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk index dc10193..8a91636 100644 --- a/package/util-linux/util-linux.mk +++ b/package/util-linux/util-linux.mk @@ -91,11 +91,19 @@ UTIL_LINUX_CONF_OPTS += \ $(if $(BR2_PACKAGE_UTIL_LINUX_WRITE),--enable-write,--disable-write) # In the host version of util-linux, we so far only require libuuid, -# and none of the util-linux utilities, so we disable all of them. +# and none of the util-linux utilities, so we disable all of them, unless +# BR2_PACKAGE_UTIL_LINUX_HOST_PROGRAMS is set + HOST_UTIL_LINUX_CONF_OPTS += \ --enable-libuuid \ --disable-libblkid --disable-libmount \ - --disable-all-programs --without-ncurses + --without-ncurses + +ifeq ($(BR2_PACKAGE_UTIL_LINUX_HOST_PROGRAMS),y) +HOST_UTIL_LINUX_CONF_OPTS += --disable-makeinstall-chown +else +HOST_UTIL_LINUX_CONF_OPTS += --disable-all-programs +endif # Avoid building the tools if they are disabled since we can't install on # a per-directory basis.