Kconfig.projbuild 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. menu "Partition Table"
  2. choice PARTITION_TABLE_TYPE
  3. prompt "Partition Table"
  4. default PARTITION_TABLE_SINGLE_APP
  5. help
  6. The partition table to flash to the ESP32. The partition table
  7. determines where apps, data and other resources are expected to
  8. be found.
  9. The predefined partition table CSV descriptions can be found
  10. in the components/partition_table directory. Otherwise it's
  11. possible to create a new custom partition CSV for your application.
  12. config PARTITION_TABLE_SINGLE_APP
  13. bool "Single factory app, no OTA"
  14. config PARTITION_TABLE_TWO_OTA
  15. bool "Factory app, two OTA definitions"
  16. config PARTITION_TABLE_CUSTOM
  17. bool "Custom partition table CSV"
  18. config PARTITION_TABLE_SINGLE_APP_ENCRYPTED_NVS
  19. bool "Single factory app, no OTA, encrypted NVS"
  20. depends on !ESP32_COREDUMP_ENABLE_TO_FLASH && NVS_ENCRYPTION
  21. config PARTITION_TABLE_TWO_OTA_ENCRYPTED_NVS
  22. bool "Factory app, two OTA definitions, encrypted NVS"
  23. depends on !ESP_COREDUMP_ENABLE_TO_FLASH && NVS_ENCRYPTION
  24. endchoice
  25. config PARTITION_TABLE_CUSTOM_FILENAME
  26. string "Custom partition CSV file" if PARTITION_TABLE_CUSTOM
  27. default "partitions.csv"
  28. help
  29. Name of the custom partition CSV filename. This path is evaluated
  30. relative to the project root directory.
  31. config PARTITION_TABLE_FILENAME
  32. string
  33. default "partitions_singleapp.csv" if PARTITION_TABLE_SINGLE_APP && !ESP_COREDUMP_ENABLE_TO_FLASH
  34. default "partitions_singleapp_coredump.csv" if PARTITION_TABLE_SINGLE_APP && ESP_COREDUMP_ENABLE_TO_FLASH
  35. default "partitions_singleapp_encr_nvs.csv" if PARTITION_TABLE_SINGLE_APP_ENCRYPTED_NVS
  36. default "partitions_two_ota.csv" if PARTITION_TABLE_TWO_OTA && !ESP_COREDUMP_ENABLE_TO_FLASH
  37. default "partitions_two_ota_coredump.csv" if PARTITION_TABLE_TWO_OTA && ESP_COREDUMP_ENABLE_TO_FLASH
  38. default "partitions_two_ota_encr_nvs.csv" if PARTITION_TABLE_TWO_OTA_ENCRYPTED_NVS
  39. default PARTITION_TABLE_CUSTOM_FILENAME if PARTITION_TABLE_CUSTOM
  40. config PARTITION_TABLE_OFFSET
  41. hex "Offset of partition table"
  42. default 0x8000
  43. help
  44. The address of partition table (by default 0x8000).
  45. Allows you to move the partition table, it gives more space for the bootloader.
  46. Note that the bootloader and app will both need to be compiled with the same PARTITION_TABLE_OFFSET value.
  47. This number should be a multiple of 0x1000.
  48. Note that partition offsets in the partition table CSV file may need to be changed if this value is set to
  49. a higher value. To have each partition offset adapt to the configured partition table offset, leave all
  50. partition offsets blank in the CSV file.
  51. config PARTITION_TABLE_MD5
  52. bool "Generate an MD5 checksum for the partition table"
  53. default y
  54. depends on !ESP32_COMPATIBLE_PRE_V3_1_BOOTLOADERS
  55. help
  56. Generate an MD5 checksum for the partition table for protecting the
  57. integrity of the table. The generation should be turned off for legacy
  58. bootloaders which cannot recognize the MD5 checksum in the partition
  59. table.
  60. endmenu