summaryrefslogtreecommitdiffstats
path: root/kernel/arch/cris/boot/rescue/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/cris/boot/rescue/Makefile')
-rw-r--r--kernel/arch/cris/boot/rescue/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/arch/cris/boot/rescue/Makefile b/kernel/arch/cris/boot/rescue/Makefile
index 52bd0bd1d..d98edbb30 100644
--- a/kernel/arch/cris/boot/rescue/Makefile
+++ b/kernel/arch/cris/boot/rescue/Makefile
@@ -10,6 +10,9 @@
asflags-y += $(LINUXINCLUDE)
ccflags-y += -O2 $(LINUXINCLUDE)
+
+ifdef CONFIG_ETRAX_AXISFLASHMAP
+
arch-$(CONFIG_ETRAX_ARCH_V10) = v10
arch-$(CONFIG_ETRAX_ARCH_V32) = v32
@@ -28,6 +31,11 @@ $(obj)/rescue.bin: $(obj)/rescue.o FORCE
$(call if_changed,objcopy)
cp -p $(obj)/rescue.bin $(objtree)
+else
+$(obj)/rescue.bin:
+
+endif
+
$(obj)/testrescue.bin: $(obj)/testrescue.o
$(OBJCOPY) $(OBJCOPYFLAGS) $(obj)/testrescue.o tr.bin
# Pad it to 784 bytes