summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2015-08-24 12:49:53 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-08-27 20:30:39 +0200
commite90e781d61b250876290f9f08b5b1d26f11737ac (patch)
tree1a5df105396ad97ad686928ba7efe14dd65cacc0
parent84a78f4f0b67814a64a834ce8f157ee342fef678 (diff)
downloadbuildroot-e90e781d61b250876290f9f08b5b1d26f11737ac.tar.gz
buildroot-e90e781d61b250876290f9f08b5b1d26f11737ac.zip
package/libcgroup: allow to build cgroup-tools
Add a new config option that allows to build cgroup-tools - a set of command-line utils for managing cgroups. [Thomas: slightly change the prompt of the new Config.in option.] Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/libcgroup/Config.in9
-rw-r--r--package/libcgroup/libcgroup.mk7
2 files changed, 15 insertions, 1 deletions
diff --git a/package/libcgroup/Config.in b/package/libcgroup/Config.in
index b7a84e06e0..d02c2829ad 100644
--- a/package/libcgroup/Config.in
+++ b/package/libcgroup/Config.in
@@ -9,5 +9,14 @@ config BR2_PACKAGE_LIBCGROUP
http://libcg.sourceforge.net/
+if BR2_PACKAGE_LIBCGROUP
+
+config BR2_PACKAGE_LIBCGROUP_TOOLS
+ bool "install tools"
+ help
+ Include a set of command-line tools for managing cgroups.
+
+endif
+
comment "libcgroup needs an (e)glibc toolchain w/ C++"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_USES_GLIBC
diff --git a/package/libcgroup/libcgroup.mk b/package/libcgroup/libcgroup.mk
index ace2744699..a4c3084c6c 100644
--- a/package/libcgroup/libcgroup.mk
+++ b/package/libcgroup/libcgroup.mk
@@ -20,10 +20,15 @@ LIBCGROUP_CONF_ENV = \
CFLAGS="$(TARGET_CFLAGS) -U_FILE_OFFSET_BITS"
LIBCGROUP_CONF_OPTS = \
- --disable-tools \
--disable-daemon \
--disable-initscript-install
+ifeq ($(BR2_PACKAGE_LIBCGROUP_TOOLS),y)
+LIBCGROUP_CONF_OPTS += --enable-tools
+else
+LIBCGROUP_CONF_OPTS += --disable-tools
+endif
+
ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
LIBCGROUP_DEPENDENCIES += linux-pam
LIBCGROUP_CONF_OPTS += --enable-pam
OpenPOWER on IntegriCloud