diff options
Diffstat (limited to 'arch/sparc/boot/Makefile')
-rw-r--r-- | arch/sparc/boot/Makefile | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/arch/sparc/boot/Makefile b/arch/sparc/boot/Makefile index c9301a79e..b0f7f63ea 100644 --- a/arch/sparc/boot/Makefile +++ b/arch/sparc/boot/Makefile @@ -1,16 +1,13 @@ -# $Id: Makefile,v 1.6 1998/02/23 01:44:39 rth Exp $ +# $Id: Makefile,v 1.9 1998/10/26 20:01:03 davem Exp $ # Makefile for the Sparc boot stuff. # # Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) -# Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz) +# Copyright (C) 1997,1998 Jakub Jelinek (jj@ultra.linux.cz) ROOT_IMG =/usr/src/root.img ELFTOAOUT =elftoaout -all: boot - -boot: - @echo "Nothing special to be done for 'boot' on Linux/SPARC." +all: btfix.o tftpboot.img: piggyback $(ELFTOAOUT) $(TOPDIR)/vmlinux -o tftpboot.img @@ -22,8 +19,24 @@ piggyback: piggyback.c btfixupprep: btfixupprep.c $(HOSTCC) $(HOSTCFLAGS) -o btfixupprep btfixupprep.c -archclean: - rm -f btfixupprep piggyback tftpboot.img +clean: + rm -f btfixupprep piggyback tftpboot.img btfix.o btfix.s + +BTOBJS := $(HEAD) init/main.o init/version.o \ + $(CORE_FILES_NO_BTFIX) $(FILESYSTEMS) \ + $(NETWORKS) $(DRIVERS) + +# I wanted to make this depend upon BTOBJS so that a parallel +# build would work, but this fails because $(HEAD) cannot work +# properly as it will cause head.o to be built with the implicit +# rules not the ones in kernel/Makefile. Someone please fix. --DaveM +vmlinux.o: dummy + $(LD) -r $(patsubst %,$(TOPDIR)/%,$(BTOBJS)) $(LIBS) -o vmlinux.o + +btfix.s: btfixupprep vmlinux.o + $(OBJDUMP) -x vmlinux.o | ./btfixupprep > btfix.s -dep: +btfix.o: btfix.s + $(CC) -c -o btfix.o btfix.s +include $(TOPDIR)/Rules.make |