Skip to content

Commit 2ecc397

Browse files
groeckksacilotto
authored andcommitted
nios2: Make NIOS2_DTB_SOURCE_BOOL depend on !COMPILE_TEST
BugLink: https://bugs.launchpad.net/bugs/1952785 commit 4a089e9 upstream. 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. Fixes: 2fc8483 ("nios2: Build infrastructure") Signed-off-by: Guenter Roeck <[email protected]> Reviewed-by: Randy Dunlap <[email protected]> Signed-off-by: Dinh Nguyen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Kamal Mostafa <[email protected]> Signed-off-by: Stefan Bader <[email protected]>
1 parent 35be435 commit 2ecc397

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/nios2/platform/Kconfig.platform

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ config NIOS2_DTB_PHYS_ADDR
3737

3838
config NIOS2_DTB_SOURCE_BOOL
3939
bool "Compile and link device tree into kernel image"
40+
depends on !COMPILE_TEST
4041
help
4142
This allows you to specify a dts (device tree source) file
4243
which will be compiled and linked into the kernel image.

0 commit comments

Comments
 (0)