head	1.25;
access;
symbols
	perseant-exfatfs-base-20250801:1.25
	perseant-exfatfs-base-20240630:1.25
	perseant-exfatfs:1.25.0.130
	perseant-exfatfs-base:1.25
	bouyer-sunxi-drm:1.25.0.128
	bouyer-sunxi-drm-base:1.25
	cjep_sun2x:1.25.0.126
	cjep_sun2x-base:1.25
	cjep_staticlib_x-base1:1.25
	cjep_staticlib_x:1.25.0.124
	cjep_staticlib_x-base:1.25
	thorpej-futex-base:1.25
	bouyer-xenpvh-base2:1.25
	phil-wifi-20200421:1.25
	bouyer-xenpvh-base1:1.25
	phil-wifi-20200411:1.25
	bouyer-xenpvh:1.25.0.122
	bouyer-xenpvh-base:1.25
	phil-wifi-20200406:1.25
	ad-namecache-base3:1.25
	ad-namecache-base2:1.25
	ad-namecache-base1:1.25
	ad-namecache:1.25.0.120
	ad-namecache-base:1.25
	isaki-audio2:1.25.0.118
	isaki-audio2-base:1.25
	pgoyette-compat-merge-20190127:1.25
	pgoyette-compat-20190127:1.25
	pgoyette-compat-20190118:1.25
	pgoyette-compat-1226:1.25
	pgoyette-compat-1126:1.25
	pgoyette-compat-1020:1.25
	pgoyette-compat-0930:1.25
	pgoyette-compat-0906:1.25
	pgoyette-compat-0728:1.25
	pgoyette-compat-0625:1.25
	pgoyette-compat-0521:1.25
	pgoyette-compat-0502:1.25
	pgoyette-compat-0422:1.25
	pgoyette-compat-0415:1.25
	pgoyette-compat-0407:1.25
	pgoyette-compat-0330:1.25
	pgoyette-compat-0322:1.25
	pgoyette-compat-0315:1.25
	pgoyette-compat:1.25.0.116
	pgoyette-compat-base:1.25
	perseant-stdc-iso10646:1.25.0.114
	perseant-stdc-iso10646-base:1.25
	prg-localcount2-base3:1.25
	prg-localcount2-base2:1.25
	prg-localcount2-base1:1.25
	prg-localcount2:1.25.0.112
	prg-localcount2-base:1.25
	pgoyette-localcount-20170426:1.25
	bouyer-socketcan-base1:1.25
	pgoyette-localcount-20170320:1.25
	bouyer-socketcan:1.25.0.110
	bouyer-socketcan-base:1.25
	pgoyette-localcount-20170107:1.25
	pgoyette-localcount-20161104:1.25
	localcount-20160914:1.25
	pgoyette-localcount-20160806:1.25
	pgoyette-localcount-20160726:1.25
	pgoyette-localcount:1.25.0.108
	pgoyette-localcount-base:1.25
	netbsd-5-2-3-RELEASE:1.25
	netbsd-5-1-5-RELEASE:1.25
	yamt-pagecache-base9:1.25
	yamt-pagecache-tag8:1.25
	tls-earlyentropy:1.25.0.106
	tls-earlyentropy-base:1.25
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.25
	riastradh-drm2-base3:1.25
	netbsd-5-2-2-RELEASE:1.25
	netbsd-5-1-4-RELEASE:1.25
	netbsd-5-2-1-RELEASE:1.25
	netbsd-5-1-3-RELEASE:1.25
	rmind-smpnet-nbase:1.25
	rmind-smpnet:1.25.0.102
	rmind-smpnet-base:1.25
	agc-symver:1.25.0.104
	agc-symver-base:1.25
	tls-maxphys-base:1.25
	yamt-pagecache-base8:1.25
	netbsd-5-2:1.25.0.100
	yamt-pagecache-base7:1.25
	netbsd-5-2-RELEASE:1.25
	netbsd-5-2-RC1:1.25
	yamt-pagecache-base6:1.25
	yamt-pagecache-base5:1.25
	yamt-pagecache-base4:1.25
	netbsd-5-1-2-RELEASE:1.25
	netbsd-5-1-1-RELEASE:1.25
	jmcneill-usbmp:1.25.0.98
	jmcneill-usbmp-base:1.25
	jmcneill-audiomp3:1.25.0.96
	jmcneill-audiomp3-base:1.25
	yamt-pagecache-base3:1.25
	yamt-pagecache-base2:1.25
	yamt-pagecache:1.25.0.94
	yamt-pagecache-base:1.25
	rmind-uvmplock-nbase:1.25
	jym-xensuspend-nbase:1.25
	bouyer-quota2-nbase:1.25
	bouyer-quota2:1.25.0.92
	bouyer-quota2-base:1.25
	jruoho-x86intr:1.25.0.90
	jruoho-x86intr-base:1.25
	matt-nb5-pq3:1.25.0.88
	matt-nb5-pq3-base:1.25
	netbsd-5-1:1.25.0.86
	netbsd-5-1-RELEASE:1.25
	yamt-nfs-mp-base11:1.25
	netbsd-5-1-RC4:1.25
	uebayasi-xip-base2:1.25
	yamt-nfs-mp-base10:1.25
	netbsd-5-1-RC3:1.25
	netbsd-5-1-RC2:1.25
	netbsd-5-1-RC1:1.25
	rmind-uvmplock:1.25.0.84
	rmind-uvmplock-base:1.25
	yamt-nfs-mp-base9:1.25
	uebayasi-xip:1.25.0.82
	uebayasi-xip-base:1.25
	netbsd-5-0-2-RELEASE:1.25
	yamt-nfs-mp-base8:1.25
	yamt-nfs-mp-base7:1.25
	netbsd-5-0-1-RELEASE:1.25
	jymxensuspend-base:1.25
	yamt-nfs-mp-base6:1.25
	yamt-nfs-mp-base5:1.25
	yamt-nfs-mp-base4:1.25
	yamt-nfs-mp-base3:1.25
	netbsd-5-0:1.25.0.80
	netbsd-5-0-RELEASE:1.25
	netbsd-5-0-RC4:1.25
	netbsd-5-0-RC3:1.25
	netbsd-5-0-RC2:1.25
	jym-xensuspend:1.25.0.78
	jym-xensuspend-base:1.25
	netbsd-5-0-RC1:1.25
	haad-dm-base2:1.25
	haad-nbase2:1.25
	ad-audiomp2:1.25.0.76
	ad-audiomp2-base:1.25
	netbsd-5:1.25.0.74
	netbsd-5-base:1.25
	haad-dm-base1:1.25
	haad-dm:1.25.0.72
	haad-dm-base:1.25
	simonb-wapbl-nbase:1.25
	yamt-pf42-base4:1.25
	simonb-wapbl:1.25.0.70
	simonb-wapbl-base:1.25
	yamt-pf42-base3:1.25
	hpcarm-cleanup-nbase:1.25
	yamt-pf42-base2:1.25
	yamt-nfs-mp-base2:1.25
	yamt-nfs-mp:1.25.0.68
	yamt-nfs-mp-base:1.25
	yamt-pf42:1.25.0.66
	yamt-pf42-base:1.25
	ad-socklock-base1:1.25
	yamt-lazymbuf-base15:1.25
	yamt-lazymbuf-base14:1.25
	keiichi-mipv6-nbase:1.25
	mjf-devfs2:1.25.0.64
	mjf-devfs2-base:1.25
	keiichi-mipv6:1.25.0.62
	keiichi-mipv6-base:1.25
	bouyer-xeni386-merge1:1.25
	vmlocking2-base3:1.25
	bouyer-xeni386-nbase:1.25
	yamt-kmem-base3:1.25
	cube-autoconf:1.25.0.60
	cube-autoconf-base:1.25
	yamt-kmem-base2:1.25
	bouyer-xeni386:1.25.0.58
	bouyer-xeni386-base:1.25
	yamt-kmem:1.25.0.56
	yamt-kmem-base:1.25
	vmlocking2-base2:1.25
	reinoud-bufcleanup-nbase:1.25
	vmlocking2:1.25.0.54
	vmlocking2-base1:1.25
	jmcneill-base:1.25
	mjf-devfs:1.25.0.52
	mjf-devfs-base:1.25
	bouyer-xenamd64-base2:1.25
	vmlocking-nbase:1.25
	yamt-x86pmap-base4:1.25
	bouyer-xenamd64:1.25.0.50
	bouyer-xenamd64-base:1.25
	yamt-x86pmap-base3:1.25
	yamt-x86pmap-base2:1.25
	yamt-x86pmap:1.25.0.48
	yamt-x86pmap-base:1.25
	jmcneill-pm:1.25.0.46
	jmcneill-pm-base:1.25
	hpcarm-cleanup:1.25.0.44
	hpcarm-cleanup-base:1.25
	mjf-ufs-trans-base:1.25
	yamt-idlelwp-base8:1.25
	ppcoea-renovation:1.25.0.42
	ppcoea-renovation-base:1.25
	reinoud-bufcleanup-base:1.25
	vmlocking:1.25.0.40
	vmlocking-base:1.25
	ad-audiomp:1.25.0.38
	ad-audiomp-base:1.25
	yamt-idlelwp:1.25.0.36
	post-newlock2-merge:1.25
	newlock2-nbase:1.25
	yamt-splraiseipl-base5:1.25
	yamt-splraiseipl-base4:1.25
	yamt-splraiseipl-base3:1.25
	yamt-splraiseipl-base2:1.25
	yamt-splraiseipl:1.25.0.34
	yamt-splraiseipl-base:1.25
	newlock2:1.25.0.32
	newlock2-base:1.25
	yamt-pdpolicy-base8:1.25
	yamt-pdpolicy-base7:1.25
	yamt-pdpolicy-base6:1.25
	gdamore-uart:1.25.0.30
	gdamore-uart-base:1.25
	simonb-timcounters-final:1.25
	yamt-pdpolicy-base5:1.25
	elad-kernelauth-nbase:1.25
	yamt-pdpolicy-base4:1.25
	yamt-pdpolicy-base3:1.25
	yamt-pdpolicy-base2:1.25
	yamt-pdpolicy:1.25.0.28
	yamt-pdpolicy-base:1.25
	yamt-uio_vmspace-base5:1.25
	simonb-timecounters:1.25.0.26
	simonb-timecounters-base:1.25
	rpaulo-netinet-merge-pcb:1.25.0.24
	rpaulo-netinet-merge-pcb-base:1.25
	yamt-uio_vmspace:1.25.0.22
	yamt-readahead-base3:1.25
	yamt-readahead-base2:1.25
	yamt-readahead:1.25.0.20
	yamt-readahead-base:1.25
	yamt-vop-base3:1.25
	yamt-vop-base2:1.25
	thorpej-vnode-attr:1.25.0.18
	thorpej-vnode-attr-base:1.25
	yamt-vop:1.25.0.16
	yamt-vop-base:1.25
	yamt-lazymbuf:1.25.0.14
	yamt-km-base4:1.25
	yamt-km-base3:1.25
	yamt-km-base2:1.25
	yamt-km:1.25.0.12
	yamt-km-base:1.25
	kent-audio2:1.25.0.10
	kent-audio2-base:1.25
	ktrace-lwp:1.25.0.8
	ktrace-lwp-base:1.25
	nathanw_sa_end:1.23.2.2
	nathanw_sa_before_merge:1.25
	gmcgarry_ctxsw:1.25.0.6
	gmcgarry_ctxsw_base:1.25
	gmcgarry_ucred:1.25.0.4
	gmcgarry_ucred_base:1.25
	nathanw_sa_base:1.25
	gehenna-devsw:1.25.0.2
	gehenna-devsw-base:1.25
	netbsd-1-5-PATCH003:1.22.18.1
	eeh-devprop:1.24.0.8
	eeh-devprop-base:1.24
	newlock:1.24.0.6
	newlock-base:1.24
	ifpoll-base:1.24
	thorpej-mips-cache:1.24.0.2
	thorpej-mips-cache-base:1.24
	thorpej-devvp-base3:1.24
	thorpej-devvp-base2:1.24
	post-chs-ubcperf:1.23
	pre-chs-ubcperf:1.23
	thorpej-devvp:1.23.0.6
	thorpej-devvp-base:1.23
	nathanw_sa:1.23.0.2
	netbsd-1-5-PATCH002:1.22.18.1
	kqueue:1.23.0.4
	kqueue-base:1.24
	netbsd-1-5-PATCH001:1.22.18.1
	thorpej_scsipi_beforemerge:1.23
	thorpej_scsipi_nbase:1.23
	netbsd-1-5-RELEASE:1.22.18.1
	netbsd-1-5-BETA2:1.22.18.1
	netbsd-1-5-BETA:1.22.18.1
	netbsd-1-4-PATCH003:1.22
	netbsd-1-5-ALPHA2:1.22
	netbsd-1-5:1.22.0.18
	netbsd-1-5-base:1.22
	minoura-xpg4dl:1.22.0.16
	minoura-xpg4dl-base:1.22
	netbsd-1-4-PATCH002:1.22
	chs-ubc2-newbase:1.22
	wrstuden-devbsize-19991221:1.22
	wrstuden-devbsize:1.22.0.14
	wrstuden-devbsize-base:1.22
	kame_141_19991130:1.22
	comdex-fall-1999:1.22.0.12
	comdex-fall-1999-base:1.22
	fvdl-softdep:1.22.0.10
	fvdl-softdep-base:1.22
	thorpej_scsipi:1.22.0.8
	thorpej_scsipi_base:1.23
	netbsd-1-4-PATCH001:1.22
	kame_14_19990705:1.22
	kame_14_19990628:1.22
	kame:1.22.0.6
	chs-ubc2:1.22.0.4
	chs-ubc2-base:1.22
	netbsd-1-4-RELEASE:1.22
	netbsd-1-4:1.22.0.2
	netbsd-1-4-base:1.22
	netbsd-1-3-PATCH003:1.14
	netbsd-1-3-PATCH003-CANDIDATE2:1.14
	kenh-if-detach:1.16.0.4
	kenh-if-detach-base:1.16
	netbsd-1-3-PATCH003-CANDIDATE1:1.14
	netbsd-1-3-PATCH003-CANDIDATE0:1.14
	chs-ubc:1.16.0.2
	chs-ubc-base:1.16
	eeh-paddr_t:1.15.0.2
	eeh-paddr_t-base:1.15
	netbsd-1-3-PATCH002:1.14
	netbsd-1-3-PATCH001:1.14
	netbsd-1-3-RELEASE:1.14
	netbsd-1-3-BETA:1.14
	netbsd-1-3:1.14.0.4
	netbsd-1-3-base:1.14
	thorpej-signal:1.14.0.2
	thorpej-signal-base:1.14
	marc-pcmcia:1.13.0.4
	marc-pcmcia-bp:1.13
	marc-pcmcia-base:1.14
	bouyer-scsipi:1.13.0.2
	is-newarp-before-merge:1.10
	is-newarp:1.10.0.6
	is-newarp-base:1.10
	netbsd-1-2-PATCH001:1.4
	mrg-vm-swap:1.10.0.4
	alpha-nwscons-base:1.13
	thorpej-setroot:1.6.0.4
	alpha-nwscons:1.13.0.6
	netbsd-1-2-RELEASE:1.4
	netbsd-1-2-BETA:1.4
	netbsd-1-2:1.4.0.4
	netbsd-1-2-base:1.4
	netbsd-1-1-PATCH001:1.3
	netbsd-1-1-RELEASE:1.3
	netbsd-1-1:1.3.0.2
	netbsd-1-1-base:1.3;
