Skip to content

Commit 04934ff

Browse files
committedJul 31, 2015
software/common.mak: use PYTHON env var
1 parent eb643f1 commit 04934ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

Diff for: ‎software/common.mak

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ include $(MSCDIR)/software/include/generated/cpu.mak
22
TARGET_PREFIX=$(TRIPLE)-
33

44
RM ?= rm -f
5+
PYTHON ?= python3
56

67
ifeq ($(CLANG),1)
78
CC_normal := clang -target $(TRIPLE) -integrated-as
@@ -20,7 +21,7 @@ AR_quiet = @echo " AR " $@ && $(AR_normal)
2021
LD_quiet = @echo " LD " $@ && $(LD_normal)
2122
OBJCOPY_quiet = @echo " OBJCOPY " $@ && $(OBJCOPY_normal)
2223

23-
MSC_GIT_ID := $(shell cd $(MSCDIR) && python3 -c "from misoclib.cpu.identifier import get_id; print(hex(get_id()), end='')")
24+
MSC_GIT_ID := $(shell cd $(MSCDIR) && $(PYTHON) -c "from misoclib.cpu.identifier import get_id; print(hex(get_id()), end='')")
2425

2526
ifeq ($(V),1)
2627
CC = $(CC_normal)

0 commit comments

Comments
 (0)
Please sign in to comment.