2 # linux/arch/arm/boot/compressed/Makefile
4 # create a compressed vmlinuz image from the original vmlinux
9 FONTC
= drivers
/video
/console
/font_acorn_8x8.c
11 FONT
= $(addprefix ..
/..
/..
/..
/drivers
/video
/console
/, font_acorn_8x8.o
)
14 # Architecture dependencies
16 ifeq ($(CONFIG_ARCH_ACORN
),y
)
17 OBJS
+= ll_char_wr.o
$(FONT
)
20 ifeq ($(CONFIG_ARCH_SHARK
),y
)
21 OBJS
+= head-shark.o ofw-shark.o
24 ifeq ($(CONFIG_ARCH_CAMELOT
),y
)
25 OBJS
+= head-epxa10db.o
28 ifeq ($(CONFIG_ARCH_L7200
),y
)
32 ifeq ($(CONFIG_ARCH_CLPS7500
),y
)
33 HEAD
= head-clps7500.o
36 ifeq ($(CONFIG_ARCH_P720T
),y
)
37 # Borrow this code from SA1100
41 ifeq ($(CONFIG_ARCH_SA1100
),y
)
43 ifeq ($(CONFIG_SA1100_NANOENGINE
),y
)
48 ifeq ($(CONFIG_CPU_XSCALE
),y
)
52 ifeq ($(CONFIG_DEBUG_ICEDCC
),y
)
56 ifeq ($(CONFIG_CPU_BIG_ENDIAN
),y
)
60 ifeq ($(CONFIG_ARCH_MOXACPU
), y
)
65 # We now have a PIC decompressor implementation. Decompressors running
66 # from RAM should not define ZTEXTADDR. Decompressors running directly
67 # from ROM or Flash must define ZTEXTADDR (preferably via the config)
68 # FIXME: Previous assignment to ztextaddr-y is lost here. See SHARK
69 ifeq ($(CONFIG_ZBOOT_ROM
),y
)
70 ZTEXTADDR
:= $(CONFIG_ZBOOT_ROM_TEXT
)
71 ZBSSADDR
:= $(CONFIG_ZBOOT_ROM_BSS
)
77 SEDFLAGS
= s
/TEXT_START
/$(ZTEXTADDR
)/;s
/BSS_START
/$(ZBSSADDR
)/
79 targets
:= vmlinux vmlinux.lds piggy.gz piggy.o
$(FONT
) \
84 # Supply ZRELADDR, INITRD_PHYS and PARAMS_PHYS to the decompressor via
85 # linker symbols. We only define initrd_phys and params_phys if the
86 # machine class defined the corresponding makefile variable.
87 LDFLAGS_vmlinux
:= --defsym zreladdr
=$(ZRELADDR
)
88 ifneq ($(INITRD_PHYS
),)
89 LDFLAGS_vmlinux
+= --defsym initrd_phys
=$(INITRD_PHYS
)
91 ifneq ($(PARAMS_PHYS
),)
92 LDFLAGS_vmlinux
+= --defsym params_phys
=$(PARAMS_PHYS
)
94 LDFLAGS_vmlinux
+= -p
--no-undefined
-X \
95 $(shell $(CC
) $(CFLAGS
) --print-libgcc-file-name
) -T
97 # Don't allow any static data in misc.o, which
98 # would otherwise mess up our GOT table
99 CFLAGS_misc.o
:= -Dstatic
=
101 $(obj
)/vmlinux
: $(obj
)/vmlinux.lds
$(obj
)/$(HEAD
) $(obj
)/piggy.o \
102 $(addprefix $(obj
)/, $(OBJS
)) FORCE
103 $(call if_changed
,ld)
106 $(obj
)/piggy.gz
: $(obj
)/..
/Image FORCE
107 $(call if_changed
,gzip
)
109 $(obj
)/piggy.o
: $(obj
)/piggy.gz FORCE
111 CFLAGS_font_acorn_8x8.o
:= -Dstatic
=
113 $(obj
)/vmlinux.lds
: $(obj
)/vmlinux.lds.in arch
/arm
/boot
/Makefile .config
114 @sed
"$(SEDFLAGS)" < $< > $@
116 $(obj
)/misc.o
: $(obj
)/misc.c
include/asm
/arch
/uncompress.h lib
/inflate.c