summaryrefslogtreecommitdiff
path: root/platforms/chibios
diff options
context:
space:
mode:
authorDasky <32983009+daskygit@users.noreply.github.com>2022-05-30 23:04:50 +0100
committerGitHub <noreply@github.com>2022-05-31 08:04:50 +1000
commit2de70e6f2d5c7217ec0a0f318e999a0644d9db0d (patch)
tree73dc1a2747d02764a6d22c9191b513171233fb54 /platforms/chibios
parent31fb14152827e7915b774f7c0d37504c8b3edeb8 (diff)
downloadqmk_firmware-2de70e6f2d5c7217ec0a0f318e999a0644d9db0d.tar.gz
qmk_firmware-2de70e6f2d5c7217ec0a0f318e999a0644d9db0d.zip
Add uf2-split-* make targets. (#17257)
Diffstat (limited to 'platforms/chibios')
-rw-r--r--platforms/chibios/flash.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/platforms/chibios/flash.mk b/platforms/chibios/flash.mk
index a91ef2cf35..86bbc22943 100644
--- a/platforms/chibios/flash.mk
+++ b/platforms/chibios/flash.mk
@@ -54,11 +54,11 @@ endef
# TODO: Remove once ARM has a way to configure EECONFIG_HANDEDNESS
# within the emulated eeprom via dfu-util or another tool
-ifneq (,$(filter $(MAKECMDGOALS),dfu-util-split-left))
+ifneq (,$(filter $(MAKECMDGOALS), dfu-util-split-left uf2-split-left))
OPT_DEFS += -DINIT_EE_HANDS_LEFT
endif
-ifneq (,$(filter $(MAKECMDGOALS),dfu-util-split-right))
+ifneq (,$(filter $(MAKECMDGOALS), dfu-util-split-right uf2-split-right))
OPT_DEFS += -DINIT_EE_HANDS_RIGHT
endif
@@ -66,6 +66,10 @@ dfu-util-split-left: dfu-util
dfu-util-split-right: dfu-util
+uf2-split-left: flash
+
+uf2-split-right: flash
+
ST_LINK_CLI ?= st-link_cli
ST_LINK_ARGS ?=