This is an automated email from the ASF dual-hosted git repository.

kasjer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 8253df5ed050afa0d2947215aeea29fa6769e23c
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Fri Oct 9 10:22:23 2026 +0200

    ci: Set placeholder VID/PID for usb_headset app build
    
    apps/usb_headset deliberately leaves USBD_VID and USBD_PID to the
    target, so nobody ships the example with a made up pair.  The "Build
    all apps" job creates its own targets and failed on the std_descriptors
    restriction that both must be set.
    
    Add a per-app syscfg table to test_build_apps.sh and give usb_headset
    the obviously fake 0xFFFF/0xFFFF for the build check only.
    
    Assisted-by: Claude:claude-fable-5-1
    Signed-off-by: Jerzy Kasenberg <[email protected]>
---
 .github/test_build_apps.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/.github/test_build_apps.sh b/.github/test_build_apps.sh
index 9a3e3152a..bacdecd10 100755
--- a/.github/test_build_apps.sh
+++ b/.github/test_build_apps.sh
@@ -25,6 +25,12 @@ APPS=$(basename -a `ls -d repos/apache-mynewt-core/apps/*/`)
 IGNORED_APPS="ffs2native fs_test hash_test lora_app_shell loraping lorashell\
               pwm_test rust_blinky lvgl_demo"
 
+# Apps that deliberately leave some settings to the target.  Values used
+# here are placeholders good enough for a build check.
+declare -A APP_SYSCFG=(
+    [usb_headset]="USBD_VID=0xFFFF:USBD_PID=0xFFFF"
+)
+
 for app in ${APPS}; do
     # NOTE: do not remove the spaces around IGNORED_APPS; it's required to
     #       match against the first and last entries
@@ -42,6 +48,9 @@ for app in ${APPS}; do
     newt target create -s $target
     newt target set -s $target bsp="@apache-mynewt-core/hw/bsp/nordic_pca10056"
     newt target set -s $target app="@apache-mynewt-core/apps/$app"
+    if [[ -n "${APP_SYSCFG[$app]}" ]]; then
+        newt target set -s $target syscfg="${APP_SYSCFG[$app]}"
+    fi
     newt build -q $target
 
     rc=$?

Reply via email to