1# Copyright (c) 2020 Linumiz 2# Copyright (c) 2022 Cypress Semiconductor Corporation. 3# SPDX-License-Identifier: Apache-2.0 4 5if(CONFIG_HAS_XMCLIB OR CONFIG_SOC_FAMILY_PSOC6_LEGACY OR CONFIG_SOC_FAMILY_INFINEON_CAT1) 6 zephyr_library_named(modules_hal_infineon) 7 zephyr_library_compile_options(-Wno-array-bounds) 8endif() 9 10## Add PDL sources for XMC devices 11if (CONFIG_HAS_XMCLIB) 12 add_subdirectory(${ZEPHYR_HAL_INFINEON_MODULE_DIR}/XMCLib XMCLib) 13endif() 14 15if (CONFIG_SOC_FAMILY_INFINEON_CAT1 OR CONFIG_SOC_FAMILY_PSOC6_LEGACY) 16 ## Add core-lib sources for CAT1 devices 17 add_subdirectory(core-lib) 18 19 ## Add mtb-pdl-cat1 sources for CAT1 devices 20 add_subdirectory(mtb-pdl-cat1) 21 22 ## Add mtb-templates-cat1 sources for CAT1 devices 23 add_subdirectory(mtb-template-cat1) 24endif() 25 26if (CONFIG_SOC_FAMILY_INFINEON_CAT1 AND NOT CONFIG_SOC_FAMILY_PSOC6_LEGACY) 27 ## Add mtb-hal-cat1 sources for CAT1 devices 28 add_subdirectory(mtb-hal-cat1) 29 30 ## Add catcm0p sleep images for CM0 Devices 31 if(CONFIG_SOC_PSOC6_CM0P_IMAGE_SLEEP) 32 add_subdirectory(cat1cm0p) 33 endif() 34 35 ## Add abstraction-rtos sources 36 add_subdirectory(abstraction-rtos) 37 38 add_subdirectory(serial-flash) 39 40endif() 41 42## Add Wi-Fi assets for AIROC devices 43if (CONFIG_WIFI_AIROC) 44 add_subdirectory(wifi-host-driver) 45 46 ## Add core-lib sources for CAT1 devices 47 add_subdirectory_ifndef(CONFIG_SOC_FAMILY_INFINEON_CAT1 core-lib) 48 49 ## Add abstraction-rtos sources 50 add_subdirectory_ifndef(CONFIG_SOC_FAMILY_INFINEON_CAT1 abstraction-rtos) 51endif() 52 53## Add BT assets for AIROC devices 54if (CONFIG_BT_AIROC) 55 add_subdirectory(btstack-integration) 56endif() 57 58if (CONFIG_BT_PSOC6_BLESS) 59add_subdirectory(bless) 60endif() 61