head	1.22;
access;
symbols
	netbsd-11-0-RC4:1.22
	netbsd-11-0-RC3:1.22
	netbsd-11-0-RC2:1.22
	netbsd-11-0-RC1:1.22
	perseant-exfatfs-base-20250801:1.22
	netbsd-11:1.22.0.4
	netbsd-11-base:1.22
	netbsd-10-1-RELEASE:1.21
	perseant-exfatfs-base-20240630:1.22
	perseant-exfatfs:1.22.0.2
	perseant-exfatfs-base:1.22
	netbsd-8-3-RELEASE:1.19
	netbsd-9-4-RELEASE:1.21
	netbsd-10-0-RELEASE:1.21
	netbsd-10-0-RC6:1.21
	netbsd-10-0-RC5:1.21
	netbsd-10-0-RC4:1.21
	netbsd-10-0-RC3:1.21
	netbsd-10-0-RC2:1.21
	thorpej-ifq:1.21.0.34
	thorpej-ifq-base:1.21
	thorpej-altq-separation:1.21.0.32
	thorpej-altq-separation-base:1.21
	netbsd-10-0-RC1:1.21
	netbsd-10:1.21.0.30
	netbsd-10-base:1.21
	bouyer-sunxi-drm:1.21.0.28
	bouyer-sunxi-drm-base:1.21
	netbsd-9-3-RELEASE:1.21
	thorpej-i2c-spi-conf2:1.21.0.26
	thorpej-i2c-spi-conf2-base:1.21
	thorpej-futex2:1.21.0.24
	thorpej-futex2-base:1.21
	thorpej-cfargs2:1.21.0.22
	thorpej-cfargs2-base:1.21
	cjep_sun2x-base1:1.21
	cjep_sun2x:1.21.0.20
	cjep_sun2x-base:1.21
	cjep_staticlib_x-base1:1.21
	netbsd-9-2-RELEASE:1.21
	cjep_staticlib_x:1.21.0.18
	cjep_staticlib_x-base:1.21
	thorpej-i2c-spi-conf:1.21.0.16
	thorpej-i2c-spi-conf-base:1.21
	thorpej-cfargs:1.21.0.14
	thorpej-cfargs-base:1.21
	thorpej-futex:1.21.0.12
	thorpej-futex-base:1.21
	netbsd-9-1-RELEASE:1.21
	bouyer-xenpvh-base2:1.21
	phil-wifi-20200421:1.21
	bouyer-xenpvh-base1:1.21
	phil-wifi-20200411:1.21
	bouyer-xenpvh:1.21.0.10
	bouyer-xenpvh-base:1.21
	is-mlppp:1.21.0.8
	is-mlppp-base:1.21
	phil-wifi-20200406:1.21
	netbsd-8-2-RELEASE:1.19
	ad-namecache-base3:1.21
	netbsd-9-0-RELEASE:1.21
	netbsd-9-0-RC2:1.21
	ad-namecache-base2:1.21
	ad-namecache-base1:1.21
	ad-namecache:1.21.0.6
	ad-namecache-base:1.21
	netbsd-9-0-RC1:1.21
	phil-wifi-20191119:1.21
	netbsd-9:1.21.0.4
	netbsd-9-base:1.21
	phil-wifi-20190609:1.21
	netbsd-8-1-RELEASE:1.19
	netbsd-8-1-RC1:1.19
	isaki-audio2:1.21.0.2
	isaki-audio2-base:1.21
	pgoyette-compat-merge-20190127:1.19.28.2
	pgoyette-compat-20190127:1.21
	pgoyette-compat-20190118:1.21
	pgoyette-compat-1226:1.21
	pgoyette-compat-1126:1.21
	pgoyette-compat-1020:1.21
	pgoyette-compat-0930:1.21
	pgoyette-compat-0906:1.21
	netbsd-7-2-RELEASE:1.19
	pgoyette-compat-0728:1.21
	netbsd-8-0-RELEASE:1.19
	phil-wifi:1.20.0.2
	phil-wifi-base:1.20
	pgoyette-compat-0625:1.20
	netbsd-8-0-RC2:1.19
	pgoyette-compat-0521:1.19
	pgoyette-compat-0502:1.19
	pgoyette-compat-0422:1.19
	netbsd-8-0-RC1:1.19
	pgoyette-compat-0415:1.19
	pgoyette-compat-0407:1.19
	pgoyette-compat-0330:1.19
	pgoyette-compat-0322:1.19
	pgoyette-compat-0315:1.19
	netbsd-7-1-2-RELEASE:1.19
	pgoyette-compat:1.19.0.28
	pgoyette-compat-base:1.19
	netbsd-7-1-1-RELEASE:1.19
	tls-maxphys-base-20171202:1.19
	matt-nb8-mediatek:1.19.0.26
	matt-nb8-mediatek-base:1.19
	nick-nhusb-base-20170825:1.19
	perseant-stdc-iso10646:1.19.0.24
	perseant-stdc-iso10646-base:1.19
	netbsd-8:1.19.0.22
	netbsd-8-base:1.19
	prg-localcount2-base3:1.19
	prg-localcount2-base2:1.19
	prg-localcount2-base1:1.19
	prg-localcount2:1.19.0.20
	prg-localcount2-base:1.19
	pgoyette-localcount-20170426:1.19
	bouyer-socketcan-base1:1.19
	jdolecek-ncq:1.19.0.18
	jdolecek-ncq-base:1.19
	pgoyette-localcount-20170320:1.19
	netbsd-7-1:1.19.0.16
	netbsd-7-1-RELEASE:1.19
	netbsd-7-1-RC2:1.19
	nick-nhusb-base-20170204:1.19
	netbsd-7-nhusb-base-20170116:1.19
	bouyer-socketcan:1.19.0.14
	bouyer-socketcan-base:1.19
	pgoyette-localcount-20170107:1.19
	netbsd-7-1-RC1:1.19
	nick-nhusb-base-20161204:1.19
	pgoyette-localcount-20161104:1.19
	netbsd-7-0-2-RELEASE:1.19
	nick-nhusb-base-20161004:1.19
	localcount-20160914:1.19
	netbsd-7-nhusb:1.19.0.12
	netbsd-7-nhusb-base:1.19
	pgoyette-localcount-20160806:1.19
	pgoyette-localcount-20160726:1.19
	pgoyette-localcount:1.19.0.10
	pgoyette-localcount-base:1.19
	nick-nhusb-base-20160907:1.19
	nick-nhusb-base-20160529:1.19
	netbsd-7-0-1-RELEASE:1.19
	nick-nhusb-base-20160422:1.19
	nick-nhusb-base-20160319:1.19
	nick-nhusb-base-20151226:1.19
	netbsd-7-0:1.19.0.8
	netbsd-7-0-RELEASE:1.19
	nick-nhusb-base-20150921:1.19
	netbsd-7-0-RC3:1.19
	netbsd-7-0-RC2:1.19
	netbsd-7-0-RC1:1.19
	nick-nhusb-base-20150606:1.19
	nick-nhusb-base-20150406:1.19
	nick-nhusb:1.19.0.6
	nick-nhusb-base:1.19
	netbsd-5-2-3-RELEASE:1.14
	netbsd-5-1-5-RELEASE:1.14
	netbsd-6-0-6-RELEASE:1.18
	netbsd-6-1-5-RELEASE:1.18
	netbsd-7:1.19.0.4
	netbsd-7-base:1.19
	yamt-pagecache-base9:1.19
	yamt-pagecache-tag8:1.18
	netbsd-6-1-4-RELEASE:1.18
	netbsd-6-0-5-RELEASE:1.18
	tls-earlyentropy:1.19.0.2
	tls-earlyentropy-base:1.19
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.19
	riastradh-drm2-base3:1.19
	netbsd-6-1-3-RELEASE:1.18
	netbsd-6-0-4-RELEASE:1.18
	netbsd-5-2-2-RELEASE:1.14
	netbsd-5-1-4-RELEASE:1.14
	netbsd-6-1-2-RELEASE:1.18
	netbsd-6-0-3-RELEASE:1.18
	netbsd-5-2-1-RELEASE:1.14
	netbsd-5-1-3-RELEASE:1.14
	rmind-smpnet-nbase:1.19
	netbsd-6-1-1-RELEASE:1.18
	riastradh-drm2-base2:1.18
	riastradh-drm2-base1:1.18
	riastradh-drm2:1.18.0.26
	riastradh-drm2-base:1.18
	rmind-smpnet:1.18.0.18
	rmind-smpnet-base:1.19
	netbsd-6-1:1.18.0.24
	netbsd-6-0-2-RELEASE:1.18
	netbsd-6-1-RELEASE:1.18
	khorben-n900:1.18.0.22
	netbsd-6-1-RC4:1.18
	netbsd-6-1-RC3:1.18
	agc-symver:1.18.0.20
	agc-symver-base:1.18
	netbsd-6-1-RC2:1.18
	netbsd-6-1-RC1:1.18
	yamt-pagecache-base8:1.18
	netbsd-5-2:1.14.0.18
	netbsd-6-0-1-RELEASE:1.18
	yamt-pagecache-base7:1.18
	netbsd-5-2-RELEASE:1.14
	netbsd-5-2-RC1:1.14
	matt-nb6-plus-nbase:1.18
	yamt-pagecache-base6:1.18
	netbsd-6-0:1.18.0.16
	netbsd-6-0-RELEASE:1.18
	netbsd-6-0-RC2:1.18
	tls-maxphys:1.18.0.14
	tls-maxphys-base:1.19
	matt-nb6-plus:1.18.0.12
	matt-nb6-plus-base:1.18
	netbsd-6-0-RC1:1.18
	jmcneill-usbmp-base10:1.18
	yamt-pagecache-base5:1.18
	jmcneill-usbmp-base9:1.18
	yamt-pagecache-base4:1.18
	jmcneill-usbmp-base8:1.18
	jmcneill-usbmp-base7:1.18
	jmcneill-usbmp-base6:1.18
	jmcneill-usbmp-base5:1.18
	jmcneill-usbmp-base4:1.18
	jmcneill-usbmp-base3:1.18
	jmcneill-usbmp-pre-base2:1.18
	jmcneill-usbmp-base2:1.18
	netbsd-6:1.18.0.10
	netbsd-6-base:1.18
	netbsd-5-1-2-RELEASE:1.14
	netbsd-5-1-1-RELEASE:1.14
	jmcneill-usbmp:1.18.0.8
	jmcneill-usbmp-base:1.18
	jmcneill-audiomp3:1.18.0.6
	jmcneill-audiomp3-base:1.18
	yamt-pagecache-base3:1.18
	yamt-pagecache-base2:1.18
	yamt-pagecache:1.18.0.4
	yamt-pagecache-base:1.18
	rmind-uvmplock-nbase:1.18
	cherry-xenmp:1.18.0.2
	cherry-xenmp-base:1.18
	jym-xensuspend-nbase:1.18
	uebayasi-xip-base7:1.17
	bouyer-quota2-nbase:1.17
	bouyer-quota2:1.17.0.8
	bouyer-quota2-base:1.17
	jruoho-x86intr:1.17.0.6
	jruoho-x86intr-base:1.17
	matt-mips64-premerge-20101231:1.17
	matt-nb5-mips64-premerge-20101231:1.14
	matt-nb5-pq3:1.14.0.16
	matt-nb5-pq3-base:1.14
	netbsd-5-1:1.14.0.14
	uebayasi-xip-base6:1.17
	uebayasi-xip-base5:1.17
	netbsd-5-1-RELEASE:1.14
	uebayasi-xip-base4:1.17
	uebayasi-xip-base3:1.17
	yamt-nfs-mp-base11:1.17
	netbsd-5-1-RC4:1.14
	matt-nb5-mips64-k15:1.14
	uebayasi-xip-base2:1.17
	yamt-nfs-mp-base10:1.17
	netbsd-5-1-RC3:1.14
	netbsd-5-1-RC2:1.14
	uebayasi-xip-base1:1.17
	netbsd-5-1-RC1:1.14
	rmind-uvmplock:1.17.0.4
	rmind-uvmplock-base:1.18
	yamt-nfs-mp-base9:1.17
	uebayasi-xip:1.17.0.2
	uebayasi-xip-base:1.17
	netbsd-5-0-2-RELEASE:1.14
	matt-nb5-mips64-premerge-20091211:1.14
	matt-premerge-20091211:1.17
	yamt-nfs-mp-base8:1.16
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.14
	matt-nb4-mips64-k7-u2a-k9b:1.14
	matt-nb5-mips64-u1-k1-k5:1.14
	yamt-nfs-mp-base7:1.16
	matt-nb5-mips64:1.14.0.12
	netbsd-5-0-1-RELEASE:1.14
	jymxensuspend-base:1.16
	yamt-nfs-mp-base6:1.16
	yamt-nfs-mp-base5:1.16
	yamt-nfs-mp-base4:1.16
	yamt-nfs-mp-base3:1.16
	nick-hppapmap-base4:1.16
	nick-hppapmap-base3:1.16
	netbsd-5-0:1.14.0.10
	netbsd-5-0-RELEASE:1.14
	netbsd-5-0-RC4:1.14
	netbsd-5-0-RC3:1.14
	nick-hppapmap-base2:1.14
	netbsd-5-0-RC2:1.14
	jym-xensuspend:1.14.0.8
	jym-xensuspend-base:1.18
	netbsd-5-0-RC1:1.14
	haad-dm-base2:1.14
	haad-nbase2:1.14
	ad-audiomp2:1.14.0.6
	ad-audiomp2-base:1.14
	netbsd-5:1.14.0.4
	netbsd-5-base:1.14
	nick-hppapmap:1.14.0.2
	nick-hppapmap-base:1.16
	matt-mips64-base2:1.13
	haad-dm-base1:1.12
	wrstuden-revivesa-base-4:1.12
	netbsd-4-0-1-RELEASE:1.12
	wrstuden-revivesa-base-3:1.12
	wrstuden-revivesa-base-2:1.12
	wrstuden-fixsa-newbase:1.12
	nick-csl-alignment-base5:1.12
	haad-dm:1.12.0.68
	haad-dm-base:1.14
	wrstuden-revivesa-base-1:1.12
	simonb-wapbl-nbase:1.12
	yamt-pf42-base4:1.12
	simonb-wapbl:1.12.0.66
	simonb-wapbl-base:1.12
	yamt-pf42-base3:1.12
	hpcarm-cleanup-nbase:1.12
	yamt-pf42-baseX:1.12
	yamt-pf42-base2:1.12
	yamt-nfs-mp-base2:1.12
	wrstuden-revivesa:1.12.0.64
	wrstuden-revivesa-base:1.12
	yamt-nfs-mp:1.12.0.62
	yamt-nfs-mp-base:1.12
	yamt-pf42:1.12.0.60
	yamt-pf42-base:1.12
	ad-socklock-base1:1.12
	yamt-lazymbuf-base15:1.12
	yamt-lazymbuf-base14:1.12
	keiichi-mipv6-nbase:1.12
	mjf-devfs2:1.12.0.58
	mjf-devfs2-base:1.14
	nick-net80211-sync:1.12.0.56
	nick-net80211-sync-base:1.12
	keiichi-mipv6:1.12.0.54
	keiichi-mipv6-base:1.12
	bouyer-xeni386-merge1:1.12
	matt-armv6-prevmlocking:1.12
	wrstuden-fixsa-base-1:1.12
	vmlocking2-base3:1.12
	netbsd-4-0:1.12.0.52
	netbsd-4-0-RELEASE:1.12
	bouyer-xeni386-nbase:1.12
	yamt-kmem-base3:1.12
	cube-autoconf:1.12.0.50
	cube-autoconf-base:1.12
	yamt-kmem-base2:1.12
	bouyer-xeni386:1.12.0.48
	bouyer-xeni386-base:1.12
	yamt-kmem:1.12.0.46
	yamt-kmem-base:1.12
	vmlocking2-base2:1.12
	reinoud-bufcleanup-nbase:1.12
	vmlocking2:1.12.0.44
	vmlocking2-base1:1.12
	netbsd-4-0-RC5:1.12
	matt-nb4-arm:1.12.0.42
	matt-nb4-arm-base:1.12
	matt-armv6-nbase:1.12
	jmcneill-base:1.12
	netbsd-4-0-RC4:1.12
	mjf-devfs:1.12.0.40
	mjf-devfs-base:1.12
	bouyer-xenamd64-base2:1.12
	vmlocking-nbase:1.12
	yamt-x86pmap-base4:1.12
	bouyer-xenamd64:1.12.0.38
	bouyer-xenamd64-base:1.12
	netbsd-4-0-RC3:1.12
	yamt-x86pmap-base3:1.12
	yamt-x86pmap-base2:1.12
	netbsd-4-0-RC2:1.12
	yamt-x86pmap:1.12.0.36
	yamt-x86pmap-base:1.12
	netbsd-4-0-RC1:1.12
	matt-armv6:1.12.0.34
	matt-armv6-base:1.12
	jmcneill-pm:1.12.0.32
	jmcneill-pm-base:1.12
	hpcarm-cleanup:1.12.0.30
	hpcarm-cleanup-base:1.12
	nick-csl-alignment:1.12.0.28
	nick-csl-alignment-base:1.12
	matt-mips64:1.12.0.26
	matt-mips64-base:1.12
	netbsd-3-1-1-RELEASE:1.5
	netbsd-3-0-3-RELEASE:1.5
	yamt-idlelwp-base8:1.12
	wrstuden-fixsa:1.12.0.24
	wrstuden-fixsa-base:1.12
	ppcoea-renovation:1.12.0.22
	ppcoea-renovation-base:1.12
	thorpej-atomic:1.12.0.20
	thorpej-atomic-base:1.12
	reinoud-bufcleanup:1.12.0.18
	reinoud-bufcleanup-base:1.12
	mjf-ufs-trans:1.12.0.16
	mjf-ufs-trans-base:1.12
	vmlocking:1.12.0.14
	vmlocking-base:1.12
	ad-audiomp:1.12.0.12
	ad-audiomp-base:1.12
	yamt-idlelwp:1.12.0.10
	post-newlock2-merge:1.12
	newlock2-nbase:1.12
	yamt-splraiseipl-base5:1.12
	yamt-splraiseipl-base4:1.12
	yamt-splraiseipl-base3:1.12
	abandoned-netbsd-4-base:1.12
	abandoned-netbsd-4:1.12.0.2
	netbsd-3-1:1.5.0.14
	netbsd-3-1-RELEASE:1.5
	netbsd-3-0-2-RELEASE:1.5
	yamt-splraiseipl-base2:1.12
	netbsd-3-1-RC4:1.5
	yamt-splraiseipl:1.12.0.6
	yamt-splraiseipl-base:1.12
	netbsd-3-1-RC3:1.5
	yamt-pdpolicy-base9:1.12
	newlock2:1.12.0.4
	newlock2-base:1.12
	yamt-pdpolicy-base8:1.12
	netbsd-3-1-RC2:1.5
	netbsd-3-1-RC1:1.5
	yamt-pdpolicy-base7:1.12
	netbsd-4:1.12.0.8
	netbsd-4-base:1.12
	yamt-pdpolicy-base6:1.9
	chap-midi-nbase:1.8
	netbsd-3-0-1-RELEASE:1.5
	gdamore-uart:1.8.0.4
	gdamore-uart-base:1.8
	simonb-timcounters-final:1.7.6.1
	yamt-pdpolicy-base5:1.8
	chap-midi:1.8.0.2
	chap-midi-base:1.8
	yamt-pdpolicy-base4:1.7
	yamt-pdpolicy-base3:1.7
	peter-altq-base:1.7
	peter-altq:1.7.0.12
	yamt-pdpolicy-base2:1.7
	elad-kernelauth-base:1.7
	elad-kernelauth:1.7.0.10
	yamt-pdpolicy:1.7.0.8
	yamt-pdpolicy-base:1.7
	yamt-uio_vmspace-base5:1.7
	simonb-timecounters:1.7.0.6
	simonb-timecounters-base:1.8
	rpaulo-netinet-merge-pcb:1.7.0.4
	rpaulo-netinet-merge-pcb-base:1.12
	yamt-uio_vmspace:1.7.0.2
	netbsd-3-0:1.5.0.12
	netbsd-3-0-RELEASE:1.5
	netbsd-3-0-RC6:1.5
	yamt-readahead-base3:1.6
	netbsd-3-0-RC5:1.5
	netbsd-3-0-RC4:1.5
	netbsd-3-0-RC3:1.5
	yamt-readahead-base2:1.6
	netbsd-3-0-RC2:1.5
	yamt-readahead-pervnode:1.6
	yamt-readahead-perfile:1.6
	yamt-readahead:1.6.0.8
	yamt-readahead-base:1.6
	netbsd-3-0-RC1:1.5
	yamt-vop-base3:1.6
	netbsd-2-0-3-RELEASE:1.4
	netbsd-2-1:1.4.0.8
	yamt-vop-base2:1.6
	thorpej-vnode-attr:1.6.0.6
	thorpej-vnode-attr-base:1.6
	netbsd-2-1-RELEASE:1.4
	yamt-vop:1.6.0.4
	yamt-vop-base:1.6
	netbsd-2-1-RC6:1.4
	netbsd-2-1-RC5:1.4
	netbsd-2-1-RC4:1.4
	netbsd-2-1-RC3:1.4
	netbsd-2-1-RC2:1.4
	netbsd-2-1-RC1:1.4
	yamt-lazymbuf:1.6.0.2
	yamt-km-base4:1.5
	netbsd-2-0-2-RELEASE:1.4
	yamt-km-base3:1.5
	netbsd-3:1.5.0.10
	netbsd-3-base:1.5
	yamt-km-base2:1.5
	yamt-km:1.5.0.6
	yamt-km-base:1.5
	kent-audio2:1.5.0.4
	kent-audio2-base:1.5
	netbsd-2-0-1-RELEASE:1.4
	kent-audio1-beforemerge:1.5
	netbsd-2:1.4.0.6
	netbsd-2-base:1.4
	kent-audio1:1.5.0.2
	kent-audio1-base:1.5
	netbsd-2-0-RELEASE:1.4
	netbsd-2-0-RC5:1.4
	netbsd-2-0-RC4:1.4
	netbsd-2-0-RC3:1.4
	netbsd-2-0-RC2:1.4
	netbsd-2-0-RC1:1.4
	netbsd-2-0:1.4.0.4
	netbsd-2-0-base:1.4
	ktrace-lwp:1.4.0.2
	ktrace-lwp-base:1.6;
locks; strict;
comment	@# @;


1.22
date	2024.06.29.13.22.08;	author rin;	state Exp;
branches;
next	1.21;
commitid	csdzTy9mIlxZFSfF;

1.21
date	2018.07.25.23.45.32;	author kamil;	state Exp;
branches;
next	1.20;
commitid	Lcj3I3cyT8RYJzLA;

1.20
date	2018.06.12.21.35.17;	author kamil;	state Exp;
branches
	1.20.2.1;
next	1.19;
commitid	ZuDFPt85Mbm9o2GA;

1.19
date	2014.01.12.15.26.29;	author tsutsui;	state Exp;
branches
	1.19.28.1;
next	1.18;

1.18
date	2011.05.20.15.05.02;	author joerg;	state Exp;
branches
	1.18.4.1
	1.18.14.1
	1.18.18.1;
next	1.17;

1.17
date	2009.11.20.17.28.19;	author dsl;	state Exp;
branches
	1.17.4.1
	1.17.6.1;
next	1.16;

1.16
date	2009.03.30.09.22.52;	author tsutsui;	state Exp;
branches;
next	1.15;

1.15
date	2009.03.12.17.16.59;	author abs;	state Exp;
branches;
next	1.14;

1.14
date	2008.10.25.22.27.37;	author apb;	state Exp;
branches
	1.14.2.1
	1.14.8.1;
next	1.13;

1.13
date	2008.10.20.03.02.07;	author christos;	state Exp;
branches;
next	1.12;

1.12
date	2006.06.29.06.31.12;	author lukem;	state Exp;
branches
	1.12.58.1
	1.12.62.1
	1.12.68.1;
next	1.11;

1.11
date	2006.06.29.06.29.39;	author lukem;	state Exp;
branches;
next	1.10;

1.10
date	2006.06.29.06.24.50;	author lukem;	state Exp;
branches;
next	1.9;

1.9
date	2006.06.25.14.35.18;	author lukem;	state Exp;
branches;
next	1.8;

1.8
date	2006.05.12.04.28.18;	author lukem;	state Exp;
branches
	1.8.4.1;
next	1.7;

1.7
date	2005.12.11.12.17.49;	author christos;	state Exp;
branches
	1.7.4.1
	1.7.6.1
	1.7.8.1
	1.7.12.1;
next	1.6;

1.6
date	2005.05.01.02.41.08;	author christos;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	2004.08.31.22.57.13;	author uwe;	state Exp;
branches;
next	1.4;

1.4
date	2003.07.01.13.36.59;	author simonb;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	2003.05.05.13.38.23;	author hubertf;	state Exp;
branches;
next	1.2;

1.2
date	2003.05.05.02.47.42;	author dbj;	state Exp;
branches;
next	1.1;

1.1
date	2003.04.28.12.19.05;	author dsl;	state Exp;
branches;
next	;

1.20.2.1
date	2019.06.10.22.06.22;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.19.28.1
date	2018.06.25.07.25.43;	author pgoyette;	state Exp;
branches;
next	1.19.28.2;
commitid	8PtAu9af7VvhiDHA;

1.19.28.2
date	2018.07.28.04.37.35;	author pgoyette;	state Exp;
branches;
next	;
commitid	1UP1xAIUxv1ZgRLA;

1.18.4.1
date	2014.05.22.11.39.53;	author yamt;	state Exp;
branches;
next	;

1.18.14.1
date	2014.08.20.00.03.07;	author tls;	state Exp;
branches;
next	;

1.18.18.1
date	2014.05.18.17.45.13;	author rmind;	state Exp;
branches;
next	;

1.17.4.1
date	2011.05.31.03.04.05;	author rmind;	state Exp;
branches;
next	;

1.17.6.1
date	2011.06.06.09.05.53;	author jruoho;	state Exp;
branches;
next	;

1.14.2.1
date	2009.04.28.07.34.14;	author skrll;	state Exp;
branches;
next	;

1.14.8.1
date	2009.05.13.17.17.52;	author jym;	state Exp;
branches;
next	1.14.8.2;

