forked from espressif/esp-idf
partition table: Set partition table offset via variable
This commit is contained in:
committed by
Angus Gratton
parent
c70f9db369
commit
cfa8ed15c0
@@ -4,7 +4,7 @@
|
|||||||
"--flash_freq", "${ESPFLASHFREQ}" ],
|
"--flash_freq", "${ESPFLASHFREQ}" ],
|
||||||
"flash_files" : {
|
"flash_files" : {
|
||||||
"0x1000" : "bootloader/bootloader.bin",
|
"0x1000" : "bootloader/bootloader.bin",
|
||||||
"0x8000" : "partition_table/partition-table.bin",
|
"${PARTITION_TABLE_OFFSET}" : "partition_table/partition-table.bin",
|
||||||
"${CONFIG_APP_OFFSET}" : "${PROJECT_NAME}.bin",
|
"${CONFIG_APP_OFFSET}" : "${PROJECT_NAME}.bin",
|
||||||
"${PHY_PARTITION_OFFSET}" : "${PHY_PARTITION_BIN_FILE}"
|
"${PHY_PARTITION_OFFSET}" : "${PHY_PARTITION_BIN_FILE}"
|
||||||
},
|
},
|
||||||
@@ -12,6 +12,6 @@
|
|||||||
"file" : "bootloader/bootloader.bin" },
|
"file" : "bootloader/bootloader.bin" },
|
||||||
"app" : { "offset" : "${CONFIG_APP_OFFSET}",
|
"app" : { "offset" : "${CONFIG_APP_OFFSET}",
|
||||||
"file" : "${PROJECT_NAME}.bin" },
|
"file" : "${PROJECT_NAME}.bin" },
|
||||||
"partition_table" : { "offset" : "0x8000",
|
"partition_table" : { "offset" : "${PARTITION_TABLE_OFFSET}",
|
||||||
"file" : "partition_table/partition-table.bin" }
|
"file" : "partition_table/partition-table.bin" }
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,3 @@
|
|||||||
set(partition_table_offset 0x8000)
|
|
||||||
|
|
||||||
register_config_only_component()
|
register_config_only_component()
|
||||||
|
|
||||||
# Set partition_csv to the configured partition source file
|
# Set partition_csv to the configured partition source file
|
||||||
@@ -56,5 +54,5 @@ add_custom_target(partition_table ALL DEPENDS "${final_partition_bin}")
|
|||||||
# the list of esptool write arguments for flashing
|
# the list of esptool write arguments for flashing
|
||||||
set_property(GLOBAL APPEND_STRING PROPERTY
|
set_property(GLOBAL APPEND_STRING PROPERTY
|
||||||
ESPTOOL_WRITE_FLASH_ARGS
|
ESPTOOL_WRITE_FLASH_ARGS
|
||||||
"${partition_table_offset} ${final_partition_bin} ")
|
"${PARTITION_TABLE_OFFSET} ${final_partition_bin} ")
|
||||||
|
|
||||||
|
1
components/partition_table/project_include.cmake
Normal file
1
components/partition_table/project_include.cmake
Normal file
@@ -0,0 +1 @@
|
|||||||
|
set(PARTITION_TABLE_OFFSET 0x8000)
|
Reference in New Issue
Block a user