head	1.65;
access;
symbols
	netbsd-11-0-RC4:1.65
	netbsd-11-0-RC3:1.65
	netbsd-11-0-RC2:1.65
	netbsd-11-0-RC1:1.65
	perseant-exfatfs-base-20250801:1.65
	netbsd-11:1.65.0.22
	netbsd-11-base:1.65
	netbsd-10-1-RELEASE:1.65
	perseant-exfatfs-base-20240630:1.65
	perseant-exfatfs:1.65.0.20
	perseant-exfatfs-base:1.65
	netbsd-8-3-RELEASE:1.63
	netbsd-9-4-RELEASE:1.64
	netbsd-10-0-RELEASE:1.65
	netbsd-10-0-RC6:1.65
	netbsd-10-0-RC5:1.65
	netbsd-10-0-RC4:1.65
	netbsd-10-0-RC3:1.65
	netbsd-10-0-RC2:1.65
	thorpej-ifq:1.65.0.18
	thorpej-ifq-base:1.65
	thorpej-altq-separation:1.65.0.16
	thorpej-altq-separation-base:1.65
	netbsd-10-0-RC1:1.65
	netbsd-10:1.65.0.14
	netbsd-10-base:1.65
	bouyer-sunxi-drm:1.65.0.12
	bouyer-sunxi-drm-base:1.65
	netbsd-9-3-RELEASE:1.64
	thorpej-i2c-spi-conf2:1.65.0.10
	thorpej-i2c-spi-conf2-base:1.65
	thorpej-futex2:1.65.0.8
	thorpej-futex2-base:1.65
	thorpej-cfargs2:1.65.0.6
	thorpej-cfargs2-base:1.65
	cjep_sun2x-base1:1.65
	cjep_sun2x:1.65.0.4
	cjep_sun2x-base:1.65
	cjep_staticlib_x-base1:1.65
	netbsd-9-2-RELEASE:1.64
	cjep_staticlib_x:1.65.0.2
	cjep_staticlib_x-base:1.65
	thorpej-i2c-spi-conf:1.64.0.16
	thorpej-i2c-spi-conf-base:1.65
	thorpej-cfargs:1.64.0.14
	thorpej-cfargs-base:1.64
	thorpej-futex:1.64.0.12
	thorpej-futex-base:1.64
	netbsd-9-1-RELEASE:1.64
	bouyer-xenpvh-base2:1.64
	phil-wifi-20200421:1.64
	bouyer-xenpvh-base1:1.64
	phil-wifi-20200411:1.64
	bouyer-xenpvh:1.64.0.10
	bouyer-xenpvh-base:1.64
	is-mlppp:1.64.0.8
	is-mlppp-base:1.64
	phil-wifi-20200406:1.64
	netbsd-8-2-RELEASE:1.63
	ad-namecache-base3:1.64
	netbsd-9-0-RELEASE:1.64
	netbsd-9-0-RC2:1.64
	ad-namecache-base2:1.64
	ad-namecache-base1:1.64
	ad-namecache:1.64.0.6
	ad-namecache-base:1.64
	netbsd-9-0-RC1:1.64
	phil-wifi-20191119:1.64
	netbsd-9:1.64.0.4
	netbsd-9-base:1.64
	phil-wifi-20190609:1.64
	netbsd-8-1-RELEASE:1.63
	netbsd-8-1-RC1:1.63
	isaki-audio2:1.64.0.2
	isaki-audio2-base:1.64
	pgoyette-compat-merge-20190127:1.63.12.1
	pgoyette-compat-20190127:1.64
	pgoyette-compat-20190118:1.64
	pgoyette-compat-1226:1.63
	pgoyette-compat-1126:1.63
	pgoyette-compat-1020:1.63
	pgoyette-compat-0930:1.63
	pgoyette-compat-0906:1.63
	netbsd-7-2-RELEASE:1.60
	pgoyette-compat-0728:1.63
	netbsd-8-0-RELEASE:1.63
	phil-wifi:1.63.0.14
	phil-wifi-base:1.63
	pgoyette-compat-0625:1.63
	netbsd-8-0-RC2:1.63
	pgoyette-compat-0521:1.63
	pgoyette-compat-0502:1.63
	pgoyette-compat-0422:1.63
	netbsd-8-0-RC1:1.63
	pgoyette-compat-0415:1.63
	pgoyette-compat-0407:1.63
	pgoyette-compat-0330:1.63
	pgoyette-compat-0322:1.63
	pgoyette-compat-0315:1.63
	netbsd-7-1-2-RELEASE:1.60
	pgoyette-compat:1.63.0.12
	pgoyette-compat-base:1.63
	netbsd-7-1-1-RELEASE:1.60
	tls-maxphys-base-20171202:1.63
	matt-nb8-mediatek:1.63.0.10
	matt-nb8-mediatek-base:1.63
	nick-nhusb-base-20170825:1.63
	perseant-stdc-iso10646:1.63.0.8
	perseant-stdc-iso10646-base:1.63
	netbsd-8:1.63.0.6
	netbsd-8-base:1.63
	prg-localcount2-base3:1.63
	prg-localcount2-base2:1.63
	prg-localcount2-base1:1.63
	prg-localcount2:1.63.0.4
	prg-localcount2-base:1.63
	pgoyette-localcount-20170426:1.63
	bouyer-socketcan-base1:1.63
	jdolecek-ncq:1.63.0.2
	jdolecek-ncq-base:1.63
	pgoyette-localcount-20170320:1.62
	netbsd-7-1:1.60.0.12
	netbsd-7-1-RELEASE:1.60
	netbsd-7-1-RC2:1.60
	nick-nhusb-base-20170204:1.62
	netbsd-7-nhusb-base-20170116:1.60
	bouyer-socketcan:1.62.0.2
	bouyer-socketcan-base:1.62
	pgoyette-localcount-20170107:1.62
	netbsd-7-1-RC1:1.60
	nick-nhusb-base-20161204:1.62
	pgoyette-localcount-20161104:1.62
	netbsd-7-0-2-RELEASE:1.60
	nick-nhusb-base-20161004:1.62
	localcount-20160914:1.62
	netbsd-7-nhusb:1.60.0.10
	netbsd-7-nhusb-base:1.60
	pgoyette-localcount-20160806:1.61
	pgoyette-localcount-20160726:1.61
	pgoyette-localcount:1.61.0.2
	pgoyette-localcount-base:1.61
	nick-nhusb-base-20160907:1.61
	nick-nhusb-base-20160529:1.61
	netbsd-7-0-1-RELEASE:1.60
	nick-nhusb-base-20160422:1.61
	nick-nhusb-base-20160319:1.60
	nick-nhusb-base-20151226:1.60
	netbsd-7-0:1.60.0.8
	netbsd-7-0-RELEASE:1.60
	nick-nhusb-base-20150921:1.60
	netbsd-7-0-RC3:1.60
	netbsd-7-0-RC2:1.60
	netbsd-7-0-RC1:1.60
	nick-nhusb-base-20150606:1.60
	nick-nhusb-base-20150406:1.60
	nick-nhusb:1.60.0.6
	nick-nhusb-base:1.60
	netbsd-5-2-3-RELEASE:1.46
	netbsd-5-1-5-RELEASE:1.46
	netbsd-6-0-6-RELEASE:1.57
	netbsd-6-1-5-RELEASE:1.57
	netbsd-7:1.60.0.4
	netbsd-7-base:1.60
	yamt-pagecache-base9:1.60
	yamt-pagecache-tag8:1.57
	netbsd-6-1-4-RELEASE:1.57
	netbsd-6-0-5-RELEASE:1.57
	tls-earlyentropy:1.60.0.2
	tls-earlyentropy-base:1.60
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.60
	riastradh-drm2-base3:1.60
	netbsd-6-1-3-RELEASE:1.57
	netbsd-6-0-4-RELEASE:1.57
	netbsd-5-2-2-RELEASE:1.46
	netbsd-5-1-4-RELEASE:1.46
	netbsd-6-1-2-RELEASE:1.57
	netbsd-6-0-3-RELEASE:1.57
	netbsd-5-2-1-RELEASE:1.46
	netbsd-5-1-3-RELEASE:1.46
	rmind-smpnet-nbase:1.60
	netbsd-6-1-1-RELEASE:1.57
	riastradh-drm2-base2:1.57
	riastradh-drm2-base1:1.57
	riastradh-drm2:1.57.0.24
	riastradh-drm2-base:1.57
	rmind-smpnet:1.57.0.16
	rmind-smpnet-base:1.60
	netbsd-6-1:1.57.0.22
	netbsd-6-0-2-RELEASE:1.57
	netbsd-6-1-RELEASE:1.57
	khorben-n900:1.57.0.20
	netbsd-6-1-RC4:1.57
	netbsd-6-1-RC3:1.57
	agc-symver:1.57.0.18
	agc-symver-base:1.57
	netbsd-6-1-RC2:1.57
	netbsd-6-1-RC1:1.57
	yamt-pagecache-base8:1.57
	netbsd-5-2:1.46.0.100
	netbsd-6-0-1-RELEASE:1.57
	yamt-pagecache-base7:1.57
	netbsd-5-2-RELEASE:1.46
	netbsd-5-2-RC1:1.46
	matt-nb6-plus-nbase:1.57
	yamt-pagecache-base6:1.57
	netbsd-6-0:1.57.0.14
	netbsd-6-0-RELEASE:1.57
	netbsd-6-0-RC2:1.57
	tls-maxphys:1.57.0.12
	tls-maxphys-base:1.60
	matt-nb6-plus:1.57.0.10
	matt-nb6-plus-base:1.57
	netbsd-6-0-RC1:1.57
	jmcneill-usbmp-base10:1.57
	yamt-pagecache-base5:1.57
	jmcneill-usbmp-base9:1.57
	yamt-pagecache-base4:1.57
	jmcneill-usbmp-base8:1.57
	jmcneill-usbmp-base7:1.57
	jmcneill-usbmp-base6:1.57
	jmcneill-usbmp-base5:1.57
	jmcneill-usbmp-base4:1.57
	jmcneill-usbmp-base3:1.57
	jmcneill-usbmp-pre-base2:1.57
	jmcneill-usbmp-base2:1.57
	netbsd-6:1.57.0.8
	netbsd-6-base:1.57
	netbsd-5-1-2-RELEASE:1.46
	netbsd-5-1-1-RELEASE:1.46
	jmcneill-usbmp:1.57.0.6
	jmcneill-usbmp-base:1.57
	jmcneill-audiomp3:1.57.0.4
	jmcneill-audiomp3-base:1.57
	yamt-pagecache-base3:1.57
	yamt-pagecache-base2:1.57
	yamt-pagecache:1.57.0.2
	yamt-pagecache-base:1.57
	rmind-uvmplock-nbase:1.56
	cherry-xenmp:1.56.0.2
	cherry-xenmp-base:1.56
	jym-xensuspend-nbase:1.56
	uebayasi-xip-base7:1.55
	bouyer-quota2-nbase:1.56
	bouyer-quota2:1.52.0.4
	bouyer-quota2-base:1.55
	jruoho-x86intr:1.52.0.2
	jruoho-x86intr-base:1.52
	matt-mips64-premerge-20101231:1.52
	matt-nb5-mips64-premerge-20101231:1.46
	matt-nb5-pq3:1.46.0.98
	matt-nb5-pq3-base:1.46
	netbsd-5-1:1.46.0.96
	uebayasi-xip-base6:1.52
	pmax-base:1.1.1
	uebayasi-xip-base5:1.52
	netbsd-5-1-RELEASE:1.46
	uebayasi-xip-base4:1.52
	uebayasi-xip-base3:1.52
	yamt-nfs-mp-base11:1.52
	netbsd-5-1-RC4:1.46
	matt-nb5-mips64-k15:1.46
	uebayasi-xip-base2:1.52
	yamt-nfs-mp-base10:1.52
	netbsd-5-1-RC3:1.46
	netbsd-5-1-RC2:1.46
	uebayasi-xip-base1:1.51
	netbsd-5-1-RC1:1.46
	rmind-uvmplock:1.51.0.4
	rmind-uvmplock-base:1.56
	yamt-nfs-mp-base9:1.51
	uebayasi-xip:1.51.0.2
	uebayasi-xip-base:1.51
	netbsd-5-0-2-RELEASE:1.46
	matt-nb5-mips64-premerge-20091211:1.46
	matt-premerge-20091211:1.51
	yamt-nfs-mp-base8:1.51
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.46
	matt-nb4-mips64-k7-u2a-k9b:1.46
	matt-nb5-mips64-u1-k1-k5:1.46
	yamt-nfs-mp-base7:1.51
	matt-nb5-mips64:1.46.0.94
	netbsd-5-0-1-RELEASE:1.46
	jymxensuspend-base:1.51
	yamt-nfs-mp-base6:1.51
	yamt-nfs-mp-base5:1.51
	yamt-nfs-mp-base4:1.51
	yamt-nfs-mp-base3:1.51
	nick-hppapmap-base4:1.51
	nick-hppapmap-base3:1.51
	netbsd-5-0:1.46.0.92
	netbsd-5-0-RELEASE:1.46
	netbsd-5-0-RC4:1.46
	netbsd-5-0-RC3:1.46
	nick-hppapmap-base2:1.47
	netbsd-5-0-RC2:1.46
	jym-xensuspend:1.47.0.2
	jym-xensuspend-base:1.56
	netbsd-5-0-RC1:1.46
	haad-dm-base2:1.46
	haad-nbase2:1.46
	ad-audiomp2:1.46.0.90
	ad-audiomp2-base:1.46
	netbsd-5:1.46.0.88
	netbsd-5-base:1.46
	nick-hppapmap:1.46.0.86
	nick-hppapmap-base:1.51
	matt-mips64-base2:1.46
	haad-dm-base1:1.46
	wrstuden-revivesa-base-4:1.46
	netbsd-4-0-1-RELEASE:1.46
	wrstuden-revivesa-base-3:1.46
	wrstuden-revivesa-base-2:1.46
	wrstuden-fixsa-newbase:1.46
	nick-csl-alignment-base5:1.46
	haad-dm:1.46.0.84
	haad-dm-base:1.46
	wrstuden-revivesa-base-1:1.46
	simonb-wapbl-nbase:1.46
	yamt-pf42-base4:1.46
	simonb-wapbl:1.46.0.82
	simonb-wapbl-base:1.46
	yamt-pf42-base3:1.46
	hpcarm-cleanup-nbase:1.46
	yamt-pf42-baseX:1.46
	yamt-pf42-base2:1.46
	yamt-nfs-mp-base2:1.46
	wrstuden-revivesa:1.46.0.80
	wrstuden-revivesa-base:1.46
	yamt-nfs-mp:1.46.0.78
	yamt-nfs-mp-base:1.46
	yamt-pf42:1.46.0.76
	yamt-pf42-base:1.46
	ad-socklock-base1:1.46
	yamt-lazymbuf-base15:1.46
	yamt-lazymbuf-base14:1.46
	keiichi-mipv6-nbase:1.46
	mjf-devfs2:1.46.0.74
	mjf-devfs2-base:1.47
	nick-net80211-sync:1.46.0.72
	nick-net80211-sync-base:1.46
	keiichi-mipv6:1.46.0.70
	keiichi-mipv6-base:1.46
	bouyer-xeni386-merge1:1.46
	matt-armv6-prevmlocking:1.46
	wrstuden-fixsa-base-1:1.46
	vmlocking2-base3:1.46
	netbsd-4-0:1.46.0.68
	netbsd-4-0-RELEASE:1.46
	bouyer-xeni386-nbase:1.46
	yamt-kmem-base3:1.46
	cube-autoconf:1.46.0.66
	cube-autoconf-base:1.46
	yamt-kmem-base2:1.46
	bouyer-xeni386:1.46.0.64
	bouyer-xeni386-base:1.46
	yamt-kmem:1.46.0.62
	yamt-kmem-base:1.46
	vmlocking2-base2:1.46
	reinoud-bufcleanup-nbase:1.46
	vmlocking2:1.46.0.60
	vmlocking2-base1:1.46
	netbsd-4-0-RC5:1.46
	matt-nb4-arm:1.46.0.58
	matt-nb4-arm-base:1.46
	matt-armv6-nbase:1.46
	jmcneill-base:1.46
	netbsd-4-0-RC4:1.46
	mjf-devfs:1.46.0.56
	mjf-devfs-base:1.46
	bouyer-xenamd64-base2:1.46
	vmlocking-nbase:1.46
	yamt-x86pmap-base4:1.46
	bouyer-xenamd64:1.46.0.54
	bouyer-xenamd64-base:1.46
	netbsd-4-0-RC3:1.46
	yamt-x86pmap-base3:1.46
	yamt-x86pmap-base2:1.46
	netbsd-4-0-RC2:1.46
	yamt-x86pmap:1.46.0.52
	yamt-x86pmap-base:1.46
	netbsd-4-0-RC1:1.46
	matt-armv6:1.46.0.50
	matt-armv6-base:1.46
	jmcneill-pm:1.46.0.48
	jmcneill-pm-base:1.46
	hpcarm-cleanup:1.46.0.46
	hpcarm-cleanup-base:1.46
	nick-csl-alignment:1.46.0.44
	nick-csl-alignment-base:1.46
	matt-mips64:1.46.0.42
	matt-mips64-base:1.46
	netbsd-3-1-1-RELEASE:1.45
	netbsd-3-0-3-RELEASE:1.45
	yamt-idlelwp-base8:1.46
	wrstuden-fixsa:1.46.0.40
	wrstuden-fixsa-base:1.46
	ppcoea-renovation:1.46.0.38
	ppcoea-renovation-base:1.46
	thorpej-atomic:1.46.0.36
	thorpej-atomic-base:1.46
	reinoud-bufcleanup:1.46.0.34
	reinoud-bufcleanup-base:1.46
	mjf-ufs-trans:1.46.0.32
	mjf-ufs-trans-base:1.46
	vmlocking:1.46.0.30
	vmlocking-base:1.46
	ad-audiomp:1.46.0.28
	ad-audiomp-base:1.46
	yamt-idlelwp:1.46.0.26
	post-newlock2-merge:1.46
	newlock2-nbase:1.46
	yamt-splraiseipl-base5:1.46
	yamt-splraiseipl-base4:1.46
	yamt-splraiseipl-base3:1.46
	abandoned-netbsd-4-base:1.46
	abandoned-netbsd-4:1.46.0.18
	netbsd-3-1:1.45.0.20
	netbsd-3-1-RELEASE:1.45
	netbsd-3-0-2-RELEASE:1.45
	yamt-splraiseipl-base2:1.46
	netbsd-3-1-RC4:1.45
	yamt-splraiseipl:1.46.0.22
	yamt-splraiseipl-base:1.46
	netbsd-3-1-RC3:1.45
	yamt-pdpolicy-base9:1.46
	newlock2:1.46.0.20
	newlock2-base:1.46
	yamt-pdpolicy-base8:1.46
	netbsd-3-1-RC2:1.45
	netbsd-3-1-RC1:1.45
	yamt-pdpolicy-base7:1.46
	netbsd-4:1.46.0.24
	netbsd-4-base:1.46
	yamt-pdpolicy-base6:1.46
	chap-midi-nbase:1.46
	netbsd-3-0-1-RELEASE:1.45
	gdamore-uart:1.46.0.16
	gdamore-uart-base:1.46
	simonb-timcounters-final:1.46
	yamt-pdpolicy-base5:1.46
	chap-midi:1.46.0.14
	chap-midi-base:1.46
	yamt-pdpolicy-base4:1.46
	yamt-pdpolicy-base3:1.46
	peter-altq-base:1.46
	peter-altq:1.46.0.12
	yamt-pdpolicy-base2:1.46
	elad-kernelauth-base:1.46
	elad-kernelauth:1.46.0.10
	yamt-pdpolicy:1.46.0.8
	yamt-pdpolicy-base:1.46
	yamt-uio_vmspace-base5:1.46
	simonb-timecounters:1.46.0.6
	simonb-timecounters-base:1.46
	rpaulo-netinet-merge-pcb:1.46.0.4
	rpaulo-netinet-merge-pcb-base:1.46
	yamt-uio_vmspace:1.46.0.2
	netbsd-3-0:1.45.0.18
	netbsd-3-0-RELEASE:1.45
	netbsd-3-0-RC6:1.45
	yamt-readahead-base3:1.45
	netbsd-3-0-RC5:1.45
	netbsd-3-0-RC4:1.45
	netbsd-3-0-RC3:1.45
	yamt-readahead-base2:1.45
	netbsd-3-0-RC2:1.45
	yamt-readahead-pervnode:1.45
	yamt-readahead-perfile:1.45
	yamt-readahead:1.45.0.16
	yamt-readahead-base:1.45
	netbsd-3-0-RC1:1.45
	yamt-vop-base3:1.45
	netbsd-2-0-3-RELEASE:1.43.2.1
	netbsd-2-1:1.43.2.1.0.4
	yamt-vop-base2:1.45
	thorpej-vnode-attr:1.45.0.14
	thorpej-vnode-attr-base:1.45
	netbsd-2-1-RELEASE:1.43.2.1
	yamt-vop:1.45.0.12
	yamt-vop-base:1.45
	netbsd-2-1-RC6:1.43.2.1
	netbsd-2-1-RC5:1.43.2.1
	netbsd-2-1-RC4:1.43.2.1
	netbsd-2-1-RC3:1.43.2.1
	netbsd-2-1-RC2:1.43.2.1
	netbsd-2-1-RC1:1.43.2.1
	yamt-lazymbuf:1.45.0.10
	yamt-km-base4:1.45
	netbsd-2-0-2-RELEASE:1.43.2.1
	yamt-km-base3:1.45
	netbsd-3:1.45.0.8
	netbsd-3-base:1.45
	yamt-km-base2:1.45
	yamt-km:1.45.0.4
	yamt-km-base:1.45
	kent-audio2:1.45.0.2
	kent-audio2-base:1.45
	netbsd-2-0-1-RELEASE:1.43.2.1
	kent-audio1-beforemerge:1.45
	netbsd-2:1.43.2.1.0.2
	netbsd-2-base:1.43.2.1
	kent-audio1:1.44.0.2
	kent-audio1-base:1.44
	netbsd-2-0-RELEASE:1.43.2.1
	netbsd-2-0-RC5:1.43.2.1
	netbsd-2-0-RC4:1.43.2.1
	netbsd-2-0-RC3:1.43.2.1
	netbsd-2-0-RC2:1.43.2.1
	netbsd-2-0-RC1:1.43.2.1
	netbsd-2-0:1.43.0.2
	netbsd-2-0-base:1.43
	netbsd-1-6-PATCH002-RELEASE:1.38
	netbsd-1-6-PATCH002:1.38
	netbsd-1-6-PATCH002-RC4:1.38
	netbsd-1-6-PATCH002-RC3:1.38
	netbsd-1-6-PATCH002-RC2:1.38
	netbsd-1-6-PATCH002-RC1:1.38
	ktrace-lwp:1.40.0.6
	ktrace-lwp-base:1.45
	netbsd-1-6-PATCH001:1.38
	netbsd-1-6-PATCH001-RELEASE:1.38
	netbsd-1-6-PATCH001-RC3:1.38
	netbsd-1-6-PATCH001-RC2:1.38
	netbsd-1-6-PATCH001-RC1:1.38
	nathanw_sa_end:1.32.4.6
	nathanw_sa_before_merge:1.40
	fvdl_fs64_base:1.40
	gmcgarry_ctxsw:1.40.0.4
	gmcgarry_ctxsw_base:1.40
	gmcgarry_ucred:1.40.0.2
	gmcgarry_ucred_base:1.40
	nathanw_sa_base:1.40
	kqueue-aftermerge:1.38
	kqueue-beforemerge:1.38
	netbsd-1-6-RELEASE:1.38
	netbsd-1-6-RC3:1.38
	netbsd-1-6-RC2:1.38
	netbsd-1-6-RC1:1.38
	netbsd-1-6:1.38.0.4
	netbsd-1-6-base:1.38
	gehenna-devsw:1.38.0.2
	gehenna-devsw-base:1.38
	netbsd-1-5-PATCH003:1.29
	eeh-devprop:1.34.0.2
	eeh-devprop-base:1.34
	ad_pmax_wscons:1.33.0.6
	ad_pmax_wscons_base:1.33
	newlock:1.33.0.4
	newlock-base:1.33
	ifpoll-base:1.33
	nathanw_sa:1.32.0.4
	thorpej-mips-cache:1.32.0.2
	thorpej-mips-cache-base:1.32
	thorpej-devvp-base3:1.32
	thorpej-devvp-base2:1.31
	post-chs-ubcperf:1.30
	pre-chs-ubcperf:1.30
	thorpej-devvp:1.30.0.2
	thorpej-devvp-base:1.30
	netbsd-1-5-PATCH002:1.29
	kqueue:1.30.0.4
	kqueue-base:1.38
	netbsd-1-5-PATCH001:1.29
	thorpej_scsipi_beforemerge:1.30
	thorpej_scsipi_nbase:1.30
	netbsd-1-5-RELEASE:1.29
	netbsd-1-5-BETA2:1.29
	netbsd-1-5-BETA:1.29
	netbsd-1-4-PATCH003:1.21
	netbsd-1-5-ALPHA2:1.29
	netbsd-1-5:1.29.0.4
	netbsd-1-5-base:1.29
	minoura-xpg4dl-base:1.29
	minoura-xpg4dl:1.29.0.2
	netbsd-1-4-PATCH002:1.21
	chs-ubc2-newbase:1.28
	wrstuden-devbsize-19991221:1.27
	wrstuden-devbsize:1.24.0.8
	wrstuden-devbsize-base:1.27
	kame_141_19991130:1.21
	comdex-fall-1999:1.24.0.6
	comdex-fall-1999-base:1.24
	fvdl-softdep:1.24.0.4
	fvdl-softdep-base:1.26
	thorpej_scsipi:1.24.0.2
	thorpej_scsipi_base:1.30
	netbsd-1-4-PATCH001:1.21
	kame_14_19990705:1.21
	kame_14_19990628:1.21
	kame:1.21.0.6
	chs-ubc2:1.21.0.4
	chs-ubc2-base:1.24
	netbsd-1-4-RELEASE:1.21
	netbsd-1-4:1.21.0.2
	netbsd-1-4-base:1.21
	netbsd-1-3-PATCH003:1.10
	netbsd-1-3-PATCH003-CANDIDATE2:1.10
	kenh-if-detach:1.11.0.8
	kenh-if-detach-base:1.11
	netbsd-1-3-PATCH003-CANDIDATE1:1.10
	netbsd-1-3-PATCH003-CANDIDATE0:1.10
	chs-ubc:1.11.0.6
	chs-ubc-base:1.11
	nisimura-pmax-wscons:1.11.0.4
	nisimura-pmax-wscons-base:1.11
	eeh-paddr_t:1.11.0.2
	eeh-paddr_t-base:1.11
	netbsd-1-3-PATCH002:1.10
	netbsd-1-3-PATCH001:1.10
	netbsd-1-3-RELEASE:1.10
	netbsd-1-3-BETA:1.10
	netbsd-1-3:1.10.0.8
	netbsd-1-3-base:1.10
	thorpej-signal:1.10.0.6
	thorpej-signal-base:1.10
	marc-pcmcia:1.10.0.4
	marc-pcmcia-bp:1.10
	marc-pcmcia-base:1.10
	bouyer-scsipi:1.10.0.2;