1.14.8.2
date	2009.11.01.13.58.44;	author jym;	state Exp;
branches;
next	1.14.8.3;

1.14.8.3
date	2011.03.29.20.42.59;	author jym;	state Exp;
branches;
next	1.14.8.4;

1.14.8.4
date	2011.08.27.15.37.28;	author jym;	state Exp;
branches;
next	;

1.12.58.1
date	2009.01.17.13.28.07;	author mjf;	state Exp;
branches;
next	;

1.12.62.1
date	2009.05.04.08.11.20;	author yamt;	state Exp;
branches;
next	1.12.62.2;

1.12.62.2
date	2010.03.11.15.02.31;	author yamt;	state Exp;
branches;
next	;

1.12.68.1
date	2008.12.13.01.13.15;	author haad;	state Exp;
branches;
next	;

1.8.4.1
date	2006.07.13.17.48.55;	author gdamore;	state Exp;
branches;
next	;

1.7.4.1
date	2006.09.09.02.40.22;	author rpaulo;	state Exp;
branches;
next	;

1.7.6.1
date	2006.06.01.22.34.53;	author kardel;	state Exp;
branches;
next	;

1.7.8.1
date	2006.05.24.10.56.53;	author yamt;	state Exp;
branches;
next	1.7.8.2;

1.7.8.2
date	2006.06.26.12.44.54;	author yamt;	state Exp;
branches;
next	1.7.8.3;

1.7.8.3
date	2006.08.11.15.42.00;	author yamt;	state Exp;
branches;
next	;

1.7.12.1
date	2006.05.24.15.47.59;	author tron;	state Exp;
branches;
next	;

1.6.2.1
date	2006.06.21.14.52.44;	author yamt;	state Exp;
branches;
next	1.6.2.2;

1.6.2.2
date	2006.12.30.20.46.20;	author yamt;	state Exp;
branches;
next	;

1.4.2.1
date	2004.09.03.12.44.48;	author skrll;	state Exp;
branches;
next	1.4.2.2;

1.4.2.2
date	2004.09.18.14.35.57;	author skrll;	state Exp;
branches;
next	1.4.2.3;

1.4.2.3
date	2004.09.21.13.17.18;	author skrll;	state Exp;
branches;
next	1.4.2.4;

1.4.2.4
date	2005.11.10.13.57.09;	author skrll;	state Exp;
branches;
next	;


desc
@@


1.22
log
@i386: stand: G/C `mbr_gpt*`; unhooked since 2011 in prefer of `gptmbr`
@
text
@#	$NetBSD: Makefile.mbr,v 1.21 2018/07/25 23:45:32 kamil Exp $

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

NOLIBCSANITIZER=# defined
NOSANITIZER=	# defined
NOMAN=		# defined

