Skip to contentSkip to conversation

nios2: Make NIOS2_DTB_SOURCE_BOOL depend on !COMPILE_TEST

PATCH Superseded Guenter Roeck 3 participants 3 messages Oct 20, 2021 – Oct 21, 2021 NIOS2 architecture

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 nios2: Make NIOS2_DTB_SOURCE_BOOL depend on !COMPILE_TEST

nios2:allmodconfig builds fail with

make[1]: *** No rule to make target 'arch/nios2/boot/dts/""',
needed by 'arch/nios2/boot/dts/built-in.a'. Stop.
make: [Makefile:1868: arch/nios2/boot/dts] Error 2 (ignored)

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.

---
v2: Include error message

 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
Reviewed-by on v2 1/1
#1 lore raw
Quoted 6 lines · Guenter Roeck

nios2:allmodconfig builds fail with

make[1]: *** No rule to make target 'arch/nios2/boot/dts/""',
needed by 'arch/nios2/boot/dts/built-in.a'. Stop.
make: [Makefile:1868: arch/nios2/boot/dts] Error 2 (ignored)

Quoted 6 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.

Thanks, I've seen this problem also.

Quoted 19 lines

---
v2: Include error message

  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
~Randy
maintainer
#2 lore raw
Quoted 12 lines · Randy Dunlap
Quoted 11 lines · Guenter Roeck

nios2:allmodconfig builds fail with

make[1]: *** No rule to make target 'arch/nios2/boot/dts/""', needed by 'arch/nios2/boot/dts/built-in.a'.  Stop.
make: [Makefile:1868: arch/nios2/boot/dts] Error 2 (ignored)

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.

Quoted 6 lines
Quoted 1 line

Thanks, I've seen this problem also.

Does this need a Fixes tag?

Fixes 2fc8483fdcde ("nios2: Build infrastructure")

Dinh