head	1.31;
access;
symbols
	perseant-exfatfs-base-20250801:1.31
	perseant-exfatfs-base-20240630:1.31
	perseant-exfatfs:1.31.0.8
	perseant-exfatfs-base:1.31
	netbsd-8-3-RELEASE:1.24
	netbsd-9-4-RELEASE:1.24
	bouyer-sunxi-drm:1.31.0.6
	bouyer-sunxi-drm-base:1.31
	netbsd-9-3-RELEASE:1.24
	cjep_sun2x:1.31.0.4
	cjep_sun2x-base:1.31
	cjep_staticlib_x-base1:1.31
	netbsd-9-2-RELEASE:1.24
	cjep_staticlib_x:1.31.0.2
	cjep_staticlib_x-base:1.31
	thorpej-futex-base:1.31
	netbsd-9-1-RELEASE:1.24
	bouyer-xenpvh-base2:1.30
	phil-wifi-20200421:1.30
	bouyer-xenpvh-base1:1.30
	phil-wifi-20200411:1.30
	bouyer-xenpvh:1.30.0.4
	bouyer-xenpvh-base:1.30
	is-mlppp:1.30.0.2
	is-mlppp-base:1.30
	phil-wifi-20200406:1.30
	netbsd-8-2-RELEASE:1.24
	ad-namecache-base3:1.30
	netbsd-9-0-RELEASE:1.24
	netbsd-9-0-RC2:1.24
	ad-namecache-base2:1.30
	ad-namecache-base1:1.25
	ad-namecache:1.24.0.20
	ad-namecache-base:1.24
	netbsd-9-0-RC1:1.24
	phil-wifi-20191119:1.24
	netbsd-9:1.24.0.18
	netbsd-9-base:1.24
	phil-wifi-20190609:1.24
	netbsd-8-1-RELEASE:1.24
	netbsd-8-1-RC1:1.24
	isaki-audio2:1.24.0.16
	isaki-audio2-base:1.24
	pgoyette-compat-merge-20190127:1.24
	pgoyette-compat-20190127:1.24
	pgoyette-compat-20190118:1.24
	pgoyette-compat-1226:1.24
	pgoyette-compat-1126:1.24
	pgoyette-compat-1020:1.24
	pgoyette-compat-0930:1.24
	pgoyette-compat-0906:1.24
	netbsd-7-2-RELEASE:1.21
	pgoyette-compat-0728:1.24
	netbsd-8-0-RELEASE:1.24
	phil-wifi:1.24.0.14
	phil-wifi-base:1.24
	pgoyette-compat-0625:1.24
	netbsd-8-0-RC2:1.24
	pgoyette-compat-0521:1.24
	pgoyette-compat-0502:1.24
	pgoyette-compat-0422:1.24
	netbsd-8-0-RC1:1.24
	pgoyette-compat-0415:1.24
	pgoyette-compat-0407:1.24
	pgoyette-compat-0330:1.24
	pgoyette-compat-0322:1.24
	pgoyette-compat-0315:1.24
	netbsd-7-1-2-RELEASE:1.21
	pgoyette-compat:1.24.0.12
	pgoyette-compat-base:1.24
	netbsd-7-1-1-RELEASE:1.21
	tls-maxphys-base-20171202:1.24
	matt-nb8-mediatek:1.24.0.10
	matt-nb8-mediatek-base:1.24
	nick-nhusb-base-20170825:1.24
	perseant-stdc-iso10646:1.24.0.8
	perseant-stdc-iso10646-base:1.24
	netbsd-8:1.24.0.6
	netbsd-8-base:1.24
	prg-localcount2-base3:1.24
	prg-localcount2-base2:1.24
	prg-localcount2-base1:1.24
	prg-localcount2:1.24.0.4
	prg-localcount2-base:1.24
	pgoyette-localcount-20170426:1.24
	bouyer-socketcan-base1:1.24
	jdolecek-ncq:1.24.0.2
	jdolecek-ncq-base:1.24
	pgoyette-localcount-20170320:1.23
	netbsd-7-1:1.21.0.10
	netbsd-7-1-RELEASE:1.21
	netbsd-7-1-RC2:1.21
	nick-nhusb-base-20170204:1.23
	netbsd-7-nhusb-base-20170116:1.21
	bouyer-socketcan:1.23.0.4
	bouyer-socketcan-base:1.23
	pgoyette-localcount-20170107:1.23
	netbsd-7-1-RC1:1.21
	nick-nhusb-base-20161204:1.23
	pgoyette-localcount-20161104:1.23
	netbsd-7-0-2-RELEASE:1.21
	nick-nhusb-base-20161004:1.23
	localcount-20160914:1.23
	netbsd-7-nhusb:1.21.0.8
	netbsd-7-nhusb-base:1.21
	pgoyette-localcount-20160806:1.23
	pgoyette-localcount-20160726:1.23
	pgoyette-localcount:1.23.0.2
	pgoyette-localcount-base:1.23
	nick-nhusb-base-20160907:1.23
	nick-nhusb-base-20160529:1.21
	netbsd-7-0-1-RELEASE:1.21
	nick-nhusb-base-20160422:1.21
	nick-nhusb-base-20160319:1.21
	nick-nhusb-base-20151226:1.21
	netbsd-7-0:1.21.0.6
	netbsd-7-0-RELEASE:1.21
	nick-nhusb-base-20150921:1.21
	netbsd-7-0-RC3:1.21
	netbsd-7-0-RC2:1.21
	netbsd-7-0-RC1:1.21
	nick-nhusb-base-20150606:1.21
	nick-nhusb-base-20150406:1.21
	nick-nhusb:1.21.0.4
	nick-nhusb-base:1.21
	netbsd-5-2-3-RELEASE:1.15.4.1
	netbsd-5-1-5-RELEASE:1.15
	netbsd-6-0-6-RELEASE:1.19
	netbsd-6-1-5-RELEASE:1.19
	netbsd-7:1.21.0.2
	netbsd-7-base:1.21
	yamt-pagecache-base9:1.21
	yamt-pagecache-tag8:1.19
	netbsd-6-1-4-RELEASE:1.19
	netbsd-6-0-5-RELEASE:1.19
	tls-earlyentropy:1.19.0.26
	tls-earlyentropy-base:1.21
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.19
	riastradh-drm2-base3:1.19
	netbsd-6-1-3-RELEASE:1.19
	netbsd-6-0-4-RELEASE:1.19
	netbsd-5-2-2-RELEASE:1.15.4.1
	netbsd-5-1-4-RELEASE:1.15
	netbsd-6-1-2-RELEASE:1.19
	netbsd-6-0-3-RELEASE:1.19
	netbsd-5-2-1-RELEASE:1.15.4.1
	netbsd-5-1-3-RELEASE:1.15
	rmind-smpnet-nbase:1.21
	netbsd-6-1-1-RELEASE:1.19
	riastradh-drm2-base2:1.19
	riastradh-drm2-base1:1.19
	riastradh-drm2:1.19.0.24
	riastradh-drm2-base:1.19
	rmind-smpnet:1.19.0.16
	rmind-smpnet-base:1.21
	netbsd-6-1:1.19.0.22
	netbsd-6-0-2-RELEASE:1.19
	netbsd-6-1-RELEASE:1.19
	khorben-n900:1.19.0.20
	netbsd-6-1-RC4:1.19
	netbsd-6-1-RC3:1.19
	agc-symver:1.19.0.18
	agc-symver-base:1.19
	netbsd-6-1-RC2:1.19
	netbsd-6-1-RC1:1.19
	yamt-pagecache-base8:1.19
	netbsd-5-2:1.15.4.1.0.2
	netbsd-6-0-1-RELEASE:1.19
	yamt-pagecache-base7:1.19
	netbsd-5-2-RELEASE:1.15.4.1
	netbsd-5-2-RC1:1.15.4.1
	matt-nb6-plus-nbase:1.19
	yamt-pagecache-base6:1.19
	netbsd-6-0:1.19.0.14
	netbsd-6-0-RELEASE:1.19
	netbsd-6-0-RC2:1.19
	tls-maxphys:1.19.0.12
	tls-maxphys-base:1.21
	matt-nb6-plus:1.19.0.10
	matt-nb6-plus-base:1.19
	netbsd-6-0-RC1:1.19
	jmcneill-usbmp-base10:1.19
	yamt-pagecache-base5:1.19
	jmcneill-usbmp-base9:1.19
	yamt-pagecache-base4:1.19
	jmcneill-usbmp-base8:1.19
	jmcneill-usbmp-base7:1.19
	jmcneill-usbmp-base6:1.19
	jmcneill-usbmp-base5:1.19
	jmcneill-usbmp-base4:1.19
	jmcneill-usbmp-base3:1.19
	jmcneill-usbmp-pre-base2:1.19
	jmcneill-usbmp-base2:1.19
	netbsd-6:1.19.0.8
	netbsd-6-base:1.19
	netbsd-5-1-2-RELEASE:1.15
	netbsd-5-1-1-RELEASE:1.15
	jmcneill-usbmp:1.19.0.6
	jmcneill-usbmp-base:1.19
	jmcneill-audiomp3:1.19.0.4
	jmcneill-audiomp3-base:1.19
	yamt-pagecache-base3:1.19
	yamt-pagecache-base2:1.19
	yamt-pagecache:1.19.0.2
	yamt-pagecache-base:1.19
	rmind-uvmplock-nbase:1.18
	cherry-xenmp:1.18.0.2
	cherry-xenmp-base:1.18
	uebayasi-xip-base7:1.18
	bouyer-quota2-nbase:1.18
	bouyer-quota2:1.17.0.4
	bouyer-quota2-base:1.18
	jruoho-x86intr:1.17.0.2
	jruoho-x86intr-base:1.17
	matt-mips64-premerge-20101231:1.17
	matt-nb5-mips64-premerge-20101231:1.15
	matt-nb5-pq3:1.15.0.14
	matt-nb5-pq3-base:1.15
	netbsd-5-1:1.15.0.12
	uebayasi-xip-base6:1.17
	uebayasi-xip-base5:1.17
	netbsd-5-1-RELEASE:1.15
	uebayasi-xip-base4:1.17
	uebayasi-xip-base3:1.17
	yamt-nfs-mp-base11:1.17
	netbsd-5-1-RC4:1.15
	matt-nb5-mips64-k15:1.15
	uebayasi-xip-base2:1.17
	yamt-nfs-mp-base10:1.17
	netbsd-5-1-RC3:1.15
	netbsd-5-1-RC2:1.15
	uebayasi-xip-base1:1.16
	netbsd-5-1-RC1:1.15
	rmind-uvmplock:1.16.0.6
	rmind-uvmplock-base:1.18
	yamt-nfs-mp-base9:1.16
	uebayasi-xip:1.16.0.4
	uebayasi-xip-base:1.16
	netbsd-5-0-2-RELEASE:1.15
	matt-nb5-mips64-premerge-20091211:1.15
	matt-premerge-20091211:1.16
	yamt-nfs-mp-base8:1.16
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.15
	matt-nb4-mips64-k7-u2a-k9b:1.15
	matt-nb5-mips64-u1-k1-k5:1.15
	yamt-nfs-mp-base7:1.16
	matt-nb5-mips64:1.15.0.10
	netbsd-5-0-1-RELEASE:1.15
	jymxensuspend-base:1.16
	yamt-nfs-mp-base6:1.16
	yamt-nfs-mp-base5:1.16
	yamt-nfs-mp-base4:1.16
	jym-xensuspend-nbase:1.18
	yamt-nfs-mp-base3:1.16
	nick-hppapmap-base4:1.16
	nick-hppapmap-base3:1.16
	netbsd-5-0:1.15.0.8
	netbsd-5-0-RELEASE:1.15
	netbsd-5-0-RC4:1.15
	netbsd-5-0-RC3:1.15
	nick-hppapmap-base2:1.16
	netbsd-5-0-RC2:1.15
	jym-xensuspend:1.16.0.2
	jym-xensuspend-base:1.18
	netbsd-5-0-RC1:1.15
	haad-dm-base2:1.15
	haad-nbase2:1.15
	ad-audiomp2:1.15.0.6
	ad-audiomp2-base:1.15
	netbsd-5:1.15.0.4
	netbsd-5-base:1.15
	nick-hppapmap:1.15.0.2
	nick-hppapmap-base:1.16
	matt-mips64-base2:1.14
	haad-dm-base1:1.13
	wrstuden-revivesa-base-4:1.13
	netbsd-4-0-1-RELEASE:1.13
	wrstuden-revivesa-base-3:1.13
	wrstuden-revivesa-base-2:1.13
	wrstuden-fixsa-newbase:1.13
	nick-csl-alignment-base5:1.13
	haad-dm:1.13.0.68
	haad-dm-base:1.15
	wrstuden-revivesa-base-1:1.13
	simonb-wapbl-nbase:1.13
	yamt-pf42-base4:1.13
	simonb-wapbl:1.13.0.66
	simonb-wapbl-base:1.13
	yamt-pf42-base3:1.13
	hpcarm-cleanup-nbase:1.13
	yamt-pf42-baseX:1.13
	yamt-pf42-base2:1.13
	yamt-nfs-mp-base2:1.13
	wrstuden-revivesa:1.13.0.64
	wrstuden-revivesa-base:1.13
	yamt-nfs-mp:1.13.0.62
	yamt-nfs-mp-base:1.13
	yamt-pf42:1.13.0.60
	yamt-pf42-base:1.13
	ad-socklock-base1:1.13
	yamt-lazymbuf-base15:1.13
	yamt-lazymbuf-base14:1.13
	keiichi-mipv6-nbase:1.13
	mjf-devfs2:1.13.0.58
	mjf-devfs2-base:1.16
	nick-net80211-sync:1.13.0.56
	nick-net80211-sync-base:1.13
	keiichi-mipv6:1.13.0.54
	keiichi-mipv6-base:1.13
	bouyer-xeni386-merge1:1.13
	matt-armv6-prevmlocking:1.13
	wrstuden-fixsa-base-1:1.13
	vmlocking2-base3:1.13
	netbsd-4-0:1.13.0.52
	netbsd-4-0-RELEASE:1.13
	bouyer-xeni386-nbase:1.13
	yamt-kmem-base3:1.13
	cube-autoconf:1.13.0.50
	cube-autoconf-base:1.13
	yamt-kmem-base2:1.13
	bouyer-xeni386:1.13.0.48
	bouyer-xeni386-base:1.13
	yamt-kmem:1.13.0.46
	yamt-kmem-base:1.13
	vmlocking2-base2:1.13
	reinoud-bufcleanup-nbase:1.13
	vmlocking2:1.13.0.44
	vmlocking2-base1:1.13
	netbsd-4-0-RC5:1.13
	matt-nb4-arm:1.13.0.42
	matt-nb4-arm-base:1.13
	matt-armv6-nbase:1.13
	jmcneill-base:1.13
	netbsd-4-0-RC4:1.13
	mjf-devfs:1.13.0.40
	mjf-devfs-base:1.13
	bouyer-xenamd64-base2:1.13
	vmlocking-nbase:1.13
	yamt-x86pmap-base4:1.13
	bouyer-xenamd64:1.13.0.38
	bouyer-xenamd64-base:1.13
	netbsd-4-0-RC3:1.13
	yamt-x86pmap-base3:1.13
	yamt-x86pmap-base2:1.13
	netbsd-4-0-RC2:1.13
	yamt-x86pmap:1.13.0.36
	yamt-x86pmap-base:1.13
	netbsd-4-0-RC1:1.13
	matt-armv6:1.13.0.34
	matt-armv6-base:1.13
	jmcneill-pm:1.13.0.32
	jmcneill-pm-base:1.13
	hpcarm-cleanup:1.13.0.30
	hpcarm-cleanup-base:1.13
	nick-csl-alignment:1.13.0.28
	nick-csl-alignment-base:1.13
	matt-mips64:1.13.0.26
	matt-mips64-base:1.13
	netbsd-3-1-1-RELEASE:1.10
	netbsd-3-0-3-RELEASE:1.10
	yamt-idlelwp-base8:1.13
	wrstuden-fixsa:1.13.0.24
	wrstuden-fixsa-base:1.13
	ppcoea-renovation:1.13.0.22
	ppcoea-renovation-base:1.13
	thorpej-atomic:1.13.0.20
	thorpej-atomic-base:1.13
	reinoud-bufcleanup:1.13.0.18
	reinoud-bufcleanup-base:1.13
	mjf-ufs-trans:1.13.0.16
	mjf-ufs-trans-base:1.13
	vmlocking:1.13.0.14
	vmlocking-base:1.13
	ad-audiomp:1.13.0.12
	ad-audiomp-base:1.13
	yamt-idlelwp:1.13.0.10
	post-newlock2-merge:1.13
	newlock2-nbase:1.13
	yamt-splraiseipl-base5:1.13
	yamt-splraiseipl-base4:1.13
	yamt-splraiseipl-base3:1.13
	abandoned-netbsd-4-base:1.13
	abandoned-netbsd-4:1.13.0.2
	netbsd-3-1:1.10.0.28
	netbsd-3-1-RELEASE:1.10
	netbsd-3-0-2-RELEASE:1.10
	yamt-splraiseipl-base2:1.13
	netbsd-3-1-RC4:1.10
	yamt-splraiseipl:1.13.0.6
	yamt-splraiseipl-base:1.13
	netbsd-3-1-RC3:1.10
	yamt-pdpolicy-base9:1.13
	newlock2:1.13.0.4
	newlock2-base:1.13
	yamt-pdpolicy-base8:1.13
	netbsd-3-1-RC2:1.10
	netbsd-3-1-RC1:1.10
	yamt-pdpolicy-base7:1.13
	netbsd-4:1.13.0.8
	netbsd-4-base:1.13
	yamt-pdpolicy-base6:1.11
	chap-midi-nbase:1.11
	netbsd-3-0-1-RELEASE:1.10
	gdamore-uart:1.11.0.16
	gdamore-uart-base:1.11
	simonb-timcounters-final:1.11
	yamt-pdpolicy-base5:1.11
	chap-midi:1.11.0.14
	chap-midi-base:1.11
	yamt-pdpolicy-base4:1.11
	yamt-pdpolicy-base3:1.11
	peter-altq-base:1.11
	peter-altq:1.11.0.12
	yamt-pdpolicy-base2:1.11
	elad-kernelauth-base:1.11
	elad-kernelauth:1.11.0.10
	yamt-pdpolicy:1.11.0.8
	yamt-pdpolicy-base:1.11
	yamt-uio_vmspace-base5:1.11
	simonb-timecounters:1.11.0.6
	simonb-timecounters-base:1.11
	rpaulo-netinet-merge-pcb:1.11.0.4
	rpaulo-netinet-merge-pcb-base:1.13
	yamt-uio_vmspace:1.11.0.2
	netbsd-3-0:1.10.0.26
	netbsd-3-0-RELEASE:1.10
	netbsd-3-0-RC6:1.10
	yamt-readahead-base3:1.10
	netbsd-3-0-RC5:1.10
	netbsd-3-0-RC4:1.10
	netbsd-3-0-RC3:1.10
	yamt-readahead-base2:1.10
	netbsd-3-0-RC2:1.10
	yamt-readahead-pervnode:1.10
	yamt-readahead-perfile:1.10
	yamt-readahead:1.10.0.24
	yamt-readahead-base:1.10
	netbsd-3-0-RC1:1.10
	yamt-vop-base3:1.10
	netbsd-2-0-3-RELEASE:1.10
	netbsd-2-1:1.10.0.22
	yamt-vop-base2:1.10
	thorpej-vnode-attr:1.10.0.20
	thorpej-vnode-attr-base:1.10
	netbsd-2-1-RELEASE:1.10
	yamt-vop:1.10.0.18
	yamt-vop-base:1.10
	netbsd-2-1-RC6:1.10
	netbsd-2-1-RC5:1.10
	netbsd-2-1-RC4:1.10
	netbsd-2-1-RC3:1.10
	netbsd-2-1-RC2:1.10
	netbsd-2-1-RC1:1.10
	yamt-lazymbuf:1.10.0.16
	yamt-km-base4:1.10
	netbsd-2-0-2-RELEASE:1.10
	yamt-km-base3:1.10
	netbsd-3:1.10.0.14
	netbsd-3-base:1.10
	yamt-km-base2:1.10
	yamt-km:1.10.0.10
	yamt-km-base:1.10
	kent-audio2:1.10.0.8
	kent-audio2-base:1.10
	netbsd-2-0-1-RELEASE:1.10
	kent-audio1-beforemerge:1.10
	netbsd-2:1.10.0.6
	netbsd-2-base:1.10
	kent-audio1:1.10.0.4
	kent-audio1-base:1.10
	netbsd-2-0-RELEASE:1.10
	netbsd-2-0-RC5:1.10
	netbsd-2-0-RC4:1.10
	netbsd-2-0-RC3:1.10
	netbsd-2-0-RC2:1.10
	netbsd-2-0-RC1:1.10
	netbsd-2-0:1.10.0.2
	netbsd-2-0-base:1.10
	netbsd-1-6-PATCH002-RELEASE:1.8
	netbsd-1-6-PATCH002:1.8
	netbsd-1-6-PATCH002-RC4:1.8
	netbsd-1-6-PATCH002-RC3:1.8
	netbsd-1-6-PATCH002-RC2:1.8
	netbsd-1-6-PATCH002-RC1:1.8
	ktrace-lwp:1.9.0.2
	ktrace-lwp-base:1.10
	netbsd-1-6-PATCH001:1.8
	netbsd-1-6-PATCH001-RELEASE:1.8
	netbsd-1-6-PATCH001-RC3:1.8
	netbsd-1-6-PATCH001-RC2:1.8
	netbsd-1-6-PATCH001-RC1:1.8
	nathanw_sa_end:1.4.4.2
	nathanw_sa_before_merge:1.8
	fvdl_fs64_base:1.8
	gmcgarry_ctxsw:1.8.0.16
	gmcgarry_ctxsw_base:1.8
	gmcgarry_ucred:1.8.0.14
	gmcgarry_ucred_base:1.8
	nathanw_sa_base:1.8
	kqueue-aftermerge:1.8
	kqueue-beforemerge:1.8
	netbsd-1-6-RELEASE:1.8
	netbsd-1-6-RC3:1.8
	netbsd-1-6-RC2:1.8
	netbsd-1-6-RC1:1.8
	netbsd-1-6:1.8.0.12
	netbsd-1-6-base:1.8
	gehenna-devsw:1.8.0.10
	gehenna-devsw-base:1.8
	eeh-devprop:1.8.0.8
	eeh-devprop-base:1.8
	newlock:1.8.0.6
	newlock-base:1.8
	ifpoll-base:1.8
	kqueue-base:1.8
	kqueue:1.8.0.2
	nathanw_sa:1.4.0.4
	thorpej-mips-cache:1.4.0.2
	thorpej-mips-cache-base:1.4
	thorpej-devvp-base3:1.3
	thorpej-devvp-base2:1.1;
locks; strict;
comment	@# @;


1.31
date	2020.08.16.07.03.45;	author isaki;	state dead;
branches;
next	1.30;
commitid	pBhkF7Xz0Zcu0gkC;

1.30
date	2020.01.18.07.25.11;	author isaki;	state Exp;
branches;
next	1.29;
commitid	PPqwBdvc4CpqU8TB;

1.29
date	2020.01.18.06.44.23;	author isaki;	state Exp;
branches;
next	1.28;
commitid	E0Lbsv0VGE4pG8TB;

1.28
date	2020.01.18.06.34.30;	author isaki;	state Exp;
branches;
next	1.27;
commitid	1KDxQaSnPyAVC8TB;

1.27
date	2020.01.18.05.46.26;	author isaki;	state Exp;
branches;
next	1.26;
commitid	wruNcpj2d5Hzm8TB;

1.26
date	2020.01.18.05.41.48;	author isaki;	state Exp;
branches;
next	1.25;
commitid	1JB4qeziIBLPk8TB;

1.25
date	2020.01.16.13.15.47;	author isaki;	state Exp;
branches;
next	1.24;
commitid	VpgZ8bOwSQICUUSB;

1.24
date	2017.04.08.19.53.23;	author christos;	state Exp;
branches
	1.24.14.1
	1.24.20.1;
