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