From patchwork Wed Apr 25 15:25:59 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: util-linux: disable installing binaries by default From: Sven Neumann X-Patchwork-Id: 154972 Message-Id: <1335367559.2428.16.camel@sven> To: Gustavo Zacarias Cc: buildroot@busybox.net Date: Wed, 25 Apr 2012 17:25:59 +0200 On Wed, 2012-04-25 at 11:45 -0300, Gustavo Zacarias wrote: > On 2012-04-25 11:26, Sven Neumann wrote: > > > On Wed, 2012-04-25 at 10:15 -0300, Gustavo Zacarias wrote: > >> +config BR2_PACKAGE_UTIL_LINUX_LIBBLKID > >> + select BR2_PACKAGE_UTIL_LINUX_LIBUUID > >> + bool "libblkid and blkid utilities" > >> + default y > >> > > Actually it only installs libblkid. If you want the blkid utility you > > also need to select BR2_PACKAGE_UTIL_LINUX_BINARIES. > > > > > > Regards, > > Sven > > I know. > Problem is i can't (or don't know how to) make a bool in Kconfig depend > on some other option nicely. > And i'd rather avoid adding more options as i've said. > So i can leave it as is or just remove the blkid/uuid utilities mention > in Config.in Or add code that installs the blkid utility if BR2_PACKAGE_UTIL_LINUX_LIBUUID is selected: Author: Sven Neumann Date: Fri Apr 20 14:50:21 2012 +0200 util-linux: install the blkid binary if libblkid is selected Signed-off-by: Sven Neumann Regards, Sven diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk index a0101a3..3f2c4d6 100644 --- a/package/util-linux/util-linux.mk +++ b/package/util-linux/util-linux.mk @@ -87,6 +87,7 @@ ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBBLKID),y) define UTIL_LINUX_INSTALL_LIBBLKID $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/libblkid \ DESTDIR=$(TARGET_DIR) install + $(INSTALL) -D -m 0755 $(@D)/misc-utils/blkid $(TARGET_DIR)/sbin endef endif