ipc_service: Re-organize Kconfig

Re-organize Kconfigs to make easier adding new backends.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
Carlo Caione 2021-11-09 14:45:34 +01:00 committed by Carles Cufí
commit bf19df0292
3 changed files with 16 additions and 16 deletions

View file

@ -13,18 +13,6 @@ if IPC_SERVICE
rsource "backends/Kconfig" rsource "backends/Kconfig"
config IPC_SERVICE_NUM_ENDPOINTS_PER_INSTANCE
int "Max number of registered endpoints per instance"
default 2
help
Maximal number of endpoints that can be registered for one instance.
config IPC_SERVICE_REG_BACKEND_PRIORITY
int "Initialization priority of modules registering IPC backend"
default 46
help
The backend must be registered before the endpoint register.
module = IPC_SERVICE module = IPC_SERVICE
module-str = IPC service and backend module-str = IPC service and backend
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config" source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"

View file

@ -17,11 +17,17 @@ config IPC_SERVICE_BACKEND_ZTEST
endchoice endchoice
if IPC_SERVICE_BACKEND_RPMSG_MI config IPC_SERVICE_NUM_ENDPOINTS_PER_INSTANCE
int "Max number of registered endpoints per instance"
default 2
help
Maximal number of endpoints that can be registered for one instance.
rsource "Kconfig.rpmsg_mi" config IPC_SERVICE_REG_BACKEND_PRIORITY
int "Initialization priority of modules registering IPC backend"
endif # IP_SERVICE_BACKEND_RPMSG_MI default 46
help
The backend must be registered before the endpoint register.
config IPC_SERVICE_RPMSG config IPC_SERVICE_RPMSG
bool "RPMsg support library" bool "RPMsg support library"
@ -32,3 +38,5 @@ config IPC_SERVICE_STATIC_VRINGS
bool "Static VRINGs support library" bool "Static VRINGs support library"
help help
"Static VRINGs library" "Static VRINGs library"
rsource "Kconfig.rpmsg_mi"

View file

@ -1,6 +1,8 @@
# Copyright (c) 2020-2021 Nordic Semiconductor (ASA) # Copyright (c) 2020-2021 Nordic Semiconductor (ASA)
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if IPC_SERVICE_BACKEND_RPMSG_MI
choice IPC_SERVICE_BACKEND_RPMSG_MI_ROLE choice IPC_SERVICE_BACKEND_RPMSG_MI_ROLE
prompt "IPC service device role" prompt "IPC service device role"
@ -58,3 +60,5 @@ ipm_name_instance_num = 6
rsource "Kconfig.ipm_name_instance" rsource "Kconfig.ipm_name_instance"
ipm_name_instance_num = 7 ipm_name_instance_num = 7
rsource "Kconfig.ipm_name_instance" rsource "Kconfig.ipm_name_instance"
endif # IP_SERVICE_BACKEND_RPMSG_MI