mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 11:02:28 +00:00
There are two problems with how zephyr/subsys/usb is being added to the include path. Firstly it is using the zephyr_library_ API to modify the zephyr library, when the zephyr_ API should have been used. Secondly the code is located in the class directory even though it affects the more general usb directory. This patch fixes these issues. Using zephyr_library_ in this instance works by accident when 'zephyr' is the current library but has not guarantees of working in the future. Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
11 lines
434 B
CMake
11 lines
434 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_sources_ifdef(CONFIG_USB_CDC_ACM cdc_acm.c)
|
|
zephyr_sources_ifdef(CONFIG_USB_MASS_STORAGE mass_storage.c)
|
|
zephyr_sources_ifdef(CONFIG_USB_DEVICE_BLUETOOTH bluetooth.c)
|
|
zephyr_sources_ifdef(CONFIG_USB_DFU_CLASS usb_dfu.c)
|
|
zephyr_sources_ifdef(CONFIG_USB_DEVICE_LOOPBACK loopback.c)
|
|
|
|
add_subdirectory_ifdef(CONFIG_USB_DEVICE_NETWORK netusb)
|
|
add_subdirectory_ifdef(CONFIG_USB_DEVICE_HID hid)
|