next	1.23;

1.23
date	2016.06.25.14.35.58;	author isaki;	state Exp;
branches
	1.23.2.1
	1.23.4.1;
next	1.22;

1.22
date	2016.06.25.04.08.57;	author isaki;	state Exp;
branches;
next	1.21;

1.21
date	2014.04.16.14.33.43;	author tsutsui;	state Exp;
branches
	1.21.4.1;
next	1.20;

1.20
date	2014.04.14.14.24.27;	author isaki;	state Exp;
branches;
next	1.19;

1.19
date	2011.10.11.13.07.06;	author tsutsui;	state Exp;
branches
	1.19.2.1
	1.19.12.1
	1.19.16.1
	1.19.26.1;
next	1.18;

1.18
date	2011.01.22.19.19.24;	author joerg;	state Exp;
branches;
next	1.17;

1.17
date	2010.07.06.06.00.02;	author mrg;	state Exp;
branches
	1.17.2.1
	1.17.4.1;
next	1.16;

1.16
date	2009.01.12.07.56.31;	author tsutsui;	state Exp;
branches
	1.16.4.1
	1.16.6.1;
next	1.15;

1.15
date	2008.10.25.22.27.38;	author apb;	state Exp;
branches
	1.15.2.1
	1.15.4.1;
next	1.14;

1.14
date	2008.10.19.22.05.22;	author apb;	state Exp;
branches;
next	1.13;

1.13
date	2006.06.29.03.46.43;	author lukem;	state Exp;
branches
	1.13.58.1
	1.13.62.1
	1.13.68.1;
next	1.12;

1.12
date	2006.06.29.03.38.24;	author lukem;	state Exp;
branches;
next	1.11;

1.11
date	2005.12.11.12.19.44;	author christos;	state Exp;
branches
	1.11.4.1
	1.11.8.1
	1.11.16.1;
next	1.10;

1.10
date	2003.10.26.07.25.37;	author lukem;	state Exp;
branches
	1.10.16.1;
next	1.9;

1.9
date	2003.04.10.15.36.54;	author he;	state Exp;
branches
	1.9.2.1;
next	1.8;

1.8
date	2001.12.12.12.24.26;	author lukem;	state Exp;
branches
	1.8.2.1;
next	1.7;

1.7
date	2001.12.12.01.49.58;	author tv;	state Exp;
branches;
next	1.6;

1.6
date	2001.12.07.06.51.47;	author minoura;	state Exp;
branches;
next	1.5;

1.5
date	2001.11.24.16.18.45;	author minoura;	state Exp;
branches;
next	1.4;

1.4
date	2001.10.15.16.23.01;	author minoura;	state Exp;
branches
	1.4.4.1;
next	1.3;