locks; strict;
comment	@# @;


1.65
date	2021.04.25.23.42.08;	author christos;	state Exp;
branches;
next	1.64;
commitid	1Dt9qPnH133VqJQC;

1.64
date	2019.01.01.19.41.04;	author christos;	state Exp;
branches
	1.64.16.1;
next	1.63;
commitid	4FF93amfFWjcg76B;

1.63
date	2017.04.08.19.53.22;	author christos;	state Exp;
branches
	1.63.12.1
	1.63.14.1;
next	1.62;

1.62
date	2016.09.03.11.34.47;	author christos;	state Exp;
branches
	1.62.2.1;
next	1.61;

1.61
date	2016.03.22.08.25.22;	author mrg;	state Exp;
branches
	1.61.2.1;
next	1.60;

1.60
date	2014.01.16.01.15.34;	author christos;	state Exp;
branches
	1.60.6.1;
next	1.59;

1.59
date	2014.01.12.15.26.30;	author tsutsui;	state Exp;
branches;
next	1.58;

1.58
date	2013.08.12.16.34.05;	author joerg;	state Exp;
branches;
next	1.57;

1.57
date	2011.07.10.08.42.55;	author mrg;	state Exp;
branches
	1.57.2.1
	1.57.12.1
	1.57.16.1;
next	1.56;

1.56
date	2011.02.20.07.50.25;	author matt;	state Exp;
branches;
next	1.55;

1.55
date	2011.01.28.11.58.38;	author tsutsui;	state Exp;
branches;
next	1.54;

1.54
date	2011.01.23.13.18.57;	author joerg;	state Exp;
branches;
next	1.53;

1.53
date	2011.01.22.19.19.21;	author joerg;	state Exp;
branches;
next	1.52;

1.52
date	2010.05.27.06.58.14;	author dholland;	state Exp;
branches
	1.52.2.1
	1.52.4.1;
next	1.51;

1.51
date	2009.04.23.16.37.44;	author tsutsui;	state Exp;
branches
	1.51.2.1
	1.51.4.1;
next	1.50;

1.50
date	2009.04.23.16.35.20;	author tsutsui;	state Exp;
branches;
next	1.49;

1.49
date	2009.04.03.10.38.14;	author tsutsui;	state Exp;
branches;
next	1.48;

1.48
date	2009.03.17.00.45.46;	author he;	state Exp;
branches;
next	1.47;

1.47
date	2009.01.12.07.29.23;	author tsutsui;	state Exp;
branches
	1.47.2.1;
next	1.46;

1.46
date	2005.12.11.12.18.39;	author christos;	state Exp;
branches
	1.46.74.1
	1.46.78.1
	1.46.86.1;
next	1.45;

1.45
date	2005.01.01.07.00.51;	author simonb;	state Exp;
branches;
next	1.44;

1.44
date	2004.06.21.18.20.09;	author jmc;	state Exp;
branches;
next	1.43;

1.43
date	2003.11.24.23.29.54;	author he;	state Exp;
branches
	1.43.2.1;
next	1.42;

1.42
date	2003.10.26.07.25.37;	author lukem;	state Exp;
branches;
next	1.41;

1.41
date	2003.10.08.01.40.23;	author simonb;	state Exp;
branches;
next	1.40;

1.40
date	2002.12.09.12.42.18;	author jdolecek;	state Exp;
branches
	1.40.6.1;
next	1.39;

1.39
date	2002.12.09.12.20.56;	author jdolecek;	state Exp;
branches;
next	1.38;

1.38
date	2002.05.07.02.13.51;	author simonb;	state Exp;
branches;
next	1.37;

1.37
date	2002.05.05.22.09.05;	author jdolecek;	state Exp;
branches;
next	1.36;

1.36
date	2002.05.04.07.26.11;	author gmcgarry;	state Exp;
branches;
next	1.35;

1.35
date	2002.04.12.05.11.18;	author lukem;	state Exp;
branches;
next	1.34;

1.34
date	2002.03.20.20.15.18;	author gmcgarry;	state Exp;
branches;
next	1.33;

1.33
date	2002.02.23.21.43.58;	author gmcgarry;	state Exp;
branches;
next	1.32;

1.32
date	2001.10.05.05.03.30;	author simonb;	state Exp;
branches
	1.32.4.1;
next	1.31;

1.31
date	2001.09.22.05.19.39;	author tsutsui;	state Exp;
branches;
next	1.30;

1.30
date	2000.07.13.22.18.08;	author jdolecek;	state Exp;
branches
	1.30.2.1
	1.30.4.1;
next	1.29;

1.29
date	2000.05.21.02.50.12;	author soren;	state Exp;
branches;
next	1.28;

1.28
date	2000.01.23.17.04.07;	author mycroft;	state Exp;
branches;
next	1.27;

1.27
date	99.11.27.23.55.23;	author simonb;	state Exp;
branches;
next	1.26;

1.26
date	99.11.13.21.33.12;	author thorpej;	state Exp;
branches;
next	1.25;

1.25
date	99.11.12.01.37.42;	author simonb;	state Exp;
branches;
next	1.24;

1.24
date	99.07.21.13.34.34;	author mrg;	state Exp;
branches
	1.24.2.1
	1.24.4.1
	1.24.8.1;
next	1.23;

1.23
date	99.04.28.09.18.47;	author christos;	state Exp;
branches;
next	1.22;

1.22
date	99.04.11.04.24.41;	author simonb;	state Exp;
branches;
next	1.21;

1.21
date	99.04.01.06.05.04;	author simonb;	state Exp;
branches
	1.21.4.1;
next	1.20;

1.20
date	99.03.31.03.10.56;	author simonb;	state Exp;
branches;
next	1.19;

1.19
date	99.03.31.02.35.14;	author simonb;	state Exp;
branches;
next	1.18;

1.18
date	99.03.27.07.17.50;	author simonb;	state Exp;
branches;
next	1.17;

1.17
date	99.03.25.05.19.44;	author simonb;	state dead;
branches;
next	1.16;

1.16
date	99.02.22.11.53.57;	author simonb;	state Exp;
branches;
next	1.15;

1.15
date	99.01.30.12.39.28;	author simonb;	state Exp;
branches;
next	1.14;

1.14
date	99.01.22.14.05.05;	author simonb;	state Exp;
branches;
next	1.13;

1.13
date	99.01.21.14.16.52;	author simonb;	state Exp;
branches;
next	1.12;

1.12
date	99.01.21.12.33.39;	author simonb;	state Exp;
branches;
next	1.11;

1.11
date	98.05.22.12.56.35;	author drochner;	state Exp;
branches;
next	1.10;

1.10
date	97.06.15.22.53.49;	author jonathan;	state Exp;
branches
	1.10.8.1;
next	1.9;

1.9
date	97.05.25.22.04.46;	author jonathan;	state Exp;
branches;
next	1.8;

1.8
date	96.10.18.06.08.15;	author thorpej;	state Exp;
branches;
next	1.7;

1.7
date	96.02.01.22.32.19;	author mycroft;	state Exp;
branches;
next	1.6;

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

1.5
date	95.01.18.06.53.36;	author mellon;	state Exp;
branches;
next	1.4;

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

1.3
date	94.05.27.09.04.44;	author glass;	state Exp;
branches;
next	1.2;

1.2
date	94.05.27.08.42.30;	author glass;	state Exp;
branches;
next	1.1;

1.1
date	93.10.12.03.22.44;	author deraadt;	state Exp;
branches
	1.1.1.1;
next	;

1.64.16.1
date	2021.05.13.00.47.27;	author thorpej;	state Exp;
branches;
next	;
commitid	hlq0lOvHnylpfVSC;

1.63.12.1
date	2019.01.18.08.50.21;	author pgoyette;	state Exp;
branches;
next	;
commitid	Lmlzg3OVT2cd6f8B;

1.63.14.1
date	2019.06.10.22.06.37;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.62.2.1
date	2017.04.21.16.53.33;	author bouyer;	state Exp;
branches;
next	;

1.61.2.1
date	2017.04.26.02.53.06;	author pgoyette;	state Exp;
branches;
next	;

1.60.6.1
date	2016.04.22.15.44.11;	author skrll;	state Exp;
branches;
next	1.60.6.2;

1.60.6.2
date	2016.10.05.20.55.34;	author skrll;	state Exp;
branches;
next	1.60.6.3;

1.60.6.3
date	2017.08.28.17.51.48;	author skrll;	state Exp;
branches;
next	;
commitid	UQQpnjvcNkUZn05A;

1.57.2.1
date	2014.05.22.11.40.03;	author yamt;	state Exp;
branches;
next	;

1.57.12.1
date	2014.08.20.00.03.19;	author tls;	state Exp;
branches;
next	1.57.12.2;

1.57.12.2
date	2017.12.03.11.36.35;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.57.16.1
date	2013.08.28.23.59.20;	author rmind;	state Exp;
branches;
next	1.57.16.2;

1.57.16.2
date	2014.05.18.17.45.21;	author rmind;	state Exp;
branches;
next	;

1.52.2.1
date	2011.06.06.09.06.24;	author jruoho;	state Exp;
branches;
next	;

1.52.4.1
date	2011.02.08.16.19.33;	author bouyer;	state Exp;
branches;
next	1.52.4.2;

1.52.4.2
date	2011.03.05.15.09.58;	author bouyer;	state Exp;
branches;
next	;

1.51.2.1
date	2010.08.17.06.45.02;	author uebayasi;	state Exp;
branches;
next	;

1.51.4.1
date	2010.05.30.05.17.02;	author rmind;	state Exp;
branches;
next	1.51.4.2;

1.51.4.2
date	2011.03.05.20.51.32;	author rmind;	state Exp;
branches;
next	;

1.47.2.1
date	2009.05.13.17.18.13;	author jym;	state Exp;
branches;
next	;

1.46.74.1
date	2009.01.17.13.28.25;	author mjf;	state Exp;
branches;
next	;

1.46.78.1
date	2009.05.04.08.11.42;	author yamt;	state Exp;
branches;
next	1.46.78.2;

1.46.78.2
date	2010.08.11.22.52.32;	author yamt;	state Exp;
branches;
next	;

1.46.86.1
date	2009.01.19.13.16.37;	author skrll;	state Exp;
branches;
next	1.46.86.2;

1.46.86.2
date	2009.04.28.07.34.33;	author skrll;	state Exp;
branches;
next	;

1.43.2.1
date	2004.06.22.07.58.27;	author tron;	state Exp;
branches;
next	;

1.40.6.1
date	2004.08.03.10.39.21;	author skrll;	state Exp;
branches;
next	1.40.6.2;

1.40.6.2
date	2004.09.18.14.38.56;	author skrll;	state Exp;
branches;
next	1.40.6.3;

1.40.6.3
date	2004.09.21.13.20.25;	author skrll;	state Exp;
branches;
next	1.40.6.4;

1.40.6.4
date	2005.01.17.19.30.09;	author skrll;	state Exp;
branches;
next	;

1.32.4.1
date	2001.10.05.05.03.30;	author nathanw;	state dead;
branches;
next	1.32.4.2;

1.32.4.2
date	2002.02.28.04.11.23;	author nathanw;	state Exp;
branches;
next	1.32.4.3;

1.32.4.3
date	2002.04.01.07.41.58;	author nathanw;	state Exp;
branches;
next	1.32.4.4;

1.32.4.4
date	2002.04.17.00.04.10;	author nathanw;	state Exp;
branches;
next	1.32.4.5;

1.32.4.5
date	2002.06.20.03.40.30;	author nathanw;	state Exp;
branches;
next	1.32.4.6;

1.32.4.6
date	2002.12.11.06.11.35;	author thorpej;	state Exp;
branches;
next	;

1.30.2.1
date	2001.10.01.12.41.39;	author fvdl;	state Exp;
branches;
next	1.30.2.2;

1.30.2.2
date	2001.10.11.00.01.49;	author fvdl;	state Exp;
branches;
next	;

1.30.4.1
date	2002.01.10.19.47.55;	author thorpej;	state Exp;
branches;
next	1.30.4.2;

1.30.4.2
date	2002.03.16.15.59.14;	author jdolecek;	state Exp;
branches;
next	1.30.4.3;

1.30.4.3
date	2002.06.23.17.39.13;	author jdolecek;	state Exp;
branches;
next	;

1.24.2.1
date	2000.11.20.20.20.39;	author bouyer;	state Exp;
branches;
next	;

1.24.4.1
date	99.11.15.00.39.05;	author fvdl;	state Exp;
branches;
next	;

1.24.8.1
date	99.12.27.18.33.30;	author wrstuden;	state Exp;
branches;
next	;

1.21.4.1
date	99.06.21.00.59.08;	author thorpej;	state Exp;
branches;
next	1.21.4.2;

1.21.4.2
date	99.08.02.20.06.05;	author thorpej;	state Exp;
branches;
next	;

1.10.8.1
date	99.02.02.05.58.12;	author cgd;	state Exp;
branches;
next	;

1.1.1.1
date	93.10.12.03.22.45;	author deraadt;	state Exp;
branches;
next	;


desc
@@


1.65
log
@Handle mipsn64
@
text
@# $NetBSD: Makefile.booters,v 1.64 2019/01/01 19:41:04 christos Exp $

NOMAN=		# defined
NOPIE=		# defined

.include <bsd.own.mk>

# $S must correspond to the top of the 'sys' tree
S=	${.CURDIR}/../../../..

BINMODE?=	444

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

.PATH:		${.CURDIR}/../common
AFLAGS+=	-D_LOCORE -D_KERNEL -mno-abicalls
# -I${.CURDIR}/../.. done by Makefile.inc
CPPFLAGS+=	-nostdinc -D_STANDALONE -DNO_ABICALLS -D_NO_PROM_DEFINES \
		-I${.OBJDIR} -I${S}
# compiler flags for smallest code size
CFLAGS=		-ffreestanding -Os -g -mmemcpy -mno-abicalls -G 128
CFLAGS+=	-fno-unwind-tables
CFLAGS+=	-Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
CFLAGS+=	-Werror
LDBUG=		-T $S/arch/mips/conf/stand.ldscript

.if !empty(MACHINE_ARCH:Mmips*64el)
AFLAGS+=	-mips3 -mabi=32
CFLAGS+=	-mips3 -mabi=32
LDBUG+=		-m elf32ltsmip
.endif

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

PRIMARY_LOAD_ADDRESS?=	0x80700000
SECONDARY_LOAD_ADDRESS?=0x80710000

.if defined(PRIMARY_PROG)
PROG=		${PRIMARY_PROG}
SRCS =		start.S bootxx.c callvec.c
SRCS+=		devopen.c conf.c rz.c
SRCS+=		bootinit.S bootread.S clear_cache.S printf.S

LOAD_ADDRESS=	${PRIMARY_LOAD_ADDRESS}
# Pick a number, any number...
PRIMARY_MAX_TOTAL!=	expr 16 \* 1024

CPPFLAGS+=	-DPRIMARY_BOOTBLOCK \
		-DPRIMARY_LOAD_ADDRESS="${PRIMARY_LOAD_ADDRESS}" \
		-DNO_GETCHAR \
		-DLIBSA_NO_FS_SYMLINK -DLIBSA_NO_FS_WRITE \
		-DLIBSA_NO_FS_CLOSE \
		-DLIBSA_NO_DEV_CLOSE \
		-DLIBSA_NO_DEV_IOCTL \
		-DLIBSA_SINGLE_DEVICE=rz \
		-D"rzioctl(x,y,z)=EINVAL" -D"rzclose(f)=0" \
		-DLIBSA_NO_TWIDDLE \
		-DLIBSA_NO_FD_CHECKING \
		-DLIBSA_NO_RAW_ACCESS \
		-DLIBSA_NO_DISKLABEL_MSGS \
		-DALLOC_FIRST_FIT

CHECKSIZE_CMD?=	SIZE=${SIZE} ${HOST_SH} ${.CURDIR}/../common/checksize.sh

.elif defined(SECONDARY_PROG)
PROG=		${SECONDARY_PROG}
LOAD_ADDRESS=	${SECONDARY_LOAD_ADDRESS}
CPPFLAGS+=	-DSECONDARY_BOOTBLOCK

.include "${S}/conf/newvers_stand.mk"

.else
# XXX ?
.endif

### 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
.if defined(PRIMARY_PROG)
LIBZ=
.else
Z_AS=		library
.include "${S}/lib/libz/Makefile.inc"
LIBZ=		${ZLIB}
.endif

### find out what to use for libsa
SA_AS=		library
.if defined(PRIMARY_PROG)
SAMISCMAKEFLAGS+=SA_INCLUDE_NET=no
.endif
.if defined(SECONDARY_PROG)
SAMISCMAKEFLAGS+=SA_USE_LOADFILE=yes SA_USE_CREAD=yes
SAMISCMAKEFLAGS+=SA_INCLUDE_NET=yes
.endif
.include "${S}/lib/libsa/Makefile.inc"
LIBSA=		${SALIB}

LIBS=		${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN}

${PROG}: ${OBJS} ${LIBS}
	${LD} -Map ${PROG}.map -N -x -Ttext ${LOAD_ADDRESS} \
	    ${LDBUG} -e start -o ${PROG} ${OBJS} ${LIBS}
	@@${SIZE} ${PROG}
.if defined(CHECKSIZE_CMD)
	@@${CHECKSIZE_CMD} ${PROG} ${PRIMARY_MAX_LOAD} ${PRIMARY_MAX_TOTAL} || \
	    (rm -f ${PROG} ; false)
.endif
.if defined(DO_ECOFF_BINARY)
	@@echo -n "Creating ECOFF binary... "
	@@mv ${PROG} ${PROG}.elf
	@@${MIPS_ELF2ECOFF} ${PROG}.elf ${PROG}
.endif

.include <bsd.klinks.mk>
.include <bsd.prog.mk>

CLEANFILES+=	${PROG}.map ${PROG}.elf

cleandir distclean: .WAIT cleanlibdir

cleanlibdir:
	-rm -rf lib
@


1.64
log
@ELF2ECOFF -> MIPS_ELF2ECOFF
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.63 2017/04/08 19:53:22 christos Exp $
d32 1
a32 1
.if ${MACHINE_ARCH} == "mips64el"
@


1.64.16.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.65 2021/04/25 23:42:08 christos Exp $
d32 1
a32 1
.if !empty(MACHINE_ARCH:Mmips*64el)
@


1.63
log
@centralize vers.c building for standalone programs.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.62 2016/09/03 11:34:47 christos Exp $
d121 1
a121 1
	@@${ELF2ECOFF} ${PROG}.elf ${PROG}
@


1.63.14.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.64 2019/01/01 19:41:04 christos Exp $
d121 1
a121 1
	@@${MIPS_ELF2ECOFF} ${PROG}.elf ${PROG}
@


1.63.12.1
log
@Synch with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.63 2017/04/08 19:53:22 christos Exp $
d121 1
a121 1
	@@${MIPS_ELF2ECOFF} ${PROG}.elf ${PROG}
@


1.62
log
@Add NOPIE
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.61 2016/03/22 08:25:22 mrg Exp $
d75 3
a77 2
SRCS+=	vers.c
CLEANFILES+= vers.c
a109 4
vers.c: ${.CURDIR}/version
	${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \
	    -N ${.CURDIR}/version "pmax"

@


1.62.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.63 2017/04/08 19:53:22 christos Exp $
d75 2
a76 3

.include "${S}/conf/newvers_stand.mk"

d109 4
@


1.61
log
@remove a bunch of "@@echo done" from the tail of rules.  these messages
were vaguely useful back when we didn't run make -j, but now you end
up with a single line "done" every so often, with no idea what it is
for.  very few other targets claim they're done so just remove these.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.60 2014/01/16 01:15:34 christos Exp $
d4 1
@


1.61.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.63 2017/04/08 19:53:22 christos Exp $
d74 2
a75 3

.include "${S}/conf/newvers_stand.mk"

d108 4
@


1.60
log
@eliminate use of bsd.sys.mk from Makefiles
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.59 2014/01/12 15:26:30 tsutsui Exp $
a123 1
	@@echo done.
@


1.60.6.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.61 2016/03/22 08:25:22 mrg Exp $
d124 1
@


1.60.6.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.60.6.1 2016/04/22 15:44:11 skrll Exp $
a3 1
NOPIE=		# defined
@


1.60.6.3
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.60.6.2 2016/10/05 20:55:34 skrll Exp $
d75 2
a76 3

.include "${S}/conf/newvers_stand.mk"

d109 4
@


1.59
log
@Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.

XXX: probabry we should have bsd.saprog.mk or something.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.58 2013/08/12 16:34:05 joerg Exp $
a5 1
.include <bsd.sys.mk>		# for HOST_SH
@


1.58
log
@Build boot loaders without unwind tables.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.57 2011/07/10 08:42:55 mrg Exp $
d15 1
@


1.57
log
@don't set MACHINE_ARCH.  the CPUFLAGS/etc. is enough, and otherwise this
doesn't work with an isolated $TOOLDIR from the mipse[lb] toolchain.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.56 2011/02/20 07:50:25 matt Exp $
d26 1
@


1.57.12.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
# $NetBSD$
d6 1
a14 1
LIBCRTI=
a25 1
CFLAGS+=	-fno-unwind-tables
@


1.57.12.2
log
@update from HEAD
@
text
@a3 1
NOPIE=		# defined
d74 2
a75 3

.include "${S}/conf/newvers_stand.mk"

d108 4
d124 1
@


1.57.2.1
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.57 2011/07/10 08:42:55 mrg Exp $
d6 1
a14 1
LIBCRTI=
a25 1
CFLAGS+=	-fno-unwind-tables
@


1.57.16.1
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD$
a25 1
CFLAGS+=	-fno-unwind-tables
@


1.57.16.2
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.57.16.1 2013/08/28 23:59:20 rmind Exp $
d6 1
a14 1
LIBCRTI=
@


1.56
log
@Merge forward from matt-nb5-mips64.
New interrupt code.
mips64 support for DS5000/260.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.55 2011/01/28 11:58:38 tsutsui Exp $
a33 1
MACHINE_ARCH=	mipsel
@


1.55
log
@typo
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.54 2011/01/23 13:18:57 joerg Exp $
d30 7
@


1.54
log
@Define NOMAN earlier
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.53 2011/01/22 19:19:21 joerg Exp $
d102 1
a102 1
	${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-Do} \
@


1.53
log
@Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh.  Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
@
text
@d1 3
a3 1
# $NetBSD: src/sys/arch/pmax/stand/Makefile.booters,v 1.52 2010-05-27 06:58:14 dholland Exp $
a35 2
NOMAN=		# defined

@


1.52
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.booters,v 1.51 2009/04/23 16:37:44 tsutsui Exp $
d3 1
a100 2
.include <bsd.own.mk>

d102 2
a103 1
	${HOST_SH} ${S}/conf/newvers_stand.sh -N ${.CURDIR}/version "pmax"
@


1.52.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.56 2011/02/20 07:50:25 matt Exp $
a2 3
NOMAN=		# defined

.include <bsd.own.mk>
a26 7
.if ${MACHINE_ARCH} == "mips64el"
AFLAGS+=	-mips3 -mabi=32
CFLAGS+=	-mips3 -mabi=32
LDBUG+=		-m elf32ltsmip
MACHINE_ARCH=	mipsel
.endif

d33 2
d100 2
d103 1
a103 2
	${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \
	    -N ${.CURDIR}/version "pmax"
@


1.52.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.55 2011/01/28 11:58:38 tsutsui Exp $
a2 3
NOMAN=		# defined

.include <bsd.own.mk>
d33 2
d100 2
d103 1
a103 2
	${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \
	    -N ${.CURDIR}/version "pmax"
@


1.52.4.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD$
a29 7
.if ${MACHINE_ARCH} == "mips64el"
AFLAGS+=	-mips3 -mabi=32
CFLAGS+=	-mips3 -mabi=32
LDBUG+=		-m elf32ltsmip
MACHINE_ARCH=	mipsel
.endif

@


1.51
log
@Make sure to remove all generated files on cleandir.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.50 2009/04/23 16:35:20 tsutsui Exp $
d125 1
a125 1
cleandir distclean: cleanlibdir
@


1.51.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
# $NetBSD$
d125 1
a125 1
cleandir distclean: .WAIT cleanlibdir
@


1.51.4.1
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.51 2009/04/23 16:37:44 tsutsui Exp $
d125 1
a125 1
cleandir distclean: .WAIT cleanlibdir
@


1.51.4.2
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD$
a2 3
NOMAN=		# defined

.include <bsd.own.mk>
a26 7
.if ${MACHINE_ARCH} == "mips64el"
AFLAGS+=	-mips3 -mabi=32
CFLAGS+=	-mips3 -mabi=32
LDBUG+=		-m elf32ltsmip
MACHINE_ARCH=	mipsel
.endif

d33 2
d100 2
d103 1
a103 2
	${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \
	    -N ${.CURDIR}/version "pmax"
@


1.50
log
@Use <bsd.klinks.mk> to create machine and ${MACHINE_ARCH} symlinks.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.49 2009/04/03 10:38:14 tsutsui Exp $
d123 1
a123 1
CLEANFILES+=	${PROG}.map
@


1.49
log
@Remove obsolete LIBSA_USE_MEMCPY and LIBSA_USE_MEMSET.
They were removed from <lib/libsa/stand.h> on December 2007.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.48 2009/03/17 00:45:46 he Exp $
a7 9
.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
	@@[ -h machine ] || ln -s $S/arch/${MACHINE}/include machine
	@@[ -h pmax ] || ln -s $S/arch/${MACHINE}/include pmax
	@@[ -h mips ] || ln -s $S/arch/mips/include mips
.NOPATH: machine pmax mips
.endif
CLEANFILES+= machine pmax mips

d105 1
a105 1
${PROG}: machine mips pmax ${OBJS} ${LIBS}
d120 1
@


1.48
log
@Introduce LIBSA_NO_DEV_IOCTL, and don't declare ioctl() if it's defined.
Also, don't declare the close() function if LIBSA_NO_DEV_CLOSE is defined.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.47 2009/01/12 07:29:23 tsutsui Exp $
d67 1
a67 2
		-DALLOC_FIRST_FIT \
		-DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET
@


1.47
log
@WARNSfy
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.46 2005/12/11 12:18:39 christos Exp $
d60 1
@


1.47.2.1
log
@Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.51 2009/04/23 16:37:44 tsutsui Exp $
d8 9
a59 1
		-DLIBSA_NO_DEV_IOCTL \
d66 2
a67 1
		-DALLOC_FIRST_FIT
d114 1
a114 1
${PROG}: ${OBJS} ${LIBS}
a128 1
.include <bsd.klinks.mk>
d131 1
a131 1
CLEANFILES+=	${PROG}.map ${PROG}.elf
@


1.46
log
@merge ktrace-lwp.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.40.6.4 2005/01/17 19:30:09 skrll Exp $
d32 2
@


1.46.78.1
log
@sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.46 2005/12/11 12:18:39 christos Exp $
d8 9
a31 2
CFLAGS+=	-Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
CFLAGS+=	-Werror
a57 1
		-DLIBSA_NO_DEV_IOCTL \
d64 2
a65 1
		-DALLOC_FIRST_FIT
d112 1
a112 1
${PROG}: ${OBJS} ${LIBS}
a126 1
.include <bsd.klinks.mk>
d129 1
a129 1
CLEANFILES+=	${PROG}.map ${PROG}.elf
@


1.46.78.2
log
@sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.46.78.1 2009/05/04 08:11:42 yamt Exp $
d125 1
a125 1
cleandir distclean: .WAIT cleanlibdir
@


1.46.86.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.47 2009/01/12 07:29:23 tsutsui Exp $
a31 2
CFLAGS+=	-Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
CFLAGS+=	-Werror
@


1.46.86.2
log
@Sync with HEAD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.46.86.1 2009/01/19 13:16:37 skrll Exp $
d8 9
a59 1
		-DLIBSA_NO_DEV_IOCTL \
d66 2
a67 1
		-DALLOC_FIRST_FIT
d114 1
a114 1
${PROG}: ${OBJS} ${LIBS}
a128 1
.include <bsd.klinks.mk>
d131 1
a131 1
CLEANFILES+=	${PROG}.map ${PROG}.elf
@


1.46.74.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
# $NetBSD$
a31 2
CFLAGS+=	-Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
CFLAGS+=	-Werror
@


1.45
log
@Don't specify the object format to pick the right endianness - the
linker already knows if it is big- or little-endian.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.44 2004/06/21 18:20:09 jmc Exp $
@


1.44
log
@Ignore errors on some rm -rf's for platforms that aren't quite
POSIX compliant
and return errors on r/o source (FreeBSD) for -rf. Fixes PR#25022
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.43 2003/11/24 23:29:54 he Exp $
a31 1
OFORMAT=	--oformat elf32-littlemips
d113 1
a113 1
	${LD} ${OFORMAT} -Map ${PROG}.map -N -x -Ttext ${LOAD_ADDRESS} \
@


1.43
log
@I've been informed that any dependent targets on .BEGIN are
ignored.  Fix the symlink creation for machine, mips, and pmax
accordingly.

Also, there's nothing .PHONY about the vers.c target, as far as I
can see, so I've removed that.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.42 2003/10/26 07:25:37 lukem Exp $
d135 1
a135 1
	rm -rf lib
@


1.43.2.1
log
@Pull up revision 1.44 (requested by jmc in ticket #531):
Ignore errors on some rm -rf's for platforms that aren't quite
POSIX compliant
and return errors on r/o source (FreeBSD) for -rf. Fixes PR#25022
@
text
@d1 1
a1 1
# $NetBSD$
d135 1
a135 1
	-rm -rf lib
@


1.42
log
@Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.41 2003/10/08 01:40:23 simonb Exp $
d8 7
a14 2
.BEGIN: machine pmax mips
${PROG} realdepend realall: machine pmax mips
a15 9
machine:
	-rm -f ${.TARGET}
	ln -s $S/arch/${MACHINE}/include ${.TARGET}
pmax:
	-rm -f ${.TARGET}
	ln -s $S/arch/${MACHINE}/include ${.TARGET}
mips:
	-rm -f ${.TARGET}
	ln -s $S/arch/mips/include mips
a109 1
.PHONY: vers.c
@


1.41
log
@Define LIB{CRT0,C,CRTBEGIN,CRTEND} as nothing, we don't need to link
against them.
@
text
@d1 3
a3 1
# $NetBSD: Makefile.booters,v 1.40 2002/12/09 12:42:18 jdolecek Exp $
d39 1
a39 1
NETBSD_VERS!=	sh ${.CURDIR}/../../../../conf/osrelease.sh
d72 1
a72 1
CHECKSIZE_CMD?=	SIZE=${SIZE} sh ${.CURDIR}/../common/checksize.sh
d116 1
a116 1
	sh ${S}/conf/newvers_stand.sh -N ${.CURDIR}/version "pmax"
@


1.40
log
@need -mno-abicalls in AFLAGS as well, so that .S would be compiled as
non-PIC same way as .c
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.39 2002/12/09 12:20:56 jdolecek Exp $
d20 6
@


1.40.6.1
log
@Sync with HEAD
@
text
@d1 1
a1 3
# $NetBSD: Makefile.booters,v 1.44 2004/06/21 18:20:09 jmc Exp $

.include <bsd.sys.mk>		# for HOST_SH
d6 2
a7 7
.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
	@@[ -h machine ] || ln -s $S/arch/${MACHINE}/include machine
	@@[ -h pmax ] || ln -s $S/arch/${MACHINE}/include pmax
	@@[ -h mips ] || ln -s $S/arch/mips/include mips
.NOPATH: machine pmax mips
.endif
d9 9
a20 6
# XXX SHOULD NOT NEED TO DEFINE THESE!
LIBCRT0=
LIBC=
LIBCRTBEGIN=
LIBCRTEND=

d31 1
a31 1
NETBSD_VERS!=	${HOST_SH} ${.CURDIR}/../../../../conf/osrelease.sh
d64 1
a64 1
CHECKSIZE_CMD?=	SIZE=${SIZE} ${HOST_SH} ${.CURDIR}/../common/checksize.sh
d106 1
d108 1
a108 1
	${HOST_SH} ${S}/conf/newvers_stand.sh -N ${.CURDIR}/version "pmax"
d132 1
a132 1
	-rm -rf lib
@


1.40.6.2
log
@Sync with HEAD.
@
text
@@


1.40.6.3
log
@Fix the sync with head I botched.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.40.6.1 2004/08/03 10:39:21 skrll Exp $
@


1.40.6.4
log
@Sync with HEAD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.40.6.3 2004/09/21 13:20:25 skrll Exp $
d32 1
d114 1
a114 1
	${LD} -Map ${PROG}.map -N -x -Ttext ${LOAD_ADDRESS} \
@


1.39
log
@build with -ffreestanding
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.38 2002/05/07 02:13:51 simonb Exp $
d22 1
a22 1
AFLAGS+=	-D_LOCORE -D_KERNEL
@


1.38
log
@Use "NOMAN=" instead of "MKMAN=no"; per lukem.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.37 2002/05/05 22:09:05 jdolecek Exp $
d27 1
a27 1
CFLAGS=		-Os -g -mmemcpy -mno-abicalls -G 128
@


1.37
log
@no manpages here
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.36 2002/05/04 07:26:11 gmcgarry Exp $
d37 1
a37 1
MKMAN=		no
@


1.36
log
@Pull in <bsd.own.mk> for definition of ELF2ECOFF.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.35 2002/04/12 05:11:18 lukem Exp $
d36 2
@


1.35
log
@use ${ELF2ECOFF} from <bsd.{own,sys}.mk>
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.34 2002/03/20 20:15:18 gmcgarry Exp $
d101 2
@


1.34
log
@Test for USETOOLS properly.
cVS: ----------------------------------------------------------------------
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.33 2002/02/23 21:43:58 gmcgarry Exp $
a19 6

.if ${USETOOLS} == "yes"
ELF2ECOFF?=	${TOOLDIR}/bin/nbmips-elf2ecoff
.else
ELF2ECOFF?=	elf2ecoff
.endif
@


1.33
log
@Support two-stage netboot.  Is known to work on maxine, but problems
have been reported on 3min.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.32 2001/10/05 05:03:30 simonb Exp $
d21 6
d123 1
a123 5
.if defined(USETOOLS)
	@@${TOOLDIR}/bin/nbmips-elf2ecoff ${PROG}.elf ${PROG}
.else
	@@elf2ecoff ${PROG}.elf ${PROG}
.endif
@


1.32
log
@Use a single ldscript instead of separate scripts for either endianness;
  use command line parameters to ld(1) instead to set the endian format.
Clean up some endian decisions in mips/conf/Makefile.mips.
Wrap some long lines.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.31 2001/09/22 05:19:39 tsutsui Exp $
d95 1
a95 2
# for now:
SAMISCMAKEFLAGS+=SA_INCLUDE_NET=no
d113 10
@


1.32.4.1
log
@file Makefile.booters was added on branch nathanw_sa on 2002-02-28 04:11:23 +0000
@
text
@d1 123
@


1.32.4.2
log
@Catch up to -current.
@
text
@a0 132
# $NetBSD: Makefile.booters,v 1.32.4.1 2002/02/28 04:11:23 nathanw Exp $

# $S must correspond to the top of the 'sys' tree
S=	${.CURDIR}/../../../..

.BEGIN: machine pmax mips
${PROG} realdepend realall: machine pmax mips
CLEANFILES+= machine pmax mips
machine:
	-rm -f ${.TARGET}
	ln -s $S/arch/${MACHINE}/include ${.TARGET}
pmax:
	-rm -f ${.TARGET}
	ln -s $S/arch/${MACHINE}/include ${.TARGET}
mips:
	-rm -f ${.TARGET}
	ln -s $S/arch/mips/include mips

BINMODE?=	444

.PATH:		${.CURDIR}/../common
AFLAGS+=	-D_LOCORE -D_KERNEL
# -I${.CURDIR}/../.. done by Makefile.inc
CPPFLAGS+=	-nostdinc -D_STANDALONE -DNO_ABICALLS -D_NO_PROM_DEFINES \
		-I${.OBJDIR} -I${S}
# compiler flags for smallest code size
CFLAGS=		-Os -g -mmemcpy -mno-abicalls -G 128
OFORMAT=	--oformat elf32-littlemips
LDBUG=		-T $S/arch/mips/conf/stand.ldscript

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

PRIMARY_LOAD_ADDRESS?=	0x80700000
SECONDARY_LOAD_ADDRESS?=0x80710000

.if defined(PRIMARY_PROG)
PROG=		${PRIMARY_PROG}
SRCS =		start.S bootxx.c callvec.c
SRCS+=		devopen.c conf.c rz.c
SRCS+=		bootinit.S bootread.S clear_cache.S printf.S

LOAD_ADDRESS=	${PRIMARY_LOAD_ADDRESS}
# Pick a number, any number...
PRIMARY_MAX_TOTAL!=	expr 16 \* 1024

CPPFLAGS+=	-DPRIMARY_BOOTBLOCK \
		-DPRIMARY_LOAD_ADDRESS="${PRIMARY_LOAD_ADDRESS}" \
		-DNO_GETCHAR \
		-DLIBSA_NO_FS_SYMLINK -DLIBSA_NO_FS_WRITE \
		-DLIBSA_NO_FS_CLOSE \
		-DLIBSA_NO_DEV_CLOSE \
		-DLIBSA_SINGLE_DEVICE=rz \
		-D"rzioctl(x,y,z)=EINVAL" -D"rzclose(f)=0" \
		-DLIBSA_NO_TWIDDLE \
		-DLIBSA_NO_FD_CHECKING \
		-DLIBSA_NO_RAW_ACCESS \
		-DLIBSA_NO_DISKLABEL_MSGS \
		-DALLOC_FIRST_FIT \
		-DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET

CHECKSIZE_CMD?=	SIZE=${SIZE} sh ${.CURDIR}/../common/checksize.sh

.elif defined(SECONDARY_PROG)
PROG=		${SECONDARY_PROG}
LOAD_ADDRESS=	${SECONDARY_LOAD_ADDRESS}
CPPFLAGS+=	-DSECONDARY_BOOTBLOCK
SRCS+=	vers.c
CLEANFILES+= vers.c
.else
# XXX ?
.endif

### 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
.if defined(PRIMARY_PROG)
LIBZ=
.else
Z_AS=		library
.include "${S}/lib/libz/Makefile.inc"
LIBZ=		${ZLIB}
.endif

### find out what to use for libsa
SA_AS=		library
.if defined(PRIMARY_PROG)
SAMISCMAKEFLAGS+=SA_INCLUDE_NET=no
.endif
.if defined(SECONDARY_PROG)
SAMISCMAKEFLAGS+=SA_USE_LOADFILE=yes SA_USE_CREAD=yes
SAMISCMAKEFLAGS+=SA_INCLUDE_NET=yes
.endif
.include "${S}/lib/libsa/Makefile.inc"
LIBSA=		${SALIB}

LIBS=		${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN}

.PHONY: vers.c
vers.c: ${.CURDIR}/version
	sh ${S}/conf/newvers_stand.sh -N ${.CURDIR}/version "pmax"

${PROG}: machine mips pmax ${OBJS} ${LIBS}
	${LD} ${OFORMAT} -Map ${PROG}.map -N -x -Ttext ${LOAD_ADDRESS} \
	    ${LDBUG} -e start -o ${PROG} ${OBJS} ${LIBS}
	@@${SIZE} ${PROG}
.if defined(CHECKSIZE_CMD)
	@@${CHECKSIZE_CMD} ${PROG} ${PRIMARY_MAX_LOAD} ${PRIMARY_MAX_TOTAL} || \
	    (rm -f ${PROG} ; false)
.endif
.if defined(DO_ECOFF_BINARY)
	@@echo -n "Creating ECOFF binary... "
	@@mv ${PROG} ${PROG}.elf
.if defined(USETOOLS)
	@@${TOOLDIR}/bin/nbmips-elf2ecoff ${PROG}.elf ${PROG}
.else
	@@elf2ecoff ${PROG}.elf ${PROG}
.endif
	@@echo done.
.endif

.include <bsd.prog.mk>

CLEANFILES+=	${PROG}.map

cleandir distclean: cleanlibdir

cleanlibdir:
	rm -rf lib
@


1.32.4.3
log
@Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.32.4.2 2002/04/01 07:41:58 nathanw Exp $
a20 6
.if ${USETOOLS} == "yes"
ELF2ECOFF?=	${TOOLDIR}/bin/nbmips-elf2ecoff
.else
ELF2ECOFF?=	elf2ecoff
.endif

d117 5
a121 1
	@@${ELF2ECOFF} ${PROG}.elf ${PROG}
@


1.32.4.4
log
@Catch up to -current.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.32.4.3 2002/04/17 00:04:10 nathanw Exp $
d21 6
@


1.32.4.5
log
@Catch up to -current.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.32.4.4 2002/06/20 03:40:30 nathanw Exp $
a36 2
NOMAN=		# defined

a101 2
.include <bsd.own.mk>

@


1.32.4.6
log
@Sync with HEAD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.32.4.5 2002/12/11 06:11:35 thorpej Exp $
d22 1
a22 1
AFLAGS+=	-D_LOCORE -D_KERNEL -mno-abicalls
d27 1
a27 1
CFLAGS=		-ffreestanding -Os -g -mmemcpy -mno-abicalls -G 128
@


1.31
log
@Fix errors on make cleandir in stand/boot* dirs.
Patch from misc/14012 by kwellsch@@tampabay.rr.com.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.30 2000/07/13 22:18:08 jdolecek Exp $
d24 2
a25 1
CPPFLAGS+=	-nostdinc -D_STANDALONE -DNO_ABICALLS -D_NO_PROM_DEFINES -I${.OBJDIR} -I${S}
d28 2
a29 1
LDBUG=		-T $S/arch/mips/conf/stand.ldscript.le
d108 2
a109 2
	${LD} -Map ${PROG}.map -N -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
	    -e start -o ${PROG} ${OBJS} ${LIBS}
@


1.30
log
@switch to sys/conf/newvers_stand.sh for generating vers.c
sync comments in */version with i386
add a hack to ${PROG} target so that symlinks machine, pmax, mips are
  created properly even when building on NetBSD/pmax 1.4.1
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.29 2000/05/21 02:50:12 soren Exp $
d114 2
a121 2

.include <bsd.prog.mk>
@


1.30.4.1
log
@Sync kqueue branch with -current.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.32 2001/10/05 05:03:30 simonb Exp $
d24 1
a24 2
CPPFLAGS+=	-nostdinc -D_STANDALONE -DNO_ABICALLS -D_NO_PROM_DEFINES \
		-I${.OBJDIR} -I${S}
d27 1
a27 2
OFORMAT=	--oformat elf32-littlemips
LDBUG=		-T $S/arch/mips/conf/stand.ldscript
d106 2
a107 2
	${LD} ${OFORMAT} -Map ${PROG}.map -N -x -Ttext ${LOAD_ADDRESS} \
	    ${LDBUG} -e start -o ${PROG} ${OBJS} ${LIBS}
a113 2
.include <bsd.prog.mk>

d120 2
@


1.30.4.2
log
@Catch up with -current.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.30.4.1 2002/01/10 19:47:55 thorpej Exp $
d95 2
a96 1
SAMISCMAKEFLAGS+=SA_INCLUDE_NET=yes
a113 10
.endif
.if defined(DO_ECOFF_BINARY)
	@@echo -n "Creating ECOFF binary... "
	@@mv ${PROG} ${PROG}.elf
.if defined(USETOOLS)
	@@${TOOLDIR}/bin/nbmips-elf2ecoff ${PROG}.elf ${PROG}
.else
	@@elf2ecoff ${PROG}.elf ${PROG}
.endif
	@@echo done.
@


1.30.4.3
log
@catch up with -current on kqueue branch
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.30.4.2 2002/03/16 15:59:14 jdolecek Exp $
a36 2
NOMAN=		# defined

a101 2
.include <bsd.own.mk>

d117 5
a121 1
	@@${ELF2ECOFF} ${PROG}.elf ${PROG}
@


1.30.2.1
log
@Catch up with -current.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.31 2001/09/22 05:19:39 tsutsui Exp $
a113 2
.include <bsd.prog.mk>

d120 2
@


1.30.2.2
log
@Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.30.2.1 2001/10/01 12:41:39 fvdl Exp $
d24 1
a24 2
CPPFLAGS+=	-nostdinc -D_STANDALONE -DNO_ABICALLS -D_NO_PROM_DEFINES \
		-I${.OBJDIR} -I${S}
d27 1
a27 2
OFORMAT=	--oformat elf32-littlemips
LDBUG=		-T $S/arch/mips/conf/stand.ldscript
d106 2
a107 2
	${LD} ${OFORMAT} -Map ${PROG}.map -N -x -Ttext ${LOAD_ADDRESS} \
	    ${LDBUG} -e start -o ${PROG} ${OBJS} ${LIBS}
@


1.29
log
@Also share BE ldscripts.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.28 2000/01/23 17:04:07 mycroft Exp $
d66 2
a67 1
VERS_O?=	vers.o
d101 3
d105 1
a105 5
${PROG}: ${OBJS} ${LIBS}
.if defined(VERS_O)
	sh ${.CURDIR}/../common/newvers.sh ${.CURDIR}/version
	${COMPILE.c} vers.c
.endif
d107 1
a107 1
	    -e start -o ${PROG} ${OBJS} ${VERS_O} ${LIBS}
a114 3
.if defined(VERS_O)
CLEANFILES+=vers.c vers.o
.endif
@


1.28
log
@Clean up the machine symlink stuff ever so slightly.  Needs to be
standardized between files.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.27 1999/11/27 23:55:23 simonb Exp $
d27 1
a27 1
LDBUG=		-T $S/arch/mips/conf/stand.ldscript
@


1.27
log
@Update for new alpha-style bootblocks - a good deal of this is based on
the alpha stand/Makefile.bootprogs and stand/Makefile.bootxx.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootprogs,v 1.14 1999/09/10 07:31:16 ross Exp $
d6 2
a7 2
.BEGIN: ${.OBJDIR}/machine ${.OBJDIR}/pmax ${.OBJDIR}/mips
${PROG} depend beforedepend all: ${.OBJDIR}/machine ${.OBJDIR}/pmax ${.OBJDIR}/mips
d9 1
a9 1
${.OBJDIR}/machine:
d12 1
a12 1
${.OBJDIR}/pmax:
d15 1
a15 1
${.OBJDIR}/mips:
@


1.26
log
@Backout my libsa changes.
@
text
@d1 1
a1 7
#	$NetBSD: Makefile.booters,v 1.24 1999/07/21 13:34:34 mrg Exp $
#
#	NOTE: $S must correspond to the top of the 'sys' tree

.BEGIN: ${.OBJDIR}/machine ${.OBJDIR}/mips
${PROG} depend all: ${.OBJDIR}/machine ${.OBJDIR}/mips
CLEANFILES+= machine mips
d3 6
d12 3
a14 1

d19 1
a19 2
# Tailor C compilation for standalone environment.
COPTS=	-Os				# -Os gives smaller code
d21 1
a21 7
C_MACHDEP=-mmemcpy -mno-abicalls -G 128	# even smaller code

DEFS?=	-D_STANDALONE -D_NO_PROM_DEFINES -DNO_ABICALLS \
	${BOOTDEFADD}
INCL?=	-nostdinc -I${.OBJDIR} -I$S -I${PMAX_STAND_DIR}/lib -I$S/lib/libsa

CFLAGS+=	${CWARN} ${C_MACHDEP}
d23 47
a69 1
CPPFLAGS+=	${DEFS} ${INCL}
d71 4
a74 10
LDBUG=	-T $S/arch/mips/conf/stand.ldscript

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

# We don't need libkern/libz for the first stage bootblocks
.if ${PROG} != "bootxx"
d77 3
d83 1
a83 2
# and use compressed read in libsa
SAMISCMAKEFLAGS+=SA_USE_CREAD=yes
d85 9
a93 7
### find out what to use for libkern
KERN_AS=	library
.include "${S}/lib/libkern/Makefile.inc"
LIBKERN=	${KERNLIB}

.else	# ${PROG} == "bootxx"
LIBZ=
d95 2
d98 1
a98 5
PMAX_STAND_DIR?= $S/arch/pmax/stand
### find out what to use for libpmax
PMAXDIR= ${PMAX_STAND_DIR}/lib
.include "${PMAXDIR}/Makefile.inc"
LIBPMAX=		${PMAXLIB}
a99 2
LIBS=	${LIBPMAX} ${LIBKERN} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBPMAX}
VERS_O?=vers.o
d102 2
a103 2
.if ${VERS_O} != ""
	sh ${PMAX_STAND_DIR}/lib/newvers.sh ${VERSIONFILE} ${NEWVERSWHAT}
d106 7
a112 2
	ld -Map ${PROG}.map -N -x -Ttext ${RELOC} ${LDBUG} -e start \
	    ${OBJS} ${VERS_O} ${LIBS} -o ${PROG}
d114 2
a115 2
CLEANFILES+=${PROG}.map
.if ${VERS_O} != ""
a124 6

# be sure to turn off any PIC flags for standalone library code.
CPICFLAGS=
CAPICFLAGS=
CPPPICFLAGS=
APICFLAGS=
@


1.25
log
@Remove references to libkern after Jason's recent work to libsa.
@
text
@d38 1
a38 1
# We don't need libz for the first stage bootblocks
d48 5
d63 1
a63 1
LIBS=	${LIBPMAX} ${LIBSA} ${LIBZ} ${LIBPMAX}
@


1.24
log
@do not "quote" SAMISCMAKEFLAGS values, it causes pain and suffering.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.booters,v 1.23 1999/04/28 09:18:47 christos Exp $
d38 1
a38 1
# We don't need libkern/libz for the first stage bootblocks
a47 5
### find out what to use for libkern
KERN_AS=	library
.include "${S}/lib/libkern/Makefile.inc"
LIBKERN=	${KERNLIB}

d58 1
a58 1
LIBS=	${LIBPMAX} ${LIBKERN} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBPMAX}
@


1.24.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 7
a7 1
# $NetBSD: Makefile.booters,v 1.30 2000/07/13 22:18:08 jdolecek Exp $
d9 1
a9 7
# $S must correspond to the top of the 'sys' tree
S=	${.CURDIR}/../../../..

.BEGIN: machine pmax mips
${PROG} realdepend realall: machine pmax mips
CLEANFILES+= machine pmax mips
machine:
d12 2
a13 4
pmax:
	-rm -f ${.TARGET}
	ln -s $S/arch/${MACHINE}/include ${.TARGET}
mips:
d17 2
a18 1
BINMODE?=	444
d20 7
a26 1
.PATH:		${.CURDIR}/../common
d28 19
a46 48
# -I${.CURDIR}/../.. done by Makefile.inc
CPPFLAGS+=	-nostdinc -D_STANDALONE -DNO_ABICALLS -D_NO_PROM_DEFINES -I${.OBJDIR} -I${S}
# compiler flags for smallest code size
CFLAGS=		-Os -g -mmemcpy -mno-abicalls -G 128
LDBUG=		-T $S/arch/mips/conf/stand.ldscript.le

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

PRIMARY_LOAD_ADDRESS?=	0x80700000
SECONDARY_LOAD_ADDRESS?=0x80710000

.if defined(PRIMARY_PROG)
PROG=		${PRIMARY_PROG}
SRCS =		start.S bootxx.c callvec.c
SRCS+=		devopen.c conf.c rz.c
SRCS+=		bootinit.S bootread.S clear_cache.S printf.S

LOAD_ADDRESS=	${PRIMARY_LOAD_ADDRESS}
# Pick a number, any number...
PRIMARY_MAX_TOTAL!=	expr 16 \* 1024

CPPFLAGS+=	-DPRIMARY_BOOTBLOCK \
		-DPRIMARY_LOAD_ADDRESS="${PRIMARY_LOAD_ADDRESS}" \
		-DNO_GETCHAR \
		-DLIBSA_NO_FS_SYMLINK -DLIBSA_NO_FS_WRITE \
		-DLIBSA_NO_FS_CLOSE \
		-DLIBSA_NO_DEV_CLOSE \
		-DLIBSA_SINGLE_DEVICE=rz \
		-D"rzioctl(x,y,z)=EINVAL" -D"rzclose(f)=0" \
		-DLIBSA_NO_TWIDDLE \
		-DLIBSA_NO_FD_CHECKING \
		-DLIBSA_NO_RAW_ACCESS \
		-DLIBSA_NO_DISKLABEL_MSGS \
		-DALLOC_FIRST_FIT \
		-DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET

CHECKSIZE_CMD?=	SIZE=${SIZE} sh ${.CURDIR}/../common/checksize.sh

.elif defined(SECONDARY_PROG)
PROG=		${SECONDARY_PROG}
LOAD_ADDRESS=	${SECONDARY_LOAD_ADDRESS}
CPPFLAGS+=	-DSECONDARY_BOOTBLOCK
SRCS+=	vers.c
CLEANFILES+= vers.c
.else
# XXX ?
.endif
d53 1
a53 2
### find out what to use for libz
.if defined(PRIMARY_PROG)
a54 4
.else
Z_AS=		library
.include "${S}/lib/libz/Makefile.inc"
LIBZ=		${ZLIB}
d57 13
a69 9
### find out what to use for libsa
SA_AS=		library
.if defined(PRIMARY_PROG)
SAMISCMAKEFLAGS+=SA_INCLUDE_NET=no
.endif
.if defined(SECONDARY_PROG)
SAMISCMAKEFLAGS+=SA_USE_LOADFILE=yes SA_USE_CREAD=yes
# for now:
SAMISCMAKEFLAGS+=SA_INCLUDE_NET=no
d71 2
a72 2
.include "${S}/lib/libsa/Makefile.inc"
LIBSA=		${SALIB}
d74 3
a76 13
LIBS=		${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN}

.PHONY: vers.c
vers.c: ${.CURDIR}/version
	sh ${S}/conf/newvers_stand.sh -N ${.CURDIR}/version "pmax"

${PROG}: machine mips pmax ${OBJS} ${LIBS}
	${LD} -Map ${PROG}.map -N -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
	    -e start -o ${PROG} ${OBJS} ${LIBS}
	@@${SIZE} ${PROG}
.if defined(CHECKSIZE_CMD)
	@@${CHECKSIZE_CMD} ${PROG} ${PRIMARY_MAX_LOAD} ${PRIMARY_MAX_TOTAL} || \
	    (rm -f ${PROG} ; false)
a78 2
CLEANFILES+=	${PROG}.map

d85 6
@


1.24.8.1
log
@Pull up to last week's -current.
@
text
@d1 7
a7 1
# $NetBSD: Makefile.booters,v 1.27 1999/11/27 23:55:23 simonb Exp $
a8 6
# $S must correspond to the top of the 'sys' tree
S=	${.CURDIR}/../../../..

.BEGIN: ${.OBJDIR}/machine ${.OBJDIR}/pmax ${.OBJDIR}/mips
${PROG} depend beforedepend all: ${.OBJDIR}/machine ${.OBJDIR}/pmax ${.OBJDIR}/mips
CLEANFILES+= machine pmax mips
d12 1
a12 3
${.OBJDIR}/pmax:
	-rm -f ${.TARGET}
	ln -s $S/arch/${MACHINE}/include ${.TARGET}
d17 2
a18 1
BINMODE?=	444
d20 7
a26 1
.PATH:		${.CURDIR}/../common
d28 19
a46 47
# -I${.CURDIR}/../.. done by Makefile.inc
CPPFLAGS+=	-nostdinc -D_STANDALONE -DNO_ABICALLS -D_NO_PROM_DEFINES -I${.OBJDIR} -I${S}
# compiler flags for smallest code size
CFLAGS=		-Os -g -mmemcpy -mno-abicalls -G 128
LDBUG=		-T $S/arch/mips/conf/stand.ldscript

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

PRIMARY_LOAD_ADDRESS?=	0x80700000
SECONDARY_LOAD_ADDRESS?=0x80710000

.if defined(PRIMARY_PROG)
PROG=		${PRIMARY_PROG}
SRCS =		start.S bootxx.c callvec.c
SRCS+=		devopen.c conf.c rz.c
SRCS+=		bootinit.S bootread.S clear_cache.S printf.S

LOAD_ADDRESS=	${PRIMARY_LOAD_ADDRESS}
# Pick a number, any number...
PRIMARY_MAX_TOTAL!=	expr 16 \* 1024

CPPFLAGS+=	-DPRIMARY_BOOTBLOCK \
		-DPRIMARY_LOAD_ADDRESS="${PRIMARY_LOAD_ADDRESS}" \
		-DNO_GETCHAR \
		-DLIBSA_NO_FS_SYMLINK -DLIBSA_NO_FS_WRITE \
		-DLIBSA_NO_FS_CLOSE \
		-DLIBSA_NO_DEV_CLOSE \
		-DLIBSA_SINGLE_DEVICE=rz \
		-D"rzioctl(x,y,z)=EINVAL" -D"rzclose(f)=0" \
		-DLIBSA_NO_TWIDDLE \
		-DLIBSA_NO_FD_CHECKING \
		-DLIBSA_NO_RAW_ACCESS \
		-DLIBSA_NO_DISKLABEL_MSGS \
		-DALLOC_FIRST_FIT \
		-DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET

CHECKSIZE_CMD?=	SIZE=${SIZE} sh ${.CURDIR}/../common/checksize.sh

.elif defined(SECONDARY_PROG)
PROG=		${SECONDARY_PROG}
LOAD_ADDRESS=	${SECONDARY_LOAD_ADDRESS}
CPPFLAGS+=	-DSECONDARY_BOOTBLOCK
VERS_O?=	vers.o
.else
# XXX ?
.endif
d53 1
a53 2
### find out what to use for libz
.if defined(PRIMARY_PROG)
a54 15
.else
Z_AS=		library
.include "${S}/lib/libz/Makefile.inc"
LIBZ=		${ZLIB}
.endif

### find out what to use for libsa
SA_AS=		library
.if defined(PRIMARY_PROG)
SAMISCMAKEFLAGS+=SA_INCLUDE_NET=no
.endif
.if defined(SECONDARY_PROG)
SAMISCMAKEFLAGS+=SA_USE_LOADFILE=yes SA_USE_CREAD=yes
# for now:
SAMISCMAKEFLAGS+=SA_INCLUDE_NET=no
a55 2
.include "${S}/lib/libsa/Makefile.inc"
LIBSA=		${SALIB}
d57 5
a61 1
LIBS=		${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN}
d63 2
d67 2
a68 2
.if defined(VERS_O)
	sh ${.CURDIR}/../common/newvers.sh ${.CURDIR}/version
d71 2
a72 7
	${LD} -Map ${PROG}.map -N -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
	    -e start -o ${PROG} ${OBJS} ${VERS_O} ${LIBS}
	@@${SIZE} ${PROG}
.if defined(CHECKSIZE_CMD)
	@@${CHECKSIZE_CMD} ${PROG} ${PRIMARY_MAX_LOAD} ${PRIMARY_MAX_TOTAL} || \
	    (rm -f ${PROG} ; false)
.endif
d74 2
a75 2
CLEANFILES+=	${PROG}.map
.if defined(VERS_O)
d85 6
@


1.24.4.1
log
@Sync with -current
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.booters,v 1.26 1999/11/13 21:33:12 thorpej Exp $
@


1.23
log
@use new loadfile
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.booters,v 1.22 1999/04/11 04:24:41 simonb Exp $
d34 1
a34 1
SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes SA_INCLUDE_NET=yes"
d46 1
a46 1
SAMISCMAKEFLAGS= SA_USE_CREAD=yes
@


1.22
log
@Move BINDIR, BINMODE to Makefile.inc.
Remove -DSMALL.
Define an empty LIBZ if building first stage bootblocks since LIBZ
   defaults to /usr/lib/libz.a.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.booters,v 1.21 1999/04/01 06:05:04 simonb Exp $
d34 1
a36 1
SAMISCMAKEFLAGS= SA_INCLUDE_NET=yes
@


1.21
log
@Build the full MI libsa for the first stage bootblocks rather than
picking the bits we wanted explicitly, taking advantage of some of the
recent code-size trimming from cgd.  There's now no duplication if libsa
code in sys/arch/pmax/stand.

As a bonus, we now have 416 bytes free in stage one (up from 80), and
will all of Chris' space saving options enabled (these are commented out
in scsiboot/Makefile), theres over a 1kB free.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.booters,v 1.20 1999/03/31 03:10:56 simonb Exp $
a4 3
BINDIR?=/usr/mdec
BINMODE?=444

d22 1
a22 1
DEFS?=	-DSMALL -D_STANDALONE -D_NO_PROM_DEFINES -DNO_ABICALLS \
d53 3
a55 1
.endif	# ${PROG} != "bootxx"
@


1.21.4.1
log
@Sync w/ -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.booters,v 1.23 1999/04/28 09:18:47 christos Exp $
d5 3
d25 1
a25 1
DEFS?=	-D_STANDALONE -D_NO_PROM_DEFINES -DNO_ABICALLS \
a36 1
SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes SA_INCLUDE_NET=yes"
d39 1
d56 1
a56 3
.else	# ${PROG} == "bootxx"
LIBZ=
.endif
@


1.21.4.2
log
@Update from trunk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.booters,v 1.21.4.1 1999/06/21 00:59:08 thorpej Exp $
d34 1
a34 1
SAMISCMAKEFLAGS+=SA_USE_LOADFILE=yes SA_INCLUDE_NET=yes
d46 1
a46 1
SAMISCMAKEFLAGS+=SA_USE_CREAD=yes
@


1.20
log
@Create/build vers.c/vers.o inside the final link stage so that the build
datestamp get's updated each build.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.booters,v 1.19 1999/03/31 02:35:14 simonb Exp $
a34 3
# We don't need libkern/libsa for the first stage bootblocks
.if ${PROG} != "bootxx"

d39 4
a42 1
SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_INCLUDE_NET=no
d48 2
@


1.19
log
@Reorder ${LIBS} so that we don't need to explicitly pull in bcmp.c
and bzero.c from libkern.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.booters,v 1.18 1999/03/27 07:17:50 simonb Exp $
a19 2
CLEANFILES+=vers.c vers.o ${PROG}.map

a61 5
cleandir distclean: cleanlibdir

cleanlibdir:
	rm -rf lib

d65 3
a67 2
vers.o:	${VERSIONFILE}
	sh ${PMAX_STAND_DIR}/lib/newvers.sh ${.ALLSRC} ${NEWVERSWHAT}
d69 1
a69 2

${PROG}: ${OBJS} ${VERS_O} ${LIBS}
d73 9
@


1.18
log
@Go back to a Makefile.booters scheme, like most other ports do.  No
more problems for "make depend" - tested with and without obj dirs.
@
text
@d1 1
a1 1
#	$NetBSD$
d69 1
a69 1
LIBS=	${LIBPMAX} ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN} ${LIBPMAX}
@


1.17
log
@Not needed at the moment - may be resurrected when netboot comes along.
@
text
@d1 3
a3 2
#	$NetBSD: Makefile.booters,v 1.16 1999/02/22 11:53:57 simonb Exp $
#	@@(#)Makefile	8.3 (Berkeley) 2/16/94
d5 2
a6 2
# RELOC=80200000 allows for boot prog up to 1D0000 (1900544) bytes long
RELOC=	80700000	# XXX
d8 3
a10 4
BOOTDEFS=-D_STANDALONE -DSMALL
AINC+=	 -D_LOCORE
CFLAGS+= ${DEFS}
AFLAGS+= ${DEFS}
d12 3
a14 4
# not yet: need to write libsa/Makefile.inc first
LIBSADIR!= cd ${.CURDIR}/../libsa ; make print-objdir
LIBSA=	${LIBSADIR}/libsa.a
LIBS=	${LIBSA}
d16 3
a18 1
${PROG}: ${LIBS}
d20 1
a20 1
includes:
d22 66
a87 2
.include <bsd.dep.mk>
.include <bsd.obj.mk>
@


1.16
log
@Load the bootblocks at 0x8070000 so that ramdisk kernels don't
overwrite the beginning of the bootblocks.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.booters,v 1.15 1999/01/30 12:39:28 simonb Exp $
@


1.15
log
@Actually depend on libsa now.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.booters,v 1.14 1999/01/22 14:05:05 simonb Exp $
d5 1
a5 1
RELOC=	80200000
@


1.14
log
@More Makefile cleanups:
 + Don't use our own "clean" and "depend" targets
 + "make depend" works
 + Only include each include path once on compile lines
 + Clean up include file names
 + Don't build a separate libdrive.a, just specify driver source files
 + Use "make print-objdir" instead of old "printf ... | make -f-"
 + Remove more unnecessary targets, variables and other cruft

Still builds identical bootblocks to 1.3.3 with gcc, still too large
with egcs.

dec_boot.h, dec_exec.h & dec_prom.h were copied via respository
copy to sys/arch/pmax/stand/libsa.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.booters,v 1.13 1999/01/21 14:16:52 simonb Exp $
d13 1
a13 1
LIBSADIR != cd ${.CURDIR}/../libsa ; make print-objdir
d16 2
@


1.13
log
@Round one of the Makefile clean up:
 + dependency on libsa works
 + set and use BINDIR/BINMODE
 + don't pull in sys/lib/lib{sa,kern}/Makefile.inc (``make clean''
   doesn't make empty lib/{sa,kern} directories in each
   directory/obj dir).
 + remove unnecessary targets, variables and other cruft
 + wrap lines at 80 chars

