Skip to content

Commit

Permalink
of: Fixing OF Selftest build error
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Grant Likely <[email protected]>
  • Loading branch information
gauravminochaos authored and glikely committed Aug 3, 2014
1 parent 9dcfee0 commit 32147e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/of/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ menu "Device Tree and Open Firmware support"

config OF_SELFTEST
bool "Device Tree Runtime self tests"
depends on OF_IRQ
depends on OF_IRQ && OF_EARLY_FLATTREE
select OF_DYNAMIC
help
This option builds in test cases for the device tree infrastructure
Expand Down

0 comments on commit 32147e9

Please sign in to comment.