From 85e8e01391aa4bffa13a2066da54f269eb178973 Mon Sep 17 00:00:00 2001 From: crasbe Date: Thu, 3 Apr 2025 21:45:19 +0200 Subject: [PATCH] buildsystem: set term goal to NOTPARALLEL --- Makefile.include | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile.include b/Makefile.include index 74b756e197..a42691a386 100644 --- a/Makefile.include +++ b/Makefile.include @@ -870,6 +870,10 @@ TERMFLASHDEPS ?= $(filter flash flash-only,$(MAKECMDGOALS)) TERMDEPS += $(TERMFLASHDEPS) termdeps: $(TERMDEPS) +# (At least) the native targets don't have `flash` as a dependency, +# therefore the terminal will be called before the compilation is done. +# Setting `term` to NOTPARALLEL makes sure it is not executed during compilation. +.NOTPARALLEL: term term: $(TERMDEPS) $(call check_cmd,$(TERMPROG),Terminal program) ${TERMENV} $(TERMPROG) $(TERMFLAGS) $(TERMTEE)