GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / arm / boot / compressed / Makefile
blobe1fdba53ed14b5c15a4f2f11b13690145b1651a5
2 # linux/arch/arm/boot/compressed/Makefile
4 # create a compressed vmlinuz image from the original vmlinux
7 AFLAGS_head.o += -DTEXT_OFFSET=$(TEXT_OFFSET)
8 HEAD = head.o
9 OBJS = misc.o decompress.o
10 FONTC = $(srctree)/drivers/video/console/font_acorn_8x8.c
13 # Architecture dependencies
15 ifeq ($(CONFIG_ARCH_ACORN),y)
16 OBJS += ll_char_wr.o font.o
17 endif
19 ifeq ($(CONFIG_ARCH_SHARK),y)
20 OBJS += head-shark.o ofw-shark.o
21 endif
23 ifeq ($(CONFIG_ARCH_P720T),y)
24 # Borrow this code from SA1100
25 OBJS += head-sa1100.o
26 endif
28 ifeq ($(CONFIG_ARCH_SA1100),y)
29 OBJS += head-sa1100.o
30 endif
32 ifeq ($(CONFIG_CPU_XSCALE),y)
33 OBJS += head-xscale.o
34 endif
36 ifeq ($(CONFIG_PXA_SHARPSL_DETECT_MACH_ID),y)
37 OBJS += head-sharpsl.o
38 endif
40 ifeq ($(CONFIG_MACH_BRCM_NS),y)
41 OBJS += head-mpcore.o
42 OBJS += mpcore_cache.o
44 $(obj)/mpcore_cache.S: arch/$(SRCARCH)/plat-brcm/mpcore_cache.S FORCE
45 $(call cmd,shipped)
46 endif
48 ifeq ($(CONFIG_CPU_ENDIAN_BE32),y)
49 ifeq ($(CONFIG_CPU_CP15),y)
50 OBJS += big-endian.o
51 else
52 # The endian should be set by h/w design.
53 endif
54 endif
57 # We now have a PIC decompressor implementation. Decompressors running
58 # from RAM should not define ZTEXTADDR. Decompressors running directly
59 # from ROM or Flash must define ZTEXTADDR (preferably via the config)
60 ifeq ($(CONFIG_ZBOOT_ROM),y)
61 ZTEXTADDR := $(CONFIG_ZBOOT_ROM_TEXT)
62 ZBSSADDR := $(CONFIG_ZBOOT_ROM_BSS)
63 else
64 ZTEXTADDR := 0
65 ZBSSADDR := ALIGN(4)
66 endif
68 SEDFLAGS = s/TEXT_START/$(ZTEXTADDR)/;s/BSS_START/$(ZBSSADDR)/
70 suffix_$(CONFIG_KERNEL_GZIP) = gzip
71 suffix_$(CONFIG_KERNEL_LZO) = lzo
72 suffix_$(CONFIG_KERNEL_LZMA) = lzma
74 targets := vmlinux vmlinux.lds \
75 piggy.$(suffix_y) piggy.$(suffix_y).o \
76 font.o font.c head.o misc.o $(OBJS)
78 # Make sure files are removed during clean
79 extra-y += piggy.gzip piggy.lzo piggy.lzma lib1funcs.S
81 ifeq ($(CONFIG_FUNCTION_TRACER),y)
82 ORIG_CFLAGS := $(KBUILD_CFLAGS)
83 KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS))
84 endif
86 EXTRA_CFLAGS := -fpic -fno-builtin
87 EXTRA_AFLAGS := -Wa,-march=all
89 # Supply ZRELADDR to the decompressor via a linker symbol.
90 ifneq ($(CONFIG_AUTO_ZRELADDR),y)
91 LDFLAGS_vmlinux := --defsym zreladdr=$(ZRELADDR)
92 endif
93 ifeq ($(CONFIG_CPU_ENDIAN_BE8),y)
94 LDFLAGS_vmlinux += --be8
95 endif
96 # ?
97 LDFLAGS_vmlinux += -p
98 # Report unresolved symbol references
99 LDFLAGS_vmlinux += --no-undefined
100 # Delete all temporary local symbols
101 LDFLAGS_vmlinux += -X
102 # Next argument is a linker script
103 LDFLAGS_vmlinux += -T
105 # For __aeabi_uidivmod
106 lib1funcs = $(obj)/lib1funcs.o
108 $(obj)/lib1funcs.S: $(srctree)/arch/$(SRCARCH)/lib/lib1funcs.S FORCE
109 $(call cmd,shipped)
111 $(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/$(HEAD) $(obj)/piggy.$(suffix_y).o \
112 $(addprefix $(obj)/, $(OBJS)) $(lib1funcs) FORCE
113 $(call if_changed,ld)
116 $(obj)/piggy.$(suffix_y): $(obj)/../Image FORCE
117 $(call if_changed,$(suffix_y))
119 $(obj)/piggy.$(suffix_y).o: $(obj)/piggy.$(suffix_y) FORCE
121 CFLAGS_font.o := -Dstatic=
123 $(obj)/font.c: $(FONTC)
124 $(call cmd,shipped)
126 $(obj)/vmlinux.lds: $(obj)/vmlinux.lds.in arch/arm/boot/Makefile $(KCONFIG_CONFIG)
127 @sed "$(SEDFLAGS)" < $< > $@