Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

applications: nrf5340_audio: Buildprog transport mandatory #20817

Merged

Conversation

gWacey
Copy link
Contributor

@gWacey gWacey commented Mar 10, 2025

OCT-3328

Now forces the -t/--transport option in buildprog as mandatory and documents the change.

@gWacey gWacey requested review from a team as code owners March 10, 2025 08:45
@gWacey gWacey requested review from koffes, rick1082 and alexsven March 10, 2025 08:45
@github-actions github-actions bot added doc-required PR must not be merged without tech writer approval. changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. labels Mar 10, 2025
@NordicBuilder
Copy link
Contributor

NordicBuilder commented Mar 10, 2025

CI Information

To view the history of this post, clich the 'edited' button above
Build number: 14

Inputs:

Sources:

sdk-nrf: PR head: 73a7568b6fa6920725b6eceb8e651084a2d7b341

more details

sdk-nrf:

PR head: 73a7568b6fa6920725b6eceb8e651084a2d7b341
merge base: 52966b0147c678857851ab2a2ab4f3c81e7d150c
target head (main): 50ae83eba24c37fde286a5a601a2875f9e639cc2
Diff

Github labels

Enabled Name Description
ci-disabled Disable the ci execution
ci-all-test Run all of ci, no test spec filtering will be done
ci-force-downstream Force execution of downstream even if twister fails
ci-run-twister Force run twister
ci-run-zephyr-twister Force run zephyr twister
List of changed files detected by CI (9)
applications
│  ├── nrf5340_audio
│  │  ├── CMakeLists.txt
│  │  ├── broadcast_sink
│  │  │  │ overlay-broadcast_sink.conf
│  │  ├── broadcast_source
│  │  │  │ overlay-broadcast_source.conf
│  │  ├── doc
│  │  │  ├── building.rst
│  │  │  │ configuration.rst
│  │  ├── tools
│  │  │  ├── buildprog
│  │  │  │  │ buildprog.py
│  │  ├── unicast_client
│  │  │  │ overlay-unicast_client.conf
│  │  ├── unicast_server
│  │  │  │ overlay-unicast_server.conf
doc
│  ├── nrf
│  │  ├── releases_and_maturity
│  │  │  ├── migration
│  │  │  │  │ migration_guide_3.0.rst

Outputs:

Toolchain

Version: 4ffa2202d5
Build docker image: docker-dtr.nordicsemi.no/sw-production/ncs-build:4ffa2202d5_e579f9fbe6

Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped; ⚠️ Quarantine

  • ◻️ Toolchain - Skipped: existing toolchain is used
  • ✅ Build twister
    • sdk-nrf test count: 34
  • ✅ Integration tests
    • ✅ test-sdk-audio
Disabled integration tests
    • desktop52_verification
    • doc-internal
    • test-fw-nrfconnect-apps
    • test-fw-nrfconnect-ble_mesh
    • test-fw-nrfconnect-ble_samples
    • test-fw-nrfconnect-boot
    • test-fw-nrfconnect-chip
    • test-fw-nrfconnect-fem
    • test-fw-nrfconnect-nfc
    • test-fw-nrfconnect-nrf-iot_cloud
    • test-fw-nrfconnect-nrf-iot_libmodem-nrf
    • test-fw-nrfconnect-nrf-iot_mosh
    • test-fw-nrfconnect-nrf-iot_positioning
    • test-fw-nrfconnect-nrf-iot_samples
    • test-fw-nrfconnect-nrf-iot_serial_lte_modem
    • test-fw-nrfconnect-nrf-iot_thingy91
    • test-fw-nrfconnect-nrf-iot_zephyr_lwm2m
    • test-fw-nrfconnect-nrf_crypto
    • test-fw-nrfconnect-proprietary_esb
    • test-fw-nrfconnect-ps
    • test-fw-nrfconnect-rpc
    • test-fw-nrfconnect-rs
    • test-fw-nrfconnect-tfm
    • test-fw-nrfconnect-thread
    • test-fw-nrfconnect-zigbee
    • test-low-level
    • test-sdk-dfu
    • test-sdk-find-my
    • test-sdk-mcuboot
    • test-sdk-pmic-samples
    • test-sdk-wifi
    • test-secdom-samples-public

Note: This message is automatically posted and updated by the CI

* - Transport type (``-t``)
- Specifies the transpoert type.
- ``broadcast``, ``unicast``
- :ref:`nrf53_audio_app_overview_broadcast_unicast`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This ref needs to be updated: this one does not exist, and I'm not sure where you want to link to.

@@ -98,6 +98,10 @@ The building command for running the script requires providing the following par
- ``release``, ``debug``
- | :ref:`nrf53_audio_app_configuration_files`
| **Note:** For FOTA DFU, you must use :ref:`nrf53_audio_app_building_standard`.
* - Transport type (``-t``)
- Specifies the transpoert type.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Specifies the transpoert type.
- Specifies the transport type.

@gWacey gWacey force-pushed the OCT-3328-Buildprog-transport-mandatory branch from 90af422 to 953db45 Compare March 11, 2025 14:17
@gWacey gWacey requested review from a team as code owners March 11, 2025 14:17
@gWacey gWacey force-pushed the OCT-3328-Buildprog-transport-mandatory branch from 953db45 to e671e98 Compare March 11, 2025 14:19
Copy link
Contributor

