Re: [PATCH] cris: Only build flash rescue image if CONFIG_ETRAX_AXISFLASHMAP is selected

From: Jesper Nilsson
Date: Mon Nov 07 2016 - 06:46:35 EST


On Sun, Oct 30, 2016 at 09:09:18AM -0700, Guenter Roeck wrote:
> If CONFIG_ETRAX_AXISFLASHMAP is not configured, the flash rescue image
> object file is empty. With recent versions of binutils, this results
> in the following build error.
>
> cris-linux-objcopy: error:
> the input file 'arch/cris/boot/rescue/rescue.o' has no sections
>
> This is seen, for example, when trying to build cris:allnoconfig
> with recently generated toolchains.
>
> Since it does not make sense to build a flash rescue image if there is
> no flash, only build it if CONFIG_ETRAX_AXISFLASHMAP is enabled.

Agreed, added to cris tree for 4.10.

> Reported-by: kbuild test robot <fengguang.wu@xxxxxxxxx>
> Fixes: 66ab3a74c5ce ("CRIS: Merge machine dependent boot/compressed ..")
> Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>

Thanks!

/^JN - Jesper Nilsson
--
Jesper Nilsson -- jesper.nilsson@xxxxxxxx