]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
optee-os.mk: override default PATH to not use hostpkg python 18102/head
authorThomas Richard <thomas.richard@bootlin.com>
Mon, 24 Feb 2025 10:15:51 +0000 (11:15 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 15 Mar 2025 12:43:14 +0000 (13:43 +0100)
In some cases hostpkg python from packages feed is used (hostpkg has higher
priority in PATH) which causes build failure (cryptography module is
missing). So override PATH to not use hostpkg python.

Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Link: https://github.com/openwrt/openwrt/pull/18102
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
include/optee-os.mk

index 396d2406bfac925c8d35858e10bf7b60b00d1dfb..3694b498fd583aad6d1b440191323bb989e6623a 100644 (file)
@@ -85,7 +85,7 @@ endef
 
 define Build/Compile/Optee-os
        +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
-               PATH=$(LINUX_DIR)/scripts/dtc/:$(PATH) \
+               PATH=$(LINUX_DIR)/scripts/dtc/:$(STAGING_DIR_HOST)/bin:$(PATH) \
                CROSS_COMPILE=$(TARGET_CROSS) \
                CROSS_COMPILE_core="$(TARGET_CROSS)" \
                CROSS_COMPILE_ta_arm64="$(TARGET_CROSS)" \