Makefile (d790d4d583aeaed9fc6f8a9f4d9f8ce6b1c15c7f) Makefile (9c3fca2ee6a4a89a64ac72b8159ae5c2be6bb38f)
1#
2# linux/arch/arm/boot/compressed/Makefile
3#
4# create a compressed vmlinuz image from the original vmlinux
5#
6
1#
2# linux/arch/arm/boot/compressed/Makefile
3#
4# create a compressed vmlinuz image from the original vmlinux
5#
6
7AFLAGS_head.o += -DTEXT_OFFSET=$(TEXT_OFFSET)
8HEAD = head.o
9OBJS = misc.o decompress.o
10FONTC = $(srctree)/drivers/video/console/font_acorn_8x8.c
11
12#
13# Architecture dependencies
14#
15ifeq ($(CONFIG_ARCH_ACORN),y)
16OBJS += ll_char_wr.o font.o
17endif
18
19ifeq ($(CONFIG_ARCH_SHARK),y)
20OBJS += head-shark.o ofw-shark.o
21endif
22
7HEAD = head.o
8OBJS = misc.o decompress.o
9FONTC = $(srctree)/drivers/video/console/font_acorn_8x8.c
10
11#
12# Architecture dependencies
13#
14ifeq ($(CONFIG_ARCH_ACORN),y)
15OBJS += ll_char_wr.o font.o
16endif
17
18ifeq ($(CONFIG_ARCH_SHARK),y)
19OBJS += head-shark.o ofw-shark.o
20endif
21
22ifeq ($(CONFIG_ARCH_L7200),y)
23OBJS += head-l7200.o
24endif
25
23ifeq ($(CONFIG_ARCH_P720T),y)
24# Borrow this code from SA1100
25OBJS += head-sa1100.o
26endif
27
28ifeq ($(CONFIG_ARCH_SA1100),y)
29OBJS += head-sa1100.o
30endif
31
32ifeq ($(CONFIG_CPU_XSCALE),y)
33OBJS += head-xscale.o
34endif
35
26ifeq ($(CONFIG_ARCH_P720T),y)
27# Borrow this code from SA1100
28OBJS += head-sa1100.o
29endif
30
31ifeq ($(CONFIG_ARCH_SA1100),y)
32OBJS += head-sa1100.o
33endif
34
35ifeq ($(CONFIG_CPU_XSCALE),y)
36OBJS += head-xscale.o
37endif
38
36ifeq ($(CONFIG_PXA_SHARPSL),y)
39ifeq ($(CONFIG_PXA_SHARPSL_DETECT_MACH_ID),y)
37OBJS += head-sharpsl.o
38endif
39
40ifeq ($(CONFIG_CPU_ENDIAN_BE32),y)
41ifeq ($(CONFIG_CPU_CP15),y)
42OBJS += big-endian.o
43else
44# The endian should be set by h/w design.

--- 18 unchanged lines hidden (view full) ---

63suffix_$(CONFIG_KERNEL_GZIP) = gzip
64suffix_$(CONFIG_KERNEL_LZO) = lzo
65suffix_$(CONFIG_KERNEL_LZMA) = lzma
66
67targets := vmlinux vmlinux.lds \
68 piggy.$(suffix_y) piggy.$(suffix_y).o \
69 font.o font.c head.o misc.o $(OBJS)
70
40OBJS += head-sharpsl.o
41endif
42
43ifeq ($(CONFIG_CPU_ENDIAN_BE32),y)
44ifeq ($(CONFIG_CPU_CP15),y)
45OBJS += big-endian.o
46else
47# The endian should be set by h/w design.

--- 18 unchanged lines hidden (view full) ---

66suffix_$(CONFIG_KERNEL_GZIP) = gzip
67suffix_$(CONFIG_KERNEL_LZO) = lzo
68suffix_$(CONFIG_KERNEL_LZMA) = lzma
69
70targets := vmlinux vmlinux.lds \
71 piggy.$(suffix_y) piggy.$(suffix_y).o \
72 font.o font.c head.o misc.o $(OBJS)
73
71# Make sure files are removed during clean
72extra-y += piggy.gzip piggy.lzo piggy.lzma lib1funcs.S
73
74ifeq ($(CONFIG_FUNCTION_TRACER),y)
75ORIG_CFLAGS := $(KBUILD_CFLAGS)
76KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS))
77endif
78
79EXTRA_CFLAGS := -fpic -fno-builtin
80EXTRA_AFLAGS := -Wa,-march=all
81
74ifeq ($(CONFIG_FUNCTION_TRACER),y)
75ORIG_CFLAGS := $(KBUILD_CFLAGS)
76KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS))
77endif
78
79EXTRA_CFLAGS := -fpic -fno-builtin
80EXTRA_AFLAGS := -Wa,-march=all
81
82# Supply ZRELADDR, INITRD_PHYS and PARAMS_PHYS to the decompressor via
83# linker symbols. We only define initrd_phys and params_phys if the
84# machine class defined the corresponding makefile variable.
85LDFLAGS_vmlinux := --defsym zreladdr=$(ZRELADDR)
82ifeq ($(CONFIG_CPU_ENDIAN_BE8),y)
83LDFLAGS_vmlinux += --be8
84endif
86ifeq ($(CONFIG_CPU_ENDIAN_BE8),y)
87LDFLAGS_vmlinux += --be8
88endif
89ifneq ($(INITRD_PHYS),)
90LDFLAGS_vmlinux += --defsym initrd_phys=$(INITRD_PHYS)
91endif
92ifneq ($(PARAMS_PHYS),)
93LDFLAGS_vmlinux += --defsym params_phys=$(PARAMS_PHYS)
94endif
85# ?
86LDFLAGS_vmlinux += -p
87# Report unresolved symbol references
88LDFLAGS_vmlinux += --no-undefined
89# Delete all temporary local symbols
90LDFLAGS_vmlinux += -X
91# Next argument is a linker script
92LDFLAGS_vmlinux += -T

--- 24 unchanged lines hidden ---
95# ?
96LDFLAGS_vmlinux += -p
97# Report unresolved symbol references
98LDFLAGS_vmlinux += --no-undefined
99# Delete all temporary local symbols
100LDFLAGS_vmlinux += -X
101# Next argument is a linker script
102LDFLAGS_vmlinux += -T

--- 24 unchanged lines hidden ---