Skip to content

Commit

Permalink
Move use_rps_extension arg declaration so users can overwritte de def…
Browse files Browse the repository at this point in the history
…ault value and skip it rps creation
  • Loading branch information
jmartinez-silabs committed Jan 5, 2024
1 parent cb4777f commit f96c138
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions third_party/silabs/silabs_board.gni
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ declare_args() {

# Self-provision enabled
use_provision_channel = false

# Board required .rps file to flash instead of .s37
use_rps_extension = false
}

declare_args() {
Expand Down Expand Up @@ -114,7 +111,6 @@ if (silabs_board == "BRD4304A") {
show_qr_code = false
wifi_soc = true
silabs_board_lower = "brd4325b"
use_rps_extension = true
} else if (silabs_board == "BRD4325C") {
silabs_family = "SiWx917-common"
silabs_mcu = "SiWG917M111MGTBA"
Expand All @@ -123,7 +119,6 @@ if (silabs_board == "BRD4304A") {
wifi_soc = true
wifi_soc_common_flash = true
silabs_board_lower = "brd4325c"
use_rps_extension = true
} else if (silabs_board == "BRD4325G") {
silabs_family = "SiWx917-common"
silabs_mcu = "SiWG917M111MGTBA"
Expand All @@ -132,7 +127,6 @@ if (silabs_board == "BRD4304A") {
wifi_soc = true
wifi_soc_common_flash = true
silabs_board_lower = "brd4325g"
use_rps_extension = true
} else if (silabs_board == "BRD4338A") {
silabs_family = "SiWx917-common"
silabs_mcu = "SiWG917M111MGTBA"
Expand All @@ -141,7 +135,6 @@ if (silabs_board == "BRD4304A") {
wifi_soc = true
wifi_soc_common_flash = true
silabs_board_lower = "brd4338a"
use_rps_extension = true
} else if (silabs_board == "BRD4180A") {
assert(
false,
Expand Down Expand Up @@ -216,5 +209,13 @@ if (silabs_board == "BRD4304A") {
"The board ${silabs_board} is unsupported. A list of supported board can be found here https://t.ly/_b3SK")
}

declare_args() {
# Wifi SoC Board require a .rps file to be flashed to the device to run
# this rps file is created from the built binary but it requires Silabs Commander tool
# User can set this arg to false to skip the rps creation for WiFi SoCs.
# e.g. for CI
use_rps_extension = wifi_soc
}

# qr code cannot be true if lcd is disabled
assert(!(disable_lcd && show_qr_code))

0 comments on commit f96c138

Please sign in to comment.