blob: 636d5bbcd53f31ca5cbbb96ca9f3e29f501fdfff [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
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 Viro00ddaf22006-09-23 01:22:46 +010011targets := Image zImage bootpImage
12
WANG Congabee8ed2008-01-01 22:00:04 +080013SYSTEM =$(LINUX)
Linus Torvalds1da177e2005-04-16 15:20:36 -070014
15ZTEXTADDR = 0x02080000
16PARAMS_PHYS = 0x0207c000
17INITRD_PHYS = 0x02180000
18INITRD_VIRT = 0x02180000
19
David Howells5f0231d2012-11-02 13:20:42 +000020OBJCOPYFLAGS :=-O binary -R .note -R .note.gnu.build-id -R .comment
21
Linus Torvalds1da177e2005-04-16 15:20:36 -070022#
23# If you don't define ZRELADDR above,
24# then it defaults to ZTEXTADDR
25#
26ifeq ($(ZRELADDR),)
27ZRELADDR = $(ZTEXTADDR)
28endif
29
30export SYSTEM ZTEXTADDR ZBSSADDR ZRELADDR INITRD_PHYS INITRD_VIRT PARAMS_PHYS
31
32Image: $(obj)/Image
33
34targets: $(obj)/Image
35
36$(obj)/Image: vmlinux FORCE
David Howells5f0231d2012-11-02 13:20:42 +000037 $(OBJCOPY) $(OBJCOPYFLAGS) -S vmlinux $@
Linus Torvalds1da177e2005-04-16 15:20:36 -070038
39#$(obj)/Image: $(CONFIGURE) $(SYSTEM)
David Howells5f0231d2012-11-02 13:20:42 +000040# $(OBJCOPY) $(OBJCOPYFLAGS) -g -S $(SYSTEM) $@
Linus Torvalds1da177e2005-04-16 15:20:36 -070041
42bzImage: zImage
43
44zImage: $(CONFIGURE) compressed/$(LINUX)
David Howells5f0231d2012-11-02 13:20:42 +000045 $(OBJCOPY) $(OBJCOPYFLAGS) -S compressed/$(LINUX) $@
Linus Torvalds1da177e2005-04-16 15:20:36 -070046
47bootpImage: bootp/bootp
David Howells5f0231d2012-11-02 13:20:42 +000048 $(OBJCOPY) $(OBJCOPYFLAGS) -S bootp/bootp $@
Linus Torvalds1da177e2005-04-16 15:20:36 -070049
WANG Congabee8ed2008-01-01 22:00:04 +080050compressed/$(LINUX): $(LINUX) dep
Linus Torvalds1da177e2005-04-16 15:20:36 -070051 @$(MAKE) -C compressed $(LINUX)
52
53bootp/bootp: zImage initrd
54 @$(MAKE) -C bootp bootp
55
56initrd:
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#
63install: $(CONFIGURE) Image
WANG Congabee8ed2008-01-01 22:00:04 +080064 sh ./install.sh $(KERNELRELEASE) Image System.map "$(INSTALL_PATH)"
Linus Torvalds1da177e2005-04-16 15:20:36 -070065
66zinstall: $(CONFIGURE) zImage
WANG Congabee8ed2008-01-01 22:00:04 +080067 sh ./install.sh $(KERNELRELEASE) zImage System.map "$(INSTALL_PATH)"
Linus Torvalds1da177e2005-04-16 15:20:36 -070068
69#
70# miscellany
71#
72mrproper clean:
Linus Torvalds1da177e2005-04-16 15:20:36 -070073# @$(MAKE) -C compressed clean
74# @$(MAKE) -C bootp clean
75
76dep: