Skip to content

Commit 8d35760

Browse files
galakAnas Nashif
authored and
Anas Nashif
committed
board: organize boards based on architecture
Introduce an architecture sorting of boards. This is to allow for easier maintenance going forward as the number of boards grows. It will be easier for any scripts to know the board/arch mapping without having to maintain an explicit list of what boards are associated with which arch. We can also do things like have architecture maintainers cover reviews and branches for arch/${ARCH} and boards/${ARCH} going forward. Change-Id: I02e0a30292b31fad58fb5dfab2682ad1c5a7d5a7 Signed-off-by: Kumar Gala <[email protected]>
1 parent fc0fa86 commit 8d35760

File tree

143 files changed

+48
-40
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+48
-40
lines changed

Kconfig.zephyr

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ source "tests/Kconfig"
4848
# because board usually overrides SoC values.
4949
#
5050
source "arch/*/soc/*/Kconfig.defconfig"
51-
source "boards/*/Kconfig.defconfig"
51+
source "boards/*/*/Kconfig.defconfig"

MAINTAINERS

+36-28
Original file line numberDiff line numberDiff line change
@@ -80,57 +80,65 @@ M: Kumar Gala <[email protected]>
8080
S: Supported
8181
F: ext/hal/cmsis/
8282

83-
BOARDS - ALTERA MAX10
84-
M: Andrew Boie <[email protected]>
85-
S: Supported
86-
F: boards/altera_max10/
87-
88-
BOARDS - ARDUINO 101
83+
BOARDS/ARC - ARDUINO 101 SSS
8984
M: Anas Nashif <[email protected]>
9085
S: Supported
91-
F: boards/arduino_101/
92-
F: boards/arduino_101_sss/
86+
F: boards/arc/arduino_101_sss/
9387

94-
BOARDS - EM Starterkit
88+
BOARDS/ARC - EM Starterkit
9589
M: Chuck Jordan <[email protected]>
9690
S: Supported
97-
F: boards/em_starterkit/
91+
F: boards/arc/em_starterkit/
9892

99-
BOARDS - NXP FRDM-K64F
100-
M: Maureen Helm <maureen.helm@nxp.com>
93+
BOARDS/ARC - QUARK SE C1000 SS Devboard
94+
M: Anas Nashif <anas.nashif@intel.com>
10195
S: Supported
102-
F: boards/frdm_k64f/
96+
F: boards/arc/quark_se_c1000_ss_devboard/
10397

104-
BOARDS - Galileo
105-
M: Anas Nashif <[email protected]>
98+
BOARDS/ARM - 96Boards NITROGEN
99+
M: Amit Kucheria <[email protected]>
100+
S: Supported
101+
F: boards/arm/96b_nitrogen/
102+
103+
BOARDS/ARM - NXP FRDM-K64F
104+
M: Maureen Helm <[email protected]>
106105
S: Supported
107-
F: boards/galileo/
106+
F: boards/arm/frdm_k64f/
108107

109-
BOARDS - NXP Hexiwear
108+
BOARDS/ARM - NXP Hexiwear
110109
M: Maureen Helm <[email protected]>
111110
S: Supported
112-
F: boards/hexiwear_k64/
111+
F: boards/arm/hexiwear_k64/
113112

114-
BOARDS - NORDIC NRF52 PCA10040
113+
BOARDS/ARM - NORDIC NRF52 PCA10040
115114
M: Carles Cufi <[email protected]>
116115
S: Supported
117-
F: boards/nrf52_pca10040/
116+
F: boards/arm/nrf52_pca10040/
118117

119-
BOARDS - 96Boards NITROGEN
120-
M: Amit Kucheria <[email protected]>
118+
BOARDS/NIOS2 - ALTERA MAX10
119+
M: Andrew Boie <[email protected]>
120+
S: Supported
121+
F: boards/nios2/altera_max10/
122+
123+
BOARDS/X86 - ARDUINO 101
124+
M: Anas Nashif <[email protected]>
125+
S: Supported
126+
F: boards/x86/arduino_101/
127+
128+
BOARDS/X86 - Galileo
129+
M: Anas Nashif <[email protected]>
121130
S: Supported
122-
F: boards/96b_nitrogen/
131+
F: boards/x86/galileo/
123132

124-
BOARDS - QUARK SE C1000 Devboard
133+
BOARDS/X86 - QUARK D2000 Devboard
125134
M: Anas Nashif <[email protected]>
126135
S: Supported
127-
F: boards/quark_se_c1000/
128-
F: boards/quark_se_c1000_ss/
136+
F: boards/x86/quark_d2000/
129137

130-
BOARDS - QUARK D2000 Devboard
138+
BOARDS/X86 - QUARK SE C1000 Devboard
131139
M: Anas Nashif <[email protected]>
132140
S: Supported
133-
F: boards/quark_d2000/
141+
F: boards/x86/quark_se_c1000/
134142

135143
BLUETOOTH
136144
M: Johan Hedberg <[email protected]>

Makefile

