head	1.20;
access;
symbols
	perseant-exfatfs-base-20250801:1.20
	perseant-exfatfs-base-20240630:1.20
	perseant-exfatfs:1.20.0.140
	perseant-exfatfs-base:1.20
	bouyer-sunxi-drm:1.20.0.138
	bouyer-sunxi-drm-base:1.20
	cjep_sun2x:1.20.0.136
	cjep_sun2x-base:1.20
	cjep_staticlib_x-base1:1.20
	cjep_staticlib_x:1.20.0.134
	cjep_staticlib_x-base:1.20
	thorpej-futex-base:1.20
	bouyer-xenpvh-base2:1.20
	phil-wifi-20200421:1.20
	bouyer-xenpvh-base1:1.20
	phil-wifi-20200411:1.20
	bouyer-xenpvh:1.20.0.132
	bouyer-xenpvh-base:1.20
	phil-wifi-20200406:1.20
	ad-namecache-base3:1.20
	ad-namecache-base2:1.20
	ad-namecache-base1:1.20
	ad-namecache:1.20.0.130
	ad-namecache-base:1.20
	isaki-audio2:1.20.0.128
	isaki-audio2-base:1.20
	pgoyette-compat-merge-20190127:1.20
	pgoyette-compat-20190127:1.20
	pgoyette-compat-20190118:1.20
	pgoyette-compat-1226:1.20
	pgoyette-compat-1126:1.20
	pgoyette-compat-1020:1.20
	pgoyette-compat-0930:1.20
	pgoyette-compat-0906:1.20
	pgoyette-compat-0728:1.20
	pgoyette-compat-0625:1.20
	pgoyette-compat-0521:1.20
	pgoyette-compat-0502:1.20
	pgoyette-compat-0422:1.20
	pgoyette-compat-0415:1.20
	pgoyette-compat-0407:1.20
	pgoyette-compat-0330:1.20
	pgoyette-compat-0322:1.20
	pgoyette-compat-0315:1.20
	pgoyette-compat:1.20.0.8
	pgoyette-compat-base:1.20
	perseant-stdc-iso10646:1.20.0.126
	perseant-stdc-iso10646-base:1.20
	prg-localcount2-base3:1.20
	prg-localcount2-base2:1.20
	prg-localcount2-base1:1.20
	prg-localcount2:1.20.0.124
	prg-localcount2-base:1.20
	pgoyette-localcount-20170426:1.20
	bouyer-socketcan-base1:1.20
	pgoyette-localcount-20170320:1.20
	bouyer-socketcan:1.20.0.122
	bouyer-socketcan-base:1.20
	pgoyette-localcount-20170107:1.20
	pgoyette-localcount-20161104:1.20
	localcount-20160914:1.20
	pgoyette-localcount-20160806:1.20
	pgoyette-localcount-20160726:1.20
	pgoyette-localcount:1.20.0.120
	pgoyette-localcount-base:1.20
	netbsd-5-2-3-RELEASE:1.20
	netbsd-5-1-5-RELEASE:1.20
	yamt-pagecache-base9:1.20
	yamt-pagecache-tag8:1.20
	tls-earlyentropy:1.20.0.118
	tls-earlyentropy-base:1.20
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.20
	riastradh-drm2-base3:1.20
	netbsd-5-2-2-RELEASE:1.20
	netbsd-5-1-4-RELEASE:1.20
	netbsd-5-2-1-RELEASE:1.20
	netbsd-5-1-3-RELEASE:1.20
	rmind-smpnet-nbase:1.20
	rmind-smpnet:1.20.0.114
	rmind-smpnet-base:1.20
	agc-symver:1.20.0.116
	agc-symver-base:1.20
	tls-maxphys-base:1.20
	yamt-pagecache-base8:1.20
	netbsd-5-2:1.20.0.112
	yamt-pagecache-base7:1.20
	netbsd-5-2-RELEASE:1.20
	netbsd-5-2-RC1:1.20
	yamt-pagecache-base6:1.20
	yamt-pagecache-base5:1.20
	yamt-pagecache-base4:1.20
	netbsd-5-1-2-RELEASE:1.20
	netbsd-5-1-1-RELEASE:1.20
	jmcneill-usbmp:1.20.0.110
	jmcneill-usbmp-base:1.20
	jmcneill-audiomp3:1.20.0.108
	jmcneill-audiomp3-base:1.20
	yamt-pagecache-base3:1.20
	yamt-pagecache-base2:1.20
	yamt-pagecache:1.20.0.106
	yamt-pagecache-base:1.20
	rmind-uvmplock-nbase:1.20
	jym-xensuspend-nbase:1.20
	bouyer-quota2-nbase:1.20
	bouyer-quota2:1.20.0.104
	bouyer-quota2-base:1.20
	jruoho-x86intr:1.20.0.102
	jruoho-x86intr-base:1.20
	matt-nb5-pq3:1.20.0.100
	matt-nb5-pq3-base:1.20
	netbsd-5-1:1.20.0.98
	netbsd-5-1-RELEASE:1.20
	yamt-nfs-mp-base11:1.20
	netbsd-5-1-RC4:1.20
	uebayasi-xip-base2:1.20
	yamt-nfs-mp-base10:1.20
	netbsd-5-1-RC3:1.20
	netbsd-5-1-RC2:1.20
	netbsd-5-1-RC1:1.20
	rmind-uvmplock:1.20.0.96
	rmind-uvmplock-base:1.20
	yamt-nfs-mp-base9:1.20
	uebayasi-xip:1.20.0.94
	uebayasi-xip-base:1.20
	netbsd-5-0-2-RELEASE:1.20
	yamt-nfs-mp-base8:1.20
	yamt-nfs-mp-base7:1.20
	netbsd-5-0-1-RELEASE:1.20
	jymxensuspend-base:1.20
	yamt-nfs-mp-base6:1.20
	yamt-nfs-mp-base5:1.20
	yamt-nfs-mp-base4:1.20
	yamt-nfs-mp-base3:1.20
	netbsd-5-0:1.20.0.92
	netbsd-5-0-RELEASE:1.20
	netbsd-5-0-RC4:1.20
	netbsd-5-0-RC3:1.20
	netbsd-5-0-RC2:1.20
	jym-xensuspend:1.20.0.90
	jym-xensuspend-base:1.20
	netbsd-5-0-RC1:1.20
	haad-dm-base2:1.20
	haad-nbase2:1.20
	ad-audiomp2:1.20.0.88
	ad-audiomp2-base:1.20
	netbsd-5:1.20.0.86
	netbsd-5-base:1.20
	haad-dm-base1:1.20
	haad-dm:1.20.0.84
	haad-dm-base:1.20
	simonb-wapbl-nbase:1.20
	yamt-pf42-base4:1.20
	simonb-wapbl:1.20.0.82
	simonb-wapbl-base:1.20
	yamt-pf42-base3:1.20
	hpcarm-cleanup-nbase:1.20
	yamt-pf42-base2:1.20
	yamt-nfs-mp-base2:1.20
	yamt-nfs-mp:1.20.0.80
	yamt-nfs-mp-base:1.20
	yamt-pf42:1.20.0.78
	yamt-pf42-base:1.20
	ad-socklock-base1:1.20
	yamt-lazymbuf-base15:1.20
	yamt-lazymbuf-base14:1.20
	keiichi-mipv6-nbase:1.20
	mjf-devfs2:1.20.0.76
	mjf-devfs2-base:1.20
	keiichi-mipv6:1.20.0.74
	keiichi-mipv6-base:1.20
	bouyer-xeni386-merge1:1.20
	vmlocking2-base3:1.20
	bouyer-xeni386-nbase:1.20
	yamt-kmem-base3:1.20
	cube-autoconf:1.20.0.72
	cube-autoconf-base:1.20
	yamt-kmem-base2:1.20
	bouyer-xeni386:1.20.0.70
	bouyer-xeni386-base:1.20
	yamt-kmem:1.20.0.68
	yamt-kmem-base:1.20
	vmlocking2-base2:1.20
	reinoud-bufcleanup-nbase:1.20
	vmlocking2:1.20.0.66
	vmlocking2-base1:1.20
	jmcneill-base:1.20
	mjf-devfs:1.20.0.64
	mjf-devfs-base:1.20
	bouyer-xenamd64-base2:1.20
	vmlocking-nbase:1.20
	yamt-x86pmap-base4:1.20
	bouyer-xenamd64:1.20.0.62
	bouyer-xenamd64-base:1.20
	yamt-x86pmap-base3:1.20
	yamt-x86pmap-base2:1.20
	yamt-x86pmap:1.20.0.60
	yamt-x86pmap-base:1.20
	jmcneill-pm:1.20.0.58
	jmcneill-pm-base:1.20
	hpcarm-cleanup:1.20.0.56
	hpcarm-cleanup-base:1.20
	mjf-ufs-trans-base:1.20
	yamt-idlelwp-base8:1.20
	ppcoea-renovation:1.20.0.54
	ppcoea-renovation-base:1.20
	reinoud-bufcleanup-base:1.20
	vmlocking:1.20.0.52
	vmlocking-base:1.20
	ad-audiomp:1.20.0.50
	ad-audiomp-base:1.20
	yamt-idlelwp:1.20.0.48
	post-newlock2-merge:1.20
	newlock2-nbase:1.20
	yamt-splraiseipl-base5:1.20
	yamt-splraiseipl-base4:1.20
	yamt-splraiseipl-base3:1.20
	yamt-splraiseipl-base2:1.20
	yamt-splraiseipl:1.20.0.46
	yamt-splraiseipl-base:1.20
	newlock2:1.20.0.44
	newlock2-base:1.20
	yamt-pdpolicy-base8:1.20
	yamt-pdpolicy-base7:1.20
	yamt-pdpolicy-base6:1.20
	gdamore-uart:1.20.0.42
	gdamore-uart-base:1.20
	simonb-timcounters-final:1.20
	yamt-pdpolicy-base5:1.20
	elad-kernelauth-nbase:1.20
	yamt-pdpolicy-base4:1.20
	yamt-pdpolicy-base3:1.20
	yamt-pdpolicy-base2:1.20
	yamt-pdpolicy:1.20.0.40
	yamt-pdpolicy-base:1.20
	yamt-uio_vmspace-base5:1.20
	simonb-timecounters:1.20.0.38
	simonb-timecounters-base:1.20
	rpaulo-netinet-merge-pcb:1.20.0.36
	rpaulo-netinet-merge-pcb-base:1.20
	yamt-uio_vmspace:1.20.0.34
	yamt-readahead-base3:1.20
	yamt-readahead-base2:1.20
	yamt-readahead:1.20.0.32
	yamt-readahead-base:1.20
	yamt-vop-base3:1.20
	yamt-vop-base2:1.20
	thorpej-vnode-attr:1.20.0.30
	thorpej-vnode-attr-base:1.20
	yamt-vop:1.20.0.28
	yamt-vop-base:1.20
	yamt-lazymbuf:1.20.0.26
	yamt-km-base4:1.20
	yamt-km-base3:1.20
	yamt-km-base2:1.20
	yamt-km:1.20.0.24
	yamt-km-base:1.20
	kent-audio2:1.20.0.22
	kent-audio2-base:1.20
	ktrace-lwp:1.20.0.20
	ktrace-lwp-base:1.20
	nathanw_sa_before_merge:1.20
	gmcgarry_ctxsw:1.20.0.18
	gmcgarry_ctxsw_base:1.20
	gmcgarry_ucred:1.20.0.16
	gmcgarry_ucred_base:1.20
	nathanw_sa_base:1.20
	gehenna-devsw:1.20.0.14
	gehenna-devsw-base:1.20
	netbsd-1-5-PATCH003:1.18.4.1
	eeh-devprop:1.20.0.12
	eeh-devprop-base:1.20
	newlock:1.20.0.10
	newlock-base:1.20
	ifpoll-base:1.20
	thorpej-mips-cache:1.20.0.6
	thorpej-mips-cache-base:1.20
	thorpej-devvp:1.20.0.4
	thorpej-devvp-base:1.20
	netbsd-1-5-PATCH002:1.18
	kqueue:1.20.0.2
	kqueue-base:1.20
	netbsd-1-5-PATCH001:1.18
	thorpej_scsipi_beforemerge:1.20
	thorpej_scsipi_nbase:1.20
	netbsd-1-5-RELEASE:1.18
	netbsd-1-5-BETA2:1.18
	netbsd-1-5-BETA:1.18
	netbsd-1-5-ALPHA2:1.18
	netbsd-1-5:1.18.0.4
	netbsd-1-5-base:1.18
	minoura-xpg4dl:1.18.0.2
	minoura-xpg4dl-base:1.18
	chs-ubc2-newbase:1.9
	wrstuden-devbsize-19991221:1.2
	wrstuden-devbsize:1.1.1.1.0.8
	wrstuden-devbsize-base:1.2
	comdex-fall-1999:1.1.1.1.0.6
	comdex-fall-1999-base:1.1.1.1
	fvdl-softdep:1.1.1.1.0.4
	fvdl-softdep-base:1.1.1.1
	thorpej_scsipi:1.1.1.1.0.2
	thorpej_scsipi_base:1.20
	hpcmips-1999-09-16:1.1.1.1
	HPCMIPS:1.1.1;
locks; strict;
comment	@# @;


1.20
date	2000.12.20.04.12.42;	author matt;	state dead;
branches;
next	1.19;

1.19
date	2000.12.17.15.52.41;	author jdolecek;	state Exp;
branches;
next	1.18;

1.18
date	2000.05.21.02.50.11;	author soren;	state Exp;
branches
	1.18.4.1;
next	1.17;

1.17
date	2000.05.09.00.56.24;	author hubertf;	state Exp;
branches;
next	1.16;

1.16
date	2000.05.09.00.32.22;	author thorpej;	state Exp;
branches;
next	1.15;

1.15
date	2000.05.08.21.58.40;	author uch;	state Exp;
branches;
next	1.14;

1.14
date	2000.03.25.15.11.08;	author uch;	state Exp;
branches;
next	1.13;

1.13
date	2000.03.07.04.17.27;	author shin;	state Exp;
branches;
next	1.12;

1.12
date	2000.03.05.05.22.12;	author takemura;	state Exp;
branches;
next	1.11;

1.11
date	2000.03.04.19.52.26;	author uch;	state Exp;
branches;
next	1.10;

1.10
date	2000.02.24.21.59.13;	author mycroft;	state Exp;
branches;
next	1.9;

1.9
date	2000.02.01.05.25.31;	author tsutsui;	state Exp;
branches;
next	1.8;

1.8
date	2000.01.24.20.36.12;	author tron;	state Exp;
branches;
next	1.7;

1.7
date	2000.01.19.16.30.03;	author tsutsui;	state Exp;
branches;
next	1.6;

1.6
date	2000.01.13.05.32.41;	author shin;	state Exp;
branches;
next	1.5;

1.5
date	2000.01.09.07.57.43;	author shin;	state Exp;
branches;
next	1.4;

1.4
date	2000.01.01.04.46.22;	author shin;	state Exp;
branches;
next	1.3;

1.3
date	2000.01.01.02.15.38;	author shin;	state Exp;
branches;
next	1.2;

1.2
date	99.11.21.07.04.31;	author uch;	state Exp;
branches;
next	1.1;

1.1
date	99.09.16.12.23.18;	author takemura;	state Exp;
branches
	1.1.1.1;
next	;

1.18.4.1
date	2002.02.14.19.55.23;	author he;	state Exp;
branches;
next	;

1.1.1.1
date	99.09.16.12.23.18;	author takemura;	state Exp;
branches
	1.1.1.1.2.1
	1.1.1.1.8.1;
next	;

1.1.1.1.2.1
date	2000.11.20.20.45.44;	author bouyer;	state Exp;
branches;
next	1.1.1.1.2.2;

1.1.1.1.2.2
date	2001.01.05.17.34.17;	author bouyer;	state dead;
branches;
next	;

1.1.1.1.8.1
date	99.12.27.18.32.00;	author wrstuden;	state Exp;
branches;
next	;


desc
@@


1.20
log
@Start using the common mips/conf/Makefile.mips
@
text
@#	$NetBSD: Makefile.hpcmips,v 1.19 2000/12/17 15:52:41 jdolecek Exp $

# Makefile for NetBSD
#
# This makefile is constructed from a machine description:
#	config machineid
# Most changes should be made in the machine description
#	/sys/arch/hpcmips/conf/``machineid''
# after which you should do
#	config machineid
# Machine generic makefile changes should be made in
#	/sys/arch/hpcmips/conf/Makefile.hpcmips
# after which config should be rerun for all machines of that type.

# DEBUG is set to -g if debugging.
# PROF is set to -pg if profiling.

#BINDIR=	/usr/pkg/mipsel-netbsd/bin/mipsel-netbsd-
MACHINE=hpcmips
MACHINE_ARCH=mipsel

AR?=	${BINDIR}ar
AS?=	${BINDIR}as
CC?=	${BINDIR}gcc
CPP?=	cpp
LD?=	${BINDIR}ld
LORDER?=lorder
MKDEP?=	mkdep
NM?=	${BINDIR}nm
RANLIB?=	${BINDIR}ranlib
SIZE?=	${BINDIR}size
STRIP?=	${BINDIR}strip
TSORT?=	tsort -q

COPTS?=	-Os -mmemcpy

# source tree is located via $S relative to the compilation directory
.ifndef S
#S!=	cd ../../../..; pwd
S=	../../../..
.endif
HPCMIPS=	$S/arch/hpcmips
MIPS=	$S/arch/mips

HAVE_EGCS!=	${CC} --version | egrep "^(2\.[89]|egcs)" ; echo 
INCLUDES=	-I. -I$S/arch -I$S -nostdinc
CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Dhpcmips -D__hpcmips__
CWARNFLAGS?=	-Werror -Wall  -Wstrict-prototypes -Wmissing-prototypes \
		-Wno-uninitialized -Wpointer-arith
# XXX Delete -Wuninitialized for now, since the compiler doesn't
# XXX always get it right.  --thorpej 
CWARNFLAGS+=	-Wno-uninitialized
.if (${HAVE_EGCS} != "")
CWARNFLAGS+=	-Wno-main
.endif
GP?=		-G 20
CFLAGS=		${DEBUG} ${COPTS} ${CWARNFLAGS} ${GP} \
		-mno-abicalls -mno-half-pic
AFLAGS=		-x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS=	-Ttext 0x80030000 -T ${MIPS}/conf/kern.ldscript.le \
		-e start ${GP}
STRIPFLAGS=	-g -X -x

%INCLUDES

### find out what to use for libkern
.include "$S/lib/libkern/Makefile.inc"
.ifndef PROF
LIBKERN=	${KERNLIB}
.else
LIBKERN=	${KERNLIB_PROF}
.endif

### find out what to use for libcompat
.include "$S/compat/common/Makefile.inc"
.ifndef PROF
LIBCOMPAT=	${COMPATLIB}
.else
LIBCOMPAT=	${COMPATLIB_PROF}
.endif

# compile rules: rules are named ${TYPE}_${SUFFIX} where TYPE is NORMAL or
# HOSTED}, and SUFFIX is the file suffix, capitalized (e.g. C for a .c file).

NORMAL_C=	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NOPROF_C=	${CC} ${CFLAGS} ${CPPFLAGS} -c $<
NORMAL_S=	${CC} ${AFLAGS} ${CPPFLAGS} -c $<

%OBJS

%CFILES

%SFILES

# load lines for config "xxx" will be emitted as:
# xxx: ${SYSTEM_DEP} swapxxx.o
#	${SYSTEM_LD_HEAD}
#	${SYSTEM_LD} swapxxx.o
#	${SYSTEM_LD_TAIL}
SYSTEM_OBJ=     locore.o locore_machdep.o
# VR4100/TX3900 core supports pipeline interlock & branch likely instruction
CFLAGS+= -mips2
AFLAGS+= -mips2
.if !empty(IDENT:M-DMIPS1)
SYSTEM_OBJ+=    locore_mips1.o
.endif
.if !empty(IDENT:M-DMIPS3)
SYSTEM_OBJ+=    locore_mips3.o
.endif
SYSTEM_OBJ+=    param.o ioconf.o ${OBJS} ${LIBKERN} ${LIBCOMPAT}
SYSTEM_DEP=	Makefile ${SYSTEM_OBJ}
SYSTEM_LD_HEAD=	@@rm -f $@@
SYSTEM_LD=	@@echo ${LD} ${LINKFLAGS} -o $@@ '$${SYSTEM_OBJ}' vers.o ; \
		${LD} ${LINKFLAGS} -o $@@ ${SYSTEM_OBJ} vers.o
SYSTEM_LD_TAIL=	@@${SIZE} $@@; chmod 755 $@@

DEBUG?=
.if ${DEBUG} == "-g"
LINKFLAGS+=	-X
SYSTEM_LD_TAIL+=; \
		echo mv -f $@@ $@@.gdb; mv -f $@@ $@@.gdb; \
		echo ${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb; \
		${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb
.else
LINKFLAGS+=	-x
.endif

%LOAD

assym.h: $S/kern/genassym.sh ${MIPS}/mips/genassym.cf
	sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
	  < ${MIPS}/mips/genassym.cf > assym.h.tmp && \
	mv -f assym.h.tmp assym.h


param.c: $S/conf/param.c
	rm -f param.c
	cp $S/conf/param.c .

param.o: param.c Makefile
	${NORMAL_C}

ioconf.o: ioconf.c
	${NORMAL_C}

newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
	sh $S/conf/newvers.sh
	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c

__CLEANKERNEL: .USE
	@@echo "${.TARGET}ing the kernel objects"
	rm -f eddep *netbsd netbsd.gdb tags *.[io] [a-z]*.s \
	  [Ee]rrs linterrs makelinks assym.h.tmp assym.h

__CLEANDEPEND: .USE
	rm -f .depend

clean: __CLEANKERNEL

cleandir distclean: __CLEANKERNEL __CLEANDEPEND

lint:
	@@lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
	  ${MIPS}/mips/Locore.c ${CFILES} \
	  ioconf.c param.c | \
	  grep -v 'static function .* unused'

tags:
	@@echo "see $S/kern/Makefile for tags"

links:
	egrep '#if' ${CFILES} | sed -f $S/conf/defines | \
	  sed -e 's/:.*//' -e 's/\.c/.o/' | sort -u > dontlink
	echo ${CFILES} | tr -s ' ' '\12' | sed 's/\.c/.o/' | \
	  sort -u | comm -23 - dontlink | \
	  sed 's,../.*/\(.*.o\),rm -f \1; ln -s ../GENERIC/\1 \1,' > makelinks
	sh makelinks && rm -f dontlink

SRCS=	${MIPS}/mips/locore.S \
	${HPCMIPS}/hpcmips/locore_machdep.S \
	param.c ioconf.c ${CFILES} ${SFILES}
depend: .depend
.depend: ${SRCS} assym.h param.c
	CC="${CC}" ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${MIPS}/mips/locore.S
	CC="${CC}" ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${HPCMIPS}/hpcmips/locore_machdep.S 
	CC="${CC}" ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
.if (${SFILES} != "")
	CC="${CC}" ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
.endif
	CC="${CC}" sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \
	  ${CPPFLAGS} < ${MIPS}/mips/genassym.cf
	@@sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend
	@@rm -f assym.dep

dependall: depend all


# depend on root or device configuration
autoconf.o conf.o: Makefile
 
# depend on network or filesystem configuration 
uipc_proto.o vfs_conf.o: Makefile 

# depend on maxusers
machdep.o: Makefile

# depend on CPU configuration 
machdep.o mainbus.o trap.o: Makefile

# depend on System V IPC/shmem options
mips_machdep.o pmap.o: Makefile

locore.o: ${MIPS}/mips/locore.S assym.h
	${NORMAL_S}

locore_mips1.o: ${MIPS}/mips/locore_mips1.S assym.h
	${NORMAL_S}

locore_mips3.o: ${MIPS}/mips/locore_mips3.S assym.h
	${NORMAL_S}

locore_machdep.o: ${HPCMIPS}/hpcmips/locore_machdep.S assym.h
	${NORMAL_S}

# The install target can be redefined by putting a
# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
MACHINE_NAME!=  uname -n
install: install-kernel-${MACHINE_NAME}
.if !target(install-kernel-${MACHINE_NAME}})
install-kernel-${MACHINE_NAME}:
	rm -f /onetbsd
	ln /netbsd /onetbsd
	cp netbsd /nnetbsd
	mv /nnetbsd /netbsd
.endif

%RULES
@


1.19
log
@delete obsolete comment
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hpcmips,v 1.18 2000/05/21 02:50:11 soren Exp $
@


1.18
log
@Also share BE ldscripts.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hpcmips,v 1.17 2000/05/09 00:56:24 hubertf Exp $
a13 6
#
# N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE VISIBLE TO MAKEFILE
#	IF YOU CHANGE THE DEFINITION OF ANY OF THESE RECOMPILE EVERYTHING
#
# -DTRACE	compile in kernel tracing hooks
# -DQUOTA	compile in file system quotas
@


1.18.4.1
log
@Apply patch (requested by shin):
  Make kernel link by reducing gpsize (-G linker option).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hpcmips,v 1.18 2000/05/21 02:50:11 soren Exp $
d62 1
a62 1
GP?=		-G 8
@


1.17
log
@Add "install" target, so "make install" after building the kernel
does something useful.  The target can be redefined by putting a
install-kernel-${MACHINE_NAME} target that fits your needs into
/etc/mk.conf.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hpcmips,v 1.16 2000/05/09 00:32:22 thorpej Exp $
d66 2
a67 1
LINKFLAGS=	-Ttext 0x80030000 -T ${MIPS}/conf/kern.ldscript -e start ${GP}
@


1.16
log
@HAVE_GCC28 -> HAVE_EGCS, and make it match gcc 2.9 as well.  Also,
make the use of -Wno-uninitialized explicit, don't rely on a compiler
hack to do it for us.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hpcmips,v 1.15 2000/05/08 21:58:40 uch Exp $
d229 12
@


1.15
log
@	 -G 24 -> -G 20. TX3922 kernel became bigger.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hpcmips,v 1.14 2000/03/25 15:11:08 uch Exp $
d51 1
a51 1
HAVE_GCC28!=	${CC} --version | egrep "^(2\.8|egcs)" ; echo 
d56 4
a59 1
.if (${HAVE_GCC28} != "")
@


1.14
log
@-G 30 -> -G 24
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hpcmips,v 1.13 2000/03/07 04:17:27 shin Exp $
d59 1
a59 1
GP?=		-G 24
@


1.13
log
@add '%INCLUDES'.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hpcmips,v 1.12 2000/03/05 05:22:12 takemura Exp $
d59 1
a59 1
GP?=		-G 30
@


1.12
log
@Change bus_addr_t and bus_size_t from u_int32_t to u_long.
Add -Werror option to kernel Makefile.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hpcmips,v 1.11 2000/03/04 19:52:26 uch Exp $
d65 2
@


1.11
log
@Make it easier to cross-compile with this. moreover.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hpcmips,v 1.10 2000/02/24 21:59:13 mycroft Exp $
d54 1
a54 1
CWARNFLAGS?=	-Wall  -Wstrict-prototypes -Wmissing-prototypes \
@


1.10
log
@Make it easier to cross-compile with this.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hpcmips,v 1.9 2000/02/01 05:25:31 tsutsui Exp $
d28 3
a30 3
AR=	${BINDIR}ar
AS=	${BINDIR}as
CC=	${BINDIR}gcc
d32 1
a32 1
LD=	${BINDIR}ld
d35 4
a38 4
NM=	${BINDIR}nm
RANLIB=	${BINDIR}ranlib
SIZE=	${BINDIR}size
STRIP=	${BINDIR}strip
@


1.9
log
@Revert STRIPPROG -> STRIP
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hpcmips,v 1.8 2000/01/24 20:36:12 tron Exp $
d24 7
a30 3
AR?=	ar
AS?=	as
CC?=	cc
d32 1
a32 1
LD?=	ld
d35 4
a38 4
NM?=	nm
RANLIB?=ranlib
SIZE?=	size
STRIP?=	strip
d184 3
a186 3
	${MKDEP} ${AFLAGS} ${CPPFLAGS} ${MIPS}/mips/locore.S
	${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${HPCMIPS}/hpcmips/locore_machdep.S 
	${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
d188 1
a188 1
	${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
d190 1
a190 1
	sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \
@


1.8
log
@Add "dependall" target for comfort.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hpcmips,v 1.7 2000/01/19 16:30:03 tsutsui Exp $
d34 1
a34 1
STRIPPROG?=strip
d118 2
a119 2
		echo ${STRIPPROG} ${STRIPFLAGS} -o $@@ $@@.gdb; \
		${STRIPPROG} ${STRIPFLAGS} -o $@@ $@@.gdb
@


1.7
log
@STRIP -> STRIPPROG
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hpcmips,v 1.6 2000/01/13 05:32:41 shin Exp $
d190 2
@


1.6
log
@change '-G 32' to '-G 30' to avoid overflow(TX3912).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hpcmips,v 1.5 2000/01/09 07:57:43 shin Exp $
d34 1
a34 1
STRIP?=	strip
d117 3
a119 2
		echo cp $@@ $@@.gdb; rm -f $@@.gdb; cp $@@ $@@.gdb; \
		echo ${STRIP} ${STRIPFLAGS} $@@; ${STRIP} ${STRIPFLAGS} $@@
@


1.5
log
@add options for sysinst (memory disk size etc.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hpcmips,v 1.4 2000/01/01 04:46:22 shin Exp $
d55 1
a55 1
GP?=		-G 32
@


1.4
log
@Change COPTS to "-Os -mmemcpy" for size reduction.
Suggested by Simon Burge.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hpcmips,v 1.3 2000/01/01 02:15:38 shin Exp $
d106 1
a106 1
SYSTEM_OBJ+=    fp.o param.o ioconf.o ${OBJS} ${LIBKERN} ${LIBCOMPAT}
d174 1
a174 1
SRCS=	${MIPS}/mips/locore.S ${MIPS}/mips/fp.S \
d179 1
a179 1
	${MKDEP} ${AFLAGS} ${CPPFLAGS} ${MIPS}/mips/locore.S ${MIPS}/mips/fp.S
a212 3
	${NORMAL_S}

fp.o: ${MIPS}/mips/fp.S assym.h
@


1.3
log
@compile kernel with
	-mips2 -G 32
for size reduction. Suggested by Castor Fu.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hpcmips,v 1.2 1999/11/21 07:04:31 uch Exp $
d37 1
a37 1
COPTS?=	-O2
@


1.2
log
@TX3912/3922 support
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hpcmips,v 1.1.1.1 1999/09/16 12:23:18 takemura Exp $
d55 1
a55 1
GP?=		-G 0
d97 1
a97 1
.if !empty(IDENT:M-DMIPS1)
d100 1
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
#	$NetBSD: $
d98 2
@


1.1.1.1
log
@Import NetBSD/hpcmips source files from hpcmips repository.
file list:
        sys/arch/hpcmips/
        distrib/hpcmips/
        etc/etc.hpcmips/
        lib/libc/arch/mips/fplib/
        lib/libc/arch/mips/fplib/Makefile.inc
        lib/libc/arch/mips/fplib/environment.h
        lib/libc/arch/mips/fplib/fplib_glue.c
        lib/libc/arch/mips/fplib/fplib_libc.c
        lib/libc/arch/mips/fplib/hpcmips-gcc.h
        lib/libc/arch/mips/fplib/softfloat-macros.h
        lib/libc/arch/mips/fplib/softfloat-specialize.h
        lib/libc/arch/mips/fplib/softfloat.c
        lib/libc/arch/mips/fplib/softfloat.h
        lib/libc/arch/mips/gen/ieee.h
        lib/libc/arch/mips/gen/sf_fabs.c
        lib/libc/arch/mips/gen/sf_flt_rounds.c
        lib/libc/arch/mips/gen/sf_fpgetmask.c
        lib/libc/arch/mips/gen/sf_fpgetround.c
        lib/libc/arch/mips/gen/sf_fpgetsticky.c
        lib/libc/arch/mips/gen/sf_fpsetmask.c
        lib/libc/arch/mips/gen/sf_fpsetround.c
        lib/libc/arch/mips/gen/sf_fpsetsticky.c
        lib/libc/arch/mips/gen/sf_isinf.c
        lib/libc/arch/mips/gen/sf_ldexp.c
        lib/libc/arch/mips/gen/sf_modf.c
@
text
@@


1.1.1.1.2.1
log
@Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hpcmips,v 1.18 2000/05/21 02:50:11 soren Exp $
d24 3
a26 7
#BINDIR=	/usr/pkg/mipsel-netbsd/bin/mipsel-netbsd-
MACHINE=hpcmips
MACHINE_ARCH=mipsel

AR?=	${BINDIR}ar
AS?=	${BINDIR}as
CC?=	${BINDIR}gcc
d28 1
a28 1
LD?=	${BINDIR}ld
d31 4
a34 4
NM?=	${BINDIR}nm
RANLIB?=	${BINDIR}ranlib
SIZE?=	${BINDIR}size
STRIP?=	${BINDIR}strip
d37 1
a37 1
COPTS?=	-Os -mmemcpy
d47 1
a47 1
HAVE_EGCS!=	${CC} --version | egrep "^(2\.[89]|egcs)" ; echo 
d50 1
a50 1
CWARNFLAGS?=	-Werror -Wall  -Wstrict-prototypes -Wmissing-prototypes \
d52 1
a52 4
# XXX Delete -Wuninitialized for now, since the compiler doesn't
# XXX always get it right.  --thorpej 
CWARNFLAGS+=	-Wno-uninitialized
.if (${HAVE_EGCS} != "")
d55 1
a55 1
GP?=		-G 20
d59 1
a59 2
LINKFLAGS=	-Ttext 0x80030000 -T ${MIPS}/conf/kern.ldscript.le \
		-e start ${GP}
a61 2
%INCLUDES

a96 3
# VR4100/TX3900 core supports pipeline interlock & branch likely instruction
CFLAGS+= -mips2
AFLAGS+= -mips2
d103 1
a103 1
SYSTEM_OBJ+=    param.o ioconf.o ${OBJS} ${LIBKERN} ${LIBCOMPAT}
d114 2
a115 3
		echo mv -f $@@ $@@.gdb; mv -f $@@ $@@.gdb; \
		echo ${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb; \
		${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb
d171 1
a171 1
SRCS=	${MIPS}/mips/locore.S \
d176 3
a178 3
	CC="${CC}" ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${MIPS}/mips/locore.S
	CC="${CC}" ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${HPCMIPS}/hpcmips/locore_machdep.S 
	CC="${CC}" ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
d180 1
a180 1
	CC="${CC}" ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
d182 1
a182 1
	CC="${CC}" sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \
a186 2
dependall: depend all

d212 3
a216 12

# The install target can be redefined by putting a
# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
MACHINE_NAME!=  uname -n
install: install-kernel-${MACHINE_NAME}
.if !target(install-kernel-${MACHINE_NAME}})
install-kernel-${MACHINE_NAME}:
	rm -f /onetbsd
	ln /netbsd /onetbsd
	cp netbsd /nnetbsd
	mv /nnetbsd /netbsd
.endif
@


1.1.1.1.2.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hpcmips,v 1.1.1.1.2.1 2000/11/20 20:45:44 bouyer Exp $
@


1.1.1.1.8.1
log
@Pull up to last week's -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hpcmips,v 1.2 1999/11/21 07:04:31 uch Exp $
a97 2
CFLAGS+= -mips2
AFLAGS+= -mips2
@

