From patchwork Wed Dec 10 21:02:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Bultel X-Patchwork-Id: 419861 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 95C2C1400E7 for ; Thu, 11 Dec 2014 08:02:12 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E8FCD95289; Wed, 10 Dec 2014 21:02:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JKoM4BLGdIfR; Wed, 10 Dec 2014 21:02:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 6D88D954AA; Wed, 10 Dec 2014 21:02:11 +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 DF3501CEE38 for ; Wed, 10 Dec 2014 21:02:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id DB4D4A292F for ; Wed, 10 Dec 2014 21:02:10 +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 N4KpW30Ed522 for ; Wed, 10 Dec 2014 21:02:09 +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 A2BB3A2914 for ; Wed, 10 Dec 2014 21:02:09 +0000 (UTC) Received: from localhost.localdomain (unknown [78.221.72.141]) by smtp5-g21.free.fr (Postfix) with ESMTP id 65ADFD48049; Wed, 10 Dec 2014 22:00:44 +0100 (CET) From: Thierry Bultel To: buildroot@buildroot.org Date: Wed, 10 Dec 2014 22:02:01 +0100 Message-Id: <1418245321-6043-1-git-send-email-tbultel@free.fr> X-Mailer: git-send-email 1.9.1 Cc: Thierry Bultel Subject: [Buildroot] [PATCH v2] 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 --- Changes v1 -> v2 - use the existing BR2_PACKAGE_HOST_UTIL_LINUX (suggested by Yann E. MORIN) --- package/util-linux/util-linux.mk | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk index dc10193..e06fa9a 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_HOST_UTIL_LINUX is set + HOST_UTIL_LINUX_CONF_OPTS += \ --enable-libuuid \ --disable-libblkid --disable-libmount \ - --disable-all-programs --without-ncurses + --without-ncurses + +ifeq ($(BR2_PACKAGE_HOST_UTIL_LINUX),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.