nuttx-apps/system/nxinit
wangjianyu3 2085e1ca96 system/nxinit: add fallback option to resolve preset service conflict
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>
2026-09-16 00:08:45 +08:00
..
test system/nxinit: add a per-service "console" option 2026-09-10 23:12:06 +08:00
action.c system/nxinit: support compound command execution 2026-08-26 10:00:02 -03:00
action.h system/nxinit: support compound command execution 2026-08-26 10:00:02 -03:00
builtin.c system/nxinit: fix rptun builtin blocking the action queue 2026-09-16 00:08:45 +08:00
builtin.h system/nxinit: Add NuttX Init 2026-05-27 17:20:07 -03:00
CMakeLists.txt system/nxinit: add cmocka unit tests for parser/action/service 2026-08-28 09:33:47 -03:00
import.c system/nxinit: Fix missing check for import argument 2026-06-05 09:43:45 +08:00
import.h system/nxinit: Add NuttX Init 2026-05-27 17:20:07 -03:00
init.c system/nxinit: use TRACE_DEVERROR_BIT|TRACE_CLSERROR_BIT, not TRACE_BITSET 2026-09-16 00:08:22 +08:00
init.h system/nxinit: add CONFIG_SYSTEM_NXINIT_STDOUT for printf-based log output 2026-09-15 09:17:06 -03:00
Kconfig system/nxinit: add CONFIG_SYSTEM_NXINIT_STDOUT for printf-based log output 2026-09-15 09:17:06 -03:00
Make.defs system/nxinit: Add NuttX Init 2026-05-27 17:20:07 -03:00
Makefile system/nxinit: add cmocka unit tests for parser/action/service 2026-08-28 09:33:47 -03:00
parser.c system/nxinit: add cmocka unit tests for parser/action/service 2026-08-28 09:33:47 -03:00
parser.h system/nxinit: add cmocka unit tests for parser/action/service 2026-08-28 09:33:47 -03:00
property.h system/nxinit: Add setprop support for action 2026-08-15 18:51:45 +08:00
property_simple.c system/nxinit: Add setprop support for action 2026-08-15 18:51:45 +08:00
service.c system/nxinit: add fallback option to resolve preset service conflict 2026-09-16 00:08:45 +08:00
service.h system/nxinit: add fallback option to resolve preset service conflict 2026-09-16 00:08:45 +08:00