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/efuse/src/efuse_controller/keys/without_key_purposes/three_key_blocks/esp_efuse_api_key.c 8 ) 9 10if (DEFINED CONFIG_ESP_MULTI_PROCESSOR_BOOT) 11 list(APPEND hal_srcs 12 ${src_dir}/${MCUBOOT_TARGET}/app_cpu_start.c 13 ${esp_hal_dir}/components/esp_hw_support/cpu.c 14 ) 15endif() 16 17if (DEFINED CONFIG_ESP_CONSOLE_UART_CUSTOM) 18 list(APPEND hal_srcs 19 ${src_dir}/${MCUBOOT_TARGET}/console_uart_custom.c 20 ) 21endif() 22 23list(APPEND LINKER_SCRIPTS 24 -T${esp_hal_dir}/components/esp_rom/${MCUBOOT_TARGET}/ld/${MCUBOOT_TARGET}.rom.newlib-funcs.ld 25 -T${esp_hal_dir}/components/esp_rom/${MCUBOOT_TARGET}/ld/${MCUBOOT_TARGET}.rom.eco3.ld 26 ) 27 28set_source_files_properties( 29 ${esp_hal_dir}/components/bootloader_support/src/esp32/bootloader_esp32.c 30 ${esp_hal_dir}/components/bootloader_support/bootloader_flash/src/bootloader_flash.c 31 PROPERTIES COMPILE_FLAGS 32 "-Wno-unused-variable -Wno-unused-but-set-variable") 33