e1a04d7ad1
When xz was compiled before, kexec will use it as optional dependency: $ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/sbin/kdump | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [liblzma.so.5] 0x0000000000000001 (NEEDED) Shared library: [libc.so.1] The version bump to 2.0.11 is needed to fix a configure script issue: line 4712: ac_fn_c_try_link: command not found This issue was fixed by upstream commit http://git.kernel.org/cgit/utils/kernel/kexec/kexec-tools.git/commit/configure.ac?id=58bbd468571b3e80585e5d68e97c8d67c8ed583b, which was merged after 2.0.9 was released. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> [Thomas: bump version instead of doing a "hack" to force the use of the lzma library.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
34 lines
795 B
Makefile
34 lines
795 B
Makefile
################################################################################
|
|
#
|
|
# kexec
|
|
#
|
|
################################################################################
|
|
|
|
KEXEC_VERSION = 2.0.11
|
|
KEXEC_SOURCE = kexec-tools-$(KEXEC_VERSION).tar.xz
|
|
KEXEC_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/kexec
|
|
KEXEC_LICENSE = GPLv2
|
|
KEXEC_LICENSE_FILES = COPYING
|
|
|
|
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))
|