From: Bartosz Golaszewski Date: Mon, 24 Aug 2015 10:49:53 +0000 (+0200) Subject: package/libcgroup: allow to build cgroup-tools X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e90e781d61b250876290f9f08b5b1d26f11737ac;p=buildroot.git 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 Reviewed-by: Vicente Olivert Riera Signed-off-by: Thomas Petazzoni --- 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