+5-5
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ export ARCH KERNEL_NAME KERNEL_ELF_NAME KERNEL_BIN_NAME KERNEL_HEX_NAME
361361
ZEPHYRINCLUDE = \
362362
-I$(srctree)/arch/$(ARCH)/include \
363363
-I$(srctree)/arch/$(ARCH)/soc/$(SOC_PATH) \
364-
-I$(srctree)/boards/$(BOARD_NAME) \
364+
-I$(srctree)/boards/$(ARCH)/$(BOARD_NAME) \
365365
$(if $(KBUILD_SRC), -I$(srctree)/include) \
366366
-I$(srctree)/include \
367367
-I$(CURDIR)/include/generated \
@@ -732,7 +732,7 @@ KBUILD_LDS := $(subst $(DQUOTE),,$(CONFIG_CUSTOM_LINKER_SCRIPT))
732732
endif
733733
else
734734
# Try a board specific linker file
735-
KBUILD_LDS := $(srctree)/boards/$(BOARD_NAME)/linker.ld
735+
KBUILD_LDS := $(srctree)/boards/$(ARCH)/$(BOARD_NAME)/linker.ld
736736

737737
# If not available, try an SoC specific linker file
738738
ifeq ($(wildcard $(KBUILD_LDS)),)
@@ -1089,7 +1089,7 @@ distclean: mrproper
10891089
# Brief documentation of the typical targets used
10901090
# ---------------------------------------------------------------------------
10911091

1092-
boards := $(wildcard $(srctree)/boards/*/*_defconfig)
1092+
boards := $(wildcard $(srctree)/boards/*/*/*_defconfig)
10931093
boards := $(sort $(notdir $(boards)))
10941094

10951095
kconfig-help:
@@ -1157,7 +1157,7 @@ help-board-dirs := $(addprefix help-,$(board-dirs))
11571157

11581158
help-boards: $(help-board-dirs)
11591159

1160-
boards-per-dir = $(sort $(notdir $(wildcard $(srctree)/boards/$*/*_defconfig)))
1160+
boards-per-dir = $(sort $(notdir $(wildcard $(srctree)/boards/*/$*/*_defconfig)))
11611161

11621162
$(help-board-dirs): help-%:
11631163
@echo 'Architecture specific targets ($(ARCH) $*):'
@@ -1237,7 +1237,7 @@ qemu: zephyr
12371237
qemugdb: QEMU_EXTRA_FLAGS += -s -S
12381238
qemugdb: qemu
12391239

1240-
-include $(srctree)/boards/$(BOARD_NAME)/Makefile.board
1240+
-include $(srctree)/boards/$(ARCH)/$(BOARD_NAME)/Makefile.board
12411241
ifneq ($(FLASH_SCRIPT),)
12421242
flash: zephyr
12431243
@echo "Flashing $(BOARD_NAME)"

Makefile.inc

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ PROJECT_BASE ?= $(CURDIR)
1313
endif
1414

1515
ifdef BOARD
16-
KBUILD_DEFCONFIG_PATH=$(wildcard $(ZEPHYR_BASE)/boards/*/$(BOARD)_defconfig)
16+
KBUILD_DEFCONFIG_PATH=$(wildcard $(ZEPHYR_BASE)/boards/*/*/$(BOARD)_defconfig)
1717
ifeq ($(KBUILD_DEFCONFIG_PATH),)
1818
$(error Board $(BOARD) not found!)
1919
endif
@@ -100,7 +100,7 @@ flash: $(DOTCONFIG)
100100
$(Q)$(call zephyrmake,$(O),$@)
101101

102102
ifeq ($(MAKECMDGOALS),debugserver)
103-
-include $(ZEPHYR_BASE)/boards/$(BOARD)/Makefile.board
103+
-include $(ZEPHYR_BASE)/boards/$(ARCH)/$(BOARD)/Makefile.board
104104
-include $(ZEPHYR_BASE)/scripts/Makefile.toolchain.$(ZEPHYR_GCC_VARIANT)
105105
BOARD_NAME = $(BOARD)
106106
export BOARD_NAME

boards/Kconfig

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22
choice
33
prompt "Board Selection"
4-
source "boards/*/Kconfig.board"
4+
source "boards/*/*/Kconfig.board"
55
endchoice
66

77

88
menu "Board Options"
9-
source "boards/*/Kconfig"
9+
source "boards/*/*/Kconfig"
1010
endmenu

boards/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
obj-y += $(BOARD_NAME)/
1+
obj-y += $(ARCH)/$(BOARD_NAME)/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

scripts/support/openocd.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# by RIOT-OS (https://github.com/RIOT-OS/RIOT)
55

66
OPENOCD_CMD="${OPENOCD:-openocd} -s ${OPENOCD_DEFAULT_PATH}"
7-
OPENOCD_CONFIG=${ZEPHYR_BASE}/boards/${BOARD_NAME}/support/openocd.cfg
7+
OPENOCD_CONFIG=${ZEPHYR_BASE}/boards/${ARCH}/${BOARD_NAME}/support/openocd.cfg
88
BIN_NAME=${O}/${KERNEL_BIN_NAME}
99
ELF_NAME=${O}/${KERNEL_ELF_NAME}
1010

0 commit comments

Comments
 (0)