This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / arch / m32r / boot / compressed / Makefile
1 #
2 # linux/arch/sh/boot/compressed/Makefile
3 #
4 # create a compressed vmlinux image from the original vmlinux
5 #
6
7 targets         := vmlinux vmlinux.bin vmlinux.bin.gz head.o misc.o \
8                    m32r-sio.o piggy.o vmlinux.lds
9 EXTRA_AFLAGS    := -traditional
10
11 OBJECTS = $(obj)/head.o $(obj)/misc.o $(obj)/m32r_sio.o
12
13 #
14 # IMAGE_OFFSET is the load offset of the compression loader
15 #
16 #IMAGE_OFFSET := $(shell printf "0x%08x" $$[$(CONFIG_MEMORY_START)+0x2000])
17 #IMAGE_OFFSET := $(shell printf "0x%08x" $$[$(CONFIG_MEMORY_START)+0x00400000])
18
19 LDFLAGS_vmlinux := -T
20
21 $(obj)/vmlinux: $(obj)/vmlinux.lds $(OBJECTS) $(obj)/piggy.o FORCE
22         $(call if_changed,ld)
23         @:
24
25 $(obj)/vmlinux.bin: vmlinux FORCE
26         $(call if_changed,objcopy)
27
28 $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
29         $(call if_changed,gzip)
30
31 $(obj)/vmlinux.lds: $(obj)/vmlinux.lds.S FORCE
32         $(CPP) $(EXTRA_AFLAGS) -C -P -I include $< >$@
33
34 LDFLAGS_piggy.o := -r --format binary --oformat elf32-m32r-linux -T
35 OBJCOPYFLAGS += -R .empty_zero_page
36
37 $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.gz FORCE
38         $(call if_changed,ld)