1 ################################################################################
5 ################################################################################
8 KEXEC_SOURCE
= kexec-tools-
$(KEXEC_VERSION
).
tar.xz
9 KEXEC_SITE
= $(BR2_KERNEL_MIRROR
)/linux
/utils
/kernel
/kexec
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
20 KEXEC_CONF_OPTS
+= --without-zlib
23 ifeq ($(BR2_PACKAGE_XZ
),y
)
24 KEXEC_CONF_OPTS
+= --with-lzma
25 KEXEC_DEPENDENCIES
+= xz
27 KEXEC_CONF_OPTS
+= --without-lzma
30 define KEXEC_REMOVE_LIB_TOOLS
31 rm -rf
$(TARGET_DIR
)/usr
/lib
/kexec-tools
34 KEXEC_POST_INSTALL_TARGET_HOOKS
+= KEXEC_REMOVE_LIB_TOOLS
36 $(eval
$(autotools-package
))