Introduce a generated Kconfig.dts that sets a Kconfig symbol for every compatible. * We set DT_HAS_<compat>_ENABLED if the devicetree has a node with <compat> enabled. (status is okay...) We can then use the Kconfig symbol in driver Kconfig to determine if the driver should be available, and thus enabled by default. Signed-off-by: Kumar Gala <galak@kernel.org>
14 lines
232 B
Plaintext
14 lines
232 B
Plaintext
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config HAS_DTS
|
|
bool
|
|
help
|
|
This option specifies that the target platform supports device tree
|
|
configuration.
|
|
|
|
menu "Devicetree Info"
|
|
|
|
source "$(KCONFIG_BINARY_DIR)/Kconfig.dts"
|
|
|
|
endmenu
|