2006-12-19 14:24:27 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# kexec
|
|
|
|
#
|
|
|
|
#############################################################
|
2010-02-21 13:57:08 +01:00
|
|
|
KEXEC_VERSION = 2.0.1
|
2009-02-21 20:13:24 +01:00
|
|
|
KEXEC_SOURCE = kexec-tools-$(KEXEC_VERSION).tar.bz2
|
|
|
|
KEXEC_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/people/horms/kexec-tools/
|
2006-12-19 14:24:27 +01:00
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_KEXEC_ZLIB),y)
|
2009-02-21 20:13:24 +01:00
|
|
|
KEXEC_CONF_OPT += --with-zlib
|
2009-09-02 17:02:02 +02:00
|
|
|
KEXEC_DEPENDENCIES = zlib
|
2006-12-19 14:24:27 +01:00
|
|
|
else
|
2009-02-21 20:13:24 +01:00
|
|
|
KEXEC_CONF_OPT += --without-zlib
|
2006-12-19 14:24:27 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
$(eval $(call AUTOTARGETS,package,kexec))
|