nios2: Make NIOS2_DTB_SOURCE_BOOL depend on !COMPILE_TEST
PATCH 1/1 nios2: Make NIOS2_DTB_SOURCE_BOOL depend on !COMPILE_TEST
nios2:allmodconfig builds fail with
This is seen with compile tests since those enable NIOS2_DTB_SOURCE_BOOL, which in turn enables NIOS2_DTB_SOURCE. This causes the build error because the default value for NIOS2_DTB_SOURCE is an empty string. Disable NIOS2_DTB_SOURCE_BOOL for compile tests to avoid the error.
--- arch/nios2/platform/Kconfig.platform | 1 + 1 file changed, 1 insertion(+)
arch/nios2/platform/Kconfig.platform +1 -0
@@ -37,6 +37,7 @@ config NIOS2_DTB_PHYS_ADDR config NIOS2_DTB_SOURCE_BOOL bool "Compile and link device tree into kernel image" + depends on !COMPILE_TEST help This allows you to specify a dts (device tree source) file which will be compiled and linked into the kernel image.
Signature · 1 line
2.33.0
Quoted 2 lines · Guenter Roeck
nios2:allmodconfig builds fail with
... actual error message goes here. Sorry for the noise. v2 sent immediately.
Guenter
Quoted 23 lines
This is seen with compile tests since those enable
NIOS2_DTB_SOURCE_BOOL, which in turn enablesNIOS2_DTB_SOURCE. This causes the build error because the default value forNIOS2_DTB_SOURCEis an empty string. DisableNIOS2_DTB_SOURCE_BOOLfor compile tests to avoid the error.Signed-off-by Guenter Roeck <[email protected]>--- arch/nios2/platform/Kconfig.platform | 1 + 1 file changed, 1 insertion(+)arch/nios2/platform/Kconfig.platform +1
-0@@ -37,6 +37,7 @@ config NIOS2_DTB_PHYS_ADDR config NIOS2_DTB_SOURCE_BOOL bool "Compile and link device tree into kernel image" + depends on !COMPILE_TEST help This allows you to specify a dts (device tree source) file which will be compiled and linked into the kernel image.