Skip to content

Commit 134bb59

Browse files
oharboeclaude
andcommitted
flow: move PYTHON_EXE definition before platform config.mk include
config.mk files may use $(shell $(PYTHON_EXE) ...) to generate variables. PYTHON_EXE must be defined before the include directive at variables.mk:40, not after it at the former line 73. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent 1918034 commit 134bb59

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎flow/scripts/variables.mk‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ else
3737
$(error [ERROR][FLOW] Platform '$(PLATFORM)' not found.)
3838
endif
3939

40+
# PYTHON_EXE must be defined before including config.mk, as
41+
# config.mk may use $(shell $(PYTHON_EXE) ...) to generate variables.
42+
export PYTHON_EXE ?= $(shell command -v python3)
43+
4044
include $(PLATFORM_DIR)/config.mk
4145

4246
# __SPACE__ is a workaround for whitespace hell in "foreach"; there
@@ -70,7 +74,6 @@ export NUM_CORES
7074

7175
#-------------------------------------------------------------------------------
7276
# setup all commands used within this flow
73-
export PYTHON_EXE ?= $(shell command -v python3)
7477

7578
export TIME_BIN ?= env time
7679
TIME_CMD = $(TIME_BIN) -f 'Elapsed time: %E[h:]min:sec. CPU time: user %U sys %S (%P). Peak memory: %MKB.'

0 commit comments

Comments
 (0)