mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 00:20:38 -09:00
package/zfs: drop python2 support
Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
committed by
Yann E. MORIN
parent
cb4ac01d5a
commit
55df30f8b1
@@ -37,17 +37,7 @@ else
|
|||||||
ZFS_CONF_OPTS += --disable-systemd
|
ZFS_CONF_OPTS += --disable-systemd
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# The optional PyZFS uses different scripts depending on the python
|
ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
||||||
# version (ex: arc_summary2 or arc_summary3).
|
|
||||||
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
|
||||||
ZFS_DEPENDENCIES += python python-setuptools host-python-cffi host-python-packaging
|
|
||||||
ZFS_CONF_ENV += \
|
|
||||||
PYTHON=$(HOST_DIR)/usr/bin/python2 \
|
|
||||||
PYTHON_CPPFLAGS="`$(STAGING_DIR)/usr/bin/python2-config --includes`" \
|
|
||||||
PYTHON_LIBS="`$(STAGING_DIR)/usr/bin/python2-config --ldflags`" \
|
|
||||||
PYTHON_SITE_PKG="/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages"
|
|
||||||
ZFS_CONF_OPTS += --enable-pyzfs
|
|
||||||
else ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
|
||||||
ZFS_DEPENDENCIES += python3 python-setuptools host-python-cffi host-python-packaging
|
ZFS_DEPENDENCIES += python3 python-setuptools host-python-cffi host-python-packaging
|
||||||
ZFS_CONF_ENV += \
|
ZFS_CONF_ENV += \
|
||||||
PYTHON=$(HOST_DIR)/usr/bin/python3 \
|
PYTHON=$(HOST_DIR)/usr/bin/python3 \
|
||||||
|
|||||||
Reference in New Issue
Block a user