software/common.mak: use PYTHON env var
This commit is contained in:
parent
eb643f1132
commit
04934ff3f1
|
@ -2,6 +2,7 @@ include $(MSCDIR)/software/include/generated/cpu.mak
|
||||||
TARGET_PREFIX=$(TRIPLE)-
|
TARGET_PREFIX=$(TRIPLE)-
|
||||||
|
|
||||||
RM ?= rm -f
|
RM ?= rm -f
|
||||||
|
PYTHON ?= python3
|
||||||
|
|
||||||
ifeq ($(CLANG),1)
|
ifeq ($(CLANG),1)
|
||||||
CC_normal := clang -target $(TRIPLE) -integrated-as
|
CC_normal := clang -target $(TRIPLE) -integrated-as
|
||||||
|
@ -20,7 +21,7 @@ AR_quiet = @echo " AR " $@ && $(AR_normal)
|
||||||
LD_quiet = @echo " LD " $@ && $(LD_normal)
|
LD_quiet = @echo " LD " $@ && $(LD_normal)
|
||||||
OBJCOPY_quiet = @echo " OBJCOPY " $@ && $(OBJCOPY_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)
|
ifeq ($(V),1)
|
||||||
CC = $(CC_normal)
|
CC = $(CC_normal)
|
||||||
|
|
Loading…
Reference in New Issue