summaryrefslogtreecommitdiff
path: root/examples/make.mk
diff options
context:
space:
mode:
Diffstat (limited to 'examples/make.mk')
-rw-r--r--examples/make.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/make.mk b/examples/make.mk
index c2e0559fb..12ce3fd0c 100644
--- a/examples/make.mk
+++ b/examples/make.mk
@@ -2,8 +2,12 @@
# Common make definition for all examples
#
-# Compiler
+# Compiler
+ifeq ($(BOARD), fomu)
+CROSS_COMPILE = riscv-none-embed-
+else
CROSS_COMPILE = arm-none-eabi-
+endif
CC = $(CROSS_COMPILE)gcc
CXX = $(CROSS_COMPILE)g++
OBJCOPY = $(CROSS_COMPILE)objcopy
@@ -81,11 +85,7 @@ CFLAGS += \
ifeq ($(DEBUG), 1)
CFLAGS += -Og -ggdb
else
- ifneq ($(BOARD),spresense)
- CFLAGS += -flto -Os
- else
- CFLAGS += -Os
- endif
+ CFLAGS += -Os
endif
# TUSB Logging option