OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [sparc/] [boot/] [Makefile] - Rev 1765

Compare with Previous | Blame | View Log

# $Id: Makefile,v 1.1.1.1 2004-04-15 01:33:13 phoenix Exp $
# Makefile for the Sparc boot stuff.
#
# Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
# Copyright (C) 1997,1998 Jakub Jelinek (jj@ultra.linux.cz)

ROOT_IMG        =/usr/src/root.img
ELFTOAOUT       =elftoaout

all: btfix.o

tftpboot.img: piggyback
        $(ELFTOAOUT) $(TOPDIR)/vmlinux -o tftpboot.img
        ./piggyback tftpboot.img $(TOPDIR)/System.map $(ROOT_IMG)

piggyback: piggyback.c
        $(HOSTCC) $(HOSTCFLAGS) -o piggyback piggyback.c

btfixupprep: btfixupprep.c
        $(HOSTCC) $(HOSTCFLAGS) -o btfixupprep btfixupprep.c

clean:
        rm -f btfixupprep piggyback tftpboot.img btfix.o btfix.s

BTOBJS := $(HEAD) init/main.o init/version.o init/do_mounts.o
BTLIBS := $(CORE_FILES_NO_BTFIX) $(FILESYSTEMS) \
        $(DRIVERS) $(NETWORKS)

# 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)) \
                --start-group \
                $(patsubst %,$(TOPDIR)/%,$(BTLIBS)) \
                $(LIBS) \
                --end-group -o vmlinux.o

btfix.s: btfixupprep vmlinux.o
        $(OBJDUMP) -x vmlinux.o | ./btfixupprep > btfix.s

btfix.o: btfix.s
        $(CC) -c -o btfix.o btfix.s

include $(TOPDIR)/Rules.make

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.