1# 2# arch/arm26/boot/Makefile 3# 4# This file is included by the global makefile so that you can add your own 5# architecture-specific flags and dependencies. 6# 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. 10# 11# Copyright (C) 1995-2002 Russell King 12# 13 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 18 19 zreladdr-y := 0x02080000 20params_phys-y := 0x0207c000 21initrd_phys-y := 0x02180000 22 23ZRELADDR := 0x02080000 24ZTEXTADDR := 0x0207c000 25PARAMS_PHYS := $(params_phys-y) 26INITRD_PHYS := 0x02180000 27 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) 31ifeq ($(CONFIG_ZBOOT_ROM),y) 32ZTEXTADDR := $(CONFIG_ZBOOT_ROM_TEXT) 33ZBSSADDR := $(CONFIG_ZBOOT_ROM_BSS) 34else 35ZTEXTADDR := 0 36ZBSSADDR := ALIGN(4) 37endif 38 39export ZTEXTADDR ZBSSADDR ZRELADDR INITRD_PHYS PARAMS_PHYS 40 41targets := Image zImage bootpImage xipImage 42 43$(obj)/Image: vmlinux FORCE 44 $(call if_changed,objcopy) 45 @echo ' Kernel: $@ is ready' 46 47$(obj)/zImage: $(obj)/compressed/vmlinux FORCE 48 $(call if_changed,objcopy) 49 @echo ' Kernel: $@ is ready' 50 51$(obj)/compressed/vmlinux: vmlinux FORCE 52 $(Q)$(MAKE) $(build)=$(obj)/compressed $@ 53 54ifeq ($(CONFIG_XIP_KERNEL),y) 55$(obj)/xipImage: vmlinux FORCE 56# $(OBJCOPY) -S -O binary -R .data -R .comment vmlinux vmlinux-text.bin 57 $(OBJCOPY) -S -O binary -R .data -R .pci_fixup -R .comment vmlinux vmlinux-text.bin 58 $(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 59 cat vmlinux-text.bin vmlinux-data.bin > $@ 60 $(RM) -f vmlinux-text.bin vmlinux-data.bin 61 @echo ' Kernel: $@ is ready' 62endif 63 64PHONY += initrd 65initrd: 66 @test "$(INITRD_PHYS)" != "" || \ 67 (echo This machine does not support INITRD; exit -1) 68 @test "$(INITRD)" != "" || \ 69 (echo You must specify INITRD; exit -1) 70 71install: $(obj)/Image 72 $(CONFIG_SHELL) $(obj)/install.sh \ 73 $(KERNELRELEASE) \ 74 $(obj)/Image System.map "$(INSTALL_PATH)" 75 76zinstall: $(obj)/zImage 77 $(CONFIG_SHELL) $(obj)/install.sh \ 78 $(KERNELRELEASE) \ 79 $(obj)/zImage System.map "$(INSTALL_PATH)" 80 81subdir- := compressed 82