Skip to content

Commit 32147e9

Browse files
gauravminochaosglikely
authored andcommitted
of: Fixing OF Selftest build error
This patch is to fix following error while compiling OF selftests. "drivers/of/selftest.c:617:2: error: implicit declaration of function 'of_fdt_unflatten_tree'" Now, CONFIG_OF_SELFTEST depends on CONFIG_OF_EARLY_FLATTREE so that the broken configuration cannot be selected. Ultimately it would be a good idea to allow CONFIG_OF_SELFTEST to select CONFIG_OF_EARLY_FLATTREE, but there is a dependency problem on i386 and x86_64 that causes dtc to not get built and causes the build to fail. That problem needs to be fixed first. Signed-off-by: Gaurav Minocha <gaurav.minocha.os@gmail.com> Signed-off-by: Grant Likely <grant.likely@linaro.org>
1 parent 9dcfee0 commit 32147e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/of/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ menu "Device Tree and Open Firmware support"
99

1010
config OF_SELFTEST
1111
bool "Device Tree Runtime self tests"
12-
depends on OF_IRQ
12+
depends on OF_IRQ && OF_EARLY_FLATTREE
1313
select OF_DYNAMIC
1414
help
1515
This option builds in test cases for the device tree infrastructure

0 commit comments

Comments
 (0)