Skip to content

Commit

Permalink
Merge pull request #12014 from cladmi/pr/cpu_cpu_model/migration/stra…
Browse files Browse the repository at this point in the history
…ightforward_ones

 boards: move CPU/CPU_MODEL definition to Makefile.features
  • Loading branch information
jcarrano authored Aug 21, 2019
2 parents 8724078 + 636285e commit e2b2b8e
Show file tree
Hide file tree
Showing 266 changed files with 346 additions and 699 deletions.
2 changes: 2 additions & 0 deletions boards/acd52832/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
CPU_MODEL = nrf52832xxaa

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_i2c
FEATURES_PROVIDED += periph_spi
Expand Down
3 changes: 0 additions & 3 deletions boards/acd52832/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# define the cpu used by the acd52832
export CPU_MODEL = nrf52832xxaa

# set default port depending on operating system
PORT_LINUX ?= /dev/ttyUSB0

Expand Down
2 changes: 2 additions & 0 deletions boards/airfy-beacon/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
CPU_MODEL = nrf51x22xxaa

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_adc
FEATURES_PROVIDED += periph_i2c
Expand Down
3 changes: 0 additions & 3 deletions boards/airfy-beacon/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# define the used CPU model
export CPU_MODEL = nrf51x22xxaa

# include common nrf51 boards module into the build
USEMODULE += boards_common_nrf51

Expand Down
4 changes: 2 additions & 2 deletions boards/arduino-duemilanove/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
include $(RIOTBOARD)/common/arduino-atmega/Makefile.features
CPU = atmega328p

include $(RIOTCPU)/atmega328p/Makefile.features
include $(RIOTBOARD)/common/arduino-atmega/Makefile.features
3 changes: 0 additions & 3 deletions boards/arduino-duemilanove/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# define the cpu used by the ardudino duemilanove board
export CPU = atmega328p

# configure the terminal program
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
Expand Down
4 changes: 2 additions & 2 deletions boards/arduino-leonardo/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
include $(RIOTBOARD)/common/arduino-atmega/Makefile.features
CPU = atmega32u4

include $(RIOTCPU)/atmega32u4/Makefile.features
include $(RIOTBOARD)/common/arduino-atmega/Makefile.features
3 changes: 0 additions & 3 deletions boards/arduino-leonardo/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# define the cpu used by the arduino uno board
export CPU = atmega32u4

PORT_LINUX ?= /dev/ttyUSB0
AVRDUDE_PORT ?= /dev/ttyACM0
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
Expand Down
4 changes: 2 additions & 2 deletions boards/arduino-mega2560/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CPU = atmega2560

FEATURES_PROVIDED += puf_sram
include $(RIOTBOARD)/common/arduino-atmega/Makefile.features

include $(RIOTCPU)/atmega2560/Makefile.features
3 changes: 0 additions & 3 deletions boards/arduino-mega2560/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# define the cpu used by the arduino mega2560 board
export CPU = atmega2560

USEMODULE += boards_common_arduino-atmega

# configure the terminal program
Expand Down
2 changes: 0 additions & 2 deletions boards/arduino-mkr1000/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
include $(RIOTBOARD)/common/arduino-mkr/Makefile.features

include $(RIOTCPU)/samd21/Makefile.features
2 changes: 0 additions & 2 deletions boards/arduino-mkrfox1200/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
include $(RIOTBOARD)/common/arduino-mkr/Makefile.features

include $(RIOTCPU)/samd21/Makefile.features
2 changes: 0 additions & 2 deletions boards/arduino-mkrzero/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
include $(RIOTBOARD)/common/arduino-mkr/Makefile.features

include $(RIOTCPU)/samd21/Makefile.features
4 changes: 2 additions & 2 deletions boards/arduino-nano/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
include $(RIOTBOARD)/common/arduino-atmega/Makefile.features
CPU = atmega328p

include $(RIOTCPU)/atmega328p/Makefile.features
include $(RIOTBOARD)/common/arduino-atmega/Makefile.features
3 changes: 0 additions & 3 deletions boards/arduino-nano/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# define the cpu used by the Arduino Nano board
export CPU = atmega328p

# configure the terminal program
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
Expand Down
4 changes: 2 additions & 2 deletions boards/arduino-uno/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
include $(RIOTBOARD)/common/arduino-atmega/Makefile.features
CPU = atmega328p

include $(RIOTCPU)/atmega328p/Makefile.features
include $(RIOTBOARD)/common/arduino-atmega/Makefile.features
3 changes: 0 additions & 3 deletions boards/arduino-uno/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# define the cpu used by the arduino uno board
export CPU = atmega328p

# configure the terminal program
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
Expand Down
5 changes: 3 additions & 2 deletions boards/arduino-zero/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
CPU = samd21
CPU_MODEL = samd21g18a

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_i2c
FEATURES_PROVIDED += periph_pwm
Expand All @@ -10,5 +13,3 @@ FEATURES_PROVIDED += periph_usbdev

# Various other features (if any)
FEATURES_PROVIDED += arduino

include $(RIOTCPU)/samd21/Makefile.features
4 changes: 0 additions & 4 deletions boards/arduino-zero/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# define the cpu used by Arduino/Genuino Zero board
export CPU = samd21
export CPU_MODEL = samd21g18a

# set edbg device type
EDBG_DEVICE_TYPE = atmel_cm0p

Expand Down
5 changes: 3 additions & 2 deletions boards/b-l072z-lrwan1/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
CPU = stm32l0
CPU_MODEL = stm32l072cz

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_dma
FEATURES_PROVIDED += periph_i2c
Expand All @@ -12,5 +15,3 @@ FEATURES_PROVIDED += periph_uart
# The 0.10.0 openocd version in Ubuntu Bionic doesn't work. The change was
# introduced after Jun 8, 2017 - v0.10.0-1-20170607-2132-dev.
FEATURES_PROVIDED += riotboot

include $(RIOTCPU)/stm32l0/Makefile.features
4 changes: 0 additions & 4 deletions boards/b-l072z-lrwan1/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
## the cpu to build for
export CPU = stm32l0
export CPU_MODEL = stm32l072cz

# we use shared STM32 configuration snippets
INCLUDES += -I$(RIOTBOARD)/common/stm32/include

Expand Down
5 changes: 3 additions & 2 deletions boards/b-l475e-iot01a/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
CPU = stm32l4
CPU_MODEL = stm32l475vg

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_dma
FEATURES_PROVIDED += periph_i2c
Expand All @@ -10,5 +13,3 @@ FEATURES_PROVIDED += periph_uart

# Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += riotboot

include $(RIOTCPU)/stm32l4/Makefile.features
4 changes: 0 additions & 4 deletions boards/b-l475e-iot01a/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# the cpu to build for
export CPU = stm32l4
export CPU_MODEL = stm32l475vg

# we use shared STM32 configuration snippets
INCLUDES += -I$(RIOTBOARD)/common/stm32/include

Expand Down
2 changes: 2 additions & 0 deletions boards/calliope-mini/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
CPU_MODEL = nrf51x22xxab

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_i2c
FEATURES_PROVIDED += periph_uart
Expand Down
3 changes: 0 additions & 3 deletions boards/calliope-mini/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# define the used CPU
export CPU_MODEL = nrf51x22xxab

# define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
Expand Down
5 changes: 3 additions & 2 deletions boards/cc2650-launchpad/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
CPU = cc26x0
CPU_MODEL = cc26x0f128

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_gpio periph_gpio_irq
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_uart
FEATURES_PROVIDED += periph_i2c

include $(RIOTCPU)/cc26x0/Makefile.features
2 changes: 0 additions & 2 deletions boards/cc2650-launchpad/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export CPU = cc26x0
export CPU_MODEL = cc26x0f128
export XDEBUGGER = XDS110

# set default port depending on operating system
Expand Down
5 changes: 3 additions & 2 deletions boards/cc2650stk/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
CPU = cc26x0
CPU_MODEL = cc26x0f128

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_gpio periph_gpio_irq
FEATURES_PROVIDED += periph_i2c
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_uart

include $(RIOTCPU)/cc26x0/Makefile.features
2 changes: 0 additions & 2 deletions boards/cc2650stk/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export CPU = cc26x0
export CPU_MODEL = cc26x0f128
export XDEBUGGER = XDS110

# set default port depending on operating system
Expand Down
5 changes: 3 additions & 2 deletions boards/chronos/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
CPU = cc430
CPU_MODEL = cc430f6137

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_rtc

# Various other features (if any)

include $(RIOTCPU)/cc430/Makefile.features
4 changes: 0 additions & 4 deletions boards/chronos/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
## the cpu to build for
export CPU = cc430
export CPU_MODEL = cc430f6137

# flasher configuration
FLASHFILE ?= $(HEXFILE)
FLASHER = mspdebug
Expand Down
5 changes: 3 additions & 2 deletions boards/common/arduino-due/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
CPU = sam3
CPU_MODEL = sam3x8e

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_adc
FEATURES_PROVIDED += periph_dac
Expand All @@ -9,5 +12,3 @@ FEATURES_PROVIDED += periph_uart

# Various other features (if any)
FEATURES_PROVIDED += arduino

include $(RIOTCPU)/sam3/Makefile.features
4 changes: 0 additions & 4 deletions boards/common/arduino-due/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# define the cpu used by the arduino due based boards
export CPU = sam3
export CPU_MODEL = sam3x8e

