initial commit with v2.6.9
[linux-2.6.9-moxart.git] / arch / arm26 / boot / compressed / Makefile
blobb1d9ddebbe74c6bb9c2a0b852818cc6dde3ab3ea
2 # linux/arch/arm26/boot/compressed/Makefile
4 # create a compressed vmlinuz image from the original vmlinux
6 # Note! ZTEXTADDR, ZBSSADDR and ZRELADDR are now exported
7 # from arch/arm26/boot/Makefile
10 HEAD = head.o
11 OBJS = misc.o
12 FONTC = drivers/video/console/font_acorn_8x8.c
14 OBJS += ll_char_wr.o font.o
15 CFLAGS_misc.o := -DPARAMS_PHYS=$(PARAMS_PHYS)
17 targets := vmlinux vmlinux.lds piggy piggy.gz piggy.o font.o head.o $(OBJS)
19 SEDFLAGS = s/TEXT_START/$(ZTEXTADDR)/;s/LOAD_ADDR/$(ZRELADDR)/;s/BSS_START/$(ZBSSADDR)/
21 EXTRA_CFLAGS := $(CFLAGS_BOOT) -fpic
22 EXTRA_AFLAGS := -traditional
24 LDFLAGS_vmlinux := -p -X \
25 $(shell $(CC) $(CFLAGS)) -T
27 $(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/$(HEAD) $(obj)/piggy.o \
28 $(addprefix $(obj)/, $(OBJS)) FORCE
29 $(call if_changed,ld)
33 $(obj)/piggy: vmlinux FORCE
34 $(call if_changed,objcopy)
36 $(obj)/piggy.gz: $(obj)/piggy FORCE
37 $(call if_changed,gzip)
39 LDFLAGS_piggy.o := -r -b binary
40 $(obj)/piggy.o: $(obj)/piggy.gz FORCE
41 $(call if_changed,ld)
43 $(obj)/font.o: $(FONTC)
44 $(CC) $(CFLAGS) -Dstatic= -c $(FONTC) -o $(obj)/font.o
46 $(obj)/vmlinux.lds: $(obj)/vmlinux.lds.in Makefile arch/arm26/boot/Makefile .config
47 @sed "$(SEDFLAGS)" < $< > $@
49 $(obj)/misc.o: $(obj)/misc.c $(obj)/uncompress.h lib/inflate.c