aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Common.mk2
1 files changed, 2 insertions, 0 deletions
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 $@