allow coexistance of N build and AC build.
[tomato.git] / release / src-rt-6.x / linux / linux-2.6 / arch / arm26 / boot / Makefile
blob68acb7b0d47fb42f3af2bbbecf98850b997c7ad0
2 # arch/arm26/boot/Makefile
4 # This file is included by the global makefile so that you can add your own
5 # architecture-specific flags and dependencies.
7 # This file is subject to the terms and conditions of the GNU General Public
8 # License. See the file "COPYING" in the main directory of this archive
9 # for more details.
11 # Copyright (C) 1995-2002 Russell King
14 # Note: the following conditions must always be true:
15 # ZRELADDR == virt_to_phys(TEXTADDR)
16 # PARAMS_PHYS must be with 4MB of ZRELADDR
17 # INITRD_PHYS must be in RAM
19 zreladdr-y := 0x02080000
20 params_phys-y := 0x0207c000
21 initrd_phys-y := 0x02180000
23 ZRELADDR := 0x02080000
24 ZTEXTADDR := 0x0207c000
25 PARAMS_PHYS := $(params_phys-y)
26 INITRD_PHYS := 0x02180000
28 # We now have a PIC decompressor implementation. Decompressors running
29 # from RAM should not define ZTEXTADDR. Decompressors running directly
30 # from ROM or Flash must define ZTEXTADDR (preferably via the config)
31 # FIXME: Previous assignment to ztextaddr-y is lost here. See SHARK
32 ifeq ($(CONFIG_ZBOOT_ROM),y)
33 ZTEXTADDR := $(CONFIG_ZBOOT_ROM_TEXT)
34 ZBSSADDR := $(CONFIG_ZBOOT_ROM_BSS)
35 else
36 ZTEXTADDR := 0
37 ZBSSADDR := ALIGN(4)
38 endif
40 export ZTEXTADDR ZBSSADDR ZRELADDR INITRD_PHYS PARAMS_PHYS
42 targets := Image zImage bootpImage xipImage
44 $(obj)/Image: vmlinux FORCE
45 $(call if_changed,objcopy)
46 @echo ' Kernel: $@ is ready'
48 $(obj)/zImage: $(obj)/compressed/vmlinux FORCE
49 $(call if_changed,objcopy)
50 @echo ' Kernel: $@ is ready'
52 $(obj)/compressed/vmlinux: vmlinux FORCE
53 $(Q)$(MAKE) $(build)=$(obj)/compressed $@
55 ifeq ($(CONFIG_XIP_KERNEL),y)
56 $(obj)/xipImage: vmlinux FORCE
57 # $(OBJCOPY) -S -O binary -R .data -R .comment vmlinux vmlinux-text.bin
58 # FIXME - where has .pci_fixup crept in from?
59 $(OBJCOPY) -S -O binary -R .data -R .pci_fixup -R .comment vmlinux vmlinux-text.bin
60 $(OBJCOPY) -S -O binary -R .init -R .text -R __ex_table -R .pci_fixup -R __ksymtab -R __ksymtab_gpl -R __kcrctab -R __kcrctab_gpl -R __param -R .comment vmlinux vmlinux-data.bin
61 cat vmlinux-text.bin vmlinux-data.bin > $@
62 $(RM) -f vmlinux-text.bin vmlinux-data.bin
63 @echo ' Kernel: $@ is ready'
64 endif
66 PHONY += initrd
67 initrd:
68 @test "$(INITRD_PHYS)" != "" || \
69 (echo This machine does not support INITRD; exit -1)
70 @test "$(INITRD)" != "" || \
71 (echo You must specify INITRD; exit -1)
73 install: $(obj)/Image
74 $(CONFIG_SHELL) $(obj)/install.sh \
75 $(KERNELRELEASE) \
76 $(obj)/Image System.map "$(INSTALL_PATH)"
78 zinstall: $(obj)/zImage
79 $(CONFIG_SHELL) $(obj)/install.sh \
80 $(KERNELRELEASE) \
81 $(obj)/zImage System.map "$(INSTALL_PATH)"
83 subdir- := compressed