@@ -23,4 +23,9 @@ config KEXEC_ZLIB
prompt "zlib support"
default y
+config KEXEC_LZMA
+ bool
+ prompt "lzma support"
+ default n
+
endmenu
@@ -17,14 +17,14 @@ PKG_MD5SUM:=05992bc8c0673fc55be7b6d27e48a8db
PKG_FIXUP:=autoreconf
-PKG_CONFIG_DEPENDS := CONFIG_KEXEC_ZLIB
+PKG_CONFIG_DEPENDS := CONFIG_KEXEC_ZLIB CONFIG_KEXEC_LZMA
include $(INCLUDE_DIR)/package.mk
define Package/kexec-tools
SECTION:=utils
CATEGORY:=Utilities
- DEPENDS:=@KERNEL_KEXEC @armeb||@arm||@i386||@powerpc64||@mipsel||@mips +KEXEC_ZLIB:zlib
+ DEPENDS:=@KERNEL_KEXEC @armeb||@arm||@i386||@powerpc64||@mipsel||@mips +KEXEC_ZLIB:zlib +KEXEC_LZMA:liblzma
TITLE:=Kernel boots kernel
URL:=http://kernel.org/pub/linux/kernel/people/horms/kexec-tools/
MAINTAINER:=Florian Fainelli <florian@openwrt.org>
@@ -55,7 +55,7 @@ CONFIGURE_ARGS = \
--libexecdir=/usr/lib \
--sysconfdir=/etc \
$(if $(CONFIG_KEXEC_ZLIB),--with,--without)-zlib \
- --without-lzma
+ $(if $(CONFIG_KEXEC_LZMA),--with,--without)-lzma
TARGET_CFLAGS += -ffunction-sections -fdata-sections
TARGET_LDFLAGS += -Wl,--gc-sections
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> --- package/boot/kexec-tools/Config.in | 5 +++++ package/boot/kexec-tools/Makefile | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-)