lib: onoff: add a config for on-off and build conditionally
Do not build this service unconditionally. Partial fix of #50654 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
3abcc19fd7
commit
a81b322828
5 changed files with 12 additions and 1 deletions
|
@ -15,6 +15,7 @@ menuconfig CLOCK_CONTROL_NRF
|
|||
default y
|
||||
depends on DT_HAS_NORDIC_NRF_CLOCK_ENABLED
|
||||
select NRFX_CLOCK if !CLOCK_CONTROL_NRF_FORCE_ALT
|
||||
select ONOFF
|
||||
help
|
||||
Enable support for the Nordic Semiconductor nRFxx series SoC clock
|
||||
driver.
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
menuconfig REGULATOR
|
||||
bool "Regulator drivers"
|
||||
select ONOFF
|
||||
help
|
||||
Include drivers for current/voltage regulators in system config
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ zephyr_sources(
|
|||
hex.c
|
||||
notify.c
|
||||
printk.c
|
||||
onoff.c
|
||||
rb.c
|
||||
sem.c
|
||||
thread_entry.c
|
||||
|
@ -25,6 +24,8 @@ zephyr_sources(
|
|||
multi_heap.c
|
||||
)
|
||||
|
||||
zephyr_sources_ifdef(CONFIG_ONOFF onoff.c)
|
||||
|
||||
zephyr_sources_ifdef(CONFIG_CBPRINTF_COMPLETE cbprintf_complete.c)
|
||||
zephyr_sources_ifdef(CONFIG_CBPRINTF_NANO cbprintf_nano.c)
|
||||
|
||||
|
|
|
@ -38,6 +38,13 @@ config MPSC_PBUF
|
|||
storing variable length packets in a circular way and operate directly
|
||||
on the buffer memory.
|
||||
|
||||
config ONOFF
|
||||
bool "On-Off Manager"
|
||||
help
|
||||
An on-off manager supports an arbitrary number of clients of a
|
||||
service which has a binary state. Example applications are power
|
||||
rails, clocks, and binary device power management.
|
||||
|
||||
config SPSC_PBUF
|
||||
bool "Single producer, single consumer packet buffer"
|
||||
help
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
CONFIG_POLL=y
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_ONOFF=y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue