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 # Note: the following conditions must always be true:
12 # ZRELADDR == virt_to_phys(TEXTADDR)
13 # PARAMS_PHYS must be with 4MB of ZRELADDR
14 # INITRD_PHYS must be in RAM
16 zreladdr-y := 0x02080000
17 params_phys-y := 0x0207c000
18 initrd_phys-y := 0x02180000
20 ZRELADDR := 0x02080000
21 ZTEXTADDR := 0x0207c000
22 PARAMS_PHYS := $(params_phys-y)
23 INITRD_PHYS := 0x02180000
25 # We now have a PIC decompressor implementation. Decompressors running
26 # from RAM should not define ZTEXTADDR. Decompressors running directly
27 # from ROM or Flash must define ZTEXTADDR (preferably via the config)
28 # FIXME: Previous assignment to ztextaddr-y is lost here. See SHARK
29 ifeq ($(CONFIG_ZBOOT_ROM),y)
30 ZTEXTADDR := $(CONFIG_ZBOOT_ROM_TEXT)
31 ZBSSADDR := $(CONFIG_ZBOOT_ROM_BSS)
37 export ZTEXTADDR ZBSSADDR ZRELADDR INITRD_PHYS PARAMS_PHYS
39 targets := Image zImage bootpImage xipImage
41 $(obj)/Image: vmlinux FORCE
42 $(call if_changed,objcopy)
43 @echo ' Kernel: $@ is ready'
45 $(obj)/zImage: $(obj)/compressed/vmlinux FORCE
46 $(call if_changed,objcopy)
47 @echo ' Kernel: $@ is ready'
49 $(obj)/compressed/vmlinux: vmlinux FORCE
50 $(Q)$(MAKE) $(build)=$(obj)/compressed $@
52 ifeq ($(CONFIG_XIP_KERNEL),y)
53 $(obj)/xipImage: vmlinux FORCE
54 $(OBJCOPY) -S -O binary -R .data -R .comment vmlinux vmlinux-text.bin
55 $(OBJCOPY) -S -O binary -R .init -R .text -R .comment -R __ex_table -R __ksymtab vmlinux vmlinux-data.bin
56 cat vmlinux-text.bin vmlinux-data.bin > $@
57 $(RM) -f vmlinux-text.bin vmlinux-data.bin
58 @echo ' Kernel: $@ is ready'
63 @test "$(INITRD_PHYS)" != "" || \
64 (echo This machine does not support INITRD; exit -1)
65 @test "$(INITRD)" != "" || \
66 (echo You must specify INITRD; exit -1)
69 $(CONFIG_SHELL) $(obj)/install.sh \
70 $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) \
71 $(obj)/Image System.map "$(INSTALL_PATH)"
73 zinstall: $(obj)/zImage
74 $(CONFIG_SHELL) $(obj)/install.sh \
75 $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) \
76 $(obj)/zImage System.map "$(INSTALL_PATH)"