locks; strict;
comment	@# @;


1.25
date	2002.05.03.15.36.53;	author lukem;	state dead;
branches;
next	1.24;

1.24
date	2001.09.22.03.34.18;	author tv;	state Exp;
branches;
next	1.23;

1.23
date	2000.09.26.05.13.37;	author simonb;	state Exp;
branches
	1.23.2.1
	1.23.4.1
	1.23.6.1;
next	1.22;

1.22
date	99.04.06.18.43.18;	author cgd;	state Exp;
branches
	1.22.2.1
	1.22.8.1
	1.22.18.1;
next	1.21;

1.21
date	99.04.02.03.35.54;	author cgd;	state Exp;
branches;
next	1.20;

1.20
date	99.04.02.03.20.00;	author cgd;	state Exp;
branches;
next	1.19;

1.19
date	99.04.02.03.11.57;	author cgd;	state Exp;
branches;
next	1.18;

1.18
date	99.04.01.11.08.39;	author ross;	state Exp;
branches;
next	1.17;

1.17
date	99.03.31.02.52.11;	author cgd;	state Exp;
branches;
next	1.16;

1.16
date	98.10.15.00.52.38;	author ross;	state Exp;
branches;
next	1.15;

1.15
date	98.03.28.00.21.35;	author thorpej;	state Exp;
branches;
next	1.14;

1.14
date	97.09.06.14.07.58;	author drochner;	state Exp;
branches;
next	1.13;

1.13
date	97.05.09.07.50.27;	author mycroft;	state Exp;
branches
	1.13.4.1
	1.13.6.1;
next	1.12;

1.12
date	97.04.17.07.27.49;	author thorpej;	state Exp;
branches;
next	1.11;

1.11
date	97.04.06.08.40.45;	author cgd;	state Exp;
branches;
next	1.10;

1.10
date	97.01.24.01.52.50;	author cgd;	state Exp;
branches
	1.10.2.1;
next	1.9;

1.9
date	97.01.23.22.31.34;	author cgd;	state Exp;
branches;
next	1.8;

1.8
date	97.01.18.00.35.23;	author cgd;	state Exp;
branches;
next	1.7;

1.7
date	97.01.16.03.00.22;	author cgd;	state Exp;
branches;
next	1.6;

1.6
date	96.10.18.06.02.02;	author thorpej;	state Exp;
branches;
next	1.5;

1.5
date	96.09.23.04.33.03;	author cgd;	state Exp;
branches;
next	1.4;

1.4
date	95.11.23.02.40.29;	author cgd;	state Exp;
branches;
next	1.3;

1.3
date	95.02.27.16.36.55;	author cgd;	state Exp;
branches;
next	1.2;

