Makefile: don't assume python is called `python3`
authorSean Cross <sean@xobs.io>
Sat, 19 Oct 2019 06:04:52 +0000 (14:04 +0800)
committerSean Cross <sean@xobs.io>
Sat, 19 Oct 2019 06:04:52 +0000 (14:04 +0800)
commit82f60ba938749ab20694f9070f1046e393f16f3c
tree78f82dfdc3c13c9d8809be4081db6d67abc99bb6
parente8ef3fcdfcacbc711a4722deee95f0707634bed0
Makefile: don't assume python is called `python3`

On some architectures, notably on Windows, the official name for the
Python binary from python.org is `python`.  The build system assumes
that python is called `python3`, which breaks under this architecture.

There is already infrastructure in place to determine the name of the
Python binary when building PYOSYS.  Since Python is now always required
to build Yosys, enable this check universally which sets the
`PYTHON_EXECUTABLE` variable.

Then, reuse this variable in other Makefiles as necessary, rather than
hardcoding `python3` everywhere.

Signed-off-by: Sean Cross <sean@xobs.io>
Makefile
passes/pmgen/Makefile.inc
techlibs/common/Makefile.inc
techlibs/ecp5/Makefile.inc
techlibs/ice40/Makefile.inc
techlibs/xilinx/Makefile.inc