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 7ROOT_IMG =/usr/src/root.img 8ELFTOAOUT =elftoaout 9 10all: boot 11 12boot: 13 @echo "Nothing special to be done for 'boot' on Linux/UltraSPARC." 14 15tftpboot.img: piggyback $(TOPDIR)/vmlinux $(ROOT_IMG) 16 $(ELFTOAOUT) $(TOPDIR)/vmlinux -o tftpboot.img 17 ./piggyback tftpboot.img $(TOPDIR)/System.map $(ROOT_IMG) 18 19piggyback: piggyback.c 20 $(HOSTCC) $(HOSTCFLAGS) -o piggyback piggyback.c 21 22image: $(TOPDIR)/vmlinux 23 $(STRIP) -R .comment -R .note -K sun4u_init -K _end -K _start $(TOPDIR)/vmlinux -o $@ 24 25dep: 26 27clean: 28 rm -f tftpboot.img piggyback image 29