2 # arch/arm/boot/Makefile
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
8 # Copyright (C) 1995-2002 Russell King
11 MKIMAGE
:= $(srctree
)/scripts
/mkuboot.sh
13 # Note: the following conditions must always be true:
14 # ZRELADDR == virt_to_phys(TEXTADDR)
15 # PARAMS_PHYS must be with 4MB of ZRELADDR
16 # INITRD_PHYS must be in RAM
18 zreladdr-
$(CONFIG_ARCH_RPC
) := 0x10008000
19 params_phys-
$(CONFIG_ARCH_RPC
) := 0x10000100
20 initrd_phys-
$(CONFIG_ARCH_RPC
) := 0x18000000
21 zreladdr-
$(CONFIG_ARCH_CLPS7500
) := 0x10008000
22 zreladdr-
$(CONFIG_ARCH_CLPS7500
) := 0x10008000
23 zreladdr-
$(CONFIG_ARCH_EBSA110
) := 0x00008000
24 params_phys-
$(CONFIG_ARCH_EBSA110
) := 0x00000400
25 initrd_phys-
$(CONFIG_ARCH_EBSA110
) := 0x00800000
26 ztextaddr-
$(CONFIG_ARCH_SHARK
) := 0x08508000
27 zreladdr-
$(CONFIG_ARCH_SHARK
) := 0x08008000
28 zreladdr-
$(CONFIG_FOOTBRIDGE
) := 0x00008000
29 params_phys-
$(CONFIG_FOOTBRIDGE
) := 0x00000100
30 initrd_phys-
$(CONFIG_FOOTBRIDGE
) := 0x00800000
31 zreladdr-
$(CONFIG_ARCH_INTEGRATOR
) := 0x00008000
32 params_phys-
$(CONFIG_ARCH_INTEGRATOR
) := 0x00000100
33 initrd_phys-
$(CONFIG_ARCH_INTEGRATOR
) := 0x00800000
34 zreladdr-
$(CONFIG_ARCH_CAMELOT
) := 0x00008000
35 zreladdr-
$(CONFIG_ARCH_NEXUSPCI
) := 0x40008000
36 zreladdr-
$(CONFIG_ARCH_L7200
) := 0xf0008000
37 # The standard locations for stuff on CLPS711x type processors
38 zreladdr-
$(CONFIG_ARCH_CLPS711X
) := 0xc0028000
39 params_phys-
$(CONFIG_ARCH_CLPS711X
) := 0xc0000100
40 # Should probably have some agreement on these...
41 initrd_phys-
$(CONFIG_ARCH_P720T
) := 0xc0400000
42 initrd_phys-
$(CONFIG_ARCH_CDB89712
) := 0x00700000
43 zreladdr-
$(CONFIG_ARCH_SA1100
) := 0xc0008000
44 ifeq ($(CONFIG_ARCH_SA1100
),y
)
45 zreladdr-
$(CONFIG_SA1111
) := 0xc0208000
47 params_phys-
$(CONFIG_ARCH_SA1100
) := 0xc0000100
48 initrd_phys-
$(CONFIG_ARCH_SA1100
) := 0xc0800000
49 zreladdr-
$(CONFIG_ARCH_PXA
) := 0xa0008000
50 zreladdr-
$(CONFIG_ARCH_MX1ADS
) := 0x08008000
51 zreladdr-
$(CONFIG_ARCH_IOP3XX
) := 0xa0008000
52 params_phys-
$(CONFIG_ARCH_IOP3XX
) := 0xa0000100
53 initrd_phys-
$(CONFIG_ARCH_IOP3XX
) := 0xa0800000
54 ifeq ($(CONFIG_ARCH_IOP331
),y
)
55 zreladdr-
$(CONFIG_ARCH_IOP3XX
) := 0x00008000
56 params_phys-
$(CONFIG_ARCH_IOP3XX
) := 0x00000100
57 initrd_phys-
$(CONFIG_ARCH_IOP3XX
) := 0x00800000
59 zreladdr-
$(CONFIG_ARCH_IXP4XX
) := 0x00008000
60 params-phys-
$(CONFIG_ARCH_IXP4XX
) := 0x00000100
61 zreladdr-
$(CONFIG_ARCH_IXP2000
) := 0x00008000
62 params-phys-
$(CONFIG_ARCH_IXP2000
) := 0x00000100
63 zreladdr-
$(CONFIG_ARCH_OMAP
) := 0x10008000
64 params_phys-
$(CONFIG_ARCH_OMAP
) := 0x10000100
65 initrd_phys-
$(CONFIG_ARCH_OMAP
) := 0x10800000
66 zreladdr-
$(CONFIG_ARCH_LH7A40X
) := 0xc0008000
67 params_phys-
$(CONFIG_ARCH_LH7A40X
) := 0xc0000100
68 initrd_phys-
$(CONFIG_ARCH_LH7A40X
) := 0xc4000000
69 zreladdr-
$(CONFIG_ARCH_S3C2410
) := 0x30008000
70 params_phys-
$(CONFIG_ARCH_S3C2410
) := 0x30000100
71 zreladdr-
$(CONFIG_ARCH_VERSATILE_PB
) := 0x00008000
72 params_phys-
$(CONFIG_ARCH_VERSATILE_PB
) := 0x00000100
73 initrd_phys-
$(CONFIG_ARCH_VERSATILE_PB
) := 0x00800000
74 zreladdr-
$(CONFIG_ARCH_H720X
) := 0x40008000
75 zreladdr-
$(CONFIG_ARCH_CPE
) := 0x00008000
76 params_phys-
$(CONFIG_ARCH_CPE
) := 0x00000100
77 initrd_phys-
$(CONFIG_ARCH_CPE
) := 0x00800000
78 zreladdr-
$(CONFIG_ARCH_MOXACPU
) := 0x00008000
79 params_phys-
$(CONFIG_ARCH_MOXACPU
) := 0x00000100
80 initrd_phys-
$(CONFIG_ARCH_MOXACPU
) := 0x00800000
82 ZRELADDR
:= $(zreladdr-y
)
83 PARAMS_PHYS
:= $(params_phys-y
)
84 INITRD_PHYS
:= $(initrd_phys-y
)
86 export ZRELADDR INITRD_PHYS PARAMS_PHYS
88 targets
:= Image zImage bootpImage uImage
90 $(obj
)/Image
: vmlinux FORCE
91 $(call if_changed
,objcopy
)
92 @echo
' Kernel: $@ is ready'
95 $(obj
)/compressed
/vmlinux
: $(obj
)/Image FORCE
96 $(Q
)$(MAKE
) $(build
)=$(obj
)/compressed
$@
98 $(obj
)/zImage
: $(obj
)/compressed
/vmlinux FORCE
99 $(call if_changed
,objcopy
)
101 @echo
' Kernel: $@ is ready'
103 quiet_cmd_uimage
= UIMAGE
$@
104 cmd_uimage
= $(CONFIG_SHELL
) $(MKIMAGE
) -A arm
-O linux
-T kernel \
105 -C none
-a
$(ZRELADDR
) -e
$(ZRELADDR
) \
106 -n
'Linux-$(KERNELRELEASE)' -d
$< $@
108 $(obj
)/uImage
: $(obj
)/zImage FORCE
109 $(call if_changed
,uimage
)
110 @echo
' Image $@ is ready'
112 $(obj
)/bootp
/bootp
: $(obj
)/zImage initrd FORCE
113 $(Q
)$(MAKE
) $(build
)=$(obj
)/bootp
$@
116 $(obj
)/bootpImage
: $(obj
)/bootp
/bootp FORCE
117 $(call if_changed
,objcopy
)
118 @echo
' Kernel: $@ is ready'
122 @
test "$(INITRD_PHYS)" != "" || \
123 (echo This machine does not support INITRD
; exit
-1)
124 @
test "$(INITRD)" != "" || \
125 (echo You must specify INITRD
; exit
-1)
127 install: $(obj
)/Image
128 $(CONFIG_SHELL
) $(srctree
)/$(src
)/install.sh
$(KERNELRELEASE
) \
129 $(obj
)/Image System.map
"$(INSTALL_PATH)"
131 zinstall
: $(obj
)/zImage
132 $(CONFIG_SHELL
) $(srctree
)/$(src
)/install.sh
$(KERNELRELEASE
) \
133 $(obj
)/zImage System.map
"$(INSTALL_PATH)"
135 subdir-
:= bootp compressed