719921bebe
For release announce, see: https://lists.infradead.org/pipermail/kexec/2023-August/027830.html This new version introduced a usage of memfd_create() in [1]. This function was introduced in Kernel 3.17. Therefore, this commit adds this new dependency. This direct use of memfd_create() requires a glibc >= 2.27. As is, this version would no longer work with uclibc-ng or musl libc. This commit also adds a patch to allow compilation with glibc < 2.27, and also uclibc and musl. See the patch commit log for more details. [1] https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git/commit/?id=714fa11590febc9cf6fd3c6309374a040a05ebb0 Signed-off-by: Julien Olivain <ju.o@free.fr> [yann.morin.1998@free.fr: add arch dependency to comment] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# kexec
|
|
#
|
|
################################################################################
|
|
|
|
KEXEC_VERSION = 2.0.27
|
|
KEXEC_SOURCE = kexec-tools-$(KEXEC_VERSION).tar.xz
|
|
KEXEC_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/kexec
|
|
KEXEC_LICENSE = GPL-2.0
|
|
KEXEC_LICENSE_FILES = COPYING
|
|
# 0002-kexec-provide-a-memfd_create-wrapper-if-not-present-.patch
|
|
KEXEC_AUTORECONF = YES
|
|
KEXEC_CPE_ID_PRODUCT = kexec-tools
|
|
KEXEC_CPE_ID_VENDOR = kexec-tools_project
|
|
KEXEC_SELINUX_MODULES = kdump
|
|
|
|
# Makefile expects $STRIP -o to work, so needed for !BR2_STRIP_strip
|
|
KEXEC_MAKE_OPTS = STRIP="$(TARGET_CROSS)strip"
|
|
|
|
ifeq ($(BR2_PACKAGE_KEXEC_ZLIB),y)
|
|
KEXEC_CONF_OPTS += --with-zlib
|
|
KEXEC_DEPENDENCIES += zlib
|
|
else
|
|
KEXEC_CONF_OPTS += --without-zlib
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_XZ),y)
|
|
KEXEC_CONF_OPTS += --with-lzma
|
|
KEXEC_DEPENDENCIES += xz
|
|
else
|
|
KEXEC_CONF_OPTS += --without-lzma
|
|
endif
|
|
|
|
define KEXEC_REMOVE_LIB_TOOLS
|
|
rm -rf $(TARGET_DIR)/usr/lib/kexec-tools
|
|
endef
|
|
|
|
KEXEC_POST_INSTALL_TARGET_HOOKS += KEXEC_REMOVE_LIB_TOOLS
|
|
|
|
$(eval $(autotools-package))
|