feat(kconfig): Rename "TARGET_PLATFORM_ESPxxx" to "IDF_TARGET_ESPxxx"

This commit is contained in:
Dong Heng
2019-02-15 18:42:24 +08:00
parent 8c2009e4b9
commit 48c160f7e7
20 changed files with 50 additions and 50 deletions

View File

@ -14,7 +14,7 @@
#include "sdkconfig.h"
#ifdef CONFIG_TARGET_PLATFORM_ESP32
#ifdef CONFIG_IDF_TARGET_ESP32
#include "rom/uart.h"
#include "rom/rtc.h"

View File

@ -14,7 +14,7 @@
#include "sdkconfig.h"
#ifdef CONFIG_TARGET_PLATFORM_ESP32
#ifdef CONFIG_IDF_TARGET_ESP32
#include <stdbool.h>
#include <assert.h>
@ -160,7 +160,7 @@ bool bootloader_common_erase_part_type_data(const char *list_erase, bool ota_dat
#endif
#ifdef CONFIG_TARGET_PLATFORM_ESP8266
#ifdef CONFIG_IDF_TARGET_ESP8266
#include <stdbool.h>
#include <stdint.h>

View File

@ -14,7 +14,7 @@
#include "sdkconfig.h"
#ifdef CONFIG_TARGET_PLATFORM_ESP32
#ifdef CONFIG_IDF_TARGET_ESP32
#include <stddef.h>
@ -256,7 +256,7 @@ esp_err_t bootloader_flash_erase_sector(size_t sector)
#endif
#ifdef CONFIG_TARGET_PLATFORM_ESP8266
#ifdef CONFIG_IDF_TARGET_ESP8266
#include <stdint.h>
#include <stdbool.h>

View File

@ -14,7 +14,7 @@
#include "sdkconfig.h"
#ifdef CONFIG_TARGET_PLATFORM_ESP32
#ifdef CONFIG_IDF_TARGET_ESP32
#include <string.h>
#include <stdint.h>
@ -536,7 +536,7 @@ void __assert_func(const char *file, int line, const char *func, const char *exp
#endif
#ifdef CONFIG_TARGET_PLATFORM_ESP8266
#ifdef CONFIG_IDF_TARGET_ESP8266
#include <string.h>

View File

@ -14,7 +14,7 @@
#include "sdkconfig.h"
#ifdef CONFIG_TARGET_PLATFORM_ESP32
#ifdef CONFIG_IDF_TARGET_ESP32
#include "bootloader_random.h"
#include "soc/cpu.h"

View File

@ -14,7 +14,7 @@
#include "sdkconfig.h"
#ifdef CONFIG_TARGET_PLATFORM_ESP32
#ifdef CONFIG_IDF_TARGET_ESP32
#include "bootloader_sha.h"
#include <stdbool.h>
@ -170,7 +170,7 @@ void bootloader_sha256_finish(bootloader_sha256_handle_t handle, uint8_t *digest
#endif
#elif defined(CONFIG_TARGET_PLATFORM_ESP8266)
#elif defined(CONFIG_IDF_TARGET_ESP8266)
#ifndef BOOTLOADER_BUILD

View File

@ -14,7 +14,7 @@
#include "sdkconfig.h"
#ifdef CONFIG_TARGET_PLATFORM_ESP32
#ifdef CONFIG_IDF_TARGET_ESP32
#include <string.h>
#include <stdint.h>
@ -478,7 +478,7 @@ static void set_cache_and_start_app(
#endif
#ifdef CONFIG_TARGET_PLATFORM_ESP8266
#ifdef CONFIG_IDF_TARGET_ESP8266
#include <stdbool.h>
#include <sys/param.h>

View File

@ -14,7 +14,7 @@
#include "sdkconfig.h"
#ifdef CONFIG_TARGET_PLATFORM_ESP32
#ifdef CONFIG_IDF_TARGET_ESP32
#include "esp_efuse.h"
#include "esp_log.h"

View File

@ -14,7 +14,7 @@
#include "sdkconfig.h"
#ifdef CONFIG_TARGET_PLATFORM_ESP32
#ifdef CONFIG_IDF_TARGET_ESP32
#include <string.h>
#include <sys/param.h>
@ -583,7 +583,7 @@ static void debug_log_hash(const uint8_t *image_hash, const char *label)
#endif
#ifdef CONFIG_TARGET_PLATFORM_ESP8266
#ifdef CONFIG_IDF_TARGET_ESP8266
#include <string.h>
#include <stdlib.h>
@ -692,7 +692,7 @@ esp_err_t esp_image_load(esp_image_load_mode_t mode, const esp_partition_pos_t *
if (1) {
#else
#ifdef CONFIG_ENABLE_BOOT_CHECK_SHA256
#ifdef CONFIG_TARGET_PLATFORM_ESP32
#ifdef CONFIG_IDF_TARGET_ESP32
if (data->image.hash_appended)
#endif
{
@ -1074,7 +1074,7 @@ static esp_err_t verify_checksum(bootloader_sha256_handle_t sha_handle, uint32_t
bootloader_sha256_data(sha_handle, buf, length - unpadded_length);
}
#if CONFIG_TARGET_PLATFORM_ESP32
#if CONFIG_IDF_TARGET_ESP32
if (data->image.hash_appended)
#endif
{
@ -1100,7 +1100,7 @@ static esp_err_t verify_secure_boot_signature(bootloader_sha256_handle_t sha_han
// For secure boot, we calculate the signature hash over the whole file, which includes any "simple" hash
// appended to the image for corruption detection
#if CONFIG_TARGET_PLATFORM_ESP32
#if CONFIG_IDF_TARGET_ESP32
if (data->image.hash_appended)
#endif
{

View File

@ -14,7 +14,7 @@
#include "sdkconfig.h"
#ifdef CONFIG_TARGET_PLATFORM_ESP32
#ifdef CONFIG_IDF_TARGET_ESP32
#include <strings.h>

View File

@ -14,7 +14,7 @@
#include "sdkconfig.h"
#ifdef CONFIG_TARGET_PLATFORM_ESP32
#ifdef CONFIG_IDF_TARGET_ESP32
#include <string.h>
#include "esp_flash_partitions.h"
@ -91,7 +91,7 @@ esp_err_t esp_partition_table_basic_verify(const esp_partition_info_t *partition
#endif
#ifdef CONFIG_TARGET_PLATFORM_ESP8266
#ifdef CONFIG_IDF_TARGET_ESP8266
#include <stdbool.h>
#include <string.h>

View File

@ -14,7 +14,7 @@
#include "sdkconfig.h"
#ifdef CONFIG_TARGET_PLATFORM_ESP32
#ifdef CONFIG_IDF_TARGET_ESP32
#include <stddef.h>
#include <stdint.h>

View File

@ -14,7 +14,7 @@
#include "sdkconfig.h"
#ifdef CONFIG_TARGET_PLATFORM_ESP32
#ifdef CONFIG_IDF_TARGET_ESP32
#include <string.h>

View File

@ -13,7 +13,7 @@
// limitations under the License.
#include "sdkconfig.h"
#ifdef CONFIG_TARGET_PLATFORM_ESP32
#ifdef CONFIG_IDF_TARGET_ESP32
#include "bootloader_flash.h"
#include "bootloader_sha.h"