package/python3: add option to support lzma/xz in host-python

This will be needed by the upcoming host-python-uswid package.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
James Hilliard
2024-07-30 23:46:35 +02:00
committed by Thomas Petazzoni
parent f376a75095
commit 8270da3e4f
2 changed files with 11 additions and 0 deletions
+5
View File
@@ -12,6 +12,11 @@ config BR2_PACKAGE_HOST_PYTHON3_BZIP2
help
bz2 module for host Python3.
config BR2_PACKAGE_HOST_PYTHON3_XZ
bool "xz"
help
xz (a.k.a lzma) module for host Python3
config BR2_PACKAGE_HOST_PYTHON3_CURSES
bool "curses"
help
+6
View File
@@ -57,6 +57,12 @@ else
HOST_PYTHON3_CONF_ENV += py_cv_module__bz2=n/a
endif
ifeq ($(BR2_PACKAGE_HOST_PYTHON3_XZ),y)
HOST_PYTHON3_DEPENDENCIES += host-xz
else
HOST_PYTHON3_CONF_ENV += py_cv_module__lzma=n/a
endif
ifeq ($(BR2_PACKAGE_HOST_PYTHON3_CURSES),y)
HOST_PYTHON3_DEPENDENCIES += host-ncurses
else