LIBCRT0=	# nothing
LIBCRTI=	# nothing
LIBCRTBEGIN=	# nothing
LIBCRTEND=	# nothing
LIBC=		# nothing

PIE_CFLAGS=
PIE_LDFLAGS=
PIE_AFLAGS=

.include <bsd.own.mk>

STRIPFLAG=	# override

SRCS?=		mbr.S

BINDIR=		/usr/mdec
BINMODE=	444

.PATH:		${.CURDIR}/..

LDFLAGS+=	-nostdlib -Wl,-e,start
CPPFLAGS+=	-I. -I${.CURDIR}/../../lib -I${S}

.if ${MACHINE_ARCH} == "x86_64"
LDFLAGS+=	-Wl,-m,elf_i386
AFLAGS+=	-m32
.endif

BUILDSYMLINKS+=	$S/arch/i386/include	machine \
		$S/arch/x86/include	x86

DPSRCS+=	machine x86

CLEANFILES+=	${PROG}.tmp

LOADADDR=	0x8800

AFLAGS.mbr.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}

${PROG}: ${OBJS}
	${_MKTARGET_LINK}
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,${LOADADDR} ${OBJS}
	@@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<mbr_space\>' \
		    | ${TOOL_SED} 's/^0*//'  ); \
		echo "#### There are $$1 free bytes in ${PROG}"
	${OBJCOPY} -O binary ${PROG}.tmp ${PROG}
	rm -f ${PROG}.tmp

.include <bsd.prog.mk>
@


1.21
log
@Specify NOLIBCSANITIZER in x86 bootloader-like code under sys/arch/

Set NOLIBCSANITIZER for i386 and amd64 specific bootloader-like code.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.20 2018/06/12 21:35:17 kamil Exp $
a47 1
AFLAGS.gpt.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
@


1.20
log
@Set NOSANITIZER in i386 mbr files

This is required to build these files and keep then functional with
enabled MKSANITIZER.

Sponsored by <The NetBSD Foundation>
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.19 2014/01/12 15:26:29 tsutsui Exp $
d5 1
@


1.20.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.21 2018/07/25 23:45:32 kamil Exp $
a4 1
NOLIBCSANITIZER=# defined
@


1.19
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.mbr,v 1.18 2011/05/20 15:05:02 joerg Exp $
d5 1
@


1.19.28.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.20 2018/06/12 21:35:17 kamil Exp $
a4 1
NOSANITIZER=	# defined
@


1.19.28.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.21 2018/07/25 23:45:32 kamil Exp $
a4 1
NOLIBCSANITIZER=# defined
@


1.18
log
@mbr.S and gpt.S want to reassign ., so don't use the integrated
assembler for now.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.17 2009/11/20 17:28:19 dsl Exp $
d8 1
@


1.18.14.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
a7 1
LIBCRTI=	# nothing
@


1.18.4.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.mbr,v 1.18 2011/05/20 15:05:02 joerg Exp $
a7 1
LIBCRTI=	# nothing
@


1.18.18.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.18 2011/05/20 15:05:02 joerg Exp $
a7 1
LIBCRTI=	# nothing
@


1.17
log
@Change relay address for mbr and bootxx code to be 0x8800.
I'm not sure why I used 0x600, but I have a feeling that might
sometimes corrupt bios data.
0x8800 is far enough above 0x7e00 for a sector read to the latter address.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.16 2009/03/30 09:22:52 tsutsui Exp $
d44 3
@


1.17.6.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.18 2011/05/20 15:05:02 joerg Exp $
a43 3
AFLAGS.mbr.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
AFLAGS.gpt.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}

@


1.17.4.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD$
a43 3
AFLAGS.mbr.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
AFLAGS.gpt.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}

@


1.16
log
@Remove extra trailing slash in ${S} path.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.15 2009/03/12 17:16:59 abs Exp $
d42 2
d46 1
a46 1
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,0x600 ${OBJS}
@


1.15
log
@Prefer MACHINE_ARCH to MACHINE in some tests
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.14 2008/10/25 22:27:37 apb Exp $
d3 1
a3 1
S=		${.CURDIR}/../../../../../
@


1.14
log
@Use ${TOOL_SED} instead if plain sed in Makefiles.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.13 2008/10/20 03:02:07 christos Exp $
d30 1
a30 1
.if ${MACHINE} == "amd64"
@


1.14.8.1
log
@Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.16 2009/03/30 09:22:52 tsutsui Exp $
d3 1
a3 1
S=		${.CURDIR}/../../../../..
d30 1
a30 1
.if ${MACHINE_ARCH} == "x86_64"
@


1.14.8.2
log
@Sync with HEAD.
@
text
@@


1.14.8.3
log
@More sync fixes. And add the mbr_gpt files.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.17 2009/11/20 17:28:19 dsl Exp $
a41 2
LOADADDR=	0x8800

d44 1
a44 1
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,${LOADADDR} ${OBJS}
@


1.14.8.4
log
@Sync with HEAD. Most notably: uvm/pmap work done by rmind@@, and MP Xen
work of cherry@@.

No regression observed on suspend/restore.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.18 2011/05/20 15:05:02 joerg Exp $
a43 3
AFLAGS.mbr.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
AFLAGS.gpt.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}

@


1.14.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.16 2009/03/30 09:22:52 tsutsui Exp $
d3 1
a3 1
S=		${.CURDIR}/../../../../..
d30 1
a30 1
.if ${MACHINE_ARCH} == "x86_64"
@


1.13
log
@disable PIE for boot code.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.12 2006/06/29 06:31:12 lukem Exp $
d46 1
a46 1
		    | sed 's/^0*//'  ); \
@


1.12
log
@support MAKEVERBOSE
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.11 2006/06/29 06:29:39 lukem Exp $
d12 4
@


1.12.62.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.12 2006/06/29 06:31:12 lukem Exp $
d3 1
a3 1
S=		${.CURDIR}/../../../../..
a11 4
PIE_CFLAGS=
PIE_LDFLAGS=
PIE_AFLAGS=

