diff options
author | Gaurav Minocha <gaurav.minocha.os@gmail.com> | 2014-07-25 19:57:38 -0700 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-02-20 23:41:17 +0900 |
commit | dacf48b307aaa5d2cfc9d0a5b5b52ed4765b9d2a (patch) | |
tree | 8d65597c88d9111a36f20e3701f296295a8a6fa5 | |
parent | 442e9dac8e05ad5586a2116ecb65f5326823d931 (diff) |
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>
(cherry picked from commit 32147e9a8ea54f2ec9914edeede8a9d9dc02e886)
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/of/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig index 17942557ecf6..78787b128d32 100644 --- a/drivers/of/Kconfig +++ b/drivers/of/Kconfig @@ -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 |