diff options
author | Sean Cross <sean@xobs.io> | 2019-10-19 14:04:52 +0800 |
---|---|---|
committer | Sean Cross <sean@xobs.io> | 2019-10-19 14:04:52 +0800 |
commit | 82f60ba938749ab20694f9070f1046e393f16f3c (patch) | |
tree | 78f82dfdc3c13c9d8809be4081db6d67abc99bb6 /techlibs/ecp5 | |
parent | e8ef3fcdfcacbc711a4722deee95f0707634bed0 (diff) | |
download | yosys-82f60ba938749ab20694f9070f1046e393f16f3c.tar.gz yosys-82f60ba938749ab20694f9070f1046e393f16f3c.tar.bz2 yosys-82f60ba938749ab20694f9070f1046e393f16f3c.zip |
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>
Diffstat (limited to 'techlibs/ecp5')
-rw-r--r-- | techlibs/ecp5/Makefile.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/techlibs/ecp5/Makefile.inc b/techlibs/ecp5/Makefile.inc index 5832d07ee..46463f510 100644 --- a/techlibs/ecp5/Makefile.inc +++ b/techlibs/ecp5/Makefile.inc @@ -27,12 +27,12 @@ EXTRA_OBJS += techlibs/ecp5/brams_init.mk techlibs/ecp5/brams_connect.mk techlibs/ecp5/brams_init.mk: techlibs/ecp5/brams_init.py $(Q) mkdir -p techlibs/ecp5 - $(P) python3 $< + $(P) $(PYTHON_EXECUTABLE) $< $(Q) touch $@ techlibs/ecp5/brams_connect.mk: techlibs/ecp5/brams_connect.py $(Q) mkdir -p techlibs/ecp5 - $(P) python3 $< + $(P) $(PYTHON_EXECUTABLE) $< $(Q) touch $@ |