# export this module and its includes
USEMODULE += boards_common_arduino_due
INCLUDES += -I$(RIOTBOARD)/common/arduino-due/include
Expand Down
4 changes: 4 additions & 0 deletions boards/common/arduino-mkr/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
CPU = samd21
CPU_MODEL = samd21g18a


# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_adc
FEATURES_PROVIDED += periph_i2c
Expand Down
4 changes: 0 additions & 4 deletions boards/common/arduino-mkr/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# define the cpu used by Arduino/Genuino MKR1000 board
export CPU = samd21
export CPU_MODEL = samd21g18a

PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))

Expand Down
3 changes: 3 additions & 0 deletions boards/common/iotlab/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
CPU = stm32f1
CPU_MODEL = stm32f103re

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_i2c
FEATURES_PROVIDED += periph_rtt
Expand Down
4 changes: 0 additions & 4 deletions boards/common/iotlab/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# the cpu to build for
export CPU = stm32f1
export CPU_MODEL = stm32f103re

# define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyUSB1
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbserial*B)))
Expand Down
2 changes: 0 additions & 2 deletions boards/common/kw41z/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += saul_adc
USEMODULE += saul_gpio
endif

include $(RIOTCPU)/kinetis/Makefile.dep
5 changes: 3 additions & 2 deletions boards/common/kw41z/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
CPU = kinetis
CPU_MODEL = mkw41z512vht4

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_adc
FEATURES_PROVIDED += periph_rtc
Expand All @@ -7,5 +10,3 @@ FEATURES_PROVIDED += periph_uart

# Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += riotboot

include $(RIOTCPU)/kinetis/Makefile.features
4 changes: 0 additions & 4 deletions boards/common/kw41z/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# define the cpu used by the board
export CPU = kinetis
export CPU_MODEL = mkw41z512vht4

# include this module into the build
INCLUDES += -I$(RIOTBOARD)/common/kw41z/include

Expand Down
3 changes: 2 additions & 1 deletion boards/common/msb-430/Makefile.features
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
include $(RIOTCPU)/msp430fxyz/Makefile.features
CPU = msp430fxyz
CPU_MODEL = msp430f1612
4 changes: 0 additions & 4 deletions boards/common/msb-430/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
## the cpu to build for
export CPU = msp430fxyz
export CPU_MODEL = msp430f1612

# set default port depending on operating system
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
Expand Down
2 changes: 1 addition & 1 deletion boards/common/msba2/Makefile.features
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include $(RIOTCPU)/lpc2387/Makefile.features
CPU = lpc2387
3 changes: 0 additions & 3 deletions boards/common/msba2/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
BOARDS_COMMON_MSBA2_DIR := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))

## the cpu to build for
export CPU = lpc2387

# Compile `lpc2k_pgm` when required
# It is still compiling in `boards` as it was the case before introducing the
# rule to autobuild
Expand Down
4 changes: 2 additions & 2 deletions boards/common/nrf51/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
CPU = nrf51

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_rtt
FEATURES_PROVIDED += periph_timer

# Various other features (if any)
FEATURES_PROVIDED += ble_nimble

-include $(RIOTCPU)/nrf51/Makefile.features
3 changes: 0 additions & 3 deletions boards/common/nrf51/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# define the used CPU
export CPU = nrf51

# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk

Expand Down
2 changes: 2 additions & 0 deletions boards/common/particle-mesh/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
CPU_MODEL = nrf52840xxaa

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_i2c
FEATURES_PROVIDED += periph_spi
Expand Down
2 changes: 0 additions & 2 deletions boards/common/particle-mesh/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export CPU_MODEL = nrf52840xxaa

# set default port depending on operating system
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
Expand Down
3 changes: 2 additions & 1 deletion boards/common/remote/Makefile.features
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
include $(RIOTCPU)/cc2538/Makefile.features
CPU = cc2538
CPU_MODEL = cc2538sf53
4 changes: 0 additions & 4 deletions boards/common/remote/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# define the cpu used by the RE-mote board
export CPU = cc2538
export CPU_MODEL = cc2538sf53

# define the default flash-tool
export PROGRAMMER ?= cc2538-bsl

Expand Down
4 changes: 2 additions & 2 deletions boards/common/saml1x/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
CPU = saml1x

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_adc
FEATURES_PROVIDED += periph_i2c
Expand All @@ -9,5 +11,3 @@ FEATURES_PROVIDED += periph_uart

# Put other features on these boards (in alphabetical order)
FEATURES_PROVIDED += riotboot

include $(RIOTCPU)/saml1x/Makefile.features
3 changes: 0 additions & 3 deletions boards/common/saml1x/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# define the cpu used by the saml11 board
export CPU = saml1x

# set edbg device type
EDBG_DEVICE_TYPE = mchp_cm23

Expand Down
Loading

0 comments on commit e2b2b8e

Please sign in to comment.