Skip to content

Commit

Permalink
kexec-tools: make zlib support optional, but enabled by default
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 37071
  • Loading branch information
Felix Fietkau committed Jun 28, 2013
1 parent 6232a43 commit ea5f9a7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions package/boot/kexec-tools/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,9 @@ config KEXEC_TOOLS_kdump
help
Include the kdump utility.

config KEXEC_ZLIB
bool
prompt "zlib support"
default y

endmenu
7 changes: 5 additions & 2 deletions package/boot/kexec-tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ PKG_MD5SUM:=b3ced2097ce3981abba38ceedc84f939

PKG_FIXUP:=autoreconf

PKG_CONFIG_DEPENDS := CONFIG_KEXEC_ZLIB

include $(INCLUDE_DIR)/package.mk

define Package/kexec-tools
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=@armeb||@arm||@i386||@powerpc64||@mipsel||@mips +zlib
DEPENDS:=@armeb||@arm||@i386||@powerpc64||@mipsel||@mips +KEXEC_ZLIB:zlib
TITLE:=Kernel boots kernel
URL:=http://kernel.org/pub/linux/kernel/people/horms/kexec-tools/
MAINTAINER:=Florian Fainelli <[email protected]>
Expand Down Expand Up @@ -51,7 +53,8 @@ CONFIGURE_ARGS = \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--libexecdir=/usr/lib \
--sysconfdir=/etc
--sysconfdir=/etc \
$(if $(CONFIG_KEXEC_ZLIB),--with,--without)-zlib

CONFIGURE_VARS += \
BUILD_CC="$(HOSTCC)" \
Expand Down

0 comments on commit ea5f9a7

Please sign in to comment.