diff options
| author | hathach <[email protected]> | 2019-11-24 21:22:42 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-11-24 21:22:42 +0700 |
| commit | 24b2cea139238df8daf278abc9777b95ab60bc16 (patch) | |
| tree | 1836dfe07b2938099cdbf912ff545f5ec114c11c /examples/make.mk | |
| parent | 3d748e6e2eb9561ce27d5239f97aeb1d0d45f1e2 (diff) | |
| parent | 64b05a1d5f312e754bba79f9b38ac5e9ca281a66 (diff) | |
Merge branch 'master' into port-samg55
Diffstat (limited to 'examples/make.mk')
| -rw-r--r-- | examples/make.mk | 12 |
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 |
