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