Skip to content

Commit

Permalink
Add cortex-m0 build config
Browse files Browse the repository at this point in the history
  • Loading branch information
PetteriAimonen committed Jul 2, 2017
1 parent 68d728f commit 8798fb0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Expand Up @@ -8,6 +8,12 @@ ifeq ($(PLATFORM),cortex-m3)
CFLAGS += -mcpu=cortex-m3 -mthumb
CFLAGS += -fno-common -Os
CFLAGS += -ffunction-sections -fdata-sections
else ifeq ($(PLATFORM),cortex-m0)
CC = arm-none-eabi-gcc
AR = arm-none-eabi-ar
CFLAGS += -mcpu=cortex-m0 -mthumb
CFLAGS += -fno-common -Os
CFLAGS += -ffunction-sections -fdata-sections
endif

# With this, the makefile should work on Windows also.
Expand Down

0 comments on commit 8798fb0

Please sign in to comment.