nginx-nasxi: new package
[buildroot-gz.git] / package / kexec / kexec.mk
blob0e64c0d4f3364f166c75e07840ae9dac919f2902
1 ################################################################################
3 # kexec
5 ################################################################################
7 KEXEC_VERSION = 2.0.11
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 ifeq ($(BR2_PACKAGE_KEXEC_ZLIB),y)
14 KEXEC_CONF_OPTS += --with-zlib
15 KEXEC_DEPENDENCIES = zlib
16 else
17 KEXEC_CONF_OPTS += --without-zlib
18 endif
20 ifeq ($(BR2_PACKAGE_XZ),y)
21 KEXEC_CONF_OPTS += --with-lzma
22 KEXEC_DEPENDENCIES += xz
23 else
24 KEXEC_CONF_OPTS += --without-lzma
25 endif
27 define KEXEC_REMOVE_LIB_TOOLS
28 rm -rf $(TARGET_DIR)/usr/lib/kexec-tools
29 endef
31 KEXEC_POST_INSTALL_TARGET_HOOKS += KEXEC_REMOVE_LIB_TOOLS
33 $(eval $(autotools-package))