1.2
date	95.02.16.02.33.06;	author cgd;	state Exp;
branches;
next	1.1;

1.1
date	95.02.13.23.08.21;	author cgd;	state Exp;
branches;
next	;

1.23.2.1
date	2001.09.26.19.54.41;	author nathanw;	state Exp;
branches;
next	1.23.2.2;

1.23.2.2
date	2002.06.20.03.37.45;	author nathanw;	state dead;
branches;
next	;

1.23.4.1
date	2002.01.10.19.37.09;	author thorpej;	state Exp;
branches;
next	1.23.4.2;

1.23.4.2
date	2002.06.23.17.34.16;	author jdolecek;	state dead;
branches;
next	;

1.23.6.1
date	2001.10.01.12.37.07;	author fvdl;	state Exp;
branches;
next	;

1.22.2.1
date	99.04.06.18.43.18;	author cgd;	state dead;
branches;
next	1.22.2.2;

1.22.2.2
date	99.04.06.18.43.19;	author cgd;	state Exp;
branches;
next	;

1.22.8.1
date	2000.11.20.19.57.21;	author bouyer;	state Exp;
branches;
next	;

1.22.18.1
date	2000.09.26.15.49.02;	author simonb;	state Exp;
branches;
next	;

1.13.4.1
date	97.09.06.17.59.58;	author thorpej;	state Exp;
branches;
next	;

1.13.6.1
date	97.05.09.07.50.27;	author mycroft;	state dead;
branches;
next	1.13.6.2;

1.13.6.2
date	97.05.09.07.50.28;	author mycroft;	state Exp;
branches;
next	;

1.10.2.1
date	97.06.01.04.14.07;	author cgd;	state Exp;
branches;
next	;


desc
@@