Re-ordering SRCS line in libsa/Makefile to a more logical sequence
(alphabetical by source dir) results in a libsa.a with archive members
in a different order, and a resultant bootrz that differs from the 1.3.3
bootrz.  Untested as yet, so left in but commented out.

Also, _don't_ install the bootblocks (as per intent of previous commit)
or our own small libsa(!).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.booters,v 1.12 1999/01/21 12:33:39 simonb Exp $
d7 4
a10 7
DEFS=	-D_STANDALONE -DSMALL
CFLAGS=	-O2 ${INCPATH} ${DEFS}
AFLAGS=	-O2 ${INCPATH} ${DEFS} -D_LOCORE

.PATH:	${S}/stand ${S}/lib/libsa

INCPATH=-I${.CURDIR} -I${.CURDIR}/.. -I${S} -I${S}/arch -I${S}/lib/libsa
d13 1
a13 2
LIBSADIR != cd ${.CURDIR}/../libsa; \
	printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
d15 1
a15 7
LIBS=	${.OBJDIR}/libdrive.a ${LIBSA}

SRCS=	${DRIVERS}

.s.o:
	${CPP} -E ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} | \
		${AS} -o ${.TARGET}
a17 10

# XXX doesn't belong here.
libdrive.a: conf.o ${DRIVERS:.c=.o}
	ar crv $@@ $?
	ranlib $@@

