From: Bernd Kuhls Date: Sat, 20 Feb 2016 22:31:54 +0000 (+0100) Subject: package/kexec: add optional support for xz, bump version X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e1a04d7ad12ce6162601bb0801782597e7bfb107;p=buildroot.git package/kexec: add optional support for xz, bump version 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 [Thomas: bump version instead of doing a "hack" to force the use of the lzma library.] Signed-off-by: Thomas Petazzoni --- diff --git a/package/kexec/kexec.hash b/package/kexec/kexec.hash index fa2d8be875..24a71e7a45 100644 --- a/package/kexec/kexec.hash +++ b/package/kexec/kexec.hash @@ -1,2 +1,2 @@ # From https://www.kernel.org/pub/linux/utils/kernel/kexec/sha256sums.asc -sha256 8ae34a9ceb76350954e1e1e3ca9ab51da15862bd5f2fd14392208e60fb454f71 kexec-tools-2.0.9.tar.xz +sha256 b1097986ffdb928cf41a94e8a5dfddc981a8fa710cccf13298e7f8dd939a2ee3 kexec-tools-2.0.11.tar.xz diff --git a/package/kexec/kexec.mk b/package/kexec/kexec.mk index d1584069ef..0e64c0d4f3 100644 --- a/package/kexec/kexec.mk +++ b/package/kexec/kexec.mk @@ -4,7 +4,7 @@ # ################################################################################ -KEXEC_VERSION = 2.0.9 +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 @@ -17,6 +17,13 @@ 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