diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-08-14 13:59:41 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-08-14 21:08:28 -0400 |
commit | 71bb7acb8e9ec5a9838d60604ac9e74614e234b4 (patch) | |
tree | c9ef6d22916d4b6733ae1425e0228a9bea577ca1 /src/pru | |
parent | 4b5109c1b9bf5ac74d749dc63a17dbf3f840482f (diff) | |
download | kutter-71bb7acb8e9ec5a9838d60604ac9e74614e234b4.tar.gz kutter-71bb7acb8e9ec5a9838d60604ac9e74614e234b4.tar.xz kutter-71bb7acb8e9ec5a9838d60604ac9e74614e234b4.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'src/pru')
-rw-r--r-- | src/pru/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |