Replies: 1 comment
|
There is no intentional distinction, and the reason the two spellings drifted apart is that nothing constrains them. supported:
type: array
items:
type: stringNo enum, no vocabulary, no validation. Combined with the literal set intersection you found in As for which one is the convention now, the tree answers fairly decisively. Counting YAML files by search: So on the test side it is not close — no in-tree test depends on But switching your metadata to supported:
- adc
...
- ble
- counter
Which points at something bigger than your test's metadata, and is probably the thing worth raising: those 229 in-tree test suites declaring On the direction of a fix, the numbers make the case: with the test side already at 229 to 0, normalising the ~91 board files onto Worth saying that the board and test counts above come from code search rather than a checkout, so treat them as close rather than exact; the schema snippet and the nRF52840 DK file I read directly. |
Uh oh!
There was an error while loading. Please reload this page.
I want to make sure I understand the intended Zephyr platform metadata convention before assuming there’s an issue here.
I ran into this while testing a Bluetooth LE application on the Silicon Labs xG24 and Seeed XIAO MG24. The application uses the normal Zephyr Bluetooth APIs such as
bt_enable(),bt_le_adv_start(), andbt_le_adv_update_data().It builds successfully for
nrf52840dk/nrf52840,xg24_dk2601b, andxiao_mg24.The Twister metadata contains:
The nRF52840 DK is not filtered by that dependency, but the xG24 DK and XIAO MG24 are both filtered with:
Looking at the board metadata, the nRF52840 DK advertises
ble, while the two MG24 boards advertisebluetooth:Twister appears to compare these as literal strings in
testplan.py:So
bleandbluetoothare not treated as aliases.I checked the history to see if the two names are intentionally different platform capabilities.
supported: bleanddepends_on: blego back to 2017, whilesupported: bluetoothappeared later. Silicon Labs addedsupported: bluetoothin 2024 during a cleanup that also removedbluetoothfromtesting.ignore_tags.I couldn’t find documentation or schema definitions that explain a semantic distinction between
bleandbluetooth.Is
blevsbluetoothan intentional distinction in Zephyr platform metadata? For a BLE-capable board, shouldsupportedcontainble,bluetooth, or both?I don’t want to submit a patch without understanding what the intended convention is first. The hardware itself seems fine. Both MG24 targets build the BLE application successfully.
All reactions