Directory Files
.. 6
unittest-data 380
File Size
.address.o.cmd 60 kB
.base.o.cmd 53 kB
.built-in.a.cmd 344 B
.cpu.o.cmd 52 kB
.device.o.cmd 57 kB
.dynamic.o.cmd 52 kB
.empty_root.dtb.S.cmd 410 B
.empty_root.dtb.cmd 865 B
.empty_root.dtb.d.dtc.tmp 62 B
.empty_root.dtb.d.pre.tmp 40 B
.empty_root.dtb.dts.tmp 176 B
.empty_root.dtb.o.cmd 3.2 kB
.fdt.o.cmd 62 kB
.fdt_address.o.cmd 40 kB
.irq.o.cmd 54 kB
.kexec.o.cmd 66 kB
.kobj.o.cmd 42 kB
.kunit_overlay_test.dtbo.S.cmd 446 B
.kunit_overlay_test.dtbo.cmd 1.0 kB
.kunit_overlay_test.dtbo.d.dtc.tmp 80 B
.kunit_overlay_test.dtbo.d.pre.tmp 57 B
.kunit_overlay_test.dtbo.dts.tmp 199 B
.kunit_overlay_test.dtbo.o.cmd 3.2 kB
.kunitconfig 101 B
.module.o.cmd 50 kB
.modules.order.cmd 218 B
.of_kunit_helpers.ko.cmd 299 B
.of_kunit_helpers.mod.cmd 159 B
.of_kunit_helpers.mod.o.cmd 50 kB
.of_kunit_helpers.o.cmd 51 kB
.of_numa.o.cmd 41 kB
.of_reserved_mem.o.cmd 56 kB
.of_test.ko.cmd 263 B
.of_test.mod.cmd 132 B
.of_test.mod.o.cmd 50 kB
.of_test.o.cmd 51 kB
.overlay-test.ko.cmd 283 B
.overlay-test.mod.cmd 173 B
.overlay-test.mod.o.cmd 50 kB
.overlay-test.o.cmd 452 B
.overlay.o.cmd 51 kB
.overlay_test.o.cmd 52 kB
.platform.o.cmd 67 kB
.property.o.cmd 53 kB
.resolver.o.cmd 51 kB
.unittest.o.cmd 69 kB
Kconfig 3.4 kB
Makefile 899 B
address.c 31 kB
address.o 102 kB
base.c 64 kB
base.o 160 kB
built-in.a 4.8 kB
cpu.c 6.4 kB
cpu.o 15 kB
device.c 8.8 kB
device.o 37 kB
dynamic.c 29 kB
dynamic.o 111 kB
empty_root.dtb 131 B
empty_root.dtb.S 251 B
empty_root.dtb.o 912 B
empty_root.dts 340 B
fdt.c 34 kB
fdt.o 133 kB
fdt_address.c 5.9 kB
fdt_address.o 27 kB
irq.c 25 kB
irq.o 85 kB
kexec.c 13 kB
kexec.o 39 kB
kobj.c 4.1 kB
kobj.o 19 kB
kunit_overlay_test.dtbo 195 B
kunit_overlay_test.dtbo.S 296 B
kunit_overlay_test.dtbo.o 992 B
kunit_overlay_test.dtso 114 B
module.c 1.6 kB
module.o 11 kB
modules.order 77 B
of_kunit_helpers.c 2.5 kB
of_kunit_helpers.ko 15 kB
of_kunit_helpers.mod 30 B
of_kunit_helpers.mod.c 624 B
of_kunit_helpers.mod.o 5.1 kB
of_kunit_helpers.o 13 kB
of_numa.c 4.0 kB
of_numa.o 21 kB
of_private.h 7.2 kB
of_reserved_mem.c 26 kB
of_reserved_mem.o 77 kB
of_test.c 3.9 kB
of_test.ko 31 kB
of_test.mod 21 B
of_test.mod.c 393 B
of_test.mod.o 3.1 kB
of_test.o 29 kB
overlay-test.ko 35 kB
overlay-test.mod 63 B
overlay-test.mod.c 393 B
overlay-test.mod.o 3.1 kB
overlay-test.o 33 kB
overlay.c 36 kB
overlay.o 110 kB
overlay_test.c 3.3 kB
overlay_test.o 26 kB
pdt.c 5.0 kB
platform.c 22 kB
platform.o 67 kB
property.c 51 kB
property.o 151 kB
resolver.c 8.6 kB
resolver.o 28 kB
unittest.c 134 kB
unittest.o 861 kB

Linux v7.4-rc3 - of

# 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
	def_bool OF && !(SPARC || ALPHA || HEXAGON || M68K || PARISC || S390)
	select DMA_DECLARE_COHERENT if HAS_DMA && HAS_IOMEM
	select OF_FLATTREE

config OF_PROMTREE
	bool

config OF_KOBJ
	def_bool SYSFS

# Hardly any platforms need this.  It is safe to select, but only do so if you
# need it.
config OF_DYNAMIC
	bool "Support for dynamic device trees" if OF_UNITTEST
	select OF_KOBJ
	help
	  On some platforms, the device tree can be manipulated at runtime.
	  While this option is selected automatically on such platforms, you
	  can enable it manually to improve device tree unit test coverage.

config OF_ADDRESS
	def_bool y
	depends on !SPARC && (HAS_IOMEM || UML)

config OF_IRQ
	def_bool y
	depends on !SPARC && IRQ_DOMAIN

config OF_RESERVED_MEM
	def_bool OF_EARLY_FLATTREE

config OF_RESOLVE
	bool

config OF_OVERLAY
	bool "Device Tree overlays"
	select OF_DYNAMIC
	select OF_FLATTREE
	select OF_RESOLVE
	help
	  Overlays are a method to dynamically modify part of the kernel's
	  device tree with dynamically loaded data.
	  While this option is selected automatically when needed, you can
	  enable it manually to improve device tree unit test coverage.

config OF_OVERLAY_KUNIT_TEST
	tristate "Device Tree overlay KUnit tests" if !KUNIT_ALL_TESTS
	depends on KUNIT
	default KUNIT_ALL_TESTS
	select DTC
	help
	  This option builds KUnit unit tests for the device tree overlay code.

	  If unsure, say N here, but this option is safe to enable.

config OF_NUMA
	bool

endif # OF