summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/Makefile3
-rw-r--r--lang/python/files/python-host.mk4
2 files changed, 7 insertions, 0 deletions
diff --git a/lang/python/Makefile b/lang/python/Makefile
index c333f8e08..336c3b0a6 100644
--- a/lang/python/Makefile
+++ b/lang/python/Makefile
@@ -7,6 +7,9 @@
include $(TOPDIR)/rules.mk
+# This file provides the necsessary host build variables
+include ./files/python-host.mk
+
# The file included below defines PYTHON_VERSION
include ./files/python-package.mk
diff --git a/lang/python/files/python-host.mk b/lang/python/files/python-host.mk
index 0a5eb4193..da24f3dc1 100644
--- a/lang/python/files/python-host.mk
+++ b/lang/python/files/python-host.mk
@@ -5,6 +5,9 @@
# See /LICENSE for more information.
#
+ifneq ($(__python_host_mk_inc),1)
+__python_host_mk_inc=1
+
# Compatibility fallback for older OpenWrt and LEDE versions
ifeq ($(STAGING_DIR_HOSTPKG),)
$(warning STAGING_DIR_HOSTPKG is unset - falling back to $$(STAGING_DIR)/host)
@@ -71,3 +74,4 @@ define Build/Compile/HostPyMod
$(3))
endef
+endif # __python_host_mk_inc