mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 15:03:53 +01:00
Merge pull request #3191 from kaspar030/set_default_cpu_model
cpu: cortexm_common: set default value for CPU_MODEL
This commit is contained in:
commit
43b8e1cdb1
@ -1,6 +1,5 @@
|
||||
# define the cpu used by the arduino due board
|
||||
export CPU = sam3x8e
|
||||
export CPU_MODEL = sam3x8e
|
||||
|
||||
# define the default port depending on the host OS
|
||||
PORT_LINUX ?= /dev/ttyACM0
|
||||
|
||||
@ -1,7 +1,5 @@
|
||||
# define the cpu used by the mbed_lpx1768 board
|
||||
export CPU = lpc1768
|
||||
export CPU_MODEL = lpc1768
|
||||
|
||||
|
||||
export FLASHER = $(RIOTBOARD)/$(BOARD)/dist/flash.sh
|
||||
export DEBUGGER =
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
# define the cpu used by the udoo board
|
||||
export CPU = sam3x8e
|
||||
export CPU_MODEL = sam3x8e
|
||||
|
||||
#define the flash-tool and default port depending on the host operating system
|
||||
OS := $(shell uname)
|
||||
|
||||
@ -8,6 +8,9 @@ export USEMODULE += periph
|
||||
# all cortex MCU's use newlib as libc
|
||||
export USEMODULE += newlib
|
||||
|
||||
# set default for CPU_MODEL
|
||||
export CPU_MODEL ?= $(CPU)
|
||||
|
||||
# export the CPU model and architecture
|
||||
MODEL = $(shell echo $(CPU_MODEL) | tr 'a-z' 'A-Z')
|
||||
export CFLAGS += -DCPU_MODEL_$(MODEL)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user