CMakeLists.txt 439 B

12345678
  1. idf_component_register(SRCS "serial_flash_example_main.c"
  2. INCLUDE_DIRS ".")
  3. # Create a SPIFFS image from the contents of the 'spiffs_image' directory
  4. # that fits the partition named 'storage'. FLASH_IN_PROJECT indicates that
  5. # the generated image should be flashed when the entire project is flashed to
  6. # the target with 'idf.py -p PORT flash'.
  7. spiffs_create_partition_image(storage ../spiffs_image FLASH_IN_PROJECT)