lpeg: bump to version 1.0.1
[buildroot-gz.git] / package / kexec / kexec.mk
blob0a8e9f03a18bec6802d2400fe50bd9b18065d870
1 ################################################################################
3 # kexec
5 ################################################################################
7 KEXEC_VERSION = 2.0.14
8 KEXEC_SOURCE = kexec-tools-$(KEXEC_VERSION).tar.xz
9 KEXEC_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/kexec
10 KEXEC_LICENSE = GPLv2
11 KEXEC_LICENSE_FILES = COPYING
13 # Makefile expects $STRIP -o to work, so needed for BR2_STRIP_none
14 KEXEC_MAKE_OPTS = STRIP="$(TARGET_CROSS)strip"
16 ifeq ($(BR2_PACKAGE_KEXEC_ZLIB),y)
17 KEXEC_CONF_OPTS += --with-zlib
18 KEXEC_DEPENDENCIES = zlib
19 else
20 KEXEC_CONF_OPTS += --without-zlib
21 endif
23 ifeq ($(BR2_PACKAGE_XZ),y)
24 KEXEC_CONF_OPTS += --with-lzma
25 KEXEC_DEPENDENCIES += xz
26 else
27 KEXEC_CONF_OPTS += --without-lzma
28 endif
30 define KEXEC_REMOVE_LIB_TOOLS
31 rm -rf $(TARGET_DIR)/usr/lib/kexec-tools
32 endef
34 KEXEC_POST_INSTALL_TARGET_HOOKS += KEXEC_REMOVE_LIB_TOOLS
36 $(eval $(autotools-package))