Skip to content

Commit

Permalink
Merge pull request #12338 from cladmi/pr/make/cortexm/do_not_set_cpu_…
Browse files Browse the repository at this point in the history
…model

makefiles/arch/cortexm.inc.mk: removing setting CPU_MODEL
  • Loading branch information
benpicco authored Oct 1, 2019
2 parents 1663c49 + 3a938d4 commit 5f6065f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions cpu/lpc1768/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This CPU only implements one CPU_MODEL with the same name
CPU_MODEL = lpc1768
FEATURES_PROVIDED += periph_cpuid
FEATURES_PROVIDED += periph_pm

Expand Down
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 5f6065f

Please sign in to comment.