1# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
2#
3# SPDX-License-Identifier: Apache-2.0
4
5list(APPEND hal_srcs
6    ${esp_hal_dir}/components/esp_hw_support/port/${MCUBOOT_TARGET}/rtc_init.c
7    ${esp_hal_dir}/components/hal/cache_hal.c
8    ${esp_hal_dir}/components/efuse/src/efuse_controller/keys/with_key_purposes/esp_efuse_api_key.c
9    ${esp_hal_dir}/components/esp_rom/patches/esp_rom_crc.c
10    ${esp_hal_dir}/components/esp_rom/patches/esp_rom_regi2c_esp32s2.c
11
12    )
13
14list(APPEND LINKER_SCRIPTS
15    -T${esp_hal_dir}/components/esp_rom/${MCUBOOT_TARGET}/ld/${MCUBOOT_TARGET}.rom.newlib-funcs.ld
16    -T${esp_hal_dir}/components/esp_rom/${MCUBOOT_TARGET}/ld/${MCUBOOT_TARGET}.rom.spiflash.ld
17    )
18
19set_source_files_properties(
20    ${esp_hal_dir}/components/bootloader_support/src/esp32s2/bootloader_esp32s2.c
21    PROPERTIES COMPILE_FLAGS
22    "-Wno-unused-but-set-variable")
23