software/common.mak: use PYTHON env var

This commit is contained in:
Sebastien Bourdeauducq 2015-07-31 18:31:04 +08:00
parent eb643f1132
commit 04934ff3f1
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ include $(MSCDIR)/software/include/generated/cpu.mak
TARGET_PREFIX=$(TRIPLE)-
RM ?= rm -f
PYTHON ?= python3
ifeq ($(CLANG),1)
CC_normal := clang -target $(TRIPLE) -integrated-as
@ -20,7 +21,7 @@ AR_quiet = @echo " AR " $@ && $(AR_normal)
LD_quiet = @echo " LD " $@ && $(LD_normal)
OBJCOPY_quiet = @echo " OBJCOPY " $@ && $(OBJCOPY_normal)
MSC_GIT_ID := $(shell cd $(MSCDIR) && python3 -c "from misoclib.cpu.identifier import get_id; print(hex(get_id()), end='')")
MSC_GIT_ID := $(shell cd $(MSCDIR) && $(PYTHON) -c "from misoclib.cpu.identifier import get_id; print(hex(get_id()), end='')")
ifeq ($(V),1)
CC = $(CC_normal)