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

feat(cmock): Enable linux target build for HID, CDC-ACM and UVC hosts #65

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

peter-marcisovsky
Copy link
Collaborator

@peter-marcisovsky peter-marcisovsky commented Sep 19, 2024

Description

As a part of Linux host testing, we have created a mock of USB component in the esp-idf, which will be used for testing of Class drivers within this (esp-usb) repository using Cmock test cases.

This MR adds Linux target build for:

  • HID Host
  • UVC Host

Already buildable Class drivers for linux:

  • CDC ACM Host

Not buildable Class drivers fro linux:

  • MSC Host - vfs not buildable for linux
  • UAC Host - Ringbuffer support missing in Freerots Cmock
  • esp_tinyusb - vfs not buildable for linux

As discussed, rather than adding new supported target into the idf_component.yml file, (linux in this case, and other targets in future) the target list was removed and a target compatibility will be handled during build.

Related

  • (USB host testing: CMock on Linux)

Testing

  • For each class driver buildable on Linux a simple host test has been added, mainly to run Linux build of class drivers in CI

Checklist

Before submitting a Pull Request, please ensure the following:

  • 🚨 This PR does not introduce breaking changes.
  • All CI checks (GH Actions) pass.
  • Documentation is updated as needed.
  • Tests are updated or added as necessary.
  • Code is well-commented, especially in complex areas.
  • Git history is clean — commits are squashed to the minimum necessary.

@peter-marcisovsky
Copy link
Collaborator Author

MR on hold, until idf core team finds a workaround for linux build without using pthread

@peter-marcisovsky peter-marcisovsky self-assigned this Oct 8, 2024
@peter-marcisovsky peter-marcisovsky force-pushed the feat/hid_host_linux_build branch 2 times, most recently from cd17856 to 00694af Compare October 14, 2024 12:58
@peter-marcisovsky
Copy link
Collaborator Author

Waiting for esp-idf GL sync wit GH, to enable linux build with the current critical section API.

@peter-marcisovsky peter-marcisovsky changed the title feat(cmock): Enable linux target build for HID and CDC ACM host feat(cmock): Enable linux target build for HID, CDC-ACM and UVC hosts Oct 14, 2024
…ivers

    - HID, CDC-ACM, UVC class drivers can be build on linux target
    - Added linux build test and simple Cmock test run in CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant