package/python3: Add bzip2 option to host

The bzip2 module is needed to build the host variant of NodeJS 14.

Signed-off-by: Adam Duskett <aduskett@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Adam Duskett 2021-10-08 17:27:26 -07:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent 8276645532
commit 21a56f9edb
3 changed files with 12 additions and 1 deletions

View File

@ -54,7 +54,6 @@ config BR2_PACKAGE_PYTHON3_BERKELEYDB
config BR2_PACKAGE_PYTHON3_BZIP2
bool "bz2 module"
select BR2_PACKAGE_BZIP2
help
bzip2 module for Python3

View File

@ -7,6 +7,12 @@ config BR2_PACKAGE_HOST_PYTHON3
if BR2_PACKAGE_HOST_PYTHON3
config BR2_PACKAGE_HOST_PYTHON3_BZIP2
bool "bzip2"
select BR2_PACKAGE_HOST_BZIP2
help
bz2 module for host Python3.
config BR2_PACKAGE_HOST_PYTHON3_SSL
bool "ssl"
select BR2_PACKAGE_HOST_OPENSSL

View File

@ -43,6 +43,12 @@ PYTHON3_DEPENDENCIES = host-python3 libffi
HOST_PYTHON3_DEPENDENCIES = host-autoconf-archive host-expat host-zlib host-libffi
ifeq ($(BR2_PACKAGE_HOST_PYTHON3_BZIP2),y)
HOST_PYTHON3_DEPENDENCIES += host-bzip2
else
HOST_PYTHON3_CONF_OPTS += --disable-bzip2
endif
ifeq ($(BR2_PACKAGE_HOST_PYTHON3_SSL),y)
HOST_PYTHON3_DEPENDENCIES += host-openssl
else