ad15109daa
Currently, several examples do not explicitly state their component dependencies, relying instead on the default behavior that includes all registered components and commonly required ones in the build. Explicitly adding component dependencies can reduce build time when set(COMPONENTS main) is used. Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
10 lines
473 B
CMake
10 lines
473 B
CMake
idf_component_register(SRCS "nvsgen_example_main.c"
|
|
PRIV_REQUIRES vfs fatfs nvs_flash
|
|
INCLUDE_DIRS ".")
|
|
|
|
# Create a NVS image from the contents of the `nvs_data` CSV file
|
|
# that fits the partition named 'nvs'. FLASH_IN_PROJECT indicates that
|
|
# the generated image should be flashed when the entire project is flashed to
|
|
# the target with 'idf.py -p PORT flash'.
|
|
nvs_create_partition_image(nvs ../nvs_data.csv FLASH_IN_PROJECT)
|