2022-05-09 20:19:46 +08:00
|
|
|
# Copyright (c) 2020 Linumiz
|
|
|
|
# Copyright (c) 2022 Cypress Semiconductor Corporation.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2024-03-25 01:53:18 +08:00
|
|
|
if(CONFIG_HAS_XMCLIB OR CONFIG_SOC_FAMILY_PSOC6_LEGACY OR CONFIG_SOC_FAMILY_INFINEON_CAT1)
|
2022-05-16 15:13:50 +08:00
|
|
|
zephyr_library_named(modules_hal_infineon)
|
2023-04-07 03:53:39 +08:00
|
|
|
zephyr_library_compile_options(-Wno-array-bounds)
|
2022-05-16 15:13:50 +08:00
|
|
|
endif()
|
2022-05-09 20:19:46 +08:00
|
|
|
|
|
|
|
## Add PDL sources for XMC devices
|
|
|
|
if (CONFIG_HAS_XMCLIB)
|
|
|
|
add_subdirectory(${ZEPHYR_HAL_INFINEON_MODULE_DIR}/XMCLib XMCLib)
|
|
|
|
endif()
|
|
|
|
|
2024-03-25 01:53:18 +08:00
|
|
|
if (CONFIG_SOC_FAMILY_INFINEON_CAT1 OR CONFIG_SOC_FAMILY_PSOC6_LEGACY)
|
2022-05-09 20:19:46 +08:00
|
|
|
## Add core-lib sources for CAT1 devices
|
|
|
|
add_subdirectory(core-lib)
|
|
|
|
|
|
|
|
## Add mtb-pdl-cat1 sources for CAT1 devices
|
|
|
|
add_subdirectory(mtb-pdl-cat1)
|
2023-07-26 12:44:44 +08:00
|
|
|
|
|
|
|
## Add mtb-templates-cat1 sources for CAT1 devices
|
|
|
|
add_subdirectory(mtb-template-cat1)
|
2022-05-09 20:19:46 +08:00
|
|
|
endif()
|
2022-05-23 18:57:50 +08:00
|
|
|
|
2024-03-25 01:53:18 +08:00
|
|
|
if (CONFIG_SOC_FAMILY_INFINEON_CAT1 AND NOT CONFIG_SOC_FAMILY_PSOC6_LEGACY)
|
2023-01-31 19:02:40 +08:00
|
|
|
## Add mtb-hal-cat1 sources for CAT1 devices
|
2022-05-23 18:57:50 +08:00
|
|
|
add_subdirectory(mtb-hal-cat1)
|
2023-01-31 19:02:40 +08:00
|
|
|
|
|
|
|
## Add catcm0p sleep images for CM0 Devices
|
|
|
|
if(CONFIG_SOC_PSOC6_CM0P_IMAGE_SLEEP)
|
|
|
|
add_subdirectory(cat1cm0p)
|
|
|
|
endif()
|
2023-03-31 17:15:25 +08:00
|
|
|
|
|
|
|
## Add abstraction-rtos sources
|
|
|
|
add_subdirectory(abstraction-rtos)
|
2024-06-04 08:05:27 +08:00
|
|
|
|
|
|
|
add_subdirectory(serial-flash)
|
|
|
|
|
2023-02-16 18:38:08 +08:00
|
|
|
endif()
|
2023-01-31 19:02:40 +08:00
|
|
|
|
2023-10-04 14:29:17 +08:00
|
|
|
## Add Wi-Fi assets for AIROC devices
|
|
|
|
if (CONFIG_WIFI_AIROC)
|
|
|
|
add_subdirectory(wifi-host-driver)
|
2024-04-02 05:20:03 +08:00
|
|
|
|
|
|
|
## Add core-lib sources for CAT1 devices
|
|
|
|
add_subdirectory_ifndef(CONFIG_SOC_FAMILY_INFINEON_CAT1 core-lib)
|
|
|
|
|
|
|
|
## Add abstraction-rtos sources
|
|
|
|
add_subdirectory_ifndef(CONFIG_SOC_FAMILY_INFINEON_CAT1 abstraction-rtos)
|
2023-10-04 14:29:17 +08:00
|
|
|
endif()
|
|
|
|
|
2023-10-04 14:54:18 +08:00
|
|
|
## Add BT assets for AIROC devices
|
|
|
|
if (CONFIG_BT_AIROC)
|
2023-02-16 18:38:08 +08:00
|
|
|
add_subdirectory(btstack-integration)
|
2022-05-23 18:57:50 +08:00
|
|
|
endif()
|
2023-05-01 13:37:59 +08:00
|
|
|
|
|
|
|
if (CONFIG_BT_PSOC6_BLESS)
|
|
|
|
add_subdirectory(bless)
|
|
|
|
endif()
|