From e08a3e1d63ee78d8f6e6eac07534fcc00bdaae18 Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Wed, 30 Sep 2020 11:23:50 +0530 Subject: [PATCH] test_apps: add anti rollback configuration for bootloader build --- .../system/bootloader_sections/partitions_example.csv | 7 +++++++ .../system/bootloader_sections/sdkconfig.ci.anti_rollback | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 tools/test_apps/system/bootloader_sections/partitions_example.csv create mode 100644 tools/test_apps/system/bootloader_sections/sdkconfig.ci.anti_rollback diff --git a/tools/test_apps/system/bootloader_sections/partitions_example.csv b/tools/test_apps/system/bootloader_sections/partitions_example.csv new file mode 100644 index 0000000000..42b0227c71 --- /dev/null +++ b/tools/test_apps/system/bootloader_sections/partitions_example.csv @@ -0,0 +1,7 @@ +# Name, Type, SubType, Offset, Size, Flags +# Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap +nvs, data, nvs, , 0x4000, +otadata, data, ota, , 0x2000, +phy_init, data, phy, , 0x1000, +ota_0, app, ota_0, , 1M, +ota_1, app, ota_1, , 1M, diff --git a/tools/test_apps/system/bootloader_sections/sdkconfig.ci.anti_rollback b/tools/test_apps/system/bootloader_sections/sdkconfig.ci.anti_rollback new file mode 100644 index 0000000000..e2914f2e94 --- /dev/null +++ b/tools/test_apps/system/bootloader_sections/sdkconfig.ci.anti_rollback @@ -0,0 +1,5 @@ +CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y +CONFIG_BOOTLOADER_APP_ANTI_ROLLBACK=y +CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y +CONFIG_PARTITION_TABLE_CUSTOM=y +CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions_example.csv"