diff options
Diffstat (limited to 'arch/arm26/boot/compressed/Makefile')
-rw-r--r-- | arch/arm26/boot/compressed/Makefile | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/arch/arm26/boot/compressed/Makefile b/arch/arm26/boot/compressed/Makefile new file mode 100644 index 000000000000..b1d9ddebbe74 --- /dev/null +++ b/arch/arm26/boot/compressed/Makefile | |||
@@ -0,0 +1,50 @@ | |||
1 | # | ||
2 | # linux/arch/arm26/boot/compressed/Makefile | ||
3 | # | ||
4 | # create a compressed vmlinuz image from the original vmlinux | ||
5 | # | ||
6 | # Note! ZTEXTADDR, ZBSSADDR and ZRELADDR are now exported | ||
7 | # from arch/arm26/boot/Makefile | ||
8 | # | ||
9 | |||
10 | HEAD = head.o | ||
11 | OBJS = misc.o | ||
12 | FONTC = drivers/video/console/font_acorn_8x8.c | ||
13 | |||
14 | OBJS += ll_char_wr.o font.o | ||
15 | CFLAGS_misc.o := -DPARAMS_PHYS=$(PARAMS_PHYS) | ||
16 | |||
17 | targets := vmlinux vmlinux.lds piggy piggy.gz piggy.o font.o head.o $(OBJS) | ||
18 | |||
19 | SEDFLAGS = s/TEXT_START/$(ZTEXTADDR)/;s/LOAD_ADDR/$(ZRELADDR)/;s/BSS_START/$(ZBSSADDR)/ | ||
20 | |||
21 | EXTRA_CFLAGS := $(CFLAGS_BOOT) -fpic | ||
22 | EXTRA_AFLAGS := -traditional | ||
23 | |||
24 | LDFLAGS_vmlinux := -p -X \ | ||
25 | $(shell $(CC) $(CFLAGS)) -T | ||
26 | |||
27 | $(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/$(HEAD) $(obj)/piggy.o \ | ||
28 | $(addprefix $(obj)/, $(OBJS)) FORCE | ||
29 | $(call if_changed,ld) | ||
30 | @: | ||
31 | |||
32 | |||
33 | $(obj)/piggy: vmlinux FORCE | ||
34 | $(call if_changed,objcopy) | ||
35 | |||
36 | $(obj)/piggy.gz: $(obj)/piggy FORCE | ||
37 | $(call if_changed,gzip) | ||
38 | |||
39 | LDFLAGS_piggy.o := -r -b binary | ||
40 | $(obj)/piggy.o: $(obj)/piggy.gz FORCE | ||
41 | $(call if_changed,ld) | ||
42 | |||
43 | $(obj)/font.o: $(FONTC) | ||
44 | $(CC) $(CFLAGS) -Dstatic= -c $(FONTC) -o $(obj)/font.o | ||
45 | |||
46 | $(obj)/vmlinux.lds: $(obj)/vmlinux.lds.in Makefile arch/arm26/boot/Makefile .config | ||
47 | @sed "$(SEDFLAGS)" < $< > $@ | ||
48 | |||
49 | $(obj)/misc.o: $(obj)/misc.c $(obj)/uncompress.h lib/inflate.c | ||
50 | |||