d26 1
a26 1
.if ${MACHINE_ARCH} == "x86_64"
d42 1
a42 1
		    | ${TOOL_SED} 's/^0*//'  ); \
@


1.12.62.2
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.12.62.1 2009/05/04 08:11:20 yamt Exp $
a41 2
LOADADDR=	0x8800

d44 1
a44 1
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,${LOADADDR} ${OBJS}
@


1.12.58.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD$
a11 4
PIE_CFLAGS=
PIE_LDFLAGS=
PIE_AFLAGS=

d42 1
a42 1
		    | ${TOOL_SED} 's/^0*//'  ); \
@


1.12.68.1
log
@Update haad-dm branch to haad-dm-base2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.14 2008/10/25 22:27:37 apb Exp $
a11 4
PIE_CFLAGS=
PIE_LDFLAGS=
PIE_AFLAGS=

d42 1
a42 1
		    | ${TOOL_SED} 's/^0*//'  ); \
@


1.11
log
@whitespace cleanup.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.10 2006/06/29 06:24:50 lukem Exp $
d39 1
@


1.10
log
@Use BUILDSYMLINKS & DPSRCS to simplify the creation of includedir symlinks.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.9 2006/06/25 14:35:18 lukem Exp $
d3 1
a3 1
S=	${.CURDIR}/../../../../../
d16 1
a16 1
SRCS?= mbr.S
d18 2
a19 2
BINDIR=	/usr/mdec
BINMODE=444
d21 1
a21 1
.PATH:	${.CURDIR}/..
d23 2
a24 2
LDFLAGS+= -nostdlib -Wl,-e,start
CPPFLAGS+= -I. -I${.CURDIR}/../../lib -I${S}
d27 2
a28 2
LDFLAGS+=  -Wl,-m,elf_i386
AFLAGS+=   -m32
d31 2
a32 2
BUILDSYMLINKS+=	$S/arch/i386/include machine \
		$S/arch/x86/include  x86
d36 1
a36 1
CLEANFILES+= ${PROG}.tmp
d40 2
a41 1
	@@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<mbr_space\>' | sed 's/^0*//'  ); \
@


1.9
log
@Use  -Wl,-Ttext,foo  instead of  -Ttext foo  when using $(CC)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.8 2006/05/12 04:28:18 lukem Exp $
d31 2
a32 14
.if !make(obj) && !make(clean) && !make(cleandir)
.NOPATH: machine x86
.endif

depend realall: machine x86
CLEANFILES+= machine x86

machine::
	-rm -f $@@
	ln -s $S/arch/i386/include $@@

x86::
	-rm -f $@@
	ln -s $S/arch/x86/include $@@
d34 1
a34 1
${OBJS}: machine x86
@


1.8
log
@Convert to using CC instead of LD, as LDFLAGS is for CC not LD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.7 2005/12/11 12:17:49 christos Exp $
d51 1
a51 1
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Ttext 0x600 ${OBJS}
@


1.8.4.1
log
@Merge from HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.12 2006/06/29 06:31:12 lukem Exp $
d3 1
a3 1
S=		${.CURDIR}/../../../../../
d16 1
a16 1
SRCS?=		mbr.S
d18 2
a19 2
BINDIR=		/usr/mdec
BINMODE=	444
d21 1
a21 1
.PATH:		${.CURDIR}/..
d23 2
a24 2
LDFLAGS+=	-nostdlib -Wl,-e,start
CPPFLAGS+=	-I. -I${.CURDIR}/../../lib -I${S}
d27 2
a28 2
LDFLAGS+=	-Wl,-m,elf_i386
AFLAGS+=	-m32
d31 14
a44 2
BUILDSYMLINKS+=	$S/arch/i386/include	machine \
		$S/arch/x86/include	x86
d46 1
a46 1
DPSRCS+=	machine x86
d48 1
a48 1
CLEANFILES+=	${PROG}.tmp
d51 2
a52 4
	${_MKTARGET_LINK}
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,0x600 ${OBJS}
	@@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<mbr_space\>' \
		    | sed 's/^0*//'  ); \
@


1.7
log
@merge ktrace-lwp.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.4.2.4 2005/11/10 13:57:09 skrll Exp $
d23 1
a23 1
LDFLAGS+= -e start
d27 1
a27 1
LDFLAGS+=  -m elf_i386
d51 1
a51 1
	${LD} -o ${PROG}.tmp ${LDFLAGS} -Ttext 0x600 ${OBJS}
@


1.7.4.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.12 2006/06/29 06:31:12 lukem Exp $
d3 1
a3 1
S=		${.CURDIR}/../../../../../
d16 1
a16 1
SRCS?=		mbr.S
d18 2
a19 2
BINDIR=		/usr/mdec
BINMODE=	444
d21 1
a21 1
.PATH:		${.CURDIR}/..
d23 2
a24 2
LDFLAGS+=	-nostdlib -Wl,-e,start
CPPFLAGS+=	-I. -I${.CURDIR}/../../lib -I${S}
d27 2
a28 2
LDFLAGS+=	-Wl,-m,elf_i386
AFLAGS+=	-m32
d31 14
a44 2
BUILDSYMLINKS+=	$S/arch/i386/include	machine \
		$S/arch/x86/include	x86
d46 1
a46 1
DPSRCS+=	machine x86
d48 1
a48 1
CLEANFILES+=	${PROG}.tmp
d51 2
a52 4
	${_MKTARGET_LINK}
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,0x600 ${OBJS}
	@@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<mbr_space\>' \
		    | sed 's/^0*//'  ); \
@


1.7.6.1
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.7 2005/12/11 12:17:49 christos Exp $
d23 1
a23 1
LDFLAGS+= -nostdlib -Wl,-e,start
d27 1
a27 1
LDFLAGS+=  -Wl,-m,elf_i386
d51 1
a51 1
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Ttext 0x600 ${OBJS}
@


