]> granicus.if.org Git - esp-idf/commitdiff
partition_table: restore needed factory offset variable
authorRenz Christian Bagaporo <renz@espressif.com>
Fri, 22 Mar 2019 07:24:23 +0000 (15:24 +0800)
committerRenz Christian Bagaporo <renz@espressif.com>
Fri, 22 Mar 2019 07:24:23 +0000 (15:24 +0800)
components/partition_table/CMakeLists.txt

index e7b65779041f8bceb8f8134ec251b748a888abd8..d42e5b85c245ebd9a6e09dcb8a4f784e0bb0c4b0 100644 (file)
@@ -71,7 +71,8 @@ endif()
 
 # If anti-rollback option is set then factory partition should not be in Partition Table.
 # In this case, should be used the partition table with two ota app without the factory.
-if(CONFIG_APP_ANTI_ROLLBACK AND FACTORY_OFFSET)
+partition_table_get_partition_info(factory_offset "--partition-type app --partition-subtype factory" "offset")
+if(CONFIG_APP_ANTI_ROLLBACK AND factory_offset)
     fail_at_build_time(check_table_contents
         "ERROR: Anti-rollback option is enabled. Partition table should consist of two ota app without factory partition.")
 add_dependencies(bootloader check_table_contents)