Re: [PATCH v2] nios2: Make NIOS2_DTB_SOURCE_BOOL depend on !COMPILE_TEST
From: Dinh Nguyen
Date: Thu Oct 21 2021 - 10:02:02 EST
On 10/20/21 3:15 PM, Randy Dunlap wrote:
On 10/20/21 12:11 PM, Guenter Roeck wrote:
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.
Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
Thanks, I've seen this problem also.
Reviewed-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Does this need a Fixes tag?
Fixes: 2fc8483fdcde ("nios2: Build infrastructure")
Dinh