Kconfig.projbuild 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. endchoice
  19. config PARTITION_TABLE_CUSTOM_FILENAME
  20. string "Custom partition CSV file" if PARTITION_TABLE_CUSTOM
  21. default "partitions.csv"
  22. help
  23. Name of the custom partition CSV filename. This path is evaluated
  24. relative to the project root directory.
  25. config PARTITION_TABLE_FILENAME
  26. string
  27. default "partitions_singleapp.csv" if PARTITION_TABLE_SINGLE_APP && !ESP32_ENABLE_COREDUMP_TO_FLASH
  28. default "partitions_singleapp_coredump.csv" if PARTITION_TABLE_SINGLE_APP && ESP32_ENABLE_COREDUMP_TO_FLASH
  29. default "partitions_two_ota.csv" if PARTITION_TABLE_TWO_OTA && !ESP32_ENABLE_COREDUMP_TO_FLASH
  30. default "partitions_two_ota_coredump.csv" if PARTITION_TABLE_TWO_OTA && ESP32_ENABLE_COREDUMP_TO_FLASH
  31. default PARTITION_TABLE_CUSTOM_FILENAME if PARTITION_TABLE_CUSTOM
  32. config PARTITION_TABLE_OFFSET
  33. hex "Offset of partition table"
  34. default 0x8000
  35. help
  36. The address of partition table (by default 0x8000).
  37. Allows you to move the partition table, it gives more space for the bootloader.
  38. Note that the bootloader and app will both need to be compiled with the same PARTITION_TABLE_OFFSET value.
  39. This number should be a multiple of 0x1000.
  40. Note that partition offsets in the partition table CSV file may need to be changed if this value is set to
  41. a higher value. To have each partition offset adapt to the configured partition table offset, leave all
  42. partition offsets blank in the CSV file.
  43. config PARTITION_TABLE_MD5
  44. bool "Generate an MD5 checksum for the partition table"
  45. default y
  46. depends on !ESP32_COMPATIBLE_PRE_V3_1_BOOTLOADERS
  47. help
  48. Generate an MD5 checksum for the partition table for protecting the
  49. integrity of the table. The generation should be turned off for legacy
  50. bootloaders which cannot recognize the MD5 checksum in the partition
  51. table.
  52. endmenu