From bb6ddd5a82ab4f2afa253b6048a71504c64274bb Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Thu, 24 Mar 2022 10:03:56 -0700 Subject: Remove debug symbols from release build --- Common.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Common.mk b/Common.mk index 4d349c3..5baec27 100644 --- a/Common.mk +++ b/Common.mk @@ -80,6 +80,8 @@ endif default: clean build/kernel7.img build/kernel7.img: CFLAGS += -DRPI_BUILD +build/kernel7.img: CFLAGS := $(filter-out -g,$(CFLAGS)) +build/kernel7.img: AFLAGS := $(filter-out -g,$(AFLAGS)) build/kernel7.img: build/kernel.elf @mkdir -p $(@D) ${OBJCOPY} $< -O binary $@ -- cgit v1.2.1