1# Copyright (c) 2022 Nordic Semiconductor ASA 2# SPDX-License-Identifier: Apache-2.0 3 4zephyr_library() 5zephyr_library_include_directories(${CMAKE_CURRENT_SOURCE_DIR}) 6 7zephyr_library_sources( 8 usbd_device.c 9 usbd_desc.c 10 usbd_ch9.c 11 usbd_core.c 12 usbd_init.c 13 usbd_config.c 14 usbd_class.c 15 usbd_interface.c 16 usbd_endpoint.c 17 usbd_msg.c 18) 19 20zephyr_library_sources_ifdef( 21 CONFIG_USBD_SHELL 22 usbd_shell.c 23) 24 25zephyr_library_sources_ifdef( 26 CONFIG_USBD_LOOPBACK_CLASS 27 class/loopback.c 28) 29 30zephyr_library_sources_ifdef( 31 CONFIG_USBD_CDC_ACM_CLASS 32 class/usbd_cdc_acm.c 33) 34 35zephyr_include_directories_ifdef( 36 CONFIG_USBD_CDC_ECM_CLASS 37 ${ZEPHYR_BASE}/drivers/ethernet 38) 39zephyr_library_sources_ifdef( 40 CONFIG_USBD_CDC_ECM_CLASS 41 class/usbd_cdc_ecm.c 42) 43 44zephyr_include_directories_ifdef( 45 CONFIG_USBD_CDC_NCM_CLASS 46 ${ZEPHYR_BASE}/drivers/ethernet 47) 48zephyr_library_sources_ifdef( 49 CONFIG_USBD_CDC_NCM_CLASS 50 class/usbd_cdc_ncm.c 51) 52 53zephyr_library_sources_ifdef( 54 CONFIG_USBD_BT_HCI 55 class/bt_hci.c 56) 57 58zephyr_library_sources_ifdef( 59 CONFIG_USBD_MSC_CLASS 60 class/usbd_msc.c 61 class/usbd_msc_scsi.c 62) 63 64zephyr_linker_sources_ifdef( 65 CONFIG_USBD_MSC_CLASS 66 SECTIONS class/usbd_msc.ld 67) 68 69zephyr_library_sources_ifdef( 70 CONFIG_USBD_AUDIO2_CLASS 71 class/usbd_uac2.c 72) 73 74zephyr_library_sources_ifdef( 75 CONFIG_USBD_HID_SUPPORT 76 class/usbd_hid.c 77 class/usbd_hid_api.c 78) 79 80zephyr_linker_sources(DATA_SECTIONS usbd_data.ld) 81