From: Thomas Huth <[email protected]> pc-bios/optionrom/Makefile uses $(PYTHON) for running a Python script, but this variable is never initialized here. So the script gets run via its shebang line - which fails if the "python3" binary is not available on the system. To fix this, write the PYTHON configuration to the config.mak file of the optionroms.
Signed-off-by: Thomas Huth <[email protected]> Reviewed-by: Daniel P. Berrangé <[email protected]> Reviewed-by: Michael Tokarev <[email protected]> Signed-off-by: Michael Tokarev <[email protected]> --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index e69b3e474e..0d73eefc15 100755 --- a/configure +++ b/configure @@ -1632,6 +1632,7 @@ probe_target_compiler() { } write_target_makefile() { + echo "PYTHON=$python" echo "EXTRA_CFLAGS=$target_cflags" if test -z "$target_cc" && test -z "$target_as"; then test -z "$container_image" && error_exit "Internal error: could not find cross compiler for $1?" -- 2.47.3
