2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2006-12-19 14:24:27 +01:00
|
|
|
#
|
|
|
|
# kexec
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-19 07:12:41 +01:00
|
|
|
|
2021-05-03 10:22:52 +02:00
|
|
|
KEXEC_VERSION = 2.0.22
|
2013-03-19 07:12:41 +01:00
|
|
|
KEXEC_SOURCE = kexec-tools-$(KEXEC_VERSION).tar.xz
|
2011-01-14 22:53:03 +01:00
|
|
|
KEXEC_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/kexec
|
2017-03-30 15:43:32 +02:00
|
|
|
KEXEC_LICENSE = GPL-2.0
|
2014-06-24 20:55:09 +02:00
|
|
|
KEXEC_LICENSE_FILES = COPYING
|
2021-01-28 10:27:53 +01:00
|
|
|
KEXEC_SELINUX_MODULES = kdump
|
2006-12-19 14:24:27 +01:00
|
|
|
|
2017-07-01 14:51:21 +02:00
|
|
|
# Makefile expects $STRIP -o to work, so needed for !BR2_STRIP_strip
|
2016-12-02 12:51:57 +01:00
|
|
|
KEXEC_MAKE_OPTS = STRIP="$(TARGET_CROSS)strip"
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_KEXEC_ZLIB),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
KEXEC_CONF_OPTS += --with-zlib
|
2009-09-02 17:02:02 +02:00
|
|
|
KEXEC_DEPENDENCIES = zlib
|
2006-12-19 14:24:27 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
KEXEC_CONF_OPTS += --without-zlib
|
2006-12-19 14:24:27 +01:00
|
|
|
endif
|
|
|
|
|
2016-02-20 23:31:54 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XZ),y)
|
|
|
|
KEXEC_CONF_OPTS += --with-lzma
|
|
|
|
KEXEC_DEPENDENCIES += xz
|
|
|
|
else
|
|
|
|
KEXEC_CONF_OPTS += --without-lzma
|
|
|
|
endif
|
|
|
|
|
2010-09-02 00:06:18 +02:00
|
|
|
define KEXEC_REMOVE_LIB_TOOLS
|
2009-02-21 20:13:24 +01:00
|
|
|
rm -rf $(TARGET_DIR)/usr/lib/kexec-tools
|
2010-09-02 00:06:18 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
KEXEC_POST_INSTALL_TARGET_HOOKS += KEXEC_REMOVE_LIB_TOOLS
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|