From 04934ff3f195a98af16797584255b7faf7de3642 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 31 Jul 2015 18:31:04 +0800 Subject: [PATCH] software/common.mak: use PYTHON env var --- software/common.mak | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/software/common.mak b/software/common.mak index d16d2b3f..72f42fcb 100644 --- a/software/common.mak +++ b/software/common.mak @@ -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) -- 2.30.2