Almir Okato | 42e679d | 2022-01-18 00:16:58 -0300 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD |
| 2 | # |
| 3 | # SPDX-License-Identifier: Apache-2.0 |
| 4 | |
Almir Okato | 712fdb5 | 2021-08-06 10:22:56 -0300 | [diff] [blame] | 5 | list(APPEND hal_srcs |
Almir Okato | 54ef484 | 2023-03-07 17:56:53 -0300 | [diff] [blame^] | 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 | |
Almir Okato | 712fdb5 | 2021-08-06 10:22:56 -0300 | [diff] [blame] | 12 | ) |
| 13 | |
| 14 | list(APPEND LINKER_SCRIPTS |
Almir Okato | 54ef484 | 2023-03-07 17:56:53 -0300 | [diff] [blame^] | 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 |
Almir Okato | 712fdb5 | 2021-08-06 10:22:56 -0300 | [diff] [blame] | 17 | ) |
Almir Okato | 54ef484 | 2023-03-07 17:56:53 -0300 | [diff] [blame^] | 18 | |
| 19 | set_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") |