re-enable zlib and use it in kexec (issue #170)

This commit is contained in:
Trammell Hudson 2017-04-07 09:51:49 -04:00
parent 3c07e27d73
commit ac74b92157
Failed to extract signature
2 changed files with 24 additions and 5 deletions

View File

@ -11,17 +11,15 @@ kexec_configure := ./configure \
STRIP="$(CROSS)strip" \
--host i386-elf-linux \
--target x86_64 \
--prefix="$(INSTALL)" \
--without-zlib \
--prefix="/" \
--without-lzma \
&& $(MAKE) clean
kexec_target := \
$(MAKE_JOBS) \
DESTDIR="$(INSTALL)" \
install \
kexec_output := build/sbin/kexec
# if we don't need zlib, don't built it
#kexec_depends := zlib
kexec_depends := $(musl_dep)
kexec_depends := zlib $(musl_dep)

21
modules/zlib Normal file
View File

@ -0,0 +1,21 @@
modules-y += zlib
zlib_version := 1.2.11
zlib_dir := zlib-$(zlib_version)
zlib_tar := zlib-$(zlib_version).tar.gz
zlib_url := http://www.zlib.net/$(zlib_tar)
zlib_hash := c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1
zlib_configure := \
CC="$(heads_cc)" \
./configure \
--prefix="/" \
zlib_target := \
$(MAKE_JOBS) \
DESTDIR="$(INSTALL)" \
install \
zlib_libraries := libz.so.1
zlib_depends := $(musl_dep)