diff options
Diffstat (limited to 'arch/cris/arch-v32/boot/rescue/Makefile')
-rw-r--r-- | arch/cris/arch-v32/boot/rescue/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/arch/cris/arch-v32/boot/rescue/Makefile b/arch/cris/arch-v32/boot/rescue/Makefile new file mode 100644 index 000000000000..f668a8198724 --- /dev/null +++ b/arch/cris/arch-v32/boot/rescue/Makefile | |||
@@ -0,0 +1,36 @@ | |||
1 | # | ||
2 | # Makefile for rescue code | ||
3 | # | ||
4 | target = $(target_rescue_dir) | ||
5 | src = $(src_rescue_dir) | ||
6 | |||
7 | CC = gcc-cris -mlinux -march=v32 $(LINUXINCLUDE) | ||
8 | CFLAGS = -O2 | ||
9 | LD = gcc-cris -mlinux -march=v32 -nostdlib | ||
10 | OBJCOPY = objcopy-cris | ||
11 | OBJCOPYFLAGS = -O binary --remove-section=.bss | ||
12 | |||
13 | all: $(target)/rescue.bin | ||
14 | |||
15 | rescue: rescue.bin | ||
16 | # do nothing | ||
17 | |||
18 | $(target)/rescue.bin: $(target) $(target)/head.o | ||
19 | $(LD) -T $(src)/rescue.ld -o $(target)/rescue.o $(target)/head.o | ||
20 | $(OBJCOPY) $(OBJCOPYFLAGS) $(target)/rescue.o $(target)/rescue.bin | ||
21 | cp -p $(target)/rescue.bin $(objtree) | ||
22 | |||
23 | $(target): | ||
24 | mkdir -p $(target) | ||
25 | |||
26 | $(target)/head.o: $(src)/head.S | ||
27 | $(CC) -D__ASSEMBLY__ -c $< -o $*.o | ||
28 | |||
29 | clean: | ||
30 | rm -f $(target)/*.o $(target)/*.bin | ||
31 | |||
32 | fastdep: | ||
33 | |||
34 | modules: | ||
35 | |||
36 | modules-install: | ||