1.3
date	2001.10.01.17.03.38;	author minoura;	state Exp;
branches;
next	1.2;

1.2
date	2001.10.01.16.58.01;	author minoura;	state Exp;
branches;
next	1.1;

1.1
date	2001.09.28.15.22.21;	author minoura;	state Exp;
branches;
next	;

1.24.14.1
date	2020.04.08.14.07.57;	author martin;	state Exp;
branches;
next	;
commitid	Qli2aW9E74UFuA3C;

1.24.20.1
date	2020.01.17.21.47.28;	author ad;	state Exp;
branches;
next	1.24.20.2;
commitid	T9pwLWote7xbI5TB;

1.24.20.2
date	2020.01.25.22.38.44;	author ad;	state Exp;
branches;
next	;
commitid	ethRERRmx7bMJ7UB;

1.23.2.1
date	2017.04.26.02.53.08;	author pgoyette;	state Exp;
branches;
next	;

1.23.4.1
date	2017.04.21.16.53.38;	author bouyer;	state Exp;
branches;
next	;

1.21.4.1
date	2016.07.09.20.24.58;	author skrll;	state Exp;
branches;
next	1.21.4.2;

1.21.4.2
date	2017.08.28.17.51.55;	author skrll;	state Exp;
branches;
next	;
commitid	UQQpnjvcNkUZn05A;

1.19.2.1
date	2014.05.22.11.40.12;	author yamt;	state Exp;
branches;
next	;

1.19.12.1
date	2014.08.20.00.03.28;	author tls;	state Exp;
branches;
next	1.19.12.2;

1.19.12.2
date	2017.12.03.11.36.49;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.19.16.1
date	2014.05.18.17.45.29;	author rmind;	state Exp;
branches;
next	;

1.19.26.1
date	2014.08.10.06.54.10;	author tls;	state Exp;
branches;
next	;

1.17.2.1
date	2011.06.06.09.07.02;	author jruoho;	state Exp;
branches;
next	;

1.17.4.1
date	2011.02.08.16.19.44;	author bouyer;	state Exp;
branches;
next	;

1.16.4.1
date	2010.08.17.06.45.28;	author uebayasi;	state Exp;
branches;
next	;

1.16.6.1
date	2011.03.05.20.52.24;	author rmind;	state Exp;
branches;
next	;

1.15.2.1
date	2009.01.19.13.17.08;	author skrll;	state Exp;
branches;
next	;

1.15.4.1
date	2012.03.17.18.38.57;	author bouyer;	state Exp;
branches;
next	;

1.13.58.1
date	2009.01.17.13.28.37;	author mjf;	state Exp;
branches;
next	;

1.13.62.1
date	2009.05.04.08.12.07;	author yamt;	state Exp;
branches;
next	1.13.62.2;

1.13.62.2
date	2010.08.11.22.52.54;	author yamt;	state Exp;
branches;
next	;

1.13.68.1
date	2008.12.13.01.13.38;	author haad;	state Exp;
branches;
next	;

1.11.4.1
date	2006.09.09.02.44.35;	author rpaulo;	state Exp;
branches;
next	;

1.11.8.1
date	2006.08.11.15.43.12;	author yamt;	state Exp;
branches;
next	;

1.11.16.1
date	2006.07.13.17.49.05;	author gdamore;	state Exp;
branches;
next	;

1.10.16.1
date	2006.12.30.20.47.21;	author yamt;	state Exp;
branches;
next	;

1.9.2.1
date	2004.08.03.10.42.56;	author skrll;	state Exp;
branches;
next	1.9.2.2;

1.9.2.2
date	2004.09.18.14.42.36;	author skrll;	state Exp;
branches;
next	1.9.2.3;

1.9.2.3
date	2004.09.21.13.24.20;	author skrll;	state Exp;
branches;
next	;

1.8.2.1
date	2001.12.12.12.24.26;	author thorpej;	state dead;
branches;
next	1.8.2.2;

1.8.2.2
date	2002.01.10.19.50.30;	author thorpej;	state Exp;
branches;
next	;

1.4.4.1
date	2001.10.15.16.23.01;	author nathanw;	state dead;
branches;
next	1.4.4.2;

1.4.4.2
date	2002.01.08.00.28.46;	author nathanw;	state Exp;
branches;
next	;


desc
@@


1.31
log
@Replace boot_ustar with xxboot_ustarfs.
The old boot_ustar had many hard coding and was small(<1KB).
The new xxboot_ustarfs is a part of integrated larger(<8KB) xxboot.
We had to maintain three similar but not the same bootloaders, but
now we have two!
@
text
@#	$NetBSD: Makefile,v 1.30 2020/01/18 07:25:11 isaki Exp $

NOMAN=		# defined

.include <bsd.own.mk>

BOOT=	boot_ustar
VERSIONFILE=	${.CURDIR}/version
VERSION!=	${TOOL_AWK} -F: '$$1 ~ /^[0-9.]*$$/ { it = $$1; } \
			END { print it }' ${VERSIONFILE}
NEWVERSWHAT=	"${BOOT}"

# text and bss addresses
TEXT=		0x2000		# Primary (me)
BOOT_TEXT=	0x6000		# Secondary (/boot)

BOOT_MAXSIZE=	65536		# size enough to read /boot whole

PROG=		fd$(BOOT)
BINDIR=		/usr/mdec
STRIPFLAG=
BINMODE=	444

S=		${.CURDIR}/../../../..
M=		$S/arch/x68k
COMMONDIR=	$M/stand/common
LIBIOCS=	$M/stand/libiocs
SRCS=	boot_ustar.S


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

CPPFLAGS+= -DTEXTADDR="$(TEXT)" -DBOOT_TEXTADDR="$(BOOT_TEXT)"
CPPFLAGS+= -DBOOT_MAXSIZE="$(BOOT_MAXSIZE)"
CPPFLAGS+= -DBOOT=\"$(BOOT)\" -DBOOT_VERS=\"$(VERSION)\"
CPPFLAGS+= -I${COMMONDIR} -I${LIBIOCS} -I${S} -I. -D_STANDALONE
CFLAGS+=   -m68000
AFLAGS=	   ${CFLAGS:M-[ID]*}
AFLAGS+=   -Wa,-march=m68000 -Wa,-mcpu=m68000
LINKFLAGS=   -n -Bstatic -T ${.CURDIR}/${BOOT}.ldscript
LINKFLAGS+=  --defsym=TEXTADDR=$(TEXT)
LINKFLAGS+=  --defsym=BOOT_TEXTADDR=$(BOOT_TEXT)

.include "${.CURDIR}/../Makefile.booters"
.include "${S}/../common/lib/libc/Makefile.inc"


${PROG}: $(OBJS)
	${_MKTARGET_LINK}
	$(LD) $(LINKFLAGS) -o ${PROG} $(OBJS) $(LDADD)

.include <bsd.prog.mk>
@


1.30
log
@Check whether the text+data+bss doesn't reach 0x6000 where secondary
bootloader should be.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 2020/01/18 06:44:23 isaki Exp $
@


1.29
log
@Use ASSERT() in ldscript to check first_kbyte (etc) restrictions,
rather than complicated shell expressions in Makefile.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 2020/01/18 06:34:30 isaki Exp $
d42 1
@


1.28
log
@Change primary bootloader's load address from 0x0f0000 to 0x003000.
- Moving addresses closer eliminates bunch of this linker errors:
    in function `entry0':
    relocation truncated to fit: R_68K_16 against `edata'+ffffffffffff8000
    :
- By this change, harmful -noinhibit-exec option can also be removed.
  Finally, we can break the builds when assemble error occurs!
- Load address of secondary is 0x6000, so that this change limits
  text+data+bss 12KB or less.  Current actual size is 5~7KB.
  I think it should be fine.
- cd9660 can have up to 30KB text+data in its bootarea.  Even in this
  case, this change limits text+data+bss 12KB or less (currently, it's
  about 6KB).  However, I take breaking the builds on errors rather than
  future size limitation.
There is no user visible changes or interface changes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 2020/01/18 05:46:26 isaki Exp $
d40 1
a40 1
LINKFLAGS=   -n -Bstatic -T ${.CURDIR}/${BOOT}.ldscript -M
a45 2
CLEANFILES+=	${PROG}.x $(PROG).map

d49 1
a49 14
	$(LD) $(LINKFLAGS) -o ${PROG} $(OBJS) $(LDADD) > $(PROG).map
	@@grep first_kbyte $(PROG).map
	@@if [ `${TOOL_AWK}						   \
	    '/first_kbyte/ {print "eval(eval("$$1")-eval('$(TEXT)'))"}'	   \
	    $(PROG).map | ${TOOL_M4} -` -gt 1024 ];			   \
	then echo '$(BOOT): first_kbyte exceeds the first killobyte';	   \
	    rm $(PROG) ; exit 1; 					   \
	fi
	@@if [ `${TOOL_AWK}						   \
	    '/_edata/ {print "eval(eval("$$1")-eval('$(TEXT)'))"}'	   \
	    $(PROG).map | ${TOOL_M4} -` -gt 8192 ];			   \
	then echo '$(BOOT): text+data is too large';			   \
	    rm $(PROG) ; exit 1; 					   \
	fi
