make oldconfig will rebuild these...
[linux-2.4.21-pre4.git] / arch / arm / boot / Makefile
1 #
2 # arch/arm/boot/Makefile
3 #
4 # This file is subject to the terms and conditions of the GNU General Public
5 # License.  See the file "COPYING" in the main directory of this archive
6 # for more details.
7 #
8 # Copyright (C) 1995-2000 Russell King
9 #
10
11 SYSTEM  =$(TOPDIR)/vmlinux
12
13 ifeq ($(CONFIG_CPU_26),y)
14 ZTEXTADDR        = 0x02080000
15 PARAMS_PHYS      = 0x0207c000
16 INITRD_PHYS      = 0x02180000
17 INITRD_VIRT      = 0x02180000
18 endif
19
20 ifeq ($(CONFIG_ARCH_RPC),y)
21 ZTEXTADDR        = 0x10008000
22 PARAMS_PHYS      = 0x10000100
23 INITRD_PHYS      = 0x18000000
24 INITRD_VIRT      = 0xc8000000
25 endif
26
27 ifeq ($(CONFIG_ARCH_CLPS7500),y)
28 ZTEXTADDR        = 0x10008000
29 endif
30
31 ifeq ($(CONFIG_ARCH_EBSA110),y)
32 ZTEXTADDR        = 0x00008000
33 PARAMS_PHYS      = 0x00000400
34 INITRD_PHYS      = 0x00800000
35 INITRD_VIRT      = 0xc0800000
36 endif
37
38 ifeq ($(CONFIG_ARCH_SHARK),y)
39 ZTEXTADDR        = 0x08508000
40 ZRELADDR         = 0x08008000
41 endif
42
43 ifeq ($(CONFIG_FOOTBRIDGE),y)
44 ZTEXTADDR        = 0x00008000
45 PARAMS_PHYS      = 0x00000100
46 INITRD_PHYS      = 0x00800000
47 INITRD_VIRT      = 0xc0800000
48 endif
49
50 ifeq ($(CONFIG_ARCH_INTEGRATOR),y)
51 ZTEXTADDR        = 0x00008000
52 PARAMS_PHYS      = 0x00000100
53 INITRD_PHYS      = 0x00800000
54 INITRD_VIRT      = 0xc0800000
55 endif
56
57 ifeq ($(CONFIG_ARCH_MX1ADS),y)
58 ZTEXTADDR        = 0x08008000
59 endif
60
61 ifeq ($(CONFIG_ARCH_CAMELOT),y)
62 ZTEXTADDR        = 0x00008000
63 endif
64
65 ifeq ($(CONFIG_ARCH_NEXUSPCI),y)
66 ZTEXTADDR        = 0x40008000
67 endif
68
69 ifeq ($(CONFIG_ARCH_L7200),y)
70 # RAM based kernel
71 #ZTEXTADDR       = 0xf0400000
72 #ZRELADDR        = 0xf0008000
73
74 # FLASH based kernel
75 ZTEXTADDR        = 0x00010000
76 ZRELADDR         = 0xf0008000
77 ZBSSADDR         = 0xf03e0000
78 endif
79
80 # The standard locations for stuff on CLPS711x type processors
81 ifeq ($(CONFIG_ARCH_CLPS711X),y)
82 ZTEXTADDR        = 0xc0028000
83 PARAMS_PHYS      = 0xc0000100
84 endif
85
86 # Should probably have some agreement on these...
87 ifeq ($(CONFIG_ARCH_P720T),y)
88 INITRD_PHYS      = 0xc0400000
89 INITRD_VIRT      = 0xc0400000
90 endif
91 ifeq ($(CONFIG_ARCH_CDB89712),y)
92 INITRD_PHYS      = 0x00700000
93 INITRD_VIRT      = 0xc0300000
94 endif
95
96 ifeq ($(CONFIG_ARCH_SA1100),y)
97 ZTEXTADDR        = 0xc0008000
98 ZRELADDR         = 0xc0008000
99 ifeq ($(CONFIG_SA1100_VICTOR),y)
100   ZTEXTADDR      = 0x00002000
101   ZBSSADDR       = 0xc0200000
102 endif
103 ifeq ($(CONFIG_SA1100_SHERMAN),y)
104   ZTEXTADDR      = 0x00050000   
105   ZBSSADDR       = 0xc0200000
106 endif
107 ifeq ($(CONFIG_SA1100_GRAPHICSCLIENT),y)
108   ZTEXTADDR      = 0xC0200000
109 endif
110 ifeq ($(CONFIG_SA1100_GRAPHICSMASTER),y)
111   ZTEXTADDR      = 0xC0400000
112 endif
113 ifeq ($(CONFIG_SA1100_ADSBITSY),y)
114   ZTEXTADDR      = 0xC0400000
115 endif
116 ifeq ($(CONFIG_SA1100_YOPY),y)
117   ZTEXTADDR      = 0x00080000
118   ZBSSADDR       = 0xc0200000
119 endif
120 ifeq ($(CONFIG_SA1111),y)
121   ZRELADDR       = 0xc0208000
122 endif
123 endif
124
125 ifeq ($(CONFIG_ARCH_ANAKIN),y)
126 ZTEXTADDR        = 0x20008000
127 endif
128
129 #
130 # If you don't define ZRELADDR above,
131 # then it defaults to ZTEXTADDR
132 #
133 ifeq ($(ZRELADDR),)
134 ZRELADDR        = $(ZTEXTADDR)
135 endif
136
137 export  SYSTEM ZTEXTADDR ZBSSADDR ZRELADDR INITRD_PHYS INITRD_VIRT PARAMS_PHYS
138
139 Image:  $(CONFIGURE) $(SYSTEM)
140         $(OBJCOPY) -O binary -R .note -R .comment -S $(SYSTEM) $@
141
142 bzImage: zImage
143
144 zImage: $(CONFIGURE) compressed/vmlinux
145         $(OBJCOPY) -O binary -R .note -R .comment -S compressed/vmlinux $@
146
147 bootpImage: bootp/bootp
148         $(OBJCOPY) -O binary -R .note -R .comment -S bootp/bootp $@
149
150 compressed/vmlinux: $(TOPDIR)/vmlinux dep
151         @$(MAKE) -C compressed vmlinux
152
153 bootp/bootp: zImage initrd
154         @$(MAKE) -C bootp bootp
155
156 initrd:
157         @test "$(INITRD_VIRT)" != "" || (echo This architecture does not support INITRD; exit -1)
158         @test "$(INITRD)" != "" || (echo You must specify INITRD; exit -1)
159
160 install: $(CONFIGURE) Image
161         sh ./install.sh $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) Image $(TOPDIR)/System.map "$(INSTALL_PATH)"
162
163 zinstall: $(CONFIGURE) zImage
164         sh ./install.sh $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) zImage $(TOPDIR)/System.map "$(INSTALL_PATH)"
165
166 clean:
167         $(RM) Image zImage bootpImage
168         @$(MAKE) -C compressed clean
169         @$(MAKE) -C bootp clean
170
171 dep: