5a4429a6dd
Zlib-ng misdetects the powerpc cpu and the package fails to compile
for non-power9 cpu's.
Power9 support was added Upstream in commit:
02d10b252cc54159f7c33823048daec4b023fb22
So it was introduced in zlib-ng 2.1.3 and this was added to Buildroot
in commit 0df456ea6e
.
So there is no need to backport it to older Buildroot releases.
Fixes:
- http://autobuild.buildroot.net/results/a9f/a9f45486664b2d5b23a2f330a63955a06ae8189d
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
45 lines
1.0 KiB
Makefile
45 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# zlib-ng
|
|
#
|
|
################################################################################
|
|
|
|
ZLIB_NG_VERSION = 2.1.3
|
|
ZLIB_NG_SITE = $(call github,zlib-ng,zlib-ng,$(ZLIB_NG_VERSION))
|
|
ZLIB_NG_LICENSE = Zlib
|
|
ZLIB_NG_LICENSE_FILES = LICENSE.md
|
|
ZLIB_NG_INSTALL_STAGING = YES
|
|
ZLIB_NG_PROVIDES = zlib
|
|
|
|
# Build with zlib compatible API, gzFile support and optimizations on
|
|
ZLIB_NG_CONF_OPTS += \
|
|
-DWITH_GZFILEOP=1 \
|
|
-DWITH_OPTIM=1 \
|
|
-DZLIB_COMPAT=1 \
|
|
-DZLIB_ENABLE_TESTS=OFF
|
|
|
|
# Enable ACLE on ARM
|
|
ifeq ($(BR2_arm),y)
|
|
ZLIB_NG_CONF_OPTS += -DWITH_ACLE=1
|
|
endif
|
|
|
|
ifeq ($(BR2_ARM_CPU_HAS_NEON)$(BR2_aarch64),y)
|
|
ZLIB_NG_CONF_OPTS += -DWITH_NEON=ON
|
|
else
|
|
ZLIB_NG_CONF_OPTS += -DWITH_NEON=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_powerpc_power8),y)
|
|
ZLIB_NG_CONF_OPTS += -DWITH_POWER8=ON
|
|
else
|
|
ZLIB_NG_CONF_OPTS += -DWITH_POWER8=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_powerpc_power9),y)
|
|
ZLIB_NG_CONF_OPTS += -DWITH_POWER9=ON
|
|
else
|
|
ZLIB_NG_CONF_OPTS += -DWITH_POWER9=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|