summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/kmod/kmod.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/kmod/kmod.mk b/package/kmod/kmod.mk
index 398740712c..7cc2d655e9 100644
--- a/package/kmod/kmod.mk
+++ b/package/kmod/kmod.mk
@@ -32,8 +32,8 @@ KMOD_DEPENDENCIES += xz
KMOD_CONF_OPT += --with-xz
endif
-ifeq ($(BR2_PACKAGE_PYTHON),y)
-KMOD_DEPENDENCIES += python
+ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),y)
+KMOD_DEPENDENCIES += $(if $(BR2_PACKAGE_PYTHON),python,python3)
KMOD_CONF_OPT += --enable-python
endif
OpenPOWER on IntegriCloud