From 7836716c2fe4ebdc909118eb65885816db364712 Mon Sep 17 00:00:00 2001 From: Alex Taradov Date: Mon, 4 Apr 2022 00:07:58 -0700 Subject: [PATCH] Created Makefile variable for a bin2uf2 tool --- platform/rp2040/make/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/platform/rp2040/make/Makefile b/platform/rp2040/make/Makefile index 5244806..8c1265c 100644 --- a/platform/rp2040/make/Makefile +++ b/platform/rp2040/make/Makefile @@ -5,9 +5,10 @@ BIN = free_dap_rp2040 ############################################################################## .PHONY: all directory clean size release -CC = arm-none-eabi-gcc +CC = arm-none-eabi-gcc OBJCOPY = arm-none-eabi-objcopy -SIZE = arm-none-eabi-size +SIZE = arm-none-eabi-size +BIN2UF2 = bin2uf2 ifeq ($(OS), Windows_NT) MKDIR = gmkdir @@ -68,7 +69,7 @@ $(BUILD)/$(BIN).bin: $(BUILD)/$(BIN).elf $(BUILD)/$(BIN).uf2: $(BUILD)/$(BIN).bin @echo BIN2UF2 $@ - @bin2uf2 -i $^ -o $@ + @$(BIN2UF2) -i $^ -o $@ %.o: @echo CC $@