depend: ${SRCS}
	mkdep ${INCPATH} ${DEFS} ${SRCS}
	mkdep -a -p ${INCPATH} ${DEFS} mkboot.c mkboottape.c
	cd libsa; make depend
@


1.12
log
@Almost working bootblocks for the pmax.  This compiles fine with gcc
2.7.2.2-myc2 (and produces _identical_ bootblocks with the 1.3.3
bootblocks which weren't in the tree), but egcs 1.1.1 builds a ufs.o
that's about a 100 bytes too big, and it busts the 7.5k we've got for
bootrz.

Still needs cleanup - the Makefiles could be better/cleaner, and doesn't
install yet (because of above problem).  At least there's something to
work with now.

Note that we have our own versions of a lot of the sys/lib/libsa
routines which are less functional/smaller.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.booters,v 1.11 1998/05/22 12:56:35 drochner Exp $
a3 3
STAND=	../../stand
#VPATH=	${STAND}

d7 1
a7 1
DEFS= -D_STANDALONE -DSMALL
d11 1
a11 2
.PATH: ${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}
.PATH: ${S}/stand ${S}/lib/libsa
a14 8
### find out what to use for libkern
.include "$S/lib/libkern/Makefile.inc"
#LIBKERN= ${KERNLIB}
#KERNLIB= ${.CURDIR}/../compile/libkern.a

.include "$S/lib/libsa/Makefile.inc"
LIBSA=  ${SA_LIB}

d19 1
a19 3
LIBS=	${.OBJDIR}/libdrive.a ${LIBSA}  #${KERNLIB}
#LIBS=	${.OBJDIR}/libdrive.a ${.CURDIR}/../libsa/libsa.a  #${KERNLIB}
#LIBS=	libdrive.a libsa/libsa.a ../../libkern/libkern.a 
a21 2
#STUFF=	callvec.c devopen.c getenv.c gets.c strcmp.c
STUFF=
d25 1
a25 1
	    ${AS} -o ${.TARGET}
a27 3

libsa/libsa.a::
	cd libsa; make
@


1.11
log
@STANDALONE->_STANDALONE (cpp definition)
closes PR kern/5481 (Erik Bertelsen <erik@@q610.ebe.uni-c.dk>)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.booters,v 1.10 1997/06/15 22:53:49 jonathan Exp $
d17 1
a17 2
#INCPATH=-I. -I/sys
INCPATH=-I${.CURDIR} -I${.CURDIR}/../.. -I${S} -I${S}/lib/libsa
d28 6
a33 2
LIBS=  ${.OBJDIR}/libdrive.a ${.CURDIR}/libsa/libsa.a  ${KERNLIB}
#LIBS=	libdrive.a libsa/libsa.a ../../libkern/obj/libkern.a 
a34 1
DRIVERS= rz.c
d45 2
a46 2
#libsa/libsa.a::
#	cd libsa; make
d48 2
a49 1
${.OBJDIR}/libdrive.a: conf.o ${DRIVERS:.c=.o}
@


1.10
log
@Remove old 4.4bsd/pmax rules and targets.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,booters,v 1.8 1996/10/18 06:08:15 thorpej Exp $
d10 1
a10 1
DEFS= -DSTANDALONE -DSMALL
@


1.10.8.1
log
@pull up revs 1.11-1.14 from trunk (simonb)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.booters,v 1.14 1999/01/22 14:05:05 simonb Exp $
d4 3
d10 17
a26 4
BOOTDEFS=-D_STANDALONE -DSMALL
AINC+=	 -D_LOCORE
CFLAGS+= ${DEFS}
AFLAGS+= ${DEFS}
d29 11
a39 3
LIBSADIR != cd ${.CURDIR}/../libsa ; make print-objdir
LIBSA=	${LIBSADIR}/libsa.a
LIBS=	${LIBSA}
d42 12
@


1.9
log
@Create standard Makefile for  arch/pmax/stand.
Copy old Makefile with bootblock rules to Makefile.booters.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.booters,v 1.8 1996/10/18 06:08:15 thorpej Exp $
a3 1
DESTDIR=
a9 2
S=      ${.CURDIR}/../../..

a36 2
ALL=	boot mkboot mkboottape dec_label rzboot bootrz

d41 1
a41 3
all: ${ALL}

boot: ${LIBS}
a48 47

# depend on DEFS

#before other deps on bootconf.o
bootconf.o: conf.o
	rm -f bootconf.c
	ln -s ${.CURDIR}/conf.c bootconf.c
	${CC} -c ${CFLAGS} -DBOOT bootconf.c
	rm -f bootconf.c


# bootable from real disks

boot:	start.o boot.o bootconf.o filesystem.o ${LIBS}
	ld -Map boot.map -N -Ttext ${RELOC} -e start start.o boot.o bootconf.o filesystem.o ${LIBS} -o boot.elf
	elf2aout boot.elf boot

start.o: ${.CURDIR}/start.S

#	${CPP} -E ${CFLAGS:M-[ID]*} -D_LOCORE ${AINC} ${.IMPSRC} | \
#	    ${AS} -o ${.TARGET}

mkboot: ${.CURDIR}/mkboot.c
	${CC} ${CFLAGS} -o mkboot ${.CURDIR}/mkboot.c

mkboottape: ${.CURDIR}/mkboottape.c
	${CC} ${CFLAGS} -o mkboottape ${.CURDIR}/mkboottape.c

dec_label: ${.CURDIR}/dec_label.c
	${CC} ${CFLAGS} -o dec_label ${.CURDIR}/dec_label.c

rzboot bootrz:	mkboot boot
	./mkboot boot rzboot bootrz

# utilities

clean cleandir:
	rm -f .depend *.o *.exe *.i errs make.out core*
	rm -f a.out ${ALL}
	rm -f boot[a-z][a-z] [a-z][a-z]boot
	rm -f libdrive.a
	cd libsa; make cleandir

install:
	./mkboot boot rzboot bootrz
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 rzboot ${DESTDIR}/usr/mdec
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 bootrz ${DESTDIR}/usr/mdec
@


1.8
log
@Use ${INSTALL}.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 1996/02/01 22:32:19 mycroft Exp $
@


1.7
log
@LOCORE -> _LOCORE
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 1996/01/15 01:44:52 thorpej Exp $
d101 2
a102 2
	install -o ${BINOWN} -g ${BINGRP} -m 444 rzboot ${DESTDIR}/usr/mdec
	install -o ${BINOWN} -g ${BINGRP} -m 444 bootrz ${DESTDIR}/usr/mdec
@


1.6
log
@Use ${BINOWN} and ${BINGRP} per Arne H. Juul <arnej@@ikke.idt.unit.no>
in PR #705.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 1995/01/18 06:53:36 mellon Exp $
d15 1
a15 1
AFLAGS=	-O2 ${INCPATH} ${DEFS} -DLOCORE
d75 1
a75 1
#	${CPP} -E ${CFLAGS:M-[ID]*} -DLOCORE ${AINC} ${.IMPSRC} | \
@


1.5
log
@Many changes from Jonathan Stone and a few from me to make small boot blocks and handle NetBSD a.out
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 1994/10/26 21:10:48 cgd Exp $
d101 2
a102 2
	install -o bin -g bin -m 444 rzboot ${DESTDIR}/usr/mdec
	install -o bin -g bin -m 444 bootrz ${DESTDIR}/usr/mdec
@


1.4
log
@new RCS ID format.
@
text
@d1 1
a1 1
#	$NetBSD$
d6 1
a6 2
INCPATH=-I. -I/sys
VPATH=	${STAND}
d11 2
d17 18
d37 2
a38 1
LIBS=	libdrive.a libsa/libsa.a ../../libkern/obj/libkern.a
d40 1
a40 1
ALL=	boot mkboot mkboottape dec_label
d50 2
a51 2
libsa/libsa.a::
	cd libsa; make
d53 1
a53 1
libdrive.a: conf.o ${DRIVERS:.c=.o}
d59 8
d69 5
a73 2
boot:	start.o boot.o bootconf.o ${LIBS}
	ld -N -Ttext ${RELOC} -e start start.o boot.o bootconf.o ${LIBS} -o $@@ 
d75 2
a76 3
start.o: start.s
	${CPP} -E ${CFLAGS:M-[ID]*} -DLOCORE ${AINC} ${.IMPSRC} | \
	    ${AS} -o ${.TARGET}
d78 2
a79 5
bootconf.o: conf.o
	rm -f bootconf.c
	ln -s conf.c bootconf.c
	${CC} -c ${CFLAGS} -DBOOT bootconf.c
	rm -f bootconf.c
d81 2
a82 2
mkboot: mkboot.c
	${CC} ${CFLAGS} -o mkboot mkboot.c
d84 2
a85 2
mkboottape: mkboottape.c
	${CC} ${CFLAGS} -o mkboottape mkboottape.c
d87 2
a88 2
dec_label: dec_label.c
	${CC} ${CFLAGS} -o dec_label dec_label.c
d108 3
@


1.3
log
@bsd 4.4-lite pmax port as ported to NetBSD
@
text
@d1 2
a2 2
#	from: @@(#)Makefile	8.3 (Berkeley) 2/16/94
#	$Id$
@


1.2
log
@upgrade to bsd 4.4-lite code base. only mod is rcsids
@
text
@@


1.1
log
@Initial revision
@
text
@d1 2
a2 1
#	@@(#)Makefile	5.4 (Berkeley) 2/15/93
d6 1
a6 1
INCPATH=-I. -I../..
d12 3
a14 3
DEFS= -DSTANDALONE -DDS5000 -DSMALL
CFLAGS=	-O ${INCPATH} ${DEFS}
AFLAGS=	-O ${INCPATH} ${DEFS} -DLOCORE
d20 1
a20 2
#ALL=	boot mkboot mkboottape
ALL=	boot
d60 3
d67 1
a67 1
	rm -f a.out boot cat
d69 1
a69 1
	rm -f libdrive.a mkboot mkboottape
d74 2
a75 2
	install -s -o bin -g bin -m 444 rzboot ${DESTDIR}/usr/mdec
	install -s -o bin -g bin -m 444 bootrz ${DESTDIR}/usr/mdec
@


1.1.1.1
log
@pmax code from <ralphc@@pyramid.com> & <rick@@snowhite.cis.uoguelph.ca>
@
text
@@
