aboutsummaryrefslogtreecommitdiffstats
path: root/package/firmware/wireless-regdb
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2019-07-31 18:11:01 +0200
committerPetr Štetiar <ynezz@true.cz>2019-08-04 22:09:20 +0200
commitb6bae4a2c9f11f7e55319c2b4c709396ce649688 (patch)
tree0f43075e5d65c5444b1207ffe1e32ae4cf7820c2 /package/firmware/wireless-regdb
parenta8098607af11422c9a0a80d1749458784c0cf1f4 (diff)
downloadupstream-b6bae4a2c9f11f7e55319c2b4c709396ce649688.tar.gz
upstream-b6bae4a2c9f11f7e55319c2b4c709396ce649688.tar.bz2
upstream-b6bae4a2c9f11f7e55319c2b4c709396ce649688.zip
wireless-regdb: fix build when python2 from package feeds exists
wireless-regdb fails to build if there is python2 installed from package feeds, as staging_dir/hostpkg/bin/python is python2 and staging_dir/hostpkg/bin takes precedence over staging_dir/host/bin (proper place with python -> python3 symlink) which leads to the build failure of wireless-regdb, so this patch makes it explicit which python should be used. Reported-by: Hauke Mehrtens <hauke@hauke-m.de> Tested-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> Tested-by: Russell Senior <russell@personaltelco.net> Tested-by: Lucian Cristian <lucian.cristian@gmail.com> Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'package/firmware/wireless-regdb')
-rw-r--r--package/firmware/wireless-regdb/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/firmware/wireless-regdb/Makefile b/package/firmware/wireless-regdb/Makefile
index 88a8d0bd9c..26f470af44 100644
--- a/package/firmware/wireless-regdb/Makefile
+++ b/package/firmware/wireless-regdb/Makefile
@@ -20,7 +20,7 @@ define Package/wireless-regdb
endef
define Build/Compile
- $(PYTHON) $(PKG_BUILD_DIR)/db2fw.py $(PKG_BUILD_DIR)/regulatory.db $(PKG_BUILD_DIR)/db.txt
+ $(STAGING_DIR_HOST)/bin/$(PYTHON) $(PKG_BUILD_DIR)/db2fw.py $(PKG_BUILD_DIR)/regulatory.db $(PKG_BUILD_DIR)/db.txt
endef
define Package/wireless-regdb/install