blob: 0458b5244f094b1c1a82ae24d5e78117f6860dec [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001# Makefile for the Sparc64 boot stuff.
2#
3# Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
4# Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
5
6ROOT_IMG := /usr/src/root.img
7ELFTOAOUT := elftoaout
8
9hostprogs-y := piggyback
10targets := image tftpboot.img vmlinux.aout
11
12quiet_cmd_elftoaout = ELF2AOUT $@
13 cmd_elftoaout = $(ELFTOAOUT) vmlinux -o $@
14quiet_cmd_piggy = PIGGY $@
15 cmd_piggy = $(obj)/piggyback $@ System.map $(ROOT_IMG)
16quiet_cmd_strip = STRIP $@
17 cmd_strip = $(STRIP) -R .comment -R .note -K sun4u_init -K _end -K _start vmlinux -o $@
18
19
20# Actual linking
21$(obj)/image: vmlinux FORCE
22 $(call if_changed,strip)
23 @echo ' kernel: $@ is ready'
24
25$(obj)/tftpboot.img: vmlinux $(obj)/piggyback System.map $(ROOT_IMG) FORCE
26 $(call if_changed,elftoaout)
27 $(call if_changed,piggy)
28 @echo ' kernel: $@ is ready'
29
30$(obj)/vmlinux.aout: vmlinux FORCE
31 $(call if_changed,elftoaout)
32 @echo ' kernel: $@ is ready'
33