Merge commit 'v2.6.28-rc2' into topic/asoc
[linux-2.6] / arch / cris / arch-v32 / boot / rescue / Makefile
1 #
2 # Makefile for rescue (bootstrap) code
3 #
4
5 CC = gcc-cris -mlinux -march=v32 $(LINUXINCLUDE)
6 ccflags-y += -O2 -I $(srctree)/include/asm/arch/mach/ \
7                 -I $(srctree)/include/asm/arch
8 asflags-y += -I $(srctree)/include/asm/arch/mach/ -I $(srctree)/include/asm/arch
9 LD = gcc-cris -mlinux -march=v32 -nostdlib
10 ldflags-y += -T $(srctree)/$(src)/rescue.lds
11 LDPOSTFLAGS = -lgcc
12 OBJCOPYFLAGS = -O binary --remove-section=.bss
13 obj-$(CONFIG_ETRAX_AXISFLASHMAP) = head.o
14 OBJECT := $(obj)/head.o
15
16 targets := rescue.o rescue.bin
17
18 quiet_cmd_ldlibgcc = LD      $@
19 cmd_ldlibgcc = $(LD) $(LDFLAGS) $(filter-out FORCE,$^) $(LDPOSTFLAGS) -o $@
20
21 $(obj)/rescue.o: $(OBJECTS) FORCE
22         $(call if_changed,ldlibgcc)
23
24 $(obj)/rescue.bin: $(obj)/rescue.o FORCE
25         $(call if_changed,objcopy)
26         cp -p $(obj)/rescue.bin $(objtree)