1.25
log
@nuke installboot.old / bootxx combo (the old "primary bootstrap with
hardcoded blocks of secondary bootstrap"); it was only used by the
distrib ustarfs stuff, and that now uses usr/sbin/installboot and ustarboot
@
text
@# $NetBSD: Makefile,v 1.24 2001/09/22 03:34:18 tv Exp $

PROG = bootxx.old

SRCS = start.S bootxx.c prom.c prom_disp.S putstr.c booted_dev.c

BOOT_RELOC = ${PRIMARY_LOAD_ADDRESS}
PRIMARY_MAX_LOAD!=	expr 8192 - 512

CPPFLAGS += ${PRIMARY_CPPFLAGS}

CLEANFILES+= ${PROG}.sym ${PROG}.trunc

${PROG}: ${PROG}.sym
	@@echo creating ${PROG} from ${PROG}.sym...
	@@${OBJCOPY} --output-target=binary ${PROG}.sym ${PROG}.trunc
	@@chmod 644 ${PROG}.trunc
	@@dd if=${PROG}.trunc of=${PROG} obs=`expr 15 \* 512` conv=osync
	@@ls -l ${PROG}
	@@${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${PRIMARY_MAX_LOAD} \
	    ${PRIMARY_MAX_TOTAL} || (rm -f ${PROG} ; false)

SAMISCMAKEFLAGS= SA_INCLUDE_NET=no SA_USE_CREAD=no
.include "../Makefile.bootprogs"

NETBSD_VERS!=sh ${.CURDIR}/../../../../conf/osrelease.sh
CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"' \
	   -DBOOTXX_RAID1_SUPPORT

${PROG}.sym: ${OBJS} ${LIBKERN}
	${LD} -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym ${OBJS} \
	    ${LIBKERN}
	@@chmod 644 ${PROG}.sym
	@@${SIZE} ${PROG}.sym
@


1.24
log
@objcopy -> ${OBJCOPY}; remove redundant definitions of OBJCOPY?= (it is
now in bsd.own.mk).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2000/09/26 05:13:37 simonb Exp $
@


1.23
log
@Add support for booting off RAIDframe RAID1 mirrors.
Check the first partition type in devopen(), and if it is of type
FS_RAID, add 64 to blkdev_part_offset.

NOTE: This brings the size of the alpha first-stage bootblocks up to
      close to the maximum.  RAID1 support is controlled by the
      BOOTXX_RAID1_SUPPORT define, and is easy to disable if size
      becomes an issue.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 1999/04/06 18:43:18 cgd Exp $
d16 1
a16 1
	@@objcopy --output-target=binary ${PROG}.sym ${PROG}.trunc
@


1.23.4.1
log
@Sync kqueue branch with -current.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2001/09/22 03:34:18 tv Exp $
d16 1
a16 1
	@@${OBJCOPY} --output-target=binary ${PROG}.sym ${PROG}.trunc
@


1.23.4.2
log
@catch up with -current on kqueue branch
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23.4.1 2002/01/10 19:37:09 thorpej Exp $
@


1.23.6.1
log
@Catch up with -current.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2001/09/22 03:34:18 tv Exp $
d16 1
a16 1
	@@${OBJCOPY} --output-target=binary ${PROG}.sym ${PROG}.trunc
@


1.23.2.1
log
@Catch up to -current.
Again.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2000/09/26 05:13:37 simonb Exp $
d16 1
a16 1
	@@${OBJCOPY} --output-target=binary ${PROG}.sym ${PROG}.trunc
@


1.23.2.2
log
@Catch up to -current.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23.2.1 2001/09/26 19:54:41 nathanw Exp $
@


1.22
log
@build/install this binary as bootxx.old, so that users won't get the
idea that they should be using it.  (no point in renaming the whole
directory since it should be dead soon enough.)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 1999/04/02 03:35:54 cgd Exp $
d27 2
a28 1
CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"'
@


1.22.2.1
log
@file Makefile was added on branch netbsd-1-4 on 1999-04-06 18:43:19 +0000
@
text
@d1 33
@


1.22.2.2
log
@build/install this binary as bootxx.old, so that users won't get the
idea that they should be using it.  (no point in renaming the whole
directory since it should be dead soon enough.)
@
text
@a0 33
# $NetBSD: Makefile,v 1.22 1999/04/06 18:43:18 cgd Exp $

PROG = bootxx.old

SRCS = start.S bootxx.c prom.c prom_disp.S putstr.c booted_dev.c

BOOT_RELOC = ${PRIMARY_LOAD_ADDRESS}
PRIMARY_MAX_LOAD!=	expr 8192 - 512

CPPFLAGS += ${PRIMARY_CPPFLAGS}

CLEANFILES+= ${PROG}.sym ${PROG}.trunc

${PROG}: ${PROG}.sym
	@@echo creating ${PROG} from ${PROG}.sym...
	@@objcopy --output-target=binary ${PROG}.sym ${PROG}.trunc
	@@chmod 644 ${PROG}.trunc
	@@dd if=${PROG}.trunc of=${PROG} obs=`expr 15 \* 512` conv=osync
	@@ls -l ${PROG}
	@@${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${PRIMARY_MAX_LOAD} \
	    ${PRIMARY_MAX_TOTAL} || (rm -f ${PROG} ; false)

SAMISCMAKEFLAGS= SA_INCLUDE_NET=no SA_USE_CREAD=no
.include "../Makefile.bootprogs"

NETBSD_VERS!=sh ${.CURDIR}/../../../../conf/osrelease.sh
CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"'

${PROG}.sym: ${OBJS} ${LIBKERN}
	${LD} -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym ${OBJS} \
	    ${LIBKERN}
	@@chmod 644 ${PROG}.sym
	@@${SIZE} ${PROG}.sym
@


1.22.8.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,v 1.23 2000/09/26 05:13:37 simonb Exp $
d27 1
a27 2
CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"' \
	   -DBOOTXX_RAID1_SUPPORT
@


1.22.18.1
log
@Pull up rev 1.23 (approved by thorpej):
 Add support for booting off RAIDframe RAID1 mirrors.
 Check the first partition type in devopen(), and if it is of type
 FS_RAID, add 64 to blkdev_part_offset.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 1999/04/06 18:43:18 cgd Exp $
d27 1
a27 2
CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"' \
	   -DBOOTXX_RAID1_SUPPORT
@


1.21
log
@puts -> putstr
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 1999/04/02 03:20:00 cgd Exp $
d3 1
a3 1
PROG = bootxx
@


1.20
log
@update for booted_dev and disk->blkdev changes.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 1999/04/02 03:11:57 cgd Exp $
d5 1
a5 1
SRCS = start.S bootxx.c prom.c prom_disp.S puts.c booted_dev.c
@


1.19
log
@unrevert the changes made last night, now that 'installboot' has
had a few bugs fixed that let the problem slip in, and since bootxx's
Makefile now goes out of its way to satisfy installboot's undocumented
and totally unreasonable assumptions about the bootxx file it's operating
on.  No point in fixing the assumptions, because sooner rather than later
this incarnation of installboot is going to die.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 1999/03/31 02:52:11 cgd Exp $
d5 1
a5 1
SRCS = start.S bootxx.c prom.c prom_disp.S puts.c
@


1.18
log
@Revert recent changes, which either don't work, or can't be built
successfully by ordinary mortals.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 1998/10/15 00:52:38 ross Exp $
d8 1
a8 1
HEADERSIZE_PROG = headersize
d12 1
a12 1
CLEANFILES+= ${PROG}.sym ${PROG}.nosym ${HEADERSIZE_PROG}
d14 8
a21 8
${PROG}.nosym: ${PROG}.sym
	cp ${PROG}.sym ${PROG}.nosym
	${STRIP} ${PROG}.nosym

${PROG}: ${PROG}.nosym ${HEADERSIZE_PROG}
	dd if=${PROG}.nosym of=${PROG} \
	    ibs=`./${HEADERSIZE_PROG} ${BOOT_RELOC} ${PROG}.nosym` skip=1 \
	    obs=`expr 15 \* 512` conv=osync
d23 1
d32 2
a33 1
	${SIZE} ${PROG}.sym
@


1.17
log
@Compile with -Os (optimize for size).
Clean up the "Region 1" related definitions, and define load addresses,
  max load size, and max total size for as many boot block types as we can.
  (types = unified, primary, secondary).  We can't always define all
  values for all boot blocks, though.
Make CPP flags selection less gross.
Use objcopy rather than headersize (yay, evil gets a stake to the heart!).
Use a little shell script to verify that the sizes of the boot blocks are OK.
Do not compile too much more of libsa than we actually have to.
@
text
@d8 1
a8 1
PRIMARY_MAX_LOAD!=	expr 8192 - 512
d12 1
a12 1
CLEANFILES+= ${PROG}.sym
d14 8
a21 7
${PROG}: ${PROG}.sym
	@@echo creating ${PROG} from ${PROG}.sym...
	@@objcopy --output-target=binary ${PROG}.sym ${PROG}
	@@chmod 644 ${PROG}
	@@ls -l ${PROG}
	@@${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${PRIMARY_MAX_LOAD} \
	    ${PRIMARY_MAX_TOTAL} || (rm -f ${PROG} ; false)
a22 1
SAMISCMAKEFLAGS= SA_INCLUDE_NET=no SA_USE_CREAD=no
d31 1
a31 2
	@@chmod 644 ${PROG}.sym
	@@${SIZE} ${PROG}.sym
@


1.16
log
@Consult osrelease.sh and pass down NETBSD_VERS
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 1998/03/28 00:21:35 thorpej Exp $
d8 1
a8 1
HEADERSIZE_PROG = headersize
d12 1
a12 1
CLEANFILES+= ${PROG}.sym ${PROG}.nosym ${HEADERSIZE_PROG}
d14 7
a20 8
${PROG}.nosym: ${PROG}.sym
	cp ${PROG}.sym ${PROG}.nosym
	${STRIP} ${PROG}.nosym

${PROG}: ${PROG}.nosym ${HEADERSIZE_PROG}
	dd if=${PROG}.nosym of=${PROG} \
	    ibs=`./${HEADERSIZE_PROG} ${BOOT_RELOC} ${PROG}.nosym` skip=1 \
	    obs=`expr 15 \* 512` conv=osync
d22 1
d31 2
a32 1
	${SIZE} ${PROG}.sym
@


1.15
log
@Much more sane boot block builds, from Chris Demetriou.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 1997/09/06 14:07:58 drochner Exp $
d24 3
@


1.14
log
@enable -Wall
@
text
@d1 1
a1 5
# $NetBSD: Makefile,v 1.13 1997/05/09 07:50:27 mycroft Exp $

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

.PATH: ${.CURDIR}/../common
a5 3
NOMAN=
STRIPFLAG=
BINMODE= 444
d10 1
a10 3
AFLAGS += -DASSEMBLER
CPPFLAGS += -I${.CURDIR}/../.. -I${.CURDIR}/../../../.. -DPRIMARY_BOOTBLOCK
CFLAGS = -Wall -Werror -mno-fp-regs -g
d16 1
a16 1
	strip ${PROG}.nosym
d23 1
a23 6
.include <bsd.prog.mk>

### find out what to use for libkern
KERN_AS=	library
.include "${S}/lib/libkern/Makefile.inc"
LIBKERN=	${KERNLIB}
d28 1
a28 1
	size ${PROG}.sym
@


1.13
log
@Eliminate bogus redefinitions of standard targets.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 1997/04/17 07:27:49 thorpej Exp $
d19 1
a19 1
CFLAGS = -Werror -mno-fp-regs -g
@


1.13.6.1
log
@file Makefile was added on branch alpha-nwscons on 1997-05-09 07:50:28 +0000
@
text
@d1 42
@


1.13.6.2
log
@Eliminate bogus redefinitions of standard targets.
@
text
@a0 42
# $NetBSD: Makefile,v 1.13 1997/05/09 07:50:27 mycroft Exp $

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

.PATH: ${.CURDIR}/../common

PROG = bootxx

SRCS = start.S bootxx.c prom.c prom_disp.S puts.c
NOMAN=
STRIPFLAG=
BINMODE= 444

BOOT_RELOC = ${PRIMARY_LOAD_ADDRESS}
HEADERSIZE_PROG = headersize

AFLAGS += -DASSEMBLER
CPPFLAGS += -I${.CURDIR}/../.. -I${.CURDIR}/../../../.. -DPRIMARY_BOOTBLOCK
CFLAGS = -Werror -mno-fp-regs -g

CLEANFILES+= ${PROG}.sym ${PROG}.nosym ${HEADERSIZE_PROG}

${PROG}.nosym: ${PROG}.sym
	cp ${PROG}.sym ${PROG}.nosym
	strip ${PROG}.nosym

${PROG}: ${PROG}.nosym ${HEADERSIZE_PROG}
	dd if=${PROG}.nosym of=${PROG} \
	    ibs=`./${HEADERSIZE_PROG} ${BOOT_RELOC} ${PROG}.nosym` skip=1 \
	    obs=`expr 15 \* 512` conv=osync

.include <bsd.prog.mk>

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

${PROG}.sym: ${OBJS} ${LIBKERN}
	${LD} -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym ${OBJS} \
	    ${LIBKERN}
	size ${PROG}.sym
@


1.13.4.1
log
@Update marc-pcmcia branch from trunk.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 1997/09/06 14:07:58 drochner Exp $
d19 1
a19 1
CFLAGS = -Wall -Werror -mno-fp-regs -g
@


1.12
log
@STRIP -> STRIPFLAG
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 1997/04/06 08:40:45 cgd Exp $
a30 3

# no lint here (yet?)
lint:
@


1.11
log
@clean up NetBSD RCS ID strings
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 1997/01/24 01:52:50 cgd Exp $
d11 1
a11 1
STRIP=
@


1.10
log
@reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 1997/01/23 22:31:34 cgd Exp $
@


1.10.2.1
log
@sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 1997/05/09 07:50:27 mycroft Exp $
d11 1
a11 1
STRIPFLAG=
d31 3
@


1.9
log
@update for new kernel library build process
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 1997/01/18 00:35:23 cgd Exp $
d5 1
a5 1
.PATH: ${.CURDIR}/..
@


1.8
log
@make 'make depend' not fall over here.  it doesn't work right, either, though.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 1997/01/16 03:00:22 cgd Exp $
d3 1
a3 1
.PATH: ${.CURDIR}/.. ${.CURDIR}/../../../../lib/libsa
d5 3
a7 2
BOOT_PROG = bootxx
BOOT_RELOC = ${PRIMARY_LOAD_ADDRESS}
d9 4
a12 2
BOOT_SRCS = start.S bootxx.c prom.c prom_disp.S bzero.c puts.c
BOOT_OBJS = ${BOOT_SRCS:N*.h:R:S/$/.o/g}
d14 1
d21 1
a21 3
.PATH: ${.CURDIR}/../../../../lib/libkern

all: ${BOOT_PROG}
d23 23
a45 25
${BOOT_PROG}: ${BOOT_OBJS} ${HEADERSIZE_PROG}
	${LD} -Ttext ${BOOT_RELOC} -N -e start -o ${BOOT_PROG}.hdr \
	    ${BOOT_OBJS}
	size ${BOOT_PROG}.hdr
	strip ${BOOT_PROG}.hdr
	dd if=${BOOT_PROG}.hdr of=${BOOT_PROG}.nohdr \
	    bs=`./${HEADERSIZE_PROG} ${BOOT_RELOC} ${BOOT_PROG}.hdr` skip=1
	dd if=${BOOT_PROG}.nohdr of=${BOOT_PROG} bs=`expr 15 \* 512` conv=sync

install:
	${INSTALL} -c -o bin -g bin -m 444 ${BOOT_PROG} \
	    ${DESTDIR}${BINDIR}/${BOOT_PROG}

clean:
	rm -f a.out [Ee]rrs mklog core *.core \
	    ${BOOT_PROG} ${BOOT_OBJS} ${CLEANFILES} \
	    ${BOOT_PROG}.hdr ${BOOT_PROG}.nohdr ${HEADERSIZE_PROG}

cleandir: clean

depend:

.include "${.CURDIR}/../Makefile.inc"
.include <bsd.obj.mk>
.include <bsd.dep.mk>
@


1.7
log
@clean up
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 1996/10/18 06:02:02 thorpej Exp $
d40 2
@


1.6
log
@Use ${INSTALL}.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 1996/09/23 04:33:03 cgd Exp $
d34 1
a34 1
clean: _SUBDIRUSE
d39 1
a39 1
cleandir: _SUBDIRUSE clean
a43 1
.include <bsd.subdir.mk>
@


1.5
log
@update for ELF toolchain support
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 1995/11/23 02:40:29 cgd Exp $
d31 1
a31 1
	install -c -o bin -g bin -m 444 ${BOOT_PROG} \
@


1.4
log
@wholesale update from my NetBSD/Alpha source tree.  Includes:
	Support for AXPpci CPUs,
	Support for AlphaStation 600 CPUs,
	new boot block structure, which requires an 'installboot'
	    program and works a lot like the NetBSD/sparc boot blocks.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 1995/02/27 16:36:55 cgd Exp $
d14 1
a14 1
CPPFLAGS += -I${.CURDIR}/../.. -DPRIMARY_BOOTBLOCK
d22 1
a22 1
	${LD} -Ttext ${BOOT_RELOC} -N -e start -o ${BOOT_PROG}.coff \
d24 4
a27 4
	size ${BOOT_PROG}.coff
	strip ${BOOT_PROG}.coff
	dd if=${BOOT_PROG}.coff of=${BOOT_PROG}.nohdr \
	    bs=`./${HEADERSIZE_PROG} < ${BOOT_PROG}.coff` skip=1
d37 1
a37 1
	    ${BOOT_PROG}.coff ${BOOT_PROG}.nohdr ${HEADERSIZE_PROG}
@


1.3
log
@fill up device switches, clean up a couple of mistakes.
@
text
@d1 1
a1 55
#	$NetBSD: Makefile,v 1.2 1995/02/16 02:33:06 cgd Exp $
#
# BSD Boot blocks for the Alpha
#
# XXX should generate a primary boot block, too...

#INCPATH=-I../../.. -I.
INCPATH=-I/sys -I. -I/sys/arch/alpha/stand

# Boot relocation address
RELOC1=	20000000
# Low memory test program relocation address
#RELOC2=	20004000
# High memory test program relocation address
RELOC2=	fffffc0000230000

# Compiler and assembler flags used to generate boot blocks.
#
DEFS=	-DSMALL -DSTANDALONE
AFLAGS+=-DASSEMBLER ${INCPATH}
#CFLAGS= -O6 -mno-fp-regs ${INCPATH} ${DEFS}
CFLAGS= -mno-fp-regs ${INCPATH} ${DEFS} -finline-functions -O6

LIBS=	libsa/libsa.a -lc
SRCS=	boot.c conf.c prom.c test.c

all: bootxx

libsa/libsa.a::
	cd libsa; make

# This boot is supposed to be installed in this way:
#	cp boot <true_root_of_disk>/boot
BOBJS=	boot.o prom.o prom_disp.o
bootxx.coff: start.o ${BOBJS} ${LIBS}
	${LD} -Ttext ${RELOC1} -N \
	    -e start -o ${.TARGET} start.o ${BOBJS} ${LIBS}

bootxx: headersize bootxx.coff
	dd if=bootxx.coff of=bootxx.nohdr bs=`./headersize <bootxx.coff` skip=1
	dd if=bootxx.nohdr of=bootxx count=15

# This boot is supposed to be installed in this way:
#	cp test_boot <true_root_of_disk>/test_boot
#
# It is used presumably in this way:
#	boot -fi "test_boot" dka300
TOBJS=	prom.o prom_disp.o prom_swpal.o test.o
test_boot: start.o ${TOBJS} ${LIBS}
	${LD} -T ${RELOC2} -N -e start -o ${.TARGET} start.o ${TOBJS} ${LIBS}

clean cleandir:
	rm -f .depend *.o *.exe *.i errs make.out core* vers.c
	rm -f a.out boot test_boot bootxx bootxx.nohdr bootxx.coff headersize
	cd libsa && make cleandir
d3 17
a19 2
install:
	install -c -o bin -g bin -m 444 bootxx ${DESTDIR}/usr/mdec/bootsd
d21 8
a28 3
depend: ${SRCS}
	mkdep -p ${INCPATH} ${DEFS} ${SRCS}
	cd libsa && make depend
d30 3
a32 2
newvers:
	sh newvers.sh
d34 11
a44 1
vers.c: newvers
@


1.2
log
@RCS ids, some missing copyrights.
@
text
@d1 1
a1 1
#	$NetBSD$
a6 1
DESTDIR=
@


1.1
log
@preliminary Alpha support.  note that NOT ALL OF THE MODIFICATIONS TO
THE REST OF THE KERNEL ARE IN THE TREE YET.  Also, some of this is
_incredibly_ hack-ish, etc., but it works.
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.2 1995/02/13 18:52:08 cgd Exp $
@
