initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
config BR2_PACKAGE_LIBCGROUP
|
||||
bool "libcgroup"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
# libcgroup uses <fts.h> which is not included by default in uClibc
|
||||
depends on BR2_TOOLCHAIN_USES_GLIBC
|
||||
help
|
||||
libcgroup is a library that abstracts the control
|
||||
group file system in Linux.
|
||||
|
||||
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 a glibc toolchain w/ C++"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_USES_GLIBC
|
||||
@@ -0,0 +1,5 @@
|
||||
# From https://github.com/libcgroup/libcgroup/releases/download/v0.42.2/libcgroup-0.42.2.tar.bz2.sha256
|
||||
sha256 18939381324d418e11be4f5fdca37b01652c18917bfaf1f6b0c505f157e18d07 libcgroup-0.42.2.tar.bz2
|
||||
|
||||
# Hash for license file
|
||||
sha256 a9bdde5616ecdd1e980b44f360600ee8783b1f99b8cc83a2beb163a0a390e861 COPYING
|
||||
@@ -0,0 +1,40 @@
|
||||
################################################################################
|
||||
#
|
||||
# libcgroup
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBCGROUP_VERSION = 0.42.2
|
||||
LIBCGROUP_SOURCE = libcgroup-$(LIBCGROUP_VERSION).tar.bz2
|
||||
LIBCGROUP_SITE = https://github.com/libcgroup/libcgroup/releases/download/v$(LIBCGROUP_VERSION)
|
||||
LIBCGROUP_LICENSE = LGPL-2.1
|
||||
LIBCGROUP_LICENSE_FILES = COPYING
|
||||
LIBCGROUP_CPE_ID_VENDOR = libcgroup_project
|
||||
LIBCGROUP_DEPENDENCIES = host-bison host-flex
|
||||
LIBCGROUP_INSTALL_STAGING = YES
|
||||
|
||||
# Undefining _FILE_OFFSET_BITS here because of a "bug" with glibc fts.h
|
||||
# large file support. See https://bugzilla.redhat.com/show_bug.cgi?id=574992
|
||||
# for more information.
|
||||
LIBCGROUP_CONF_ENV = \
|
||||
CXXFLAGS="$(TARGET_CXXFLAGS) -U_FILE_OFFSET_BITS" \
|
||||
CFLAGS="$(TARGET_CFLAGS) -U_FILE_OFFSET_BITS"
|
||||
|
||||
LIBCGROUP_CONF_OPTS = \
|
||||
--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
|
||||
else
|
||||
LIBCGROUP_CONF_OPTS += --disable-pam
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user