ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / arch / sparc64 / boot / Makefile
1 # $Id: Makefile,v 1.4 1997/12/15 20:08:56 ecd Exp $
2 # Makefile for the Sparc64 boot stuff.
3 #
4 # Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
5 # Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
6
7 ROOT_IMG        := /usr/src/root.img
8 ELFTOAOUT       := elftoaout
9
10 host-progs      := piggyback
11 targets         := image tftpboot.img vmlinux.aout
12
13 quiet_cmd_elftoaout = ELF2AOUT $@
14       cmd_elftoaout = $(ELFTOAOUT) vmlinux -o $@
15 quiet_cmd_piggy     = PIGGY   $@
16       cmd_piggy     = $(obj)/piggyback $@ System.map $(ROOT_IMG)
17 quiet_cmd_strip     = STRIP   $@
18       cmd_strip     = $(STRIP) -R .comment -R .note -K sun4u_init -K _end -K _start vmlinux -o $@
19
20
21 # Actual linking
22 $(obj)/image: vmlinux FORCE
23         $(call if_changed,strip)
24         @echo '  kernel: $@ is ready'
25
26 $(obj)/tftpboot.img: vmlinux $(obj)/piggyback System.map $(ROOT_IMG) FORCE
27         $(call if_changed,elftoaout)
28         $(call if_changed,piggy)
29         @echo '  kernel: $@ is ready'
30
31 $(obj)/vmlinux.aout: vmlinux FORCE
32         $(call if_changed,elftoaout)
33         @echo '  kernel: $@ is ready'
34