This enables use of something else than the system 'python3' binary.
Signed-off-by: Olaf Hering <[email protected]>
---
automation/scripts/build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/automation/scripts/build b/automation/scripts/build
index 34416297a4..5d806c235a 100755
--- a/automation/scripts/build
+++ b/automation/scripts/build
@@ -93,7 +93,7 @@ else
# Qemu requires Python 3.8 or later, and ninja
# and Clang 10 or later
- if ! type python3 || ! python3 automation/scripts/qemu-deps-check.py \
+ if ! type "${PYTHON:-python3}" || ! "${PYTHON:-python3}"
automation/scripts/qemu-deps-check.py \
|| [[ "$cc_is_clang" == y && "$cc_ver" -lt 0x0a0000 ]] \
|| ! type ninja; then
cfgargs+=("--with-system-qemu=/bin/false")