2 # linux/arch/arm/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/arm/boot/Makefile
12 FONTC = drivers/video/console/font_acorn_8x8.c
15 # Architecture dependencies
17 ifeq ($(CONFIG_ARCH_ACORN),y)
18 OBJS += ll_char_wr.o font.o
19 CFLAGS_misc.o := -DPARAMS_PHYS=$(PARAMS_PHYS)
22 ifeq ($(CONFIG_ARCH_SHARK),y)
23 OBJS += head-shark.o ofw-shark.o
26 ifeq ($(CONFIG_ARCH_CAMELOT),y)
27 OBJS += head-epxa10db.o
30 ifeq ($(CONFIG_ARCH_FTVPCI),y)
34 ifeq ($(CONFIG_ARCH_L7200),y)
38 ifeq ($(CONFIG_ARCH_CLPS7500),y)
39 HEAD = head-clps7500.o
42 ifeq ($(CONFIG_ARCH_P720T),y)
43 # Borrow this code from SA1100
47 ifeq ($(CONFIG_ARCH_SA1100),y)
49 ifeq ($(CONFIG_SA1100_NANOENGINE),y)
54 ifeq ($(CONFIG_CPU_XSCALE),y)
58 ifeq ($(CONFIG_DEBUG_ICEDCC),y)
62 SEDFLAGS = s/TEXT_START/$(ZTEXTADDR)/;s/LOAD_ADDR/$(ZRELADDR)/;s/BSS_START/$(ZBSSADDR)/
64 targets := vmlinux vmlinux.lds piggy piggy.gz piggy.o \
69 LDFLAGS_vmlinux := -p --no-undefined -X \
70 $(shell $(CC) $(CFLAGS) --print-libgcc-file-name) -T
72 $(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/$(HEAD) $(obj)/piggy.o \
73 $(addprefix $(obj)/, $(OBJS)) FORCE
78 $(obj)/piggy: vmlinux FORCE
79 $(call if_changed,objcopy)
81 $(obj)/piggy.gz: $(obj)/piggy FORCE
82 $(call if_changed,gzip)
84 LDFLAGS_piggy.o := -r -b binary
85 $(obj)/piggy.o: $(obj)/piggy.gz FORCE
88 CFLAGS_font.o := -Dstatic=
89 $(obj)/font.o: $(FONTC)
91 $(obj)/vmlinux.lds: $(obj)/vmlinux.lds.in Makefile arch/arm/boot/Makefile .config
92 @sed "$(SEDFLAGS)" < $< > $@
94 $(obj)/misc.o: $(obj)/misc.c include/asm/arch/uncompress.h lib/inflate.c