x86/boot: Rename overlapping memcpy() to memmove()
[linux/fpc-iii.git] / arch / mips / lasat / image / Makefile
blobfd32075679c66b3fc6cf2ebdff6e3f15fb3a83c6
2 # MAKEFILE FOR THE MIPS LINUX BOOTLOADER AND ROM DEBUGGER
4 # i-data Networks
6 # Author: Thomas Horsten <thh@i-data.com>
9 ifndef Version
10 Version = "$(USER)-test"
11 endif
13 MKLASATIMG = mklasatimg
14 MKLASATIMG_ARCH = mq2,mqpro,sp100,sp200
15 KERNEL_IMAGE = vmlinux
17 LDSCRIPT= -L$(srctree)/$(src) -Tromscript.normal
19 HEAD_DEFINES := -D_kernel_start=$(VMLINUX_LOAD_ADDRESS) \
20 -D_kernel_entry=$(VMLINUX_ENTRY_ADDRESS) \
21 -D VERSION="\"$(Version)\"" \
22 -D TIMESTAMP=$(shell date +%s)
24 $(obj)/head.o: $(obj)/head.S $(KERNEL_IMAGE)
25 $(CC) -fno-pic $(HEAD_DEFINES) $(LINUXINCLUDE) -c -o $@ $<
27 OBJECTS = head.o kImage.o
29 rom.sw: $(obj)/rom.sw
30 rom.bin: $(obj)/rom.bin
32 $(obj)/rom.sw: $(obj)/rom.bin
33 $(MKLASATIMG) -o $@ -k $^ -m $(MKLASATIMG_ARCH)
35 $(obj)/rom.bin: $(obj)/rom
36 $(OBJCOPY) -O binary -S $^ $@
38 # Rule to make the bootloader
39 $(obj)/rom: $(addprefix $(obj)/,$(OBJECTS))
40 $(LD) $(LDFLAGS) $(LDSCRIPT) -o $@ $^
42 $(obj)/%.o: $(obj)/%.gz
43 $(LD) -r -o $@ -b binary $<
45 $(obj)/%.gz: $(obj)/%.bin
46 gzip -cf -9 $< > $@
48 $(obj)/kImage.bin: $(KERNEL_IMAGE)
49 $(OBJCOPY) -O binary -S $^ $@
51 clean:
52 rm -f rom rom.bin rom.sw kImage.bin kImage.o