@


1.27
log
@Add 0x prefix when defining variables, not when using it.
This was necessary for bc(1) but it's no longer necessary.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2020/01/18 05:41:48 isaki Exp $
a41 1
LINKFLAGS+=  -noinhibit-exec	# XXX
@


1.26
log
@Pass address constants from Makefile to ldscript.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2020/01/16 13:15:47 isaki Exp $
d13 3
a15 3
# text and bss addresses in hex
TEXT=		002000		# Primary (me)
BOOT_TEXT=	006000		# Secondary (/boot)
d33 1
a33 1
CPPFLAGS+= -DTEXTADDR="0x$(TEXT)" -DBOOT_TEXTADDR="0x$(BOOT_TEXT)"
d41 1
a41 1
LINKFLAGS+=  --defsym=TEXTADDR=0x$(TEXT)
d55 1
a55 1
	    '/first_kbyte/ {print "eval(eval("$$1")-eval(0x'$(TEXT)'))"}'  \
d61 1
a61 1
	    '/_edata/ {print "eval(eval("$$1")-eval(0x'$(TEXT)'))"}'	   \
@


1.25
log
@Rewrite limit check using cross-build tools.
This eliminates use of hosts tr(1) and bc(1).
(But I'm going to remove this again soon due to other reason)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 2017/04/08 19:53:23 christos Exp $
d41 1
@


1.24
log
@centralize vers.c building for standalone programs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 2016/06/25 14:35:58 isaki Exp $
d53 3
a55 5
	@@if [ `(echo ibase=16; 						   \
	    ${TOOL_SED} -n						   \
		's/^.*0x\([0-9a-f]*\).* first_kbyte$$/\1-$(TEXT)-400/p'    \
		$(PROG).map | 						   \
	    tr a-f A-F) | bc` -gt 0 ]; 					   \
d59 3
a61 5
	@@if [ `(echo ibase=16; 						   \
	    ${TOOL_SED} -n						   \
		's/^.*0x\([0-9a-f]*\).* _edata *= *\.$$/\1-$(TEXT)-2000/p' \
		$(PROG).map | 						   \
	    tr a-f A-F) | bc` -gt 0 ]; 					   \
@


1.24.14.1
log
@Merge changes from current as of 20200406
@
text
@d1 1
a1 1
#	$NetBSD$
d13 3
a15 3
# text and bss addresses
TEXT=		0x2000		# Primary (me)
BOOT_TEXT=	0x6000		# Secondary (/boot)
d33 1
a33 1
CPPFLAGS+= -DTEXTADDR="$(TEXT)" -DBOOT_TEXTADDR="$(BOOT_TEXT)"
d40 2
a41 3
LINKFLAGS=   -n -Bstatic -T ${.CURDIR}/${BOOT}.ldscript
LINKFLAGS+=  --defsym=TEXTADDR=$(TEXT)
LINKFLAGS+=  --defsym=BOOT_TEXTADDR=$(BOOT_TEXT)
d46 2
d51 18
a68 1
	$(LD) $(LINKFLAGS) -o ${PROG} $(OBJS) $(LDADD)
@


1.24.20.1
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2020/01/16 13:15:47 isaki Exp $
d53 5
a57 3
	@@if [ `${TOOL_AWK}						   \
	    '/first_kbyte/ {print "eval(eval("$$1")-eval(0x'$(TEXT)'))"}'  \
	    $(PROG).map | ${TOOL_M4} -` -gt 1024 ];			   \
d61 5
a65 3
	@@if [ `${TOOL_AWK}						   \
	    '/_edata/ {print "eval(eval("$$1")-eval(0x'$(TEXT)'))"}'	   \
	    $(PROG).map | ${TOOL_M4} -` -gt 8192 ];			   \
@


1.24.20.2
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24.20.1 2020/01/17 21:47:28 ad Exp $
d13 3
a15 3
# text and bss addresses
TEXT=		0x2000		# Primary (me)
BOOT_TEXT=	0x6000		# Secondary (/boot)
d33 1
a33 1
CPPFLAGS+= -DTEXTADDR="$(TEXT)" -DBOOT_TEXTADDR="$(BOOT_TEXT)"
d40 2
a41 3
LINKFLAGS=   -n -Bstatic -T ${.CURDIR}/${BOOT}.ldscript
LINKFLAGS+=  --defsym=TEXTADDR=$(TEXT)
LINKFLAGS+=  --defsym=BOOT_TEXTADDR=$(BOOT_TEXT)
d46 2
d51 14
a64 1
	$(LD) $(LINKFLAGS) -o ${PROG} $(OBJS) $(LDADD)
@


1.23
log
@Unify netboot and boot (into boot).
Now boot becomes to be able to load the NFS kernel and
netboot also becomes to be able to load the local kernel.
The only difference is the default kernel which loads.
I.e., netboot's default is nfs.

Bump boot_ustar's BOOT_MAXSIZE.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2016/06/25 04:08:57 isaki Exp $
d30 2
a31 6
SRCS+=		vers.c
CLEANFILES+=	vers.c
vers.c:	${VERSIONFILE}
	${_MKTARGET_CREATE}
	${HOST_SH} ${S}/conf/newvers_stand.sh \
	    ${.ALLSRC} ${MACHINE} ${NEWVERSWHAT}
@


1.23.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 2017/04/08 19:53:23 christos Exp $
d30 6
a35 2

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


1.23.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 2017/04/08 19:53:23 christos Exp $
d30 6
a35 2

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


1.22
log
@Define BOOT_MAXSIZE instead of magic number.
Present size 56832 is 65536 - 8192 - 0x200 and is the same size
as before.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2014/04/16 14:33:43 tsutsui Exp $
d17 1
a17 1
BOOT_MAXSIZE=	56832		# size enough to read /boot whole
@


1.21
log
@Put back "-Wa,-march=m68000 -Wa,-mcpu=m68000" for AFLAGS for X68000 models.

See my post in source-changes-d@@ for details.
http://mail-index.netbsd.org/source-changes-d/2014/04/15/msg006723.html

Also use "-m68000" for CFLAGS for consistency.
(the previous -m68020-60 was harmless because vers.c has
 only const strings and there is no instruction)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2014/04/14 14:24:27 isaki Exp $
d17 2
d38 1
@


1.21.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 2016/06/25 14:35:58 isaki Exp $
a16 2
BOOT_MAXSIZE=	65536		# size enough to read /boot whole

a35 1
CPPFLAGS+= -DBOOT_MAXSIZE="$(BOOT_MAXSIZE)"
@


1.21.4.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21.4.1 2016/07/09 20:24:58 skrll Exp $
d30 6
a35 2

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


1.20
log
@Remove -mc68000 asm option for GCC4.8 (or new binutils?).
With this option, new gcc complains that "boot_ustar.S:21: Error:
selected processor does not have all features of selected architecture".
I'm not sure about the essence of this error, but this option maybe
not needed because there is no need to consider about 68000 here.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2011/10/11 13:07:06 tsutsui Exp $
d38 1
a38 1
CFLAGS+=   -m68020-60
d40 1
@


1.19
log
@Fix "Error occurs, please reset" boot problem on
X68030 + 060turbo in 060 mode, found on NetBSD booth
at OSC 2011 Hiroshima:

- use -D__daddr_t=int32_t for all bootloader files
  to avoid 64 bit ops in FFS
- explicitly specify -m68020-60 to avoid 64 bit mulsl/mulul
  instructions which need to be handled by 060SP emulation
  but not available in 060turbo IPL ROM
  (LFS still has uint64_t members even with 32bit daddr_t)

The problem was investigated (at least 1.6.2 bootloaders worked)
by Yasushi Oshima at OSC booth, and fixes have been confirmed
by Y.Sugahara on his 060turbo.  Thanks everyone!

Should also be pulled up to netbsd-5.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2011/01/22 19:19:24 joerg Exp $
a39 1
AFLAGS+=   -Wa,-mc68000
@


1.19.12.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
d38 1
a38 1
CFLAGS+=   -m68000
d40 1
a40 1
AFLAGS+=   -Wa,-march=m68000 -Wa,-mcpu=m68000
@


1.19.12.2
log
@update from HEAD
@
text
@a16 2
BOOT_MAXSIZE=	65536		# size enough to read /boot whole

d28 6
a33 2

.include "${S}/conf/newvers_stand.mk"
a35 1
CPPFLAGS+= -DBOOT_MAXSIZE="$(BOOT_MAXSIZE)"
@


1.19.26.1
log
@Rebase.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2014/04/16 14:33:43 tsutsui Exp $
d38 1
a38 1
CFLAGS+=   -m68000
d40 1
a40 1
AFLAGS+=   -Wa,-march=m68000 -Wa,-mcpu=m68000
@


1.19.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,v 1.19 2011/10/11 13:07:06 tsutsui Exp $
d38 1
a38 1
CFLAGS+=   -m68000
d40 1
a40 1
AFLAGS+=   -Wa,-march=m68000 -Wa,-mcpu=m68000
@


1.19.16.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2011/10/11 13:07:06 tsutsui Exp $
d38 1
a38 1
CFLAGS+=   -m68000
d40 1
a40 1
AFLAGS+=   -Wa,-march=m68000 -Wa,-mcpu=m68000
@


1.18
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 1
a1 1
#	$NetBSD: src/sys/arch/x68k/stand/boot_ustar/Makefile,v 1.17 2010-07-06 06:00:02 mrg Exp $
d38 1
@


1.17
log
@remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2009/01/12 07:56:31 tsutsui Exp $
d32 2
a33 1
	${HOST_SH} ${S}/conf/newvers_stand.sh -DM ${.ALLSRC} ${MACHINE} ${NEWVERSWHAT}
@


1.17.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2011/01/22 19:19:24 joerg Exp $
d32 1
a32 2
	${HOST_SH} ${S}/conf/newvers_stand.sh \
	    ${.ALLSRC} ${MACHINE} ${NEWVERSWHAT}
@


1.17.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2011/01/22 19:19:24 joerg Exp $
d32 1
a32 2
	${HOST_SH} ${S}/conf/newvers_stand.sh \
	    ${.ALLSRC} ${MACHINE} ${NEWVERSWHAT}
@


1.16
log
@- WARNSfy
- make sure machine and ${MACHIN_ARCH} symlinks are always created
- several tweaks to allow build without installed DESTDIR
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2008/10/25 22:27:38 apb Exp $
a38 1
.if ${OBJECT_FMT} == "ELF"
a40 4
.else
LINKFLAGS=   -n -Bstatic -Ttext ${TEXT} -M
OBJCOPY?=  objcopy
.endif
a51 1
.if ${OBJECT_FMT} == "ELF"
a67 21
.else
	mv $(PROG) $(PROG).x
	$(OBJCOPY) -I a.out-m68k-netbsd -O binary $(PROG).x $(PROG)
	@@rm -f $(PROG).x
	@@if [ `(echo ibase=16; 						   \
	    ${TOOL_SED} -n						   \
		's/  first_kbyte:.*0x\(.*\),.*$$/\1-$(TEXT)-400/p'	   \
		$(PROG).map | 						   \
	    tr a-f A-F) | bc` -gt 0 ]; 					   \
	then echo '$(BOOT): first_kbyte exceeds the first killobyte';	   \
	    rm $(PROG) ; exit 1; 					   \
	fi
	@@if [ `(echo ibase=16; 						   \
	    ${TOOL_SED} -n						   \
		's/  _edata:.*0x\(.*\),.*$$/\1-$(TEXT)-2000/p'		   \
		$(PROG).map | 						   \
	    tr a-f A-F) | bc` -gt 0 ]; 					   \
	then echo '$(BOOT): text+data is too large';			   \
	    rm $(PROG) ; exit 1; 					   \
	fi
.endif
@


1.16.6.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD$
d32 1
a32 2
	${HOST_SH} ${S}/conf/newvers_stand.sh \
	    ${.ALLSRC} ${MACHINE} ${NEWVERSWHAT}
d39 1
d42 4
d57 1
d74 21
@


1.16.4.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD$
d39 1
d42 4
d57 1
d74 21
@


1.15
log
@Use ${TOOL_SED} instead if plain sed in Makefiles.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2008/10/19 22:05:22 apb Exp $
d36 1
a36 1
CPPFLAGS+= -I${COMMONDIR} -I${LIBIOCS}
d47 3
@


1.15.4.1
log
@Pull up following revision(s) (requested by tsutsui in ticket #1731):
	sys/arch/x68k/stand/boot_ufs/Makefile: revision 1.26 via patch
	sys/arch/x68k/stand/boot/version: revision 1.4 via patch
	sys/arch/x68k/stand/libsa/Makefile: revision 1.27 via patch
	sys/arch/x68k/stand/Makefile.booters: revision 1.7 via patch
	sys/arch/x68k/stand/boot_ustar/Makefile: revision 1.19 via patch
Fix "Error occurs, please reset" boot problem on
X68030 + 060turbo in 060 mode, found on NetBSD booth
at OSC 2011 Hiroshima:
- use -D__daddr_t=int32_t for all bootloader files
  to avoid 64 bit ops in FFS
- explicitly specify -m68020-60 to avoid 64 bit mulsl/mulul
  instructions which need to be handled by 060SP emulation
  but not available in 060turbo IPL ROM
  (LFS still has uint64_t members even with 32bit daddr_t)
The problem was investigated (at least 1.6.2 bootloaders worked)
by Yasushi Oshima at OSC booth, and fixes have been confirmed
by Y.Sugahara on his 060turbo.  Thanks everyone!
Should also be pulled up to netbsd-5.
Bump version to denote 060turbo boot fix.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2008/10/25 22:27:38 apb Exp $
a36 1
CFLAGS+=   -m68020-60
@


1.15.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2009/01/12 07:56:31 tsutsui Exp $
d36 1
a36 1
CPPFLAGS+= -I${COMMONDIR} -I${LIBIOCS} -I${S} -I. -D_STANDALONE
a46 3
.include "${.CURDIR}/../Makefile.booters"
.include "${S}/../common/lib/libc/Makefile.inc"

@


1.14
log
@Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2006/06/29 03:46:43 lukem Exp $
d56 2
a57 1
	    sed -n 's/^.*0x\([0-9a-f]*\).* first_kbyte$$/\1-$(TEXT)-400/p' \
d64 2
a65 1
	    sed -n 's/^.*0x\([0-9a-f]*\).* _edata *= *\.$$/\1-$(TEXT)-2000/p' \
d76 2
a77 1
	    sed -n 's/  first_kbyte:.*0x\(.*\),.*$$/\1-$(TEXT)-400/p'	   \
d84 2
a85 1
	    sed -n 's/  _edata:.*0x\(.*\),.*$$/\1-$(TEXT)-2000/p'	   \
@


1.13
log
@Support MAKEVERBOSE
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2006/06/29 03:38:24 lukem Exp $
d9 2
a10 1
VERSION!=	awk -F: '$$1 ~ /^[0-9.]*$$/ { it = $$1; } END { print it }' ${VERSIONFILE}
@


1.13.62.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2006/06/29 03:46:43 lukem Exp $
d9 1
a9 2
VERSION!=	${TOOL_AWK} -F: '$$1 ~ /^[0-9.]*$$/ { it = $$1; } \
			END { print it }' ${VERSIONFILE}
d35 1
a35 1
CPPFLAGS+= -I${COMMONDIR} -I${LIBIOCS} -I${S} -I. -D_STANDALONE
a45 3
.include "${.CURDIR}/../Makefile.booters"
.include "${S}/../common/lib/libc/Makefile.inc"

d55 1
a55 2
	    ${TOOL_SED} -n						   \
		's/^.*0x\([0-9a-f]*\).* first_kbyte$$/\1-$(TEXT)-400/p'    \
d62 1
a62 2
	    ${TOOL_SED} -n						   \
		's/^.*0x\([0-9a-f]*\).* _edata *= *\.$$/\1-$(TEXT)-2000/p' \
d73 1
a73 2
	    ${TOOL_SED} -n						   \
		's/  first_kbyte:.*0x\(.*\),.*$$/\1-$(TEXT)-400/p'	   \
d80 1
a80 2
	    ${TOOL_SED} -n						   \
		's/  _edata:.*0x\(.*\),.*$$/\1-$(TEXT)-2000/p'		   \
@


1.13.62.2
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13.62.1 2009/05/04 08:12:07 yamt Exp $
d39 1
d42 4
d57 1
d74 21
@


1.13.58.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD$
d9 1
a9 2
VERSION!=	${TOOL_AWK} -F: '$$1 ~ /^[0-9.]*$$/ { it = $$1; } \
			END { print it }' ${VERSIONFILE}
d35 1
a35 1
CPPFLAGS+= -I${COMMONDIR} -I${LIBIOCS} -I${S} -I. -D_STANDALONE
a45 3
.include "${.CURDIR}/../Makefile.booters"
.include "${S}/../common/lib/libc/Makefile.inc"

d55 1
a55 2
	    ${TOOL_SED} -n						   \
		's/^.*0x\([0-9a-f]*\).* first_kbyte$$/\1-$(TEXT)-400/p'    \
d62 1
a62 2
	    ${TOOL_SED} -n						   \
		's/^.*0x\([0-9a-f]*\).* _edata *= *\.$$/\1-$(TEXT)-2000/p' \
d73 1
a73 2
	    ${TOOL_SED} -n						   \
		's/  first_kbyte:.*0x\(.*\),.*$$/\1-$(TEXT)-400/p'	   \
d80 1
a80 2
	    ${TOOL_SED} -n						   \
		's/  _edata:.*0x\(.*\),.*$$/\1-$(TEXT)-2000/p'		   \
@


1.13.68.1
log
@Update haad-dm branch to haad-dm-base2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2008/10/25 22:27:38 apb Exp $
d9 1
a9 2
VERSION!=	${TOOL_AWK} -F: '$$1 ~ /^[0-9.]*$$/ { it = $$1; } \
			END { print it }' ${VERSIONFILE}
d55 1
a55 2
	    ${TOOL_SED} -n						   \
		's/^.*0x\([0-9a-f]*\).* first_kbyte$$/\1-$(TEXT)-400/p'    \
d62 1
a62 2
	    ${TOOL_SED} -n						   \
		's/^.*0x\([0-9a-f]*\).* _edata *= *\.$$/\1-$(TEXT)-2000/p' \
d73 1
a73 2
	    ${TOOL_SED} -n						   \
		's/  first_kbyte:.*0x\(.*\),.*$$/\1-$(TEXT)-400/p'	   \
d80 1
a80 2
	    ${TOOL_SED} -n						   \
		's/  _edata:.*0x\(.*\),.*$$/\1-$(TEXT)-2000/p'		   \
@


1.12
log
@Rename LDFLAGS to LINKFLAGS, as the former is for CC not LD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2005/12/11 12:19:44 christos Exp $
d30 1
d50 1
@


1.11
log
@merge ktrace-lwp.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9.2.3 2004/09/21 13:24:20 skrll Exp $
d38 2
a39 2
LDFLAGS=   -n -Bstatic -T ${.CURDIR}/${BOOT}.ldscript -M
LDFLAGS+=  -noinhibit-exec	# XXX
d41 1
a41 1
LDFLAGS=   -n -Bstatic -Ttext ${TEXT} -M
d49 1
a49 1
	$(LD) $(LDFLAGS) -o ${PROG} $(OBJS) $(LDADD) > $(PROG).map
@


1.11.4.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2006/06/29 03:46:43 lukem Exp $
a29 1
	${_MKTARGET_CREATE}
d38 2
a39 2
LINKFLAGS=   -n -Bstatic -T ${.CURDIR}/${BOOT}.ldscript -M
LINKFLAGS+=  -noinhibit-exec	# XXX
d41 1
a41 1
LINKFLAGS=   -n -Bstatic -Ttext ${TEXT} -M
d49 1
a49 2
	${_MKTARGET_LINK}
	$(LD) $(LINKFLAGS) -o ${PROG} $(OBJS) $(LDADD) > $(PROG).map
@


1.11.8.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2005/12/11 12:19:44 christos Exp $
a29 1
	${_MKTARGET_CREATE}
d38 2
a39 2
LINKFLAGS=   -n -Bstatic -T ${.CURDIR}/${BOOT}.ldscript -M
LINKFLAGS+=  -noinhibit-exec	# XXX
d41 1
a41 1
LINKFLAGS=   -n -Bstatic -Ttext ${TEXT} -M
d49 1
a49 2
	${_MKTARGET_LINK}
	$(LD) $(LINKFLAGS) -o ${PROG} $(OBJS) $(LDADD) > $(PROG).map
@


1.11.16.1
log
@Merge from HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2006/06/29 03:46:43 lukem Exp $
a29 1
	${_MKTARGET_CREATE}
d38 2
a39 2
LINKFLAGS=   -n -Bstatic -T ${.CURDIR}/${BOOT}.ldscript -M
LINKFLAGS+=  -noinhibit-exec	# XXX
d41 1
a41 1
LINKFLAGS=   -n -Bstatic -Ttext ${TEXT} -M
d49 1
a49 2
	${_MKTARGET_LINK}
	$(LD) $(LINKFLAGS) -o ${PROG} $(OBJS) $(LDADD) > $(PROG).map
@


1.10
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,v 1.9 2003/04/10 15:36:54 he Exp $
@


1.10.16.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2003/10/26 07:25:37 lukem Exp $
a29 1
	${_MKTARGET_CREATE}
d38 2
a39 2
LINKFLAGS=   -n -Bstatic -T ${.CURDIR}/${BOOT}.ldscript -M
LINKFLAGS+=  -noinhibit-exec	# XXX
d41 1
a41 1
LINKFLAGS=   -n -Bstatic -Ttext ${TEXT} -M
d49 1
a49 2
	${_MKTARGET_LINK}
	$(LD) $(LINKFLAGS) -o ${PROG} $(OBJS) $(LDADD) > $(PROG).map
@


1.9
log
@Match the "extra" spaces emitted in the load map by the new binutils,
but also match what the old binutils emitted as well.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2001/12/12 12:24:26 lukem Exp $
d30 1
a30 1
	sh ${S}/conf/newvers_stand.sh -DM ${.ALLSRC} ${MACHINE} ${NEWVERSWHAT}
@


1.9.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2003/10/26 07:25:37 lukem Exp $
d30 1
a30 1
	${HOST_SH} ${S}/conf/newvers_stand.sh -DM ${.ALLSRC} ${MACHINE} ${NEWVERSWHAT}
@


1.9.2.2
log
@Sync with HEAD.
@
text
@@


1.9.2.3
log
@Fix the sync with head I botched.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9.2.1 2004/08/03 10:42:56 skrll Exp $
@


1.8
log
@Set  NOxxx=  before  <bsd.own.mk>  is pulled in (even indirectly).
Otherwise the appropriate MKxxx=no won't be defined .
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2001/12/12 01:49:58 tv Exp $
d60 1
a60 1
	    sed -n 's/^.*0x\([0-9a-f]*\).* _edata=\.$$/\1-$(TEXT)-2000/p' \
@


1.8.2.1
log
@file Makefile was added on branch kqueue on 2002-01-10 19:50:30 +0000
@
text
@d1 86
@


1.8.2.2
log
@Sync kqueue branch with -current.
@
text
@a0 86
#	$NetBSD: Makefile,v 1.8.2.1 2002/01/10 19:50:30 thorpej Exp $

NOMAN=		# defined

.include <bsd.own.mk>

BOOT=	boot_ustar
VERSIONFILE=	${.CURDIR}/version
VERSION!=	awk -F: '$$1 ~ /^[0-9.]*$$/ { it = $$1; } END { print it }' ${VERSIONFILE}
NEWVERSWHAT=	"${BOOT}"

# text and bss addresses in hex
TEXT=		002000		# Primary (me)
BOOT_TEXT=	006000		# Secondary (/boot)

PROG=		fd$(BOOT)
BINDIR=		/usr/mdec
STRIPFLAG=
BINMODE=	444

S=		${.CURDIR}/../../../..
M=		$S/arch/x68k
COMMONDIR=	$M/stand/common
LIBIOCS=	$M/stand/libiocs
SRCS=	boot_ustar.S

SRCS+=		vers.c
CLEANFILES+=	vers.c
vers.c:	${VERSIONFILE}
	sh ${S}/conf/newvers_stand.sh -DM ${.ALLSRC} ${MACHINE} ${NEWVERSWHAT}

CPPFLAGS+= -DTEXTADDR="0x$(TEXT)" -DBOOT_TEXTADDR="0x$(BOOT_TEXT)"
CPPFLAGS+= -DBOOT=\"$(BOOT)\" -DBOOT_VERS=\"$(VERSION)\"
CPPFLAGS+= -I${COMMONDIR} -I${LIBIOCS}
AFLAGS=	   ${CFLAGS:M-[ID]*}
AFLAGS+=   -Wa,-mc68000
.if ${OBJECT_FMT} == "ELF"
LDFLAGS=   -n -Bstatic -T ${.CURDIR}/${BOOT}.ldscript -M
LDFLAGS+=  -noinhibit-exec	# XXX
.else
LDFLAGS=   -n -Bstatic -Ttext ${TEXT} -M
OBJCOPY?=  objcopy
.endif

CLEANFILES+=	${PROG}.x $(PROG).map


${PROG}: $(OBJS)
	$(LD) $(LDFLAGS) -o ${PROG} $(OBJS) $(LDADD) > $(PROG).map
	@@grep first_kbyte $(PROG).map
.if ${OBJECT_FMT} == "ELF"
	@@if [ `(echo ibase=16; 						   \
	    sed -n 's/^.*0x\([0-9a-f]*\).* first_kbyte$$/\1-$(TEXT)-400/p' \
		$(PROG).map | 						   \
	    tr a-f A-F) | bc` -gt 0 ]; 					   \
	then echo '$(BOOT): first_kbyte exceeds the first killobyte';	   \
	    rm $(PROG) ; exit 1; 					   \
	fi
	@@if [ `(echo ibase=16; 						   \
	    sed -n 's/^.*0x\([0-9a-f]*\).* _edata=\.$$/\1-$(TEXT)-2000/p' \
		$(PROG).map | 						   \
	    tr a-f A-F) | bc` -gt 0 ]; 					   \
	then echo '$(BOOT): text+data is too large';			   \
	    rm $(PROG) ; exit 1; 					   \
	fi
.else
	mv $(PROG) $(PROG).x
	$(OBJCOPY) -I a.out-m68k-netbsd -O binary $(PROG).x $(PROG)
	@@rm -f $(PROG).x
	@@if [ `(echo ibase=16; 						   \
	    sed -n 's/  first_kbyte:.*0x\(.*\),.*$$/\1-$(TEXT)-400/p'	   \
		$(PROG).map | 						   \
	    tr a-f A-F) | bc` -gt 0 ]; 					   \
	then echo '$(BOOT): first_kbyte exceeds the first killobyte';	   \
	    rm $(PROG) ; exit 1; 					   \
	fi
	@@if [ `(echo ibase=16; 						   \
	    sed -n 's/  _edata:.*0x\(.*\),.*$$/\1-$(TEXT)-2000/p'	   \
		$(PROG).map | 						   \
	    tr a-f A-F) | bc` -gt 0 ]; 					   \
	then echo '$(BOOT): text+data is too large';			   \
	    rm $(PROG) ; exit 1; 					   \
	fi
.endif

.include <bsd.prog.mk>
@


1.7
log
@MKfoo=no -> NOfoo
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.6 2001/12/07 06:51:47 minoura Exp $
a19 1
NOMAN=		# defined
@


1.6
log
@Correct typo.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2001/11/24 16:18:45 minoura Exp $
d18 1
a18 1
MKMAN=		no
@


1.5
log
@Emit the binaries directly from the loader.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2001/10/15 16:23:01 minoura Exp $
d44 1
a44 1
CLEANFILES=	${PROG}.x $(PROG).map
@


1.4
log
@Use newvers_stand.sh to record the version.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2001/10/01 17:03:38 minoura Exp $
a19 2
OBJCOPY?=	objcopy

d37 1
a37 1
LDFLAGS=   -n -Bstatic -T ${.CURDIR}/${BOOT}.ldscript
d40 2
a41 1
LDFLAGS=   -n -Bstatic -Ttext ${TEXT}
d44 1
a44 1
CLEANFILES=	${PROG}.x s.x x.s x.o
d48 36
a83 12
	$(LD) $(LDFLAGS) -o ${PROG}.x $(OBJS) $(LDADD)
	@@$(NM) --target=a.out-m68k-netbsd ${PROG}.x | sed -n '/T first_kbyte/p'
	@@if [ `(echo ibase=16; \
		$(NM) --target=a.out-m68k-netbsd ${PROG}.x | sed -n 's/T first_kbyte/-$(TEXT)-400/p' | \
				tr a-f A-F) | bc` -gt 0 ];\
	then echo '${PROG}: first_kbyte exceeds the first killobyte'; exit 1; fi
	@@$(SIZE) --target=a.out-m68k-netbsd ${PROG}.x
	@@if [ `(echo ibase=16; \
		$(NM) --target=a.out-m68k-netbsd ${PROG}.x | sed -n 's/D _edata/-$(TEXT)-2000/p' | tr a-f A-F) |\
			bc` -gt 0 ];\
	then	echo '${PROG}: text+data is too large'; exit 1; fi
	@@$(OBJCOPY) -I a.out-m68k-netbsd -O binary ${PROG}.x ${PROG}
@


1.4.4.1
log
@file Makefile was added on branch nathanw_sa on 2002-01-08 00:28:46 +0000
@
text
@d1 62
@


1.4.4.2
log
@Catch up to -current.
@
text
@a0 86
#	$NetBSD: Makefile,v 1.4.4.1 2002/01/08 00:28:46 nathanw Exp $

NOMAN=		# defined

.include <bsd.own.mk>

BOOT=	boot_ustar
VERSIONFILE=	${.CURDIR}/version
VERSION!=	awk -F: '$$1 ~ /^[0-9.]*$$/ { it = $$1; } END { print it }' ${VERSIONFILE}
NEWVERSWHAT=	"${BOOT}"

# text and bss addresses in hex
TEXT=		002000		# Primary (me)
BOOT_TEXT=	006000		# Secondary (/boot)

PROG=		fd$(BOOT)
BINDIR=		/usr/mdec
STRIPFLAG=
BINMODE=	444

S=		${.CURDIR}/../../../..
M=		$S/arch/x68k
COMMONDIR=	$M/stand/common
LIBIOCS=	$M/stand/libiocs
SRCS=	boot_ustar.S

SRCS+=		vers.c
CLEANFILES+=	vers.c
vers.c:	${VERSIONFILE}
	sh ${S}/conf/newvers_stand.sh -DM ${.ALLSRC} ${MACHINE} ${NEWVERSWHAT}

CPPFLAGS+= -DTEXTADDR="0x$(TEXT)" -DBOOT_TEXTADDR="0x$(BOOT_TEXT)"
CPPFLAGS+= -DBOOT=\"$(BOOT)\" -DBOOT_VERS=\"$(VERSION)\"
CPPFLAGS+= -I${COMMONDIR} -I${LIBIOCS}
AFLAGS=	   ${CFLAGS:M-[ID]*}
AFLAGS+=   -Wa,-mc68000
.if ${OBJECT_FMT} == "ELF"
LDFLAGS=   -n -Bstatic -T ${.CURDIR}/${BOOT}.ldscript -M
LDFLAGS+=  -noinhibit-exec	# XXX
.else
LDFLAGS=   -n -Bstatic -Ttext ${TEXT} -M
OBJCOPY?=  objcopy
.endif

CLEANFILES+=	${PROG}.x $(PROG).map


${PROG}: $(OBJS)
	$(LD) $(LDFLAGS) -o ${PROG} $(OBJS) $(LDADD) > $(PROG).map
	@@grep first_kbyte $(PROG).map
.if ${OBJECT_FMT} == "ELF"
	@@if [ `(echo ibase=16; 						   \
	    sed -n 's/^.*0x\([0-9a-f]*\).* first_kbyte$$/\1-$(TEXT)-400/p' \
		$(PROG).map | 						   \
	    tr a-f A-F) | bc` -gt 0 ]; 					   \
	then echo '$(BOOT): first_kbyte exceeds the first killobyte';	   \
	    rm $(PROG) ; exit 1; 					   \
	fi
	@@if [ `(echo ibase=16; 						   \
	    sed -n 's/^.*0x\([0-9a-f]*\).* _edata=\.$$/\1-$(TEXT)-2000/p' \
		$(PROG).map | 						   \
	    tr a-f A-F) | bc` -gt 0 ]; 					   \
	then echo '$(BOOT): text+data is too large';			   \
	    rm $(PROG) ; exit 1; 					   \
	fi
.else
	mv $(PROG) $(PROG).x
	$(OBJCOPY) -I a.out-m68k-netbsd -O binary $(PROG).x $(PROG)
	@@rm -f $(PROG).x
	@@if [ `(echo ibase=16; 						   \
	    sed -n 's/  first_kbyte:.*0x\(.*\),.*$$/\1-$(TEXT)-400/p'	   \
		$(PROG).map | 						   \
	    tr a-f A-F) | bc` -gt 0 ]; 					   \
	then echo '$(BOOT): first_kbyte exceeds the first killobyte';	   \
	    rm $(PROG) ; exit 1; 					   \
	fi
	@@if [ `(echo ibase=16; 						   \
	    sed -n 's/  _edata:.*0x\(.*\),.*$$/\1-$(TEXT)-2000/p'	   \
		$(PROG).map | 						   \
	    tr a-f A-F) | bc` -gt 0 ]; 					   \
	then echo '$(BOOT): text+data is too large';			   \
	    rm $(PROG) ; exit 1; 					   \
	fi
.endif

.include <bsd.prog.mk>
@


1.3
log
@Install as xxboot_*, and create links as fdboot_* and sdboot_*.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2001/10/01 16:58:01 minoura Exp $
d6 3
a8 1
VERSION=1.0
d22 4
a25 4
COMMONDIR=	${.CURDIR}/../common
LIBIOCS=	${.CURDIR}/../libiocs
#.PATH:		${COMMONDIR}
#SRCS=	boot_ustar.S exec_image.S
d27 5
@


1.2
log
@CPU is not (yet) checkd.
Use 68000 instructions only.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2001/09/28 15:22:21 minoura Exp $
d12 1
a12 1
PROG=		$(BOOT)
d38 1
a38 1
CLEANFILES=	$(BOOT).x s.x x.s x.o
d41 3
a43 3
$(BOOT): $(OBJS)
	$(LD) $(LDFLAGS) -o $(BOOT).x $(OBJS) $(LDADD)
	@@$(NM) --target=a.out-m68k-netbsd $(BOOT).x | sed -n '/T first_kbyte/p'
d45 1
a45 1
		$(NM) --target=a.out-m68k-netbsd $(BOOT).x | sed -n 's/T first_kbyte/-$(TEXT)-400/p' | \
d47 2
a48 2
	then echo '$(BOOT): first_kbyte exceeds the first killobyte'; exit 1; fi
	@@$(SIZE) --target=a.out-m68k-netbsd $(BOOT).x
d50 1
a50 1
		$(NM) --target=a.out-m68k-netbsd $(BOOT).x | sed -n 's/D _edata/-$(TEXT)-2000/p' | tr a-f A-F) |\
d52 2
a53 2
	then	echo '$(BOOT): text+data is too large'; exit 1; fi
	@@$(OBJCOPY) -I a.out-m68k-netbsd -O binary $(BOOT).x $(BOOT)
@


1.1
log
@Primary boot for ustarfs.
Supports floppy only.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2001/09/27 10:14:49 minoura Exp $
d30 1
@
