# Component drivers — Zephyr Kconfig
#
# Wraps the historical component_drivers C++ library
# (modules/openUBMC/component_drivers/{drivers,gen,include}/) as a
# discoverable Zephyr module. Activated by `CONFIG_COMPONENT_DRIVERS=y`,
# which is `select`-ed transitively by `CONFIG_DEVMON=y`. See spec 001
# task T019.
#
# Run-time entry: none. component_drivers is a passive library that is
# linked in and queried by devmon at service startup; no SYS_INIT
# registration belongs here.

config COMPONENT_DRIVERS
    bool "Enable OpenUBMC component_drivers (bus/chip drivers)"
    default n
    select OPENUBMC_MC_BASE
    select OPENUBMC_MC_BASE_REFLECTION
    select OPENUBMC_MC_BASE_DATABASE
    select OPENUBMC_LIBMCPP_MCAPP
    select OPENUBMC_LIBMCPP_ENGINE
    help
      Pulls in the bus/chip driver translation units used by devmon
      (i2c, eeprom, lm75, pca9545, pca9555, ina, …) plus the generated
      device-tree interface bindings under gen/.

      Default n: enabled implicitly via `select COMPONENT_DRIVERS` from
      modules/openUBMC/devmon/zephyr/Kconfig. Direct opt-in from a
      product's prj.conf is also fine if a future image needs the
      driver layer without the devmon service.

      Spec: 001-productize-manifest, FR-008 / FR-010, T019.