@greg-fer greg-fer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous edits not yet applied. Found one more potential issue.

@@ -93,7 +80,7 @@ You can use one of the following options, depending on how you decide to build t

.. code-block:: console

west build -b nrf5340_audio_dk/nrf5340/cpuapp --pristine -- -DCONFIG_AUDIO_DEV=1 -Dnrf5340_audio_SHIELD=nrf21540ek -Dipc_radio_SHIELD=nrf21540ek
west build -b nrf5340_audio_dk/nrf5340/cpuapp --pristine -- -CONFIG_AUDIO_DEV=1 -Dnrf5340_audio_SHIELD=nrf21540ek -Dipc_radio_SHIELD=nrf21540ek
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-D missing?

Suggested change
west build -b nrf5340_audio_dk/nrf5340/cpuapp --pristine -- -CONFIG_AUDIO_DEV=1 -Dnrf5340_audio_SHIELD=nrf21540ek -Dipc_radio_SHIELD=nrf21540ek
west build -b nrf5340_audio_dk/nrf5340/cpuapp --pristine -- -DCONFIG_AUDIO_DEV=1 -Dnrf5340_audio_SHIELD=nrf21540ek -Dipc_radio_SHIELD=nrf21540ek

@gWacey gWacey force-pushed the OCT-3328-Buildprog-transport-mandatory branch from e671e98 to 18f06a7 Compare March 17, 2025 08:07
@koffes koffes requested a review from buran-ci March 18, 2025 13:05
Copy link
Contributor

@koffes koffes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Just one question in the review.

@@ -12,6 +12,11 @@ add_compile_definitions(GATEWAY=2)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})

# Test a configuration file option has been given
if(NOT DEFINED EXTRA_CONF_FILE)
message(FATAL_ERROR "No configuration file specified, set -DEXTRA_CONF_FILE=<configuration file>")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be:

Suggested change
message(FATAL_ERROR "No configuration file specified, set -DEXTRA_CONF_FILE=<configuration file>")
message(FATAL_ERROR "No configuration file specified, set -- -DEXTRA_CONF_FILE=<configuration file>")
``` ?

Copy link
Contributor

@greg-fer greg-fer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more round of review, hopefully final.


.. toggle::

* The :ref:`nrf53_audio_app` :ref:`nrf53_audio_app_building_script` now requires the transport (-t/--transport) type to be included.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* The :ref:`nrf53_audio_app` :ref:`nrf53_audio_app_building_script` now requires the transport (-t/--transport) type to be included.
* The :ref:`nrf53_audio_app` :ref:`nrf53_audio_app_building_script` now requires the transport (``-t/--transport``) type to be included.

@@ -256,8 +260,10 @@ Complete the following steps to build the application:

a. Choose the device type by using one of the following options:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
a. Choose the device type by using one of the following options:
a. Choose the device type by using one of the following :ref:`CMake options for extra Kconfig fragments <cmake_options>`:

.. toggle::

* The :ref:`nrf53_audio_app` :ref:`nrf53_audio_app_building_script` now requires the transport (-t/--transport) type to be included.
* The :ref:`nrf53_audio_app` :ref:`nrf53_audio_app_building_standard` now requires a configuration overlay compile option to be included.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* The :ref:`nrf53_audio_app` :ref:`nrf53_audio_app_building_standard` now requires a configuration overlay compile option to be included.
* The :ref:`nrf53_audio_app` :ref:`nrf53_audio_app_building_standard` now requires an extra :ref:`CMake option to provide extra Kconfig fragments <cmake_options>` to select the device type.


* The :ref:`nrf53_audio_app` :ref:`nrf53_audio_app_building_script` now requires the transport (-t/--transport) type to be included.
* The :ref:`nrf53_audio_app` :ref:`nrf53_audio_app_building_standard` now requires a configuration overlay compile option to be included.

|no_changes_yet_note|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
|no_changes_yet_note|

Remove

@gWacey gWacey force-pushed the OCT-3328-Buildprog-transport-mandatory branch from 18f06a7 to e6d8636 Compare March 19, 2025 10:27
@gWacey gWacey requested review from greg-fer and koffes March 19, 2025 10:28
@gWacey gWacey force-pushed the OCT-3328-Buildprog-transport-mandatory branch 2 times, most recently from eb2d1cd to 87f020d Compare March 19, 2025 11:30
@gWacey gWacey force-pushed the OCT-3328-Buildprog-transport-mandatory branch 2 times, most recently from 5272b5a to 938ef6e Compare March 19, 2025 13:00
@gWacey gWacey force-pushed the OCT-3328-Buildprog-transport-mandatory branch from 938ef6e to 60f6a24 Compare March 19, 2025 13:03
@gWacey gWacey force-pushed the OCT-3328-Buildprog-transport-mandatory branch 3 times, most recently from de64432 to 371bd5d Compare March 20, 2025 08:44
OCT-3328

Now forces the -t/--transport option in buildprog as mandatory

Signed-off-by: Graham Wacey <graham.wacey@nordicsemi.no>
@gWacey gWacey force-pushed the OCT-3328-Buildprog-transport-mandatory branch from 371bd5d to 73a7568 Compare March 20, 2025 12:45
@koffes koffes merged commit d3df483 into nrfconnect:main Mar 20, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. doc-required PR must not be merged without tech writer approval.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants