Skip to content

Commit

Permalink
doc: scripts: software_maturity: adjust to HWMv2
Browse files Browse the repository at this point in the history
The script missed some updates to account for the new HWMv2 board naming
scheme. Without the fixes in this patch, reports were generated with no
socs, leading to empty tables.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
  • Loading branch information
gmarull authored and carlescufi committed May 8, 2024
1 parent f477afa commit 8dde7f6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions doc/_scripts/software_maturity/software_maturity_features.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ top_table:
- SHIELD_NRF7002EK_NRF7001
- SHIELD_NRF7002EB
- BOARD_NRF7002DK_NRF5340_CPUAPP
- BOARD_NRF7002DK_NRF7001_NRF5340_CPUAPP
- BOARD_NRF7002DK_NRF5340_CPUAPP_NRF7001
features:
sidewalk:
Sidewalk over BLE: SIDEWALK && SIDEWALK_LINK_MASK_BLE
Expand Down Expand Up @@ -75,7 +75,7 @@ features:
- SHIELD_NRF7002EK_NRF7001
- SHIELD_NRF7002EB
- BOARD_NRF7002DK_NRF5340_CPUAPP
- BOARD_NRF7002DK_NRF7001_NRF5340_CPUAPP
- BOARD_NRF7002DK_NRF5340_CPUAPP_NRF7001
Scan only (for location accuracy):
rule: WIFI_NRF700X && !WPA_SUPP
boards_and_shields:
Expand All @@ -84,15 +84,15 @@ features:
- SHIELD_NRF7002EK_NRF7001
- SHIELD_NRF7002EB
- BOARD_NRF7002DK_NRF5340_CPUAPP
- BOARD_NRF7002DK_NRF7001_NRF5340_CPUAPP
- BOARD_NRF7002DK_NRF5340_CPUAPP_NRF7001
Bluetooth LE Co-existence:
rule: WIFI_NRF700X && NRF700X_SR_COEX
boards_and_shields:
- SHIELD_NRF7002EK
- SHIELD_NRF7002EK_NRF7001
- SHIELD_NRF7002EB
- BOARD_NRF7002DK_NRF5340_CPUAPP
- BOARD_NRF7002DK_NRF7001_NRF5340_CPUAPP
- BOARD_NRF7002DK_NRF5340_CPUAPP_NRF7001
SoftAP Mode:
rule: WIFI_NRF700X && NRF700X_AP_MODE && WPA_SUPP_AP
boards_and_shields:
Expand All @@ -101,7 +101,7 @@ features:
- SHIELD_NRF7002EK_NRF7001
- SHIELD_NRF7002EB
- BOARD_NRF7002DK_NRF5340_CPUAPP
- BOARD_NRF7002DK_NRF7001_NRF5340_CPUAPP
- BOARD_NRF7002DK_NRF5340_CPUAPP_NRF7001
Monitor Mode:
rule: WIFI_NRF700X && NRF700X_RAW_DATA_RX
boards_and_shields:
Expand All @@ -110,7 +110,7 @@ features:
- SHIELD_NRF7002EK_NRF7001
- SHIELD_NRF7002EB
- BOARD_NRF7002DK_NRF5340_CPUAPP
- BOARD_NRF7002DK_NRF7001_NRF5340_CPUAPP
- BOARD_NRF7002DK_NRF5340_CPUAPP_NRF7001
TX injection Mode:
rule: WIFI_NRF700X && NRF700X_RAW_DATA_TX
boards_and_shields:
Expand All @@ -119,15 +119,15 @@ features:
- SHIELD_NRF7002EK_NRF7001
- SHIELD_NRF7002EB
- BOARD_NRF7002DK_NRF5340_CPUAPP
- BOARD_NRF7002DK_NRF7001_NRF5340_CPUAPP
- BOARD_NRF7002DK_NRF5340_CPUAPP_NRF7001
Promiscuous Mode:
rule: WIFI_NRF700X && NRF700X_PROMISC_DATA_RX
boards_and_shields:
- SHIELD_NRF7002EK
- SHIELD_NRF7002EK_NRF7001
- SHIELD_NRF7002EB
- BOARD_NRF7002DK_NRF5340_CPUAPP
- BOARD_NRF7002DK_NRF7001_NRF5340_CPUAPP
- BOARD_NRF7002DK_NRF5340_CPUAPP_NRF7001
trusted_firmware_m:
Minimal Build: BUILD_WITH_TFM && TFM_PROFILE_TYPE_MINIMAL
Full build: BUILD_WITH_TFM && TFM_PROFILE_TYPE_NOT_SET && NRF_SECURITY
Expand All @@ -150,4 +150,4 @@ display_names:
SHIELD_NRF7002EK_NRF7001: nRF7002 EK in nRF7001 emulation mode
SHIELD_NRF7002EB: nRF7002 EB
BOARD_NRF7002DK_NRF5340_CPUAPP: nRF7002 DK
BOARD_NRF7002DK_NRF7001_NRF5340_CPUAPP: nRF7002 DK in nRF7001 emulation mode
BOARD_NRF7002DK_NRF5340_CPUAPP_NRF7001: nRF7002 DK in nRF7001 emulation mode
4 changes: 2 additions & 2 deletions doc/_scripts/software_maturity/software_maturity_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
NRF_SAMPLE_DIR = Path(__file__).absolute().parents[3]
"""Directory containing samples/ and applications/ subfolders."""

BOARD_FILTER = lambda b: re.search(r"_nrf[0-9]+", b) and not b.startswith("nrf51")
BOARD_FILTER = lambda b: re.search(r"/nrf[0-9]+", b) and not b.startswith("nrf51")
"""Function to filter non-relevant boards."""


Expand Down Expand Up @@ -295,7 +295,7 @@ def find_all_socs(all_samples: List[str]) -> List[str]:

# Only use nRF boards, but not nRF51 series
all_boards = set(filter(BOARD_FILTER, all_boards))
all_socs = {re.findall(r"_(nrf[0-9]+[hlHL]?[0-9]+)", b)[-1] for b in all_boards}
all_socs = {b.split("/")[1] for b in all_boards}
return list(sorted(all_socs))


Expand Down

0 comments on commit 8dde7f6

Please sign in to comment.