Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
Al Viro | 00ddaf2 | 2006-09-23 01:22:46 +0100 | [diff] [blame] | 11 | targets := Image zImage bootpImage |
| 12 | |
WANG Cong | abee8ed | 2008-01-01 22:00:04 +0800 | [diff] [blame] | 13 | SYSTEM =$(LINUX) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | |
| 15 | ZTEXTADDR = 0x02080000 |
| 16 | PARAMS_PHYS = 0x0207c000 |
| 17 | INITRD_PHYS = 0x02180000 |
| 18 | INITRD_VIRT = 0x02180000 |
| 19 | |
| 20 | # |
| 21 | # If you don't define ZRELADDR above, |
| 22 | # then it defaults to ZTEXTADDR |
| 23 | # |
| 24 | ifeq ($(ZRELADDR),) |
| 25 | ZRELADDR = $(ZTEXTADDR) |
| 26 | endif |
| 27 | |
| 28 | export SYSTEM ZTEXTADDR ZBSSADDR ZRELADDR INITRD_PHYS INITRD_VIRT PARAMS_PHYS |
| 29 | |
| 30 | Image: $(obj)/Image |
| 31 | |
| 32 | targets: $(obj)/Image |
| 33 | |
| 34 | $(obj)/Image: vmlinux FORCE |
| 35 | $(OBJCOPY) -O binary -R .note -R .comment -S vmlinux $@ |
| 36 | |
| 37 | #$(obj)/Image: $(CONFIGURE) $(SYSTEM) |
| 38 | # $(OBJCOPY) -O binary -R .note -R .comment -g -S $(SYSTEM) $@ |
| 39 | |
| 40 | bzImage: zImage |
| 41 | |
| 42 | zImage: $(CONFIGURE) compressed/$(LINUX) |
| 43 | $(OBJCOPY) -O binary -R .note -R .comment -S compressed/$(LINUX) $@ |
| 44 | |
| 45 | bootpImage: bootp/bootp |
| 46 | $(OBJCOPY) -O binary -R .note -R .comment -S bootp/bootp $@ |
| 47 | |
WANG Cong | abee8ed | 2008-01-01 22:00:04 +0800 | [diff] [blame] | 48 | compressed/$(LINUX): $(LINUX) dep |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 49 | @$(MAKE) -C compressed $(LINUX) |
| 50 | |
| 51 | bootp/bootp: zImage initrd |
| 52 | @$(MAKE) -C bootp bootp |
| 53 | |
| 54 | initrd: |
| 55 | @test "$(INITRD_VIRT)" != "" || (echo This architecture does not support INITRD; exit -1) |
| 56 | @test "$(INITRD)" != "" || (echo You must specify INITRD; exit -1) |
| 57 | |
| 58 | # |
| 59 | # installation |
| 60 | # |
| 61 | install: $(CONFIGURE) Image |
WANG Cong | abee8ed | 2008-01-01 22:00:04 +0800 | [diff] [blame] | 62 | sh ./install.sh $(KERNELRELEASE) Image System.map "$(INSTALL_PATH)" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 63 | |
| 64 | zinstall: $(CONFIGURE) zImage |
WANG Cong | abee8ed | 2008-01-01 22:00:04 +0800 | [diff] [blame] | 65 | sh ./install.sh $(KERNELRELEASE) zImage System.map "$(INSTALL_PATH)" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 66 | |
| 67 | # |
| 68 | # miscellany |
| 69 | # |
| 70 | mrproper clean: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 71 | # @$(MAKE) -C compressed clean |
| 72 | # @$(MAKE) -C bootp clean |
| 73 | |
| 74 | dep: |