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

error in samples/subsys/usb/cdc_acm #29034

Closed
holgerschurig opened this issue Oct 8, 2020 · 1 comment · Fixed by #29597
Closed

error in samples/subsys/usb/cdc_acm #29034

holgerschurig opened this issue Oct 8, 2020 · 1 comment · Fixed by #29597
Assignees
Labels
area: Samples Samples area: USB Universal Serial Bus bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@holgerschurig
Copy link
Contributor

Describe the bug
The CDC ACM sample isn't usable on native_posix. It pulls needlessly GPIO drivers in, without using them.

To Reproduce

  1. cd samples/subsys/usb/cdc_acm
  2. west build --pristine -b native_posix
  3. Error at compilation time:
-- Configuring done
CMake Error at ../../../../cmake/extensions.cmake:398 (add_library):
  No SOURCES given to target: drivers__gpio

Expected behavior
I expected that the compilation actually worked, as USB seems to be emulated when compiled for native_posix and can be used via the Linux "usbip" command line tool.

BTW, removing the offending line fixes the issue:

  1. sed -i '/CONFIG_GPIO/d' prj.conf
  2. west build --pristine -b native_posix

Impact

Unable to test the sample in native posix mode.

Environment (please complete the following information):

  • OS: Linux
  • git describe --tags: zephyr-v2.4.0-388-g5bda586c64 (which is git HEAD as of now)
@github-actions
Copy link

This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.

@github-actions github-actions bot added the Stale label Dec 13, 2020
@jfischer-no jfischer-no removed the Stale label Dec 14, 2020
jfischer-no added a commit to jfischer-no/zephyr that referenced this issue Feb 3, 2021
Remove unnecessary GPIO dependency.

Fixes: zephyrproject-rtos#29034

Signed-off-by: Johann Fischer <[email protected]>
nashif pushed a commit that referenced this issue Feb 3, 2021
Remove unnecessary GPIO dependency.

Fixes: #29034

Signed-off-by: Johann Fischer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Samples Samples area: USB Universal Serial Bus bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants