head	1.21;
access;
symbols
	perseant-exfatfs-base-20250801:1.21
	perseant-exfatfs-base-20240630:1.21
	perseant-exfatfs:1.21.0.36
	perseant-exfatfs-base:1.21
	bouyer-sunxi-drm:1.21.0.34
	bouyer-sunxi-drm-base:1.21
	cjep_sun2x:1.21.0.32
	cjep_sun2x-base:1.21
	cjep_staticlib_x-base1:1.21
	cjep_staticlib_x:1.21.0.30
	cjep_staticlib_x-base:1.21
	thorpej-futex-base:1.21
	bouyer-xenpvh-base2:1.21
	phil-wifi-20200421:1.21
	bouyer-xenpvh-base1:1.21
	phil-wifi-20200411:1.21
	bouyer-xenpvh:1.21.0.28
	bouyer-xenpvh-base:1.21
	phil-wifi-20200406:1.21
	ad-namecache-base3:1.21
	ad-namecache-base2:1.21
	ad-namecache-base1:1.21
	ad-namecache:1.21.0.26
	ad-namecache-base:1.21
	isaki-audio2:1.21.0.24
	isaki-audio2-base:1.21
	pgoyette-compat-merge-20190127:1.21
	pgoyette-compat-20190127:1.21
	pgoyette-compat-20190118:1.21
	pgoyette-compat-1226:1.21
	pgoyette-compat-1126:1.21
	pgoyette-compat-1020:1.21
	pgoyette-compat-0930:1.21
	pgoyette-compat-0906:1.21
	pgoyette-compat-0728:1.21
	pgoyette-compat-0625:1.21
	pgoyette-compat-0521:1.21
	pgoyette-compat-0502:1.21
	pgoyette-compat-0422:1.21
	pgoyette-compat-0415:1.21
	pgoyette-compat-0407:1.21
	pgoyette-compat-0330:1.21
	pgoyette-compat-0322:1.21
	pgoyette-compat-0315:1.21
	pgoyette-compat:1.21.0.22
	pgoyette-compat-base:1.21
	perseant-stdc-iso10646:1.21.0.20
	perseant-stdc-iso10646-base:1.21
	prg-localcount2-base3:1.21
	prg-localcount2-base2:1.21
	prg-localcount2-base1:1.21
	prg-localcount2:1.21.0.18
	prg-localcount2-base:1.21
	pgoyette-localcount-20170426:1.21
	bouyer-socketcan-base1:1.21
	pgoyette-localcount-20170320:1.21
	bouyer-socketcan:1.21.0.16
	bouyer-socketcan-base:1.21
	pgoyette-localcount-20170107:1.21
	pgoyette-localcount-20161104:1.21
	localcount-20160914:1.21
	pgoyette-localcount-20160806:1.21
	pgoyette-localcount-20160726:1.21
	pgoyette-localcount:1.21.0.14
	pgoyette-localcount-base:1.21
	netbsd-5-2-3-RELEASE:1.13
	netbsd-5-1-5-RELEASE:1.13
	yamt-pagecache-base9:1.21
	yamt-pagecache-tag8:1.21
	tls-earlyentropy:1.21.0.12
	tls-earlyentropy-base:1.21
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.21
	riastradh-drm2-base3:1.21
	netbsd-5-2-2-RELEASE:1.13
	netbsd-5-1-4-RELEASE:1.13
	netbsd-5-2-1-RELEASE:1.13
	netbsd-5-1-3-RELEASE:1.13
	rmind-smpnet-nbase:1.21
	rmind-smpnet:1.21.0.8
	rmind-smpnet-base:1.21
	agc-symver:1.21.0.10
	agc-symver-base:1.21
	tls-maxphys-base:1.21
	yamt-pagecache-base8:1.21
	netbsd-5-2:1.13.0.20
	yamt-pagecache-base7:1.21
	netbsd-5-2-RELEASE:1.13
	netbsd-5-2-RC1:1.13
	yamt-pagecache-base6:1.21
	yamt-pagecache-base5:1.21
	yamt-pagecache-base4:1.21
	netbsd-5-1-2-RELEASE:1.13
	netbsd-5-1-1-RELEASE:1.13
	jmcneill-usbmp:1.21.0.6
	jmcneill-usbmp-base:1.21
	jmcneill-audiomp3:1.21.0.4
	jmcneill-audiomp3-base:1.21
	yamt-pagecache-base3:1.21
	yamt-pagecache-base2:1.21
	yamt-pagecache:1.21.0.2
	yamt-pagecache-base:1.21
	rmind-uvmplock-nbase:1.21
	jym-xensuspend-nbase:1.21
	bouyer-quota2-nbase:1.21
	bouyer-quota2:1.20.0.4
	bouyer-quota2-base:1.21
	jruoho-x86intr:1.20.0.2
	jruoho-x86intr-base:1.20
	matt-mips64-premerge-20101231:1.20
	matt-nb5-mips64-premerge-20101231:1.13
	matt-nb5-pq3:1.13.0.18
	matt-nb5-pq3-base:1.13
	netbsd-5-1:1.13.0.16
	uebayasi-xip-base6:1.20
	uebayasi-xip-base5:1.20
	netbsd-5-1-RELEASE:1.13
	uebayasi-xip-base4:1.20
	uebayasi-xip-base3:1.20
	yamt-nfs-mp-base11:1.20
	netbsd-5-1-RC4:1.13
	matt-nb5-mips64-k15:1.13
	uebayasi-xip-base2:1.20
	yamt-nfs-mp-base10:1.20
	netbsd-5-1-RC3:1.13
	netbsd-5-1-RC2:1.13
	uebayasi-xip-base1:1.15
	netbsd-5-1-RC1:1.13
	rmind-uvmplock:1.15.0.4
	rmind-uvmplock-base:1.21
	yamt-nfs-mp-base9:1.15
	uebayasi-xip:1.15.0.2
	uebayasi-xip-base:1.15
	netbsd-5-0-2-RELEASE:1.13
	matt-nb5-mips64-premerge-20091211:1.13
	matt-premerge-20091211:1.15
	yamt-nfs-mp-base8:1.15
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.13
	matt-nb4-mips64-k7-u2a-k9b:1.13
	matt-nb5-mips64-u1-k1-k5:1.13
	yamt-nfs-mp-base7:1.15
	matt-nb5-mips64:1.13.0.14
	netbsd-5-0-1-RELEASE:1.13
	jymxensuspend-base:1.15
	yamt-nfs-mp-base6:1.14
	yamt-nfs-mp-base5:1.14
	yamt-nfs-mp-base4:1.14
	yamt-nfs-mp-base3:1.14
	nick-hppapmap-base4:1.14
	nick-hppapmap-base3:1.14
	netbsd-5-0:1.13.0.12
	netbsd-5-0-RELEASE:1.13
	netbsd-5-0-RC4:1.13
	netbsd-5-0-RC3:1.13
	nick-hppapmap-base2:1.14
	netbsd-5-0-RC2:1.13
	jym-xensuspend:1.14.0.2
	jym-xensuspend-base:1.21
	netbsd-5-0-RC1:1.13
	haad-dm-base2:1.13
	haad-nbase2:1.13
	ad-audiomp2:1.13.0.10
	ad-audiomp2-base:1.13
	netbsd-5:1.13.0.8
	netbsd-5-base:1.13
	nick-hppapmap:1.13.0.6
	nick-hppapmap-base:1.14
	matt-mips64-base2:1.13
	haad-dm-base1:1.13
	wrstuden-revivesa-base-4:1.13
	wrstuden-revivesa-base-3:1.13
	wrstuden-revivesa-base-2:1.13
	haad-dm:1.13.0.4
	haad-dm-base:1.13
	wrstuden-revivesa-base-1:1.13
	simonb-wapbl-nbase:1.13
	yamt-pf42-base4:1.13
	simonb-wapbl:1.13.0.2
	simonb-wapbl-base:1.13
	yamt-pf42-base3:1.13
	hpcarm-cleanup-nbase:1.12
	yamt-pf42-baseX:1.11
	yamt-pf42-base2:1.12
	yamt-nfs-mp-base2:1.12
	wrstuden-revivesa:1.11.0.6
	wrstuden-revivesa-base:1.13
	yamt-nfs-mp:1.11.0.4
	yamt-nfs-mp-base:1.11
	yamt-pf42:1.11.0.2
	yamt-pf42-base:1.11
	ad-socklock-base1:1.6
	yamt-lazymbuf-base15:1.6
	yamt-lazymbuf-base14:1.6
	keiichi-mipv6-nbase:1.6
	mjf-devfs2:1.6.0.6
	mjf-devfs2-base:1.14
	nick-net80211-sync:1.6.0.4
	nick-net80211-sync-base:1.6
	keiichi-mipv6:1.6.0.2
	keiichi-mipv6-base:1.6
	bouyer-xeni386-merge1:1.5.6.1
	matt-armv6-prevmlocking:1.4.4.2
	vmlocking2-base3:1.6
	bouyer-xeni386-nbase:1.6
	yamt-kmem-base3:1.6
	cube-autoconf:1.5.0.8
	cube-autoconf-base:1.5
	yamt-kmem-base2:1.5
	bouyer-xeni386:1.5.0.6
	bouyer-xeni386-base:1.6
	yamt-kmem:1.5.0.4
	yamt-kmem-base:1.5
	vmlocking2-base2:1.5
	reinoud-bufcleanup-nbase:1.5
	reinoud-bufcleanup-base:1.5
	vmlocking2:1.5.0.2
	vmlocking2-base1:1.5
	matt-armv6-nbase:1.6
	matt-armv6-base:1.6
	matt-armv6:1.4.0.4
	jmcneill-base:1.4
	mjf-devfs:1.4.0.2
	mjf-devfs-base:1.6
	yamt-lazymbuf:1.2.0.4
	bouyer-xenamd64-base2:1.4
	vmlocking:1.2.0.2
	vmlocking-nbase:1.5
	yamt-x86pmap-base4:1.2
	bouyer-xenamd64:1.1.0.10
	bouyer-xenamd64-base:1.4
	yamt-x86pmap-base3:1.1
	yamt-x86pmap-base2:1.1
	yamt-x86pmap:1.1.0.8
	yamt-x86pmap-base:1.1
	jmcneill-pm:1.1.0.6
	jmcneill-pm-base:1.5
	hpcarm-cleanup:1.1.0.4
	hpcarm-cleanup-base:1.6
	mjf-ufs-trans-base:1.1
	ppcoea-renovation-base:1.1
	vmlocking-base:1.1
	ppcoea-renovation:1.1.0.2;
locks; strict;
comment	@# @;


1.21
date	2011.01.23.01.05.30;	author nisimura;	state dead;
branches;
next	1.20;

1.20
date	2010.06.26.21.45.49;	author phx;	state Exp;
branches
	1.20.2.1
	1.20.4.1;
next	1.19;

1.19
date	2010.05.27.06.58.15;	author dholland;	state Exp;
branches;
next	1.18;

1.18
date	2010.05.19.15.05.58;	author phx;	state Exp;
branches;
next	1.17;

1.17
date	2010.05.17.17.50.08;	author phx;	state Exp;
branches;
next	1.16;

1.16
date	2010.05.02.13.31.14;	author phx;	state Exp;
branches;
next	1.15;

1.15
date	2009.07.20.11.43.08;	author nisimura;	state Exp;
branches
	1.15.2.1
	1.15.4.1;
next	1.14;

1.14
date	2009.01.12.08.06.54;	author tsutsui;	state Exp;
branches;
next	1.13;

1.13
date	2008.05.31.01.43.57;	author nisimura;	state Exp;
branches
	1.13.6.1;
next	1.12;

1.12
date	2008.05.14.23.14.11;	author nisimura;	state Exp;
branches;
next	1.11;

1.11
date	2008.04.07.15.46.25;	author nisimura;	state Exp;
branches
	1.11.2.1
	1.11.4.1
	1.11.6.1;
next	1.10;

1.10
date	2008.04.07.14.55.24;	author nisimura;	state Exp;
branches;
next	1.9;

1.9
date	2008.04.07.13.25.31;	author nisimura;	state Exp;
branches;
next	1.8;

1.8
date	2008.04.07.11.13.14;	author nisimura;	state Exp;
branches;
next	1.7;

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

1.6
date	2007.12.12.04.17.49;	author nisimura;	state Exp;
branches
	1.6.6.1;
next	1.5;

1.5
date	2007.11.29.04.00.17;	author nisimura;	state Exp;
branches
	1.5.2.1
	1.5.4.1
	1.5.6.1;
next	1.4;

1.4
date	2007.11.05.13.41.48;	author nisimura;	state Exp;
branches
	1.4.2.1
	1.4.4.1;
next	1.3;

1.3
date	2007.10.30.00.30.13;	author nisimura;	state Exp;
branches;
next	1.2;

1.2
date	2007.10.17.19.57.00;	author garbled;	state Exp;
branches
	1.2.2.1
	1.2.4.1;
next	1.1;

1.1
date	2007.06.02.08.44.35;	author nisimura;	state dead;
branches
	1.1.2.1
	1.1.6.1
	1.1.8.1;
next	;

1.20.2.1
date	2011.06.06.09.06.36;	author jruoho;	state dead;
branches;
next	;

1.20.4.1
date	2011.02.08.16.19.37;	author bouyer;	state dead;
branches;
next	;

1.15.2.1
date	2010.08.17.06.45.08;	author uebayasi;	state Exp;
branches;
next	;

1.15.4.1
date	2010.05.30.05.17.05;	author rmind;	state Exp;
branches;
next	1.15.4.2;

1.15.4.2
date	2010.07.03.01.19.26;	author rmind;	state Exp;
branches;
next	1.15.4.3;

1.15.4.3
date	2011.03.05.20.51.48;	author rmind;	state dead;
branches;
next	;

1.13.6.1
date	2009.01.19.13.16.38;	author skrll;	state Exp;
branches;
next	;

1.11.2.1
date	2008.05.18.12.32.42;	author yamt;	state Exp;
branches;
next	1.11.2.2;

1.11.2.2
date	2008.06.04.02.04.52;	author yamt;	state Exp;
branches;
next	;

1.11.4.1
date	2008.05.16.02.23.05;	author yamt;	state Exp;
branches;
next	1.11.4.2;

1.11.4.2
date	2009.05.04.08.11.47;	author yamt;	state Exp;
branches;
next	1.11.4.3;

1.11.4.3
date	2009.08.19.18.46.44;	author yamt;	state Exp;
branches;
next	1.11.4.4;

1.11.4.4
date	2010.08.11.22.52.39;	author yamt;	state Exp;
branches;
next	;

1.11.6.1
date	2008.06.23.04.30.38;	author wrstuden;	state Exp;
branches;
next	;

1.6.6.1
date	2008.06.02.13.22.36;	author mjf;	state Exp;
branches;
next	1.6.6.2;

1.6.6.2
date	2009.01.17.13.28.27;	author mjf;	state Exp;
branches;
next	;

1.5.2.1
date	2007.12.26.19.42.41;	author ad;	state Exp;
branches;
next	;

1.5.4.1
date	2007.12.13.05.05.22;	author yamt;	state Exp;
branches;
next	;

1.5.6.1
date	2007.12.13.21.54.59;	author bouyer;	state Exp;
branches;
next	;

1.4.2.1
date	2007.12.08.18.17.43;	author mjf;	state Exp;
branches;
next	1.4.2.2;

1.4.2.2
date	2007.12.27.00.43.16;	author mjf;	state Exp;
branches;
next	;

1.4.4.1
date	2007.11.05.13.41.48;	author matt;	state dead;
branches;
next	1.4.4.2;

1.4.4.2
date	2007.11.06.23.21.31;	author matt;	state Exp;
branches;
next	1.4.4.3;

1.4.4.3
date	2008.01.09.01.48.37;	author matt;	state Exp;
branches;
next	;

1.2.2.1
date	2007.10.17.19.57.00;	author ad;	state dead;
branches;
next	1.2.2.2;

1.2.2.2
date	2007.10.23.20.36.31;	author ad;	state Exp;
branches;
next	1.2.2.3;

1.2.2.3
date	2007.12.03.18.38.39;	author ad;	state Exp;
branches;
next	;

1.2.4.1
date	2007.10.17.19.57.00;	author yamt;	state dead;
branches;
next	1.2.4.2;

1.2.4.2
date	2007.10.27.11.28.22;	author yamt;	state Exp;
branches;
next	1.2.4.3;

1.2.4.3
date	2007.11.15.11.43.19;	author yamt;	state Exp;
branches;
next	1.2.4.4;

1.2.4.4
date	2007.12.07.17.26.00;	author yamt;	state Exp;
branches;
next	1.2.4.5;

1.2.4.5
date	2008.01.21.09.39.09;	author yamt;	state Exp;
branches;
next	;

1.1.2.1
date	2007.06.02.08.44.36;	author nisimura;	state Exp;
branches;
next	;

1.1.6.1
date	2007.10.31.23.14.00;	author joerg;	state Exp;
branches;
next	1.1.6.2;

1.1.6.2
date	2007.11.06.19.25.07;	author joerg;	state Exp;
branches;
next	1.1.6.3;

1.1.6.3
date	2007.12.03.16.14.08;	author joerg;	state Exp;
branches;
next	;

1.1.8.1
date	2007.10.18.08.33.02;	author yamt;	state Exp;
branches;
next	;


desc
@@


1.21
log
@change bootloader name to "altboot".  bump version and add README.
@
text
@#	$NetBSD: Makefile,v 1.20 2010/06/26 21:45:49 phx Exp $

S=		${.CURDIR}/../../../..

PROG=		netboot
SRCS=		entry.S main.c brdsetup.c pci.c devopen.c dev_net.c nif.c \
		fxp.c tlp.c rge.c skg.c dsk.c pciide.c siisata.c printf.c
CLEANFILES+=	vers.c vers.o ${PROG} ${PROG}.bin
CFLAGS+=	-Wall -Wno-main -ffreestanding -msoft-float -mmultiple
CFLAGS+=	-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
CPPFLAGS+=	-D_STANDALONE -DSUPPORT_DHCP
#CPPFLAGS+=	-DCONSNAME=\"com\" -DCONSPORT=0x3f8 -DCONSSPEED=115200
#CPPFLAGS+=	-DCONSNAME=\"eumb\" -DCONSPORT=0x4600 -DCONSSPEED=57600
CPPFLAGS+=	-nostdinc -I. -I${.OBJDIR} -I${S}
DBG=		-Os

# XXX SHOULD NOT NEED TO DEFINE THESE!
LIBCRT0=
LIBC=
LIBCRTBEGIN=
LIBCRTEND=

NOMAN=		# defined
STRIPFLAG=
BINMODE=	444

RELOC=		1000000
ENTRY=		_start


.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
	@@[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine
	@@[ -h powerpc ] || ln -s ${S}/arch/powerpc/include powerpc
.NOPATH: machine powerpc
.endif
CLEANFILES+= machine powerpc

### find out what to use for libkern
KERN_AS=	library
.include "${S}/lib/libkern/Makefile.inc"
LIBKERN=	${KERNLIB}

### find out what to use for libz
Z_AS=		library
.include "${S}/lib/libz/Makefile.inc"
LIBZ=		${ZLIB}

### find out what to use for libsa
SA_AS=		library
SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
.include "${S}/lib/libsa/Makefile.inc"
LIBSA=		${SALIB}

${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${HOST_SH} ${.CURDIR}/newvers.sh ${.CURDIR}/version
	${CC} -c vers.c
	${LD} -N -Ttext ${RELOC} -Bstatic -e ${ENTRY} -o ${PROG} \
	    ${OBJS} vers.o ${LIBSA} ${LIBZ} ${LIBKERN}
	${OBJCOPY} -S -O binary ${.TARGET} ${.TARGET}.bin

.include <bsd.prog.mk>

cleandir distclean: .WAIT cleanlibdir

cleanlibdir:
	-rm -rf lib
@


1.20
log
@- add IDE/SATA diskboot facility
known ok with KuroBox PCIIDE, need more debug on SiI3512 SATA
which fails reading sectors from a drive.

- now capable of TFTP loading

Code submitted by Toru Nishimura.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2010/05/27 06:58:15 dholland Exp $
@


1.20.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2010/06/26 21:45:49 phx Exp $
@


1.20.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2010/06/26 21:45:49 phx Exp $
@


1.19
log
@Introduce .WAIT into the cleandir rule for blasting the libsa/libkern/etc.
trees, because it can race with the libsa/libkern/etc. makefiles' own
cleandir rules. I think I've found all of the uses of the offending idiom...
Closes PR 43360.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2010/05/19 15:05:58 phx Exp $
d7 1
a7 1
		fxp.c tlp.c rge.c skg.c printf.c
@


1.18
log
@Implemented support for boot arguments.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2010/05/17 17:50:08 phx Exp $
d64 1
a64 1
cleandir distclean: cleanlibdir
@


1.17
log
@CPPFLAGS cleanup, submited by Toru Nishimura.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2010/05/02 13:31:14 phx Exp $
a13 1
#CPPFLAGS+=	-DSTART_DDB_SESSION
@


1.16
log
@Add support for Qnap TS101 (untested) and Synology-DS boards.
Detect Synology SATAlink device (although still unused).
New skg driver for Marvell SKnet Yukon-lite based GbE, used on most DS boards.
As there is no documentation available, it was based on if_sk.c, with lots
of testing. Known problem: The MAC address on my DS-101g+ is always read
as 00:11:22:33:44:54, but sk(4) unfortunately has the same problem.
New allocaligned() function to replace non-working ALLOC() macros.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2009/07/20 11:43:08 nisimura Exp $
d12 1
a12 1
CPPFLAGS+=	-DCONSNAME=\"com\" -DCONSPORT=0x3f8 -DCONSSPEED=115200
a13 1
#CPPFLAGS+=	-DTICKS_PER_SEC=(133333333/4)
@


1.15
log
@- fix rge.c breakage.
- stand/netboot is reported working for KuroBox and TeraStatation.
Some more fixes will follow.
- withdraw files which remain work-in-progress for now.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2009/01/12 08:06:54 tsutsui Exp $
d7 1
a7 1
		fxp.c tlp.c rge.c printf.c
@


1.15.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD$
d7 1
a7 1
		fxp.c tlp.c rge.c skg.c dsk.c pciide.c siisata.c printf.c
d12 1
a12 1
#CPPFLAGS+=	-DCONSNAME=\"com\" -DCONSPORT=0x3f8 -DCONSSPEED=115200
d14 2
d66 1
a66 1
cleandir distclean: .WAIT cleanlibdir
@


1.15.4.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2009/07/20 11:43:08 nisimura Exp $
d7 1
a7 1
		fxp.c tlp.c rge.c skg.c printf.c
d12 1
a12 1
#CPPFLAGS+=	-DCONSNAME=\"com\" -DCONSPORT=0x3f8 -DCONSSPEED=115200
d14 2
d66 1
a66 1
cleandir distclean: .WAIT cleanlibdir
@


1.15.4.2
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15.4.1 2010/05/30 05:17:05 rmind Exp $
d7 1
a7 1
		fxp.c tlp.c rge.c skg.c dsk.c pciide.c siisata.c printf.c
@


1.15.4.3
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15.4.2 2010/07/03 01:19:26 rmind Exp $
@


1.14
log
@Enable and fix prototype warnings.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2008/05/31 01:43:57 nisimura Exp $
d7 1
a7 2
		fxp.c tlp.c pcn.c sip.c nvt.c kse.c sme.c rge.c vge.c wm.c \
		atawd.c pciide.c siisata.c printf.c
@


1.13
log
@- add two more PCI NICs to code heap; SMsC LAN9420 (sme.c) and
Micrel KSZ8841/8842 (kse.c).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2008/05/14 23:14:11 nisimura Exp $
d11 1
d17 1
a17 1
CPPFLAGS+=	-Wall -nostdinc -I. -I${.OBJDIR} -I${S}
@


1.13.6.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2009/01/12 08:06:54 tsutsui Exp $
a10 1
CFLAGS+=	-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
d16 1
a16 1
CPPFLAGS+=	-nostdinc -I. -I${.OBJDIR} -I${S}
@


1.12
log
@- cut half main.c and have brdsetup.c for cpu/board specifics.
- introduce match() routine to stylise the way to pickup a PCI
  device driver.
- fix tlp.c error in the previous commit.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2008/04/07 15:46:25 nisimura Exp $
d7 1
a7 1
		fxp.c tlp.c pcn.c sip.c nvt.c rge.c vge.c wm.c \
@


1.11
log
@- accomodation for the case when TICK_PER_SEC is other than 100MHz.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2008/04/07 14:55:24 nisimura Exp $
d6 1
a6 1
SRCS=		entry.S main.c pci.c devopen.c dev_net.c nif.c \
@


1.11.6.1
log
@Sync w/ -current. 34 merge conflicts to follow.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2008/04/07 15:46:25 nisimura Exp $
d6 2
a7 2
SRCS=		entry.S main.c brdsetup.c pci.c devopen.c dev_net.c nif.c \
		fxp.c tlp.c pcn.c sip.c nvt.c kse.c sme.c rge.c vge.c wm.c \
@


1.11.2.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2008/04/07 15:46:25 nisimura Exp $
d6 1
a6 1
SRCS=		entry.S main.c brdsetup.c pci.c devopen.c dev_net.c nif.c \
@


1.11.2.2
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11.2.1 2008/05/18 12:32:42 yamt Exp $
d7 1
a7 1
		fxp.c tlp.c pcn.c sip.c nvt.c kse.c sme.c rge.c vge.c wm.c \
@


1.11.4.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2008/04/07 15:46:25 nisimura Exp $
d6 1
a6 1
SRCS=		entry.S main.c brdsetup.c pci.c devopen.c dev_net.c nif.c \
@


1.11.4.2
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11.4.1 2008/05/16 02:23:05 yamt Exp $
d7 1
a7 1
		fxp.c tlp.c pcn.c sip.c nvt.c kse.c sme.c rge.c vge.c wm.c \
a10 1
CFLAGS+=	-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
d16 1
a16 1
CPPFLAGS+=	-nostdinc -I. -I${.OBJDIR} -I${S}
@


1.11.4.3
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11.4.2 2009/05/04 08:11:47 yamt Exp $
d7 2
a8 1
		fxp.c tlp.c rge.c printf.c
@


1.11.4.4
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11.4.3 2009/08/19 18:46:44 yamt Exp $
d7 1
a7 1
		fxp.c tlp.c rge.c skg.c dsk.c pciide.c siisata.c printf.c
d12 1
a12 1
#CPPFLAGS+=	-DCONSNAME=\"com\" -DCONSPORT=0x3f8 -DCONSSPEED=115200
d14 2
d66 1
a66 1
cleandir distclean: .WAIT cleanlibdir
@


1.10
log
@- refer to how to use 57600bps console on the 2nd EUMB serial case.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2008/04/07 13:25:31 nisimura Exp $
d14 1
@


1.9
log
@- add siisata.c in Makefile.
- use DEVTOV() to highlight vtophys() issue.
- VIA NICs do not stretch less than 60 octet frames.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2008/04/07 11:13:14 nisimura Exp $
d13 1
a13 1
#CPPFLAGS+=	-DCONSNAME=\"eumb\" -DCONSPORT=0x4500 -DCONSSPEED=115200
@


1.8
log
@add PCIIDE functionality which should cover cmdide, iteide, viaide and
slide.  Still not in working order.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2008/04/05 07:33:00 tsutsui Exp $
d8 1
a8 1
		atawd.c pciide.c printf.c
@


1.7
log
@- fix build with OBJDIR
- clean more generated files
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2007/12/12 04:17:49 nisimura Exp $
d7 2
a8 1
		fxp.c tlp.c pcn.c sip.c nvt.c rge.c vge.c wm.c printf.c
@


1.6
log
@have a compile time option, START_DDB_SESSION, to invoke immediate
DDB session in mid initppc().
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2007/11/29 04:00:17 nisimura Exp $
d8 1
a8 1
CLEANFILES+=	vers.c ${PROG} ${PROG}.bin
d14 1
a14 1
CPPFLAGS+=	-Wall -nostdinc -I. -I${S}
d30 2
d33 4
a36 3
	@@[ -h machine ] || ln -s ../../../${MACHINE}/include machine
	@@[ -h powerpc ] || ln -s ../../../powerpc/include powerpc
.NOPATH: machine arm
d56 1
a56 1
	${HOST_SH} ./newvers.sh ${.CURDIR}/version
d63 5
@


1.6.6.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD$
d6 3
a8 4
SRCS=		entry.S main.c brdsetup.c pci.c devopen.c dev_net.c nif.c \
		fxp.c tlp.c pcn.c sip.c nvt.c kse.c sme.c rge.c vge.c wm.c \
		atawd.c pciide.c siisata.c printf.c
CLEANFILES+=	vers.c vers.o ${PROG} ${PROG}.bin
d12 1
a12 2
#CPPFLAGS+=	-DCONSNAME=\"eumb\" -DCONSPORT=0x4600 -DCONSSPEED=57600
#CPPFLAGS+=	-DTICKS_PER_SEC=(133333333/4)
d14 1
a14 1
CPPFLAGS+=	-Wall -nostdinc -I. -I${.OBJDIR} -I${S}
a29 2

.if !make(obj) && !make(clean) && !make(cleandir)
d31 3
a33 4
	@@[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine
	@@[ -h powerpc ] || ln -s ${S}/arch/powerpc/include powerpc
.NOPATH: machine powerpc
.endif
d53 1
a53 1
	${HOST_SH} ${.CURDIR}/newvers.sh ${.CURDIR}/version
a59 5

cleandir distclean: cleanlibdir

cleanlibdir:
	-rm -rf lib
@


1.6.6.2
log
@Sync with HEAD.
@
text
@a10 1
CFLAGS+=	-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
d16 1
a16 1
CPPFLAGS+=	-nostdinc -I. -I${.OBJDIR} -I${S}
@


1.5
log
@add preliminary wm.c, a lot of fixes to make other NIC more sensible.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2007/11/05 13:41:48 nisimura Exp $
d13 1
a13 1
#CPPFLAGS+=	-DDEBUG
@


1.5.2.1
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2007/12/12 04:17:49 nisimura Exp $
d13 1
a13 1
#CPPFLAGS+=	-DSTART_DDB_SESSION
@


1.5.6.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD$
d13 1
a13 1
#CPPFLAGS+=	-DSTART_DDB_SESSION
@


1.5.4.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2007/11/29 04:00:17 nisimura Exp $
d13 1
a13 1
#CPPFLAGS+=	-DSTART_DDB_SESSION
@


1.4
log
@- use offset 0x4500 serial for EUMB console.
- make sure to have I-cache/D-cache enabled. Ok for DINK32 and ppcboot.
- have 32B aligned fxp txdesc.
- sip transmit now works.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2007/10/30 00:30:13 nisimura Exp $
d7 1
a7 1
		fxp.c tlp.c pcn.c sip.c nvt.c rge.c vge.c printf.c vers.c
d52 1
a52 2
.PHONY: vers.c
vers.c: version
d54 1
a54 2

${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
d56 1
a56 1
	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
@


1.4.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2007/11/29 04:00:17 nisimura Exp $
d7 1
a7 1
		fxp.c tlp.c pcn.c sip.c nvt.c rge.c vge.c wm.c printf.c
d52 4
a56 2
	${HOST_SH} ./newvers.sh ${.CURDIR}/version
	${CC} -c vers.c
d58 1
a58 1
	    ${OBJS} vers.o ${LIBSA} ${LIBZ} ${LIBKERN}
@


1.4.2.2
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2007/12/12 04:17:49 nisimura Exp $
d13 1
a13 1
#CPPFLAGS+=	-DSTART_DDB_SESSION
@


1.4.4.1
log
@file Makefile was added on branch matt-armv6 on 2007-11-06 23:21:31 +0000
@
text
@d1 61
@


1.4.4.2
log
@sync with HEAD
@
text
@a0 61
#	$NetBSD: Makefile,v 1.4 2007/11/05 13:41:48 nisimura Exp $

S=		${.CURDIR}/../../../..

PROG=		netboot
SRCS=		entry.S main.c pci.c devopen.c dev_net.c nif.c \
		fxp.c tlp.c pcn.c sip.c nvt.c rge.c vge.c printf.c vers.c
CLEANFILES+=	vers.c ${PROG} ${PROG}.bin
CFLAGS+=	-Wall -Wno-main -ffreestanding -msoft-float -mmultiple
CPPFLAGS+=	-D_STANDALONE -DSUPPORT_DHCP
CPPFLAGS+=	-DCONSNAME=\"com\" -DCONSPORT=0x3f8 -DCONSSPEED=115200
#CPPFLAGS+=	-DCONSNAME=\"eumb\" -DCONSPORT=0x4500 -DCONSSPEED=115200
#CPPFLAGS+=	-DDEBUG
CPPFLAGS+=	-Wall -nostdinc -I. -I${S}
DBG=		-Os

# XXX SHOULD NOT NEED TO DEFINE THESE!
LIBCRT0=
LIBC=
LIBCRTBEGIN=
LIBCRTEND=

NOMAN=		# defined
STRIPFLAG=
BINMODE=	444

RELOC=		1000000
ENTRY=		_start

.BEGIN:
	@@[ -h machine ] || ln -s ../../../${MACHINE}/include machine
	@@[ -h powerpc ] || ln -s ../../../powerpc/include powerpc
.NOPATH: machine arm
CLEANFILES+= machine powerpc

### find out what to use for libkern
KERN_AS=	library
.include "${S}/lib/libkern/Makefile.inc"
LIBKERN=	${KERNLIB}

### find out what to use for libz
Z_AS=		library
.include "${S}/lib/libz/Makefile.inc"
LIBZ=		${ZLIB}

### find out what to use for libsa
SA_AS=		library
SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
.include "${S}/lib/libsa/Makefile.inc"
LIBSA=		${SALIB}

.PHONY: vers.c
vers.c: version
	${HOST_SH} ./newvers.sh ${.CURDIR}/version

${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${LD} -N -Ttext ${RELOC} -Bstatic -e ${ENTRY} -o ${PROG} \
	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${OBJCOPY} -S -O binary ${.TARGET} ${.TARGET}.bin

.include <bsd.prog.mk>
@


1.4.4.3
log
@sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4.4.2 2007/11/06 23:21:31 matt Exp $
d7 1
a7 1
		fxp.c tlp.c pcn.c sip.c nvt.c rge.c vge.c wm.c printf.c
d13 1
a13 1
#CPPFLAGS+=	-DSTART_DDB_SESSION
d52 4
a56 2
	${HOST_SH} ./newvers.sh ${.CURDIR}/version
	${CC} -c vers.c
d58 1
a58 1
	    ${OBJS} vers.o ${LIBSA} ${LIBZ} ${LIBKERN}
@


1.3
log
@major PCI rework to make possible NIC autoconf.  now bootloader
can have multiple network interface device drivers and choose one
by PCI_ID_REG matching.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2007/10/17 19:57:00 garbled Exp $
d12 1
a12 1
#CPPFLAGS+=	-DCONSNAME=\"eumb\" -DCONSPORT=0x4600 -DCONSSPEED=115200
@


1.2
log
@Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.2.1 2007/06/02 08:44:36 nisimura Exp $
d6 2
a7 2
SRCS=		entry.S main.c pci.c devopen.c dev_net.c nif_fxp.c fxp.c \
		printf.c vers.c
d14 1
a14 1
CPPFLAGS+=	-nostdinc -I. -I${S}
@


1.2.4.1
log
@file Makefile was added on branch yamt-lazymbuf on 2007-10-27 11:28:22 +0000
@
text
@d1 61
@


1.2.4.2
log
@sync with head.
@
text
@a0 61
#	$NetBSD$

S=		${.CURDIR}/../../../..

PROG=		netboot
SRCS=		entry.S main.c pci.c devopen.c dev_net.c nif_fxp.c fxp.c \
		printf.c vers.c
CLEANFILES+=	vers.c ${PROG} ${PROG}.bin
CFLAGS+=	-Wall -Wno-main -ffreestanding -msoft-float -mmultiple
CPPFLAGS+=	-D_STANDALONE -DSUPPORT_DHCP
CPPFLAGS+=	-DCONSNAME=\"com\" -DCONSPORT=0x3f8 -DCONSSPEED=115200
#CPPFLAGS+=	-DCONSNAME=\"eumb\" -DCONSPORT=0x4600 -DCONSSPEED=115200
#CPPFLAGS+=	-DDEBUG
CPPFLAGS+=	-nostdinc -I. -I${S}
DBG=		-Os

# XXX SHOULD NOT NEED TO DEFINE THESE!
LIBCRT0=
LIBC=
LIBCRTBEGIN=
LIBCRTEND=

NOMAN=		# defined
STRIPFLAG=
BINMODE=	444

RELOC=		1000000
ENTRY=		_start

.BEGIN:
	@@[ -h machine ] || ln -s ../../../${MACHINE}/include machine
	@@[ -h powerpc ] || ln -s ../../../powerpc/include powerpc
.NOPATH: machine arm
CLEANFILES+= machine powerpc

### find out what to use for libkern
KERN_AS=	library
.include "${S}/lib/libkern/Makefile.inc"
LIBKERN=	${KERNLIB}

### find out what to use for libz
Z_AS=		library
.include "${S}/lib/libz/Makefile.inc"
LIBZ=		${ZLIB}

### find out what to use for libsa
SA_AS=		library
SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
.include "${S}/lib/libsa/Makefile.inc"
LIBSA=		${SALIB}

.PHONY: vers.c
vers.c: version
	${HOST_SH} ./newvers.sh ${.CURDIR}/version

${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${LD} -N -Ttext ${RELOC} -Bstatic -e ${ENTRY} -o ${PROG} \
	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${OBJCOPY} -S -O binary ${.TARGET} ${.TARGET}.bin

.include <bsd.prog.mk>
@


1.2.4.3
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2.4.2 2007/10/27 11:28:22 yamt Exp $
d6 2
a7 2
SRCS=		entry.S main.c pci.c devopen.c dev_net.c nif.c \
		fxp.c tlp.c pcn.c sip.c nvt.c rge.c vge.c printf.c vers.c
d12 1
a12 1
#CPPFLAGS+=	-DCONSNAME=\"eumb\" -DCONSPORT=0x4500 -DCONSSPEED=115200
d14 1
a14 1
CPPFLAGS+=	-Wall -nostdinc -I. -I${S}
@


1.2.4.4
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2.4.3 2007/11/15 11:43:19 yamt Exp $
d7 1
a7 1
		fxp.c tlp.c pcn.c sip.c nvt.c rge.c vge.c wm.c printf.c
d52 4
a56 2
	${HOST_SH} ./newvers.sh ${.CURDIR}/version
	${CC} -c vers.c
d58 1
a58 1
	    ${OBJS} vers.o ${LIBSA} ${LIBZ} ${LIBKERN}
@


1.2.4.5
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2.4.4 2007/12/07 17:26:00 yamt Exp $
d13 1
a13 1
#CPPFLAGS+=	-DSTART_DDB_SESSION
@


1.2.2.1
log
@file Makefile was added on branch vmlocking on 2007-10-23 20:36:31 +0000
@
text
@d1 61
@


1.2.2.2
log
@Sync with head.
@
text
@a0 61
#	$NetBSD$

S=		${.CURDIR}/../../../..

PROG=		netboot
SRCS=		entry.S main.c pci.c devopen.c dev_net.c nif_fxp.c fxp.c \
		printf.c vers.c
CLEANFILES+=	vers.c ${PROG} ${PROG}.bin
CFLAGS+=	-Wall -Wno-main -ffreestanding -msoft-float -mmultiple
CPPFLAGS+=	-D_STANDALONE -DSUPPORT_DHCP
CPPFLAGS+=	-DCONSNAME=\"com\" -DCONSPORT=0x3f8 -DCONSSPEED=115200
#CPPFLAGS+=	-DCONSNAME=\"eumb\" -DCONSPORT=0x4600 -DCONSSPEED=115200
#CPPFLAGS+=	-DDEBUG
CPPFLAGS+=	-nostdinc -I. -I${S}
DBG=		-Os

# XXX SHOULD NOT NEED TO DEFINE THESE!
LIBCRT0=
LIBC=
LIBCRTBEGIN=
LIBCRTEND=

NOMAN=		# defined
STRIPFLAG=
BINMODE=	444

RELOC=		1000000
ENTRY=		_start

.BEGIN:
	@@[ -h machine ] || ln -s ../../../${MACHINE}/include machine
	@@[ -h powerpc ] || ln -s ../../../powerpc/include powerpc
.NOPATH: machine arm
CLEANFILES+= machine powerpc

### find out what to use for libkern
KERN_AS=	library
.include "${S}/lib/libkern/Makefile.inc"
LIBKERN=	${KERNLIB}

### find out what to use for libz
Z_AS=		library
.include "${S}/lib/libz/Makefile.inc"
LIBZ=		${ZLIB}

### find out what to use for libsa
SA_AS=		library
SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
.include "${S}/lib/libsa/Makefile.inc"
LIBSA=		${SALIB}

.PHONY: vers.c
vers.c: version
	${HOST_SH} ./newvers.sh ${.CURDIR}/version

${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${LD} -N -Ttext ${RELOC} -Bstatic -e ${ENTRY} -o ${PROG} \
	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${OBJCOPY} -S -O binary ${.TARGET} ${.TARGET}.bin

.include <bsd.prog.mk>
@


1.2.2.3
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2.2.2 2007/10/23 20:36:31 ad Exp $
d6 2
a7 2
SRCS=		entry.S main.c pci.c devopen.c dev_net.c nif.c \
		fxp.c tlp.c pcn.c sip.c nvt.c rge.c vge.c wm.c printf.c
d12 1
a12 1
#CPPFLAGS+=	-DCONSNAME=\"eumb\" -DCONSPORT=0x4500 -DCONSSPEED=115200
d14 1
a14 1
CPPFLAGS+=	-Wall -nostdinc -I. -I${S}
d52 4
a56 2
	${HOST_SH} ./newvers.sh ${.CURDIR}/version
	${CC} -c vers.c
d58 1
a58 1
	    ${OBJS} vers.o ${LIBSA} ${LIBZ} ${LIBKERN}
@


1.1
log
@file Makefile was initially added on branch ppcoea-renovation.
@
text
@d1 61
@


1.1.6.1
log
@Sync with HEAD.
@
text
@a0 61
#	$NetBSD: Makefile,v 1.3 2007/10/30 00:30:13 nisimura Exp $

S=		${.CURDIR}/../../../..

PROG=		netboot
SRCS=		entry.S main.c pci.c devopen.c dev_net.c nif.c \
		fxp.c tlp.c pcn.c sip.c nvt.c rge.c vge.c printf.c vers.c
CLEANFILES+=	vers.c ${PROG} ${PROG}.bin
CFLAGS+=	-Wall -Wno-main -ffreestanding -msoft-float -mmultiple
CPPFLAGS+=	-D_STANDALONE -DSUPPORT_DHCP
CPPFLAGS+=	-DCONSNAME=\"com\" -DCONSPORT=0x3f8 -DCONSSPEED=115200
#CPPFLAGS+=	-DCONSNAME=\"eumb\" -DCONSPORT=0x4600 -DCONSSPEED=115200
#CPPFLAGS+=	-DDEBUG
CPPFLAGS+=	-Wall -nostdinc -I. -I${S}
DBG=		-Os

# XXX SHOULD NOT NEED TO DEFINE THESE!
LIBCRT0=
LIBC=
LIBCRTBEGIN=
LIBCRTEND=

NOMAN=		# defined
STRIPFLAG=
BINMODE=	444

RELOC=		1000000
ENTRY=		_start

.BEGIN:
	@@[ -h machine ] || ln -s ../../../${MACHINE}/include machine
	@@[ -h powerpc ] || ln -s ../../../powerpc/include powerpc
.NOPATH: machine arm
CLEANFILES+= machine powerpc

### find out what to use for libkern
KERN_AS=	library
.include "${S}/lib/libkern/Makefile.inc"
LIBKERN=	${KERNLIB}

### find out what to use for libz
Z_AS=		library
.include "${S}/lib/libz/Makefile.inc"
LIBZ=		${ZLIB}

### find out what to use for libsa
SA_AS=		library
SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
.include "${S}/lib/libsa/Makefile.inc"
LIBSA=		${SALIB}

.PHONY: vers.c
vers.c: version
	${HOST_SH} ./newvers.sh ${.CURDIR}/version

${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${LD} -N -Ttext ${RELOC} -Bstatic -e ${ENTRY} -o ${PROG} \
	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${OBJCOPY} -S -O binary ${.TARGET} ${.TARGET}.bin

.include <bsd.prog.mk>
@


1.1.6.2
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.6.1 2007/10/31 23:14:00 joerg Exp $
d12 1
a12 1
#CPPFLAGS+=	-DCONSNAME=\"eumb\" -DCONSPORT=0x4500 -DCONSSPEED=115200
@


1.1.6.3
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.6.2 2007/11/06 19:25:07 joerg Exp $
d7 1
a7 1
		fxp.c tlp.c pcn.c sip.c nvt.c rge.c vge.c wm.c printf.c
d52 4
a56 2
	${HOST_SH} ./newvers.sh ${.CURDIR}/version
	${CC} -c vers.c
d58 1
a58 1
	    ${OBJS} vers.o ${LIBSA} ${LIBZ} ${LIBKERN}
@


1.1.8.1
log
@sync with head.
@
text
@a0 61
#	$NetBSD: Makefile,v 1.2 2007/10/17 19:57:00 garbled Exp $

S=		${.CURDIR}/../../../..

PROG=		netboot
SRCS=		entry.S main.c pci.c devopen.c dev_net.c nif_fxp.c fxp.c \
		printf.c vers.c
CLEANFILES+=	vers.c ${PROG} ${PROG}.bin
CFLAGS+=	-Wall -Wno-main -ffreestanding -msoft-float -mmultiple
CPPFLAGS+=	-D_STANDALONE -DSUPPORT_DHCP
CPPFLAGS+=	-DCONSNAME=\"com\" -DCONSPORT=0x3f8 -DCONSSPEED=115200
#CPPFLAGS+=	-DCONSNAME=\"eumb\" -DCONSPORT=0x4600 -DCONSSPEED=115200
#CPPFLAGS+=	-DDEBUG
CPPFLAGS+=	-nostdinc -I. -I${S}
DBG=		-Os

# XXX SHOULD NOT NEED TO DEFINE THESE!
LIBCRT0=
LIBC=
LIBCRTBEGIN=
LIBCRTEND=

NOMAN=		# defined
STRIPFLAG=
BINMODE=	444

RELOC=		1000000
ENTRY=		_start

.BEGIN:
	@@[ -h machine ] || ln -s ../../../${MACHINE}/include machine
	@@[ -h powerpc ] || ln -s ../../../powerpc/include powerpc
.NOPATH: machine arm
CLEANFILES+= machine powerpc

### find out what to use for libkern
KERN_AS=	library
.include "${S}/lib/libkern/Makefile.inc"
LIBKERN=	${KERNLIB}

### find out what to use for libz
Z_AS=		library
.include "${S}/lib/libz/Makefile.inc"
LIBZ=		${ZLIB}

### find out what to use for libsa
SA_AS=		library
SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
.include "${S}/lib/libsa/Makefile.inc"
LIBSA=		${SALIB}

.PHONY: vers.c
vers.c: version
	${HOST_SH} ./newvers.sh ${.CURDIR}/version

${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${LD} -N -Ttext ${RELOC} -Bstatic -e ${ENTRY} -o ${PROG} \
	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${OBJCOPY} -S -O binary ${.TARGET} ${.TARGET}.bin

.include <bsd.prog.mk>
@


1.1.2.1
log
@sandpoint DHCP/NFS netbootloader
- known useful for quick development cycle, good for SandpointX3 and EnCorePP1.
- launched by native bootloaders, DINK32 or PPCBoot.
- plays a functional bridge role to fulfill podpoles left un-initialized
  by native bootloaders, making sure sane pre-boot runtime environment.
- prepares BOOTINFO for kernel, true ELF symbol table and other useful
  stuffs for NetBSD kernel.
- works with Intel i82557, DEVID 1209 and 1229 in specific.
@
text
@a0 61
#	$NetBSD$

S=		${.CURDIR}/../../../..

PROG=		netboot
SRCS=		entry.S main.c pci.c devopen.c dev_net.c nif_fxp.c fxp.c \
		printf.c vers.c
CLEANFILES+=	vers.c ${PROG} ${PROG}.bin
CFLAGS+=	-Wall -Wno-main -ffreestanding -msoft-float -mmultiple
CPPFLAGS+=	-D_STANDALONE -DSUPPORT_DHCP
CPPFLAGS+=	-DCONSNAME=\"com\" -DCONSPORT=0x3f8 -DCONSSPEED=115200
#CPPFLAGS+=	-DCONSNAME=\"eumb\" -DCONSPORT=0x4600 -DCONSSPEED=115200
#CPPFLAGS+=	-DDEBUG
CPPFLAGS+=	-nostdinc -I. -I${S}
DBG=		-Os

# XXX SHOULD NOT NEED TO DEFINE THESE!
LIBCRT0=
LIBC=
LIBCRTBEGIN=
LIBCRTEND=

NOMAN=		# defined
STRIPFLAG=
BINMODE=	444

RELOC=		1000000
ENTRY=		_start

.BEGIN:
	@@[ -h machine ] || ln -s ../../../${MACHINE}/include machine
	@@[ -h powerpc ] || ln -s ../../../powerpc/include powerpc
.NOPATH: machine arm
CLEANFILES+= machine powerpc

### find out what to use for libkern
KERN_AS=	library
.include "${S}/lib/libkern/Makefile.inc"
LIBKERN=	${KERNLIB}

### find out what to use for libz
Z_AS=		library
.include "${S}/lib/libz/Makefile.inc"
LIBZ=		${ZLIB}

### find out what to use for libsa
SA_AS=		library
SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
.include "${S}/lib/libsa/Makefile.inc"
LIBSA=		${SALIB}

.PHONY: vers.c
vers.c: version
	${HOST_SH} ./newvers.sh ${.CURDIR}/version

${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${LD} -N -Ttext ${RELOC} -Bstatic -e ${ENTRY} -o ${PROG} \
	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${OBJCOPY} -S -O binary ${.TARGET} ${.TARGET}.bin

.include <bsd.prog.mk>
@


