• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/cris/arch-v32/boot/rescue/
1#
2# Makefile for rescue code
3#
4target = $(target_rescue_dir)
5src    = $(src_rescue_dir)
6
7CC = gcc-cris -mlinux -march=v32 $(LINUXINCLUDE)
8CFLAGS = -O2
9LD = gcc-cris -mlinux -march=v32 -nostdlib
10OBJCOPY = objcopy-cris
11OBJCOPYFLAGS = -O binary --remove-section=.bss
12
13all: $(target)/rescue.bin
14
15rescue: 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
29clean:
30	rm -f $(target)/*.o $(target)/*.bin
31
32fastdep:
33
34modules:
35
36modules-install:
37