Almir Okato | ecaf8bd | 2023-06-26 22:22:24 -0300 | [diff] [blame^] | 1 | # SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD |
| 2 | # |
| 3 | # SPDX-License-Identifier: Apache-2.0 |
| 4 | |
| 5 | list(APPEND include_dirs |
| 6 | ${esp_hal_dir}/components/esp_hw_support/port/${MCUBOOT_TARGET}/private_include |
| 7 | ) |
| 8 | |
| 9 | list(APPEND hal_srcs |
| 10 | ${esp_hal_dir}/components/hal/cache_hal.c |
| 11 | ${esp_hal_dir}/components/efuse/src/efuse_controller/keys/with_key_purposes/esp_efuse_api_key.c |
| 12 | ${esp_hal_dir}/components/esp_rom/patches/esp_rom_regi2c_${MCUBOOT_TARGET}.c |
| 13 | ) |
| 14 | |
| 15 | if (DEFINED CONFIG_ESP_CONSOLE_UART_CUSTOM) |
| 16 | list(APPEND hal_srcs |
| 17 | ${src_dir}/${MCUBOOT_TARGET}/console_uart_custom.c |
| 18 | ) |
| 19 | endif() |
| 20 | |
| 21 | list(APPEND LINKER_SCRIPTS |
| 22 | -T${esp_hal_dir}/components/esp_rom/${MCUBOOT_TARGET}/ld/${MCUBOOT_TARGET}.rom.newlib.ld |
| 23 | ) |
| 24 | |
| 25 | set_source_files_properties( |
| 26 | ${esp_hal_dir}/components/bootloader_support/src/esp_image_format.c |
| 27 | ${esp_hal_dir}/components/bootloader_support/bootloader_flash/src/bootloader_flash.c |
| 28 | ${esp_hal_dir}/components/bootloader_support/bootloader_flash/src/bootloader_flash_config_${MCUBOOT_TARGET}.c |
| 29 | ${esp_hal_dir}/components/hal/mmu_hal.c |
| 30 | ${esp_hal_dir}/components/hal/cache_hal.c |
| 31 | PROPERTIES COMPILE_FLAGS |
| 32 | "-Wno-logical-op") |