]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
nios2: Make NIOS2_DTB_SOURCE_BOOL depend on !COMPILE_TEST
authorGuenter Roeck <linux@roeck-us.net>
Wed, 20 Oct 2021 19:11:16 +0000 (12:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Nov 2021 16:38:12 +0000 (17:38 +0100)
commit 4a089e95b4d6bb625044d47aed0c442a8f7bd093 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: 2fc8483fdcde ("nios2: Build infrastructure")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/nios2/platform/Kconfig.platform

index d3e5df9fb36bd139a4a7e93840ae974181a8e2d8..78ffc0bf4ebeda569fb3da07a88dae180c686db9 100644 (file)
@@ -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
        default n
        help
          This allows you to specify a dts (device tree source) file