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>
This commit is contained in:
parent
84a78f4f0b
commit
e90e781d61
@ -9,5 +9,14 @@ config BR2_PACKAGE_LIBCGROUP
|
|||||||
|
|
||||||
http://libcg.sourceforge.net/
|
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++"
|
comment "libcgroup needs an (e)glibc toolchain w/ C++"
|
||||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_USES_GLIBC
|
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_USES_GLIBC
|
||||||
|
@ -20,10 +20,15 @@ LIBCGROUP_CONF_ENV = \
|
|||||||
CFLAGS="$(TARGET_CFLAGS) -U_FILE_OFFSET_BITS"
|
CFLAGS="$(TARGET_CFLAGS) -U_FILE_OFFSET_BITS"
|
||||||
|
|
||||||
LIBCGROUP_CONF_OPTS = \
|
LIBCGROUP_CONF_OPTS = \
|
||||||
--disable-tools \
|
|
||||||
--disable-daemon \
|
--disable-daemon \
|
||||||
--disable-initscript-install
|
--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)
|
ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
|
||||||
LIBCGROUP_DEPENDENCIES += linux-pam
|
LIBCGROUP_DEPENDENCIES += linux-pam
|
||||||
LIBCGROUP_CONF_OPTS += --enable-pam
|
LIBCGROUP_CONF_OPTS += --enable-pam
|
||||||
|
Loading…
Reference in New Issue
Block a user