Commit e90e781d authored by Bartosz Golaszewski's avatar Bartosz Golaszewski Committed by Thomas Petazzoni
Browse files

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: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: default avatarVicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 84a78f4f
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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
+6 −1
Original line number Diff line number Diff line
@@ -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