From cad34baa94e924bfd43575783481f1eb39a986fd Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Fri, 29 May 2020 19:53:01 -0700 Subject: [PATCH] Add drop target --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 82b2515..787c6cb 100644 --- a/Makefile +++ b/Makefile @@ -30,8 +30,7 @@ CONFIG_DEPS = \ $(wildcard $(PLATFORM)/*.h) \ $(wildcard $(JD_CORE)/*.h) \ $(wildcard targets/$(TARGET)/*.h) \ - targets/$(TARGET)/config.mk \ - Makefile + targets/$(TARGET)/config.mk ifeq ($(BL),) PREF = app @@ -215,3 +214,12 @@ run-combined: force: @echo forcing... + +DROP_TARGETS = jm-v2.0 jm-v2.0i + +targ-%: + $(MAKE) TARGET=$(subst targ-,,$@) + cd built; cat $(addsuffix /*.uf2,$(DROP_TARGETS)) > drop.uf2 + @ls -l built/drop.uf2 + +drop: $(addprefix targ-,$(DROP_TARGETS))