Skip to contentSkip to conversation

nios2: Make NIOS2_DTB_SOURCE_BOOL depend on !COMPILE_TEST

PATCH Superseded Guenter Roeck 1 participant 2 messages Oct 20, 2021 NIOS2 architecture

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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
index 9e32fb7f3d4c..e849daff6fd1 100644
@@ -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
#1 lore raw
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 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
index 9e32fb7f3d4c..e849daff6fd1 100644
@@ -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.