mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-01 19:36:36 +00:00
The preset kvdb service defined in parser.c conflicts with user-defined kvdb service in board-level init.rc, causing: Error redefined service 'kvdb' Add SVC_FALLBACK flag and fallback service option. When a service is marked as fallback, it will be silently ignored if another service with the same name already exists. This is the semantic opposite of override: - override: new definition replaces old - fallback: new definition yields to old - old has fallback + new arrives: old yields to new If neither flag is set, duplicate service names still produce EEXIST error as before. Mark the preset kvdb service as fallback so that board-specific init.rc can freely define its own kvdb service without conflict. Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com> |
||
|---|---|---|
| .. | ||
| test | ||
| action.c | ||
| action.h | ||
| builtin.c | ||
| builtin.h | ||
| CMakeLists.txt | ||
| import.c | ||
| import.h | ||
| init.c | ||
| init.h | ||
| Kconfig | ||
| Make.defs | ||
| Makefile | ||
| parser.c | ||
| parser.h | ||
| property.h | ||
| property_simple.c | ||
| service.c | ||
| service.h | ||