linux-brain/arch/cris
Guenter Roeck 4e1dfb0035 cris: Only build flash rescue image if CONFIG_ETRAX_AXISFLASHMAP is selected
commit 328cf6927b upstream.

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.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Fixes: 66ab3a74c5 ("CRIS: Merge machine dependent boot/compressed ..")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-01-12 11:39:24 +01:00
..
arch-v10 Fix typo 2016-09-23 15:42:05 +02:00
arch-v32 ptrace: Don't allow accessing an undumpable mm 2017-01-06 10:40:13 +01:00
boot cris: Only build flash rescue image if CONFIG_ETRAX_AXISFLASHMAP is selected 2017-01-12 11:39:24 +01:00
configs CRIS: defconfig: remove MTDRAM_ABS_POS 2016-09-23 16:01:55 +02:00
include Fix typo 2016-09-23 15:42:10 +02:00
kernel nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00
mm cris: migrate exception table users off module.h and onto extable.h 2016-09-23 15:33:38 +02:00
Kconfig cris: fix Kconfig mismatch when building with CONFIG_PCI 2016-09-22 16:43:17 +02:00
Kconfig.debug Kconfig: remove a few puzzling comments 2011-10-31 10:58:48 +01:00
Makefile CRISv32: add device tree support 2015-03-25 09:49:48 +01:00