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 7fcfda301c123e094b8598742b75ff67a6e07512 Author: Jerzy Kasenberg <[email protected]> AuthorDate: Tue Oct 13 12:48:28 2026 +0200 tinyusb: Add TinyUSB networking library package TinyUSB CDC-ECM/RNDIS device driver (CFG_TUD_ECM_RNDIS, used for both ECM and RNDIS) includes rndis_protocol.h and calls rndis_class_set_handler() from lib/networking, which tinyusb_sdk does not build. Add sdk package with lib/networking include path and rndis_reports.c, and pull it in from std_descriptors when USBD_NET is ECM or RNDIS. rndis_reports.c uses lwIP Ethernet header definitions so the package depends on lwIP. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Jerzy Kasenberg <[email protected]> --- hw/usb/tinyusb/std_descriptors/pkg.yml | 5 +++++ .../networking}/pkg.yml | 26 ++++++++++++++-------- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/hw/usb/tinyusb/std_descriptors/pkg.yml b/hw/usb/tinyusb/std_descriptors/pkg.yml index 5a68cdac8..9a0875e4d 100644 --- a/hw/usb/tinyusb/std_descriptors/pkg.yml +++ b/hw/usb/tinyusb/std_descriptors/pkg.yml @@ -31,3 +31,8 @@ pkg.keywords: pkg.deps: - "@apache-mynewt-core/kernel/os" - "@apache-mynewt-core/hw/usb/tinyusb" + +# TinyUSB CDC-ECM/RNDIS driver needs RNDIS message handling from its +# networking library. +pkg.deps.'(USBD_NET == "ECM") || (USBD_NET == "RNDIS")': + - "@apache-mynewt-core/hw/usb/tinyusb/tinyusb_sdk/networking" diff --git a/hw/usb/tinyusb/std_descriptors/pkg.yml b/hw/usb/tinyusb/tinyusb_sdk/networking/pkg.yml similarity index 61% copy from hw/usb/tinyusb/std_descriptors/pkg.yml copy to hw/usb/tinyusb/tinyusb_sdk/networking/pkg.yml index 5a68cdac8..d81f4f7b8 100644 --- a/hw/usb/tinyusb/std_descriptors/pkg.yml +++ b/hw/usb/tinyusb/tinyusb_sdk/networking/pkg.yml @@ -17,17 +17,25 @@ # under the License. # -pkg.name: hw/usb/tinyusb/std_descriptors -pkg.description: TinyUSB standard descriptor package +pkg.name: hw/usb/tinyusb/tinyusb_sdk/networking +pkg.description: > + TinyUSB networking library: RNDIS message handling needed by TinyUSB + CDC-ECM/RNDIS device driver (CFG_TUD_ECM_RNDIS). pkg.author: "Apache Mynewt <[email protected]>" -pkg.homepage: "http://mynewt.apache.org/" +pkg.homepage: "https://mynewt.apache.org/" pkg.keywords: - usb - - tinyusb - - CDC - - HID - - MSC + - rndis + +pkg.type: sdk pkg.deps: - - "@apache-mynewt-core/kernel/os" - - "@apache-mynewt-core/hw/usb/tinyusb" + - "@apache-mynewt-core/hw/usb/tinyusb/tinyusb_sdk" + # rndis_reports.c includes lwIP netif/ethernet.h (needs lwipopts.h) + - "@apache-mynewt-core/net/ip/lwip_mn" + +pkg.include_dirs: + - "@tinyusb/lib/networking" + +pkg.source_files: + - "@tinyusb/lib/networking/rndis_reports.c"
