drivers/of/Kconfig
Source file repositories/reference/linux-study-clean/drivers/of/Kconfig
File Facts
- System
- Linux kernel
- Corpus path
drivers/of/Kconfig- Extension
[no extension]- Size
- 3449 bytes
- Lines
- 130
- Domain
- Driver Families
- Bucket
- drivers/of
- Inferred role
- Driver Families: build/configuration rule
- Status
- atlas-only
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
# SPDX-License-Identifier: GPL-2.0
config DTC
bool
config GENERIC_BUILTIN_DTB
bool
config BUILTIN_DTB_ALL
bool
menuconfig OF
bool "Device Tree and Open Firmware support"
help
This option enables the device tree infrastructure.
It is automatically selected by platforms that need it or can
be enabled manually for unittests, overlays or
compile-coverage.
if OF
config OF_UNITTEST
bool "Device Tree runtime unit tests"
depends on OF_EARLY_FLATTREE
select IRQ_DOMAIN
select OF_RESOLVE
help
This option builds in test cases for the device tree infrastructure
that are executed once at boot time, and the results dumped to the
console.
This option should only be enabled for a development kernel. The tests
will taint the kernel with TAINT_TEST. The tests will cause ERROR and
WARNING messages to print on the console. The tests will cause stack
traces to print on the console. It is possible that the tests will
leave the devicetree in a corrupted state.
The unittest output will be verbose. Copy the output to a file
via capturing the console output or via the dmesg command. Process
this file with scripts/dtc/of_unittest_expect to reduce the
verbosity, test whether expected output is present, and to
summarize the results.
If unsure, say N here. This option is not safe to enable.
config OF_KUNIT_TEST
tristate "Devicetree KUnit Test" if !KUNIT_ALL_TESTS
depends on KUNIT
default KUNIT_ALL_TESTS
help
This option builds KUnit unit tests for device tree infrastructure.
If unsure, say N here, but this option is safe to enable.
config OF_ALL_DTBS
bool "Build all Device Tree Blobs"
depends on COMPILE_TEST
select DTC
help
This option builds all possible Device Tree Blobs (DTBs) for the
current architecture.
If unsure, say N here, but this option is safe to enable.
config OF_FLATTREE
bool
select DTC
select LIBFDT
select CRC32
config OF_EARLY_FLATTREE
Annotation
- Atlas domain: Driver Families / drivers/of.
- Implementation status: atlas-only.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.