* [Buildroot] [PATCH 1/2] util-linux: fix partx build breakage
@ 2011-10-18 15:53 Gustavo Zacarias
2011-10-18 15:53 ` [Buildroot] [PATCH 2/2] util-linux: disable installing binaries by default Gustavo Zacarias
2011-11-08 22:49 ` [Buildroot] [PATCH 1/2] util-linux: fix partx build breakage Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Gustavo Zacarias @ 2011-10-18 15:53 UTC (permalink / raw)
To: buildroot
addpart, delpart and partx are enabled by default so --disable now to
avoid build breaking when we lack libblkid.
Also select libblkid when it's enabled now.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/util-linux/Config.in | 7 ++++---
package/util-linux/util-linux.mk | 4 ++--
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/package/util-linux/Config.in b/package/util-linux/Config.in
index 816130d..43a8444 100644
--- a/package/util-linux/Config.in
+++ b/package/util-linux/Config.in
@@ -67,6 +67,10 @@ config BR2_PACKAGE_UTIL_LINUX_SCHEDUTILS
config BR2_PACKAGE_UTIL_LINUX_WALL
bool "build \"wall\""
+config BR2_PACKAGE_UTIL_LINUX_PARTX
+ bool "build \"addpart, delpart, partx\""
+ select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
+
############################################
# default disabled and should be enabled by
# --enable-foo
@@ -86,9 +90,6 @@ config BR2_PACKAGE_UTIL_LINUX_LAST
config BR2_PACKAGE_UTIL_LINUX_MESG
bool "build \"mesg\""
-config BR2_PACKAGE_UTIL_LINUX_PARTX
- bool "build \"addpart, delpart, partx\""
-
config BR2_PACKAGE_UTIL_LINUX_RAW
bool "build \"raw\""
diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index b77e326..a3d6e13 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -49,7 +49,8 @@ UTIL_LINUX_CONF_OPT += \
$(if $(BR2_PACKAGE_UTIL_LINUX_UNSHARE),,--disable-unshare) \
$(if $(BR2_PACKAGE_UTIL_LINUX_RENAME),,--disable-rename) \
$(if $(BR2_PACKAGE_UTIL_LINUX_SCHEDUTILS),,--disable-schedutils) \
- $(if $(BR2_PACKAGE_UTIL_LINUX_WALL),,--disable-wall)
+ $(if $(BR2_PACKAGE_UTIL_LINUX_WALL),,--disable-wall) \
+ $(if $(BR2_PACKAGE_UTIL_LINUX_PARTX),,--disable-partx)
#############################################
#
@@ -61,7 +62,6 @@ UTIL_LINUX_CONF_OPT += \
$(if $(BR2_PACKAGE_UTIL_LINUX_KILL),--enable-kill) \
$(if $(BR2_PACKAGE_UTIL_LINUX_LAST),--enable-last) \
$(if $(BR2_PACKAGE_UTIL_LINUX_MESG),--enable-mesg) \
- $(if $(BR2_PACKAGE_UTIL_LINUX_PARTX),--enable-partx) \
$(if $(BR2_PACKAGE_UTIL_LINUX_RAW),--enable-raw) \
$(if $(BR2_PACKAGE_UTIL_LINUX_RESET),--enable-reset) \
$(if $(BR2_PACKAGE_UTIL_LINUX_LOGIN_UTILS),--enable-login-utils) \
--
1.7.3.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 2/2] util-linux: disable installing binaries by default
2011-10-18 15:53 [Buildroot] [PATCH 1/2] util-linux: fix partx build breakage Gustavo Zacarias
@ 2011-10-18 15:53 ` Gustavo Zacarias
2011-11-08 22:49 ` [Buildroot] [PATCH 1/2] util-linux: fix partx build breakage Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Gustavo Zacarias @ 2011-10-18 15:53 UTC (permalink / raw)
To: buildroot
Disable installing binaries by default based on a new "install basic
utilities" option.
This is to avoid installing unnecessary bloat when we just need
libblkid/libuuid for e2fsprogs for example.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/util-linux/Config.in | 5 +++++
package/util-linux/util-linux.mk | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 41 insertions(+), 0 deletions(-)
diff --git a/package/util-linux/Config.in b/package/util-linux/Config.in
index 43a8444..92b50dc 100644
--- a/package/util-linux/Config.in
+++ b/package/util-linux/Config.in
@@ -16,6 +16,11 @@ if BR2_PACKAGE_UTIL_LINUX
# --disable-foo
#
+config BR2_PACKAGE_UTIL_LINUX_BASIC
+ bool "install basic utilities"
+ help
+ Install the basic util-linux binaries.
+
config BR2_PACKAGE_UTIL_LINUX_MOUNT
bool "build mount utilties"
select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index a3d6e13..f744cbe 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -3,6 +3,7 @@
# util-linux
#
#############################################################
+
UTIL_LINUX_VERSION = $(UTIL_LINUX_VERSION_MAJOR)
UTIL_LINUX_VERSION_MAJOR = 2.20
UTIL_LINUX_SOURCE = util-linux-$(UTIL_LINUX_VERSION).tar.bz2
@@ -67,6 +68,41 @@ UTIL_LINUX_CONF_OPT += \
$(if $(BR2_PACKAGE_UTIL_LINUX_LOGIN_UTILS),--enable-login-utils) \
$(if $(BR2_PACKAGE_UTIL_LINUX_WRITE),--enable-write)
+# Avoid the basic utilities if we just want the libraries
+ifeq ($(BR2_PACKAGE_UTIL_LINUX_BASIC),y)
+define UTIL_LINUX_INSTALL_BASIC
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
+endef
+endif
+
+ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBBLKID),y)
+define UTIL_LINUX_INSTALL_LIBBLKID
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/libblkid \
+ DESTDIR=$(TARGET_DIR) install
+endef
+endif
+
+ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBMOUNT),y)
+define UTIL_LINUX_INSTALL_LIBMOUNT
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/libmount \
+ DESTDIR=$(TARGET_DIR) install
+endef
+endif
+
+ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
+define UTIL_LINUX_INSTALL_LIBUUID
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/libuuid \
+ DESTDIR=$(TARGET_DIR) install
+endef
+endif
+
+define UTIL_LINUX_INSTALL_TARGET_CMDS
+ $(UTIL_LINUX_INSTALL_BASIC)
+ $(UTIL_LINUX_INSTALL_LIBBLKID)
+ $(UTIL_LINUX_INSTALL_LIBMOUNT)
+ $(UTIL_LINUX_INSTALL_LIBUUID)
+endef
+
$(eval $(call AUTOTARGETS))
# MKINSTALLDIRS comes from tweaked m4/nls.m4, but autoreconf uses staging
--
1.7.3.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/2] util-linux: fix partx build breakage
2011-10-18 15:53 [Buildroot] [PATCH 1/2] util-linux: fix partx build breakage Gustavo Zacarias
2011-10-18 15:53 ` [Buildroot] [PATCH 2/2] util-linux: disable installing binaries by default Gustavo Zacarias
@ 2011-11-08 22:49 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2011-11-08 22:49 UTC (permalink / raw)
To: buildroot
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:
Gustavo> addpart, delpart and partx are enabled by default so --disable now to
Gustavo> avoid build breaking when we lack libblkid.
Gustavo> Also select libblkid when it's enabled now.
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-11-08 22:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-18 15:53 [Buildroot] [PATCH 1/2] util-linux: fix partx build breakage Gustavo Zacarias
2011-10-18 15:53 ` [Buildroot] [PATCH 2/2] util-linux: disable installing binaries by default Gustavo Zacarias
2011-11-08 22:49 ` [Buildroot] [PATCH 1/2] util-linux: fix partx build breakage Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox