From 1cda28e8d79803997ef64d58bac2f7084a524cec Mon Sep 17 00:00:00 2001 From: blckmn Date: Fri, 23 May 2025 18:52:07 +1000 Subject: [PATCH] Use semaphore in directory for default goal recipe for target --- Makefile | 9 +++++---- src/platform/PICO/target/RP2350/.uf2 | 0 src/platform/SIMULATOR/target/SITL/.exe | 0 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 src/platform/PICO/target/RP2350/.uf2 create mode 100644 src/platform/SIMULATOR/target/SITL/.exe diff --git a/Makefile b/Makefile index 2e591ccf3e..081b4303df 100644 --- a/Makefile +++ b/Makefile @@ -91,14 +91,15 @@ MAKE_PARALLEL = $(if $(filter -j%, $(MAKEFLAGS)),$(EMPTY),-j$(DEFAULT_PAR # pre-build sanity checks include $(MAKE_SCRIPT_DIR)/checks.mk -# list of targets that are executed on host (using exe as goal) -EXE_TARGETS := SITL -UF2_TARGETS := RP2350 - # basic target list PLATFORMS := $(sort $(notdir $(patsubst /%,%, $(wildcard $(PLATFORM_DIR)/*)))) BASE_TARGETS := $(sort $(notdir $(patsubst %/,%,$(dir $(wildcard $(PLATFORM_DIR)/*/target/*/target.mk))))) +# list of targets that are executed on host - using exe as goal recipe +EXE_TARGETS := $(sort $(notdir $(patsubst %/,%,$(dir $(wildcard $(PLATFORM_DIR)/*/target/*/.exe))))) +# list of targets using uf2 as goal recipe +UF2_TARGETS := $(sort $(notdir $(patsubst %/,%,$(dir $(wildcard $(PLATFORM_DIR)/*/target/*/.uf2))))) +# list of targets using hex as goal recipe (default) HEX_TARGETS := $(filter-out $(EXE_TARGETS) $(UF2_TARGETS),$(BASE_TARGETS)) # configure some directories that are relative to wherever ROOT_DIR is located diff --git a/src/platform/PICO/target/RP2350/.uf2 b/src/platform/PICO/target/RP2350/.uf2 new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/platform/SIMULATOR/target/SITL/.exe b/src/platform/SIMULATOR/target/SITL/.exe new file mode 100644 index 0000000000..e69de29bb2