1.7.12.1
log
@Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
@
text
@d1 1
a1 1
#	$NetBSD$
d23 1
a23 1
LDFLAGS+= -nostdlib -Wl,-e,start
d27 1
a27 1
LDFLAGS+=  -Wl,-m,elf_i386
d51 1
a51 1
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Ttext 0x600 ${OBJS}
@


1.7.8.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.7 2005/12/11 12:17:49 christos Exp $
d23 1
a23 1
LDFLAGS+= -nostdlib -Wl,-e,start
d27 1
a27 1
LDFLAGS+=  -Wl,-m,elf_i386
d51 1
a51 1
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Ttext 0x600 ${OBJS}
@


1.7.8.2
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.7.8.1 2006/05/24 10:56:53 yamt Exp $
d51 1
a51 1
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,0x600 ${OBJS}
@


1.7.8.3
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.7.8.2 2006/06/26 12:44:54 yamt Exp $
d3 1
a3 1
S=		${.CURDIR}/../../../../../
d16 1
a16 1
SRCS?=		mbr.S
d18 2
a19 2
BINDIR=		/usr/mdec
BINMODE=	444
d21 1
a21 1
.PATH:		${.CURDIR}/..
d23 2
a24 2
LDFLAGS+=	-nostdlib -Wl,-e,start
CPPFLAGS+=	-I. -I${.CURDIR}/../../lib -I${S}
d27 2
a28 2
LDFLAGS+=	-Wl,-m,elf_i386
AFLAGS+=	-m32
d31 14
a44 2
BUILDSYMLINKS+=	$S/arch/i386/include	machine \
		$S/arch/x86/include	x86
d46 1
a46 1
DPSRCS+=	machine x86
d48 1
a48 1
CLEANFILES+=	${PROG}.tmp
a50 1
	${_MKTARGET_LINK}
d52 1
a52 2
	@@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<mbr_space\>' \
		    | sed 's/^0*//'  ); \
@


1.6
log
@.BEGIN cannot have dependencies.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.5 2004/08/31 22:57:13 uwe Exp $
@


1.6.2.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.6 2005/05/01 02:41:08 christos Exp $
d23 1
a23 1
LDFLAGS+= -nostdlib -Wl,-e,start
d27 1
a27 1
LDFLAGS+=  -Wl,-m,elf_i386
d51 1
a51 1
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Ttext 0x600 ${OBJS}
@


1.6.2.2
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.6.2.1 2006/06/21 14:52:44 yamt Exp $
d3 1
a3 1
S=		${.CURDIR}/../../../../../
d16 1
a16 1
SRCS?=		mbr.S
d18 2
a19 2
BINDIR=		/usr/mdec
BINMODE=	444
d21 1
a21 1
.PATH:		${.CURDIR}/..
d23 2
a24 2
LDFLAGS+=	-nostdlib -Wl,-e,start
CPPFLAGS+=	-I. -I${.CURDIR}/../../lib -I${S}
d27 2
a28 2
LDFLAGS+=	-Wl,-m,elf_i386
AFLAGS+=	-m32
d31 14
a44 2
BUILDSYMLINKS+=	$S/arch/i386/include	machine \
		$S/arch/x86/include	x86
d46 1
a46 1
DPSRCS+=	machine x86
d48 1
a48 1
CLEANFILES+=	${PROG}.tmp
d51 2
a52 4
	${_MKTARGET_LINK}
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,0x600 ${OBJS}
	@@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<mbr_space\>' \
		    | sed 's/^0*//'  ); \
@


1.5
log
@Force STRIPFLAG to be empty after bsd.own.mk is included, so that
any value set in /etc/mk.conf is overriden.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.4 2003/07/01 13:36:59 simonb Exp $
a31 1
.BEGIN: machine x86
d35 1
a35 1
realdepend realall: machine x86
@


1.4
log
@Make this work without a populated destdir:
 machine and x86 symlinks.
 Include from right places.
 Don't depend on LIBCRT0,etc.

Also for the bootxx programs, keep the ELF object during the build
process.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.3 2003/05/05 13:38:23 hubertf Exp $
a5 1
STRIPFLAG=	# nothing
d14 2
@


1.4.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.5 2004/08/31 22:57:13 uwe Exp $
d6 1
a14 2
STRIPFLAG=	# override

@


1.4.2.2
log
@Sync with HEAD.
@
text
@@


1.4.2.3
log
@Fix the sync with head I botched.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.4.2.1 2004/09/03 12:44:48 skrll Exp $
@


1.4.2.4
log
@Sync with HEAD. Here we go again...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.4.2.3 2004/09/21 13:17:18 skrll Exp $
d32 1
d36 1
a36 1
depend realall: machine x86
@


1.3
log
@use nm(1) to output decimal values immediately, instead of relying on a
(non-working) sh(1) construct.

Reviewed by simonb & bjh21.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.2 2003/05/05 02:47:42 dbj Exp $
d5 7
a11 2
NOMAN=	# defined
STRIPFLAG=
d23 1
a23 1
CPPFLAGS+= -I ${.CURDIR}/../../lib
d29 18
@


1.2
log
@force nm addresses in hex and add 0x prefix before handing numerical
expression to the shell.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.1 2003/04/28 12:19:05 dsl Exp $
d29 2
a30 2
	@@ set -- $$( ${NM} -t x ${PROG}.tmp | grep '\<mbr_space\>' ); \
		echo "#### There are $$((0x$$1)) free bytes in ${PROG}"
@


1.1
log
@Master Boot Record (mbr) code:
mbr:		boots active partition
mbr_bootsel:	menu selection for partitions 1 to 4
mbr_ext:	menu selection for partitions 1 to 4 and extended partitions
Based on code from sbin/fdisk/mbr_bootsel.
Needs a new fdisk to configure mbr_ext and correctly set default menu selection.(Not yet built by defaulat)
@
text
@d1 1
a1 1
#	$NetBSD$
d29 2
a30 2
	@@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<mbr_space\>' ); \
		echo "#### There are $$(($$1)) free bytes in ${PROG}"
@

