zephyr/modules/hal_infineon/CMakeLists.txt
Nazar Palamar 423a085fe3 modules: hal_infineon: Added blob support for CM0+ images
Initial blob support for PSoC6 CM0+ images

Signed-off-by: Nazar Palamar <nazar.palamar@infineon.com>
2023-03-01 11:44:57 +01:00

34 lines
881 B
CMake

# Copyright (c) 2020 Linumiz
# Copyright (c) 2022 Cypress Semiconductor Corporation.
# SPDX-License-Identifier: Apache-2.0
if(CONFIG_HAS_XMCLIB OR CONFIG_SOC_FAMILY_PSOC6 OR CONFIG_SOC_FAMILY_INFINEON_CAT1)
zephyr_library_named(modules_hal_infineon)
endif()
## Add PDL sources for XMC devices
if (CONFIG_HAS_XMCLIB)
add_subdirectory(${ZEPHYR_HAL_INFINEON_MODULE_DIR}/XMCLib XMCLib)
endif()
if (CONFIG_SOC_FAMILY_INFINEON_CAT1A OR CONFIG_SOC_FAMILY_PSOC6)
## Add core-lib sources for CAT1 devices
add_subdirectory(core-lib)
## Add mtb-pdl-cat1 sources for CAT1 devices
add_subdirectory(mtb-pdl-cat1)
endif()
if (CONFIG_SOC_FAMILY_INFINEON_CAT1A)
## Add mtb-hal-cat1 sources for CAT1 devices
add_subdirectory(mtb-hal-cat1)
## Add catcm0p sleep images for CM0 Devices
if(CONFIG_SOC_PSOC6_CM0P_IMAGE_SLEEP)
add_subdirectory(cat1cm0p)
endif()
endif()