Skip to content

Commit

Permalink
makefiles/arch/cortexm.inc.mk: removing setting CPU_MODEL
Browse files Browse the repository at this point in the history
All cortexm boards should now define it on there own.
  • Loading branch information
cladmi committed Sep 30, 2019
1 parent 625fbe3 commit 46affe2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions makefiles/arch/cortexm.inc.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
ifeq (,$(CPU_MODEL))
$(error CPU_MODEL must have been defined by the board/cpu Makefile.features)
endif

# Target triple for the build. Use arm-none-eabi if you are unsure.
export TARGET_ARCH ?= arm-none-eabi

Expand Down Expand Up @@ -39,9 +43,6 @@ export USEMODULE += cortexm_common_periph
# all cortex MCU's use newlib as libc
export USEMODULE += newlib

# set default for CPU_MODEL
export CPU_MODEL ?= $(CPU)


# extract version inside the first parentheses
ARM_GCC_VERSION = $(shell $(TARGET_ARCH)-gcc --version | sed -n '1 s/[^(]*(\([^\)]*\)).*/\1/p')
Expand Down

0 comments on commit 46affe2

Please sign in to comment.