Skip to content

Commit 78f489d

Browse files
[Silabs] Enabling custom board support for matter (project-chip#35809)
* [Silabs] Enabling custom board support for matter * Restyled to Make Pretty * Streamline printing to make pretty * Put the assert at the end and add silabs board descriptions * Restyled
1 parent 5cf80d7 commit 78f489d

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

third_party/silabs/silabs_board.gni

+19-1
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,17 @@
1313
# limitations under the License.
1414

1515
declare_args() {
16-
# EFR32 board used
16+
# Silabs wireless starter kit plug-in boards featuring specific mcu family and mcu model.
17+
# Find more information at https://www.silabs.com/development-tools/wireless.
18+
# A board tailored for specific mcu family and mcu model can be created with "CUSTOM".
1719
silabs_board = ""
1820

21+
# Silabs mcu family used
22+
silabs_family = ""
23+
24+
# Silabs mcu model used
25+
silabs_mcu = ""
26+
1927
# LCD is enabled by default
2028
# Boards BRD4166A, BRD2601B, BRD2703A and BRD4319A do not have a LCD so they disable it explicitly
2129
disable_lcd = false
@@ -150,6 +158,12 @@ if (silabs_board == "BRD4338A" || silabs_board == "BRD2605A") {
150158
# ThunderBoards don't have a LCD,
151159
show_qr_code = false
152160
disable_lcd = true
161+
162+
# Custom Board ----------
163+
} else if (silabs_board == "CUSTOM") {
164+
print("Using custom board configuration")
165+
print("silabs_family:", silabs_family)
166+
print("silabs_mcu:", silabs_mcu)
153167
} else {
154168
assert(
155169
false,
@@ -168,5 +182,9 @@ declare_args() {
168182
sl_uart_log_output = wifi_soc
169183
}
170184

185+
# Silabs mcu family and mcu model must be specified
186+
assert(silabs_family != "", "Must specify silabs_family")
187+
assert(silabs_mcu != "", "Must specify silabs_mcu")
188+
171189
# qr code cannot be true if lcd is disabled
172190
assert(!(disable_lcd && show_qr_code))

0 commit comments

Comments
 (0)