Makefile (9a64e8e0ace51b309fdcff4b4754b3649250382a) Makefile (424e5994e63326a42012f003f1174f3c363c7b62)
1#
2# linux/arch/arm/boot/compressed/Makefile
3#
4# create a compressed vmlinuz image from the original vmlinux
5#
6
7OBJS =
8

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

25HEAD = head.o
26OBJS += misc.o decompress.o
27FONTC = $(srctree)/drivers/video/console/font_acorn_8x8.c
28
29# string library code (-Os is enforced to keep it much smaller)
30OBJS += string.o
31CFLAGS_string.o := -Os
32
1#
2# linux/arch/arm/boot/compressed/Makefile
3#
4# create a compressed vmlinuz image from the original vmlinux
5#
6
7OBJS =
8

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

25HEAD = head.o
26OBJS += misc.o decompress.o
27FONTC = $(srctree)/drivers/video/console/font_acorn_8x8.c
28
29# string library code (-Os is enforced to keep it much smaller)
30OBJS += string.o
31CFLAGS_string.o := -Os
32
33ifeq ($(CONFIG_ARM_VIRT_EXT),y)
34OBJS += hyp-stub.o
35endif
36
33#
34# Architecture dependencies
35#
36ifeq ($(CONFIG_ARCH_ACORN),y)
37OBJS += ll_char_wr.o font.o
38endif
39
40ifeq ($(CONFIG_ARCH_SHARK),y)

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

121 lib1funcs.S ashldi3.S $(libfdt) $(libfdt_hdrs)
122
123ifeq ($(CONFIG_FUNCTION_TRACER),y)
124ORIG_CFLAGS := $(KBUILD_CFLAGS)
125KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS))
126endif
127
128ccflags-y := -fpic -fno-builtin -I$(obj)
37#
38# Architecture dependencies
39#
40ifeq ($(CONFIG_ARCH_ACORN),y)
41OBJS += ll_char_wr.o font.o
42endif
43
44ifeq ($(CONFIG_ARCH_SHARK),y)

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

125 lib1funcs.S ashldi3.S $(libfdt) $(libfdt_hdrs)
126
127ifeq ($(CONFIG_FUNCTION_TRACER),y)
128ORIG_CFLAGS := $(KBUILD_CFLAGS)
129KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS))
130endif
131
132ccflags-y := -fpic -fno-builtin -I$(obj)
129asflags-y := -Wa,-march=all
133asflags-y := -Wa,-march=all -DZIMAGE
130
131# Supply kernel BSS size to the decompressor via a linker symbol.
132KBSS_SZ = $(shell $(CROSS_COMPILE)size $(obj)/../../../../vmlinux | \
133 awk 'END{print $$3}')
134LDFLAGS_vmlinux = --defsym _kernel_bss_size=$(KBSS_SZ)
135# Supply ZRELADDR to the decompressor via a linker symbol.
136ifneq ($(CONFIG_AUTO_ZRELADDR),y)
137LDFLAGS_vmlinux += --defsym zreladdr=$(ZRELADDR)

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

193
194CFLAGS_font.o := -Dstatic=
195
196$(obj)/font.c: $(FONTC)
197 $(call cmd,shipped)
198
199$(obj)/vmlinux.lds: $(obj)/vmlinux.lds.in arch/arm/boot/Makefile $(KCONFIG_CONFIG)
200 @sed "$(SEDFLAGS)" < $< > $@
134
135# Supply kernel BSS size to the decompressor via a linker symbol.
136KBSS_SZ = $(shell $(CROSS_COMPILE)size $(obj)/../../../../vmlinux | \
137 awk 'END{print $$3}')
138LDFLAGS_vmlinux = --defsym _kernel_bss_size=$(KBSS_SZ)
139# Supply ZRELADDR to the decompressor via a linker symbol.
140ifneq ($(CONFIG_AUTO_ZRELADDR),y)
141LDFLAGS_vmlinux += --defsym zreladdr=$(ZRELADDR)

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

197
198CFLAGS_font.o := -Dstatic=
199
200$(obj)/font.c: $(FONTC)
201 $(call cmd,shipped)
202
203$(obj)/vmlinux.lds: $(obj)/vmlinux.lds.in arch/arm/boot/Makefile $(KCONFIG_CONFIG)
204 @sed "$(SEDFLAGS)" < $< > $@
205
206$(obj)/hyp-stub.S: $(srctree)/arch/$(SRCARCH)/kernel/hyp-stub.S
207 $(call cmd,shipped)