From 71bb7acb8e9ec5a9838d60604ac9e74614e234b4 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 14 Aug 2017 13:59:41 -0400 Subject: pru: Compile with -Os instead of -O2 The gcc -Os option significantly reduces the size of the PRU binary and it has little impact on performance. Signed-off-by: Kevin O'Connor --- src/pru/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pru') diff --git a/src/pru/Makefile b/src/pru/Makefile index ae70a7da..38f262ec 100644 --- a/src/pru/Makefile +++ b/src/pru/Makefile @@ -6,7 +6,7 @@ CROSS_PREFIX=pru- dirs-y += src/pru src/generic dirs-y += lib/pru_rpmsg -CFLAGS += -minrt -mmcu=am335x.pru1 +CFLAGS += -Os -minrt -mmcu=am335x.pru1 CFLAGS += -Ilib/pru_rpmsg/include -Ilib/pru_rpmsg/include/am335x CFLAGS_klipper.elf := $(filter-out -mmcu=%, $(CFLAGS)) -- cgit v1.2.3-70-g09d2