From 63db1215bc164be8f048cc87628cf602915ad482 Mon Sep 17 00:00:00 2001 From: Dual Tachyon Date: Sat, 12 Aug 2023 21:19:34 +0100 Subject: [PATCH] Moved arm-size to a macro. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bee9fc3..cfc3de1 100644 --- a/Makefile +++ b/Makefile @@ -50,6 +50,7 @@ AS = arm-none-eabi-as CC = arm-none-eabi-gcc LD = arm-none-eabi-gcc OBJCOPY = arm-none-eabi-objcopy +SIZE = arm-none-eabi-size ASFLAGS = -mcpu=cortex-m0 CFLAGS = -O2 -Wall -Werror -mcpu=cortex-m0 -fno-builtin -MMD @@ -76,7 +77,7 @@ DEPS = $(OBJS:.o=.d) all: $(TARGET) $(OBJCOPY) -O binary $< $<.bin - arm-none-eabi-size firmware + $(SIZE) $< $(OVERLAY).bin: $(OVERLAY) $(OBJCOPY) -O binary $< $@