blob: 6968a6da57dae535f987672da49756a634e7f52f [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001# $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
7ROOT_IMG := /usr/src/root.img
8ELFTOAOUT := elftoaout
9
10hostprogs-y := piggyback
11targets := image tftpboot.img vmlinux.aout
12
13quiet_cmd_elftoaout = ELF2AOUT $@
14 cmd_elftoaout = $(ELFTOAOUT) vmlinux -o $@
15quiet_cmd_piggy = PIGGY $@
16 cmd_piggy = $(obj)/piggyback $@ System.map $(ROOT_IMG)
17quiet_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