zephyr/samples/subsys
Marcin Niestroj 2d3365200c settings: file: drop CONFIG_SETTINGS_FILE_DIR
There is already CONFIG_SETTINGS_FILE_PATH, which is set to full file path,
while CONFIG_SETTINGS_FILE_DIR is required to be set to its parent
directory. This is redundant, as parent directory path can be easily found
out either during runtime or optionally during buildtime by CMake.

CONFIG_SETTINGS_FILE_DIR was actually introduced recently after Zephyr 3.2
release as a replacement of deprecated CONFIG_SETTINGS_FS_DIR. This means,
that there is no need to deprecate it for 3.3 release and dropping it
should be fine. Adjust 3.3 release notes accordingly, so that
CONFIG_SETTINGS_FILE_PATH will be used directly.

This patch stops using deprecated CONFIG_SETTINGS_FS_DIR. There is actually
no value in respecting it, as setting anything other than parent directory
of CONFIG_SETTINGS_FS_FILE makes no sense.

There is actually one use of CONFIG_SETTINGS_FILE_DIR in file backend
tests, to derive directory for files containing tested settings.
CONFIG_SETTINGS_FILE_PATH is not used there, so it makes little sense to
derive directory name from it. Instead, just use hardcoded "/settings"
subdirectory, as this was the default value of CONFIG_SETTINGS_FILE_DIR.

Deriving parent directory can be done either in runtime or in
buildtime (e.g. using some helper CMake function). Doing it in runtime
however allows to create directory recursively (which this patch actually
implements), e.g. for some more nested FS tree structure. Additionally it
will simplify migration of settings configuration from Kconfig to
device-tree (yet to be developed feature).

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2022-12-14 14:11:03 +01:00
..
canbus samples: subsys: canbus: isotp: fix sample path in Readme.rst 2022-10-27 11:02:57 +02:00
console includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
cpp samples: cpp_synchronization: Allow running on POSIX arch boards 2022-11-05 16:41:45 +09:00
debug include: add missing zephyr/irq.h include 2022-10-17 22:57:39 +09:00
display samples: subsys: display: lvgl: Add native_posix overlay for SDL input 2022-10-03 10:12:03 +02:00
edac tests/samples: use integration_plaforms in more tests/samples 2022-11-29 16:03:23 +01:00
fs samples: fs: Add sample using fs_mkfs function 2022-12-05 15:36:00 +01:00
ipc samples: ipc: openamp: Enable openamp sample for iMX.RT1160 EVK 2022-12-05 19:54:37 +01:00
logging twister: Add fiters to SYS-T related tests 2022-10-27 11:03:30 +02:00
lorawan/class_a lorawan: enable run-time config of region/freq 2022-11-14 11:16:16 +00:00
mgmt tests/samples: use integration_plaforms in more tests/samples 2022-11-29 16:03:23 +01:00
modbus tests/samples: use integration_plaforms in more tests/samples 2022-11-29 16:03:23 +01:00
nvs samples: Use immediate logging mode in nvs sample 2022-12-13 17:20:38 +09:00
pm tests/samples: use integration_plaforms in more tests/samples 2022-11-29 16:03:23 +01:00
portability includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
rtio/sensor_batch_processing rtio: Add macro to define iodev submission queue 2022-10-05 12:42:16 +02:00
settings settings: file: drop CONFIG_SETTINGS_FILE_DIR 2022-12-14 14:11:03 +01:00
shell shell: support setting help string for each entry in a dictionary command 2022-12-05 18:40:46 +01:00
task_wdt samples: Use immediate logging mode in watchdog related samples 2022-12-10 09:45:02 +01:00
testsuite tests/samples: use integration_plaforms in more tests/samples 2022-11-29 16:03:23 +01:00
tracing tests/samples: use integration_plaforms in more tests/samples 2022-11-29 16:03:23 +01:00
usb sample: usb: shell: add keybord harness string 2022-12-12 15:00:20 +01:00
usb_c usb-c: Generate USB-C connector VIF policies XML file 2022-12-02 08:46:04 -06:00
video tests/samples: use integration_plaforms in more tests/samples 2022-11-29 16:03:23 +01:00
zbus tests/samples: use integration_plaforms in more tests/samples 2022-11-29 16:03:23 +01:00
subsys.rst