1# Copyright (c) 2023 Cypress Semiconductor Corporation.
2# SPDX-License-Identifier: Apache-2.0
3
4zephyr_sources(soc.c)
5zephyr_sources(app_header.c)
6zephyr_include_directories(.)
7
8zephyr_sources_ifdef(CONFIG_PM power.c)
9
10# CAT1B family defines
11zephyr_compile_definitions_ifdef(CONFIG_SOC_FAMILY_INFINEON_CAT1 CY_USING_HAL)
12zephyr_compile_definitions_ifdef(CONFIG_SOC_FAMILY_INFINEON_CAT1B COMPONENT_CAT1B)
13zephyr_compile_definitions(COMPONENT_CM33)
14
15# In MTB for APPTYPE == flash: -DFLASH_BOOT -DCY_PDL_FLASH_BOOT
16zephyr_compile_definitions(FLASH_BOOT)
17zephyr_compile_definitions(CY_PDL_FLASH_BOOT)
18
19# Use custome linker script
20set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/soc/infineon/cat1b/cyw20829/linker.ld CACHE INTERNAL "")
21