head	1.197;
access;
symbols
	netbsd-11-0-RC3:1.197
	netbsd-11-0-RC2:1.197
	netbsd-11-0-RC1:1.197
	perseant-exfatfs-base-20250801:1.197
	netbsd-11:1.197.0.8
	netbsd-11-base:1.197
	netbsd-10-1-RELEASE:1.196
	perseant-exfatfs-base-20240630:1.197
	perseant-exfatfs:1.197.0.6
	perseant-exfatfs-base:1.197
	netbsd-8-3-RELEASE:1.185.10.1
	netbsd-9-4-RELEASE:1.194
	netbsd-10-0-RELEASE:1.196
	netbsd-10-0-RC6:1.196
	netbsd-10-0-RC5:1.196
	netbsd-10-0-RC4:1.196
	netbsd-10-0-RC3:1.196
	netbsd-10-0-RC2:1.196
	thorpej-ifq:1.197.0.4
	thorpej-ifq-base:1.197
	thorpej-altq-separation:1.197.0.2
	thorpej-altq-separation-base:1.197
	netbsd-10-0-RC1:1.196
	netbsd-10:1.196.0.20
	netbsd-10-base:1.196
	bouyer-sunxi-drm:1.196.0.18
	bouyer-sunxi-drm-base:1.196
	netbsd-9-3-RELEASE:1.194
	thorpej-i2c-spi-conf2:1.196.0.16
	thorpej-i2c-spi-conf2-base:1.196
	thorpej-futex2:1.196.0.14
	thorpej-futex2-base:1.196
	thorpej-cfargs2:1.196.0.12
	thorpej-cfargs2-base:1.196
	cjep_sun2x-base1:1.196
	cjep_sun2x:1.196.0.10
	cjep_sun2x-base:1.196
	cjep_staticlib_x-base1:1.196
	netbsd-9-2-RELEASE:1.194
	cjep_staticlib_x:1.196.0.8
	cjep_staticlib_x-base:1.196
	thorpej-i2c-spi-conf:1.196.0.6
	thorpej-i2c-spi-conf-base:1.196
	thorpej-cfargs:1.196.0.4
	thorpej-cfargs-base:1.196
	thorpej-futex:1.196.0.2
	thorpej-futex-base:1.196
	netbsd-9-1-RELEASE:1.194
	bouyer-xenpvh-base2:1.194
	phil-wifi-20200421:1.194
	bouyer-xenpvh-base1:1.194
	phil-wifi-20200411:1.194
	bouyer-xenpvh:1.194.0.10
	bouyer-xenpvh-base:1.194
	is-mlppp:1.194.0.8
	is-mlppp-base:1.194
	phil-wifi-20200406:1.194
	netbsd-8-2-RELEASE:1.185.10.1
	ad-namecache-base3:1.194
	netbsd-9-0-RELEASE:1.194
	netbsd-9-0-RC2:1.194
	ad-namecache-base2:1.194
	ad-namecache-base1:1.194
	ad-namecache:1.194.0.6
	ad-namecache-base:1.194
	netbsd-9-0-RC1:1.194
	phil-wifi-20191119:1.194
	netbsd-9:1.194.0.4
	netbsd-9-base:1.194
	phil-wifi-20190609:1.194
	netbsd-8-1-RELEASE:1.185.10.1
	netbsd-8-1-RC1:1.185.10.1
	isaki-audio2:1.194.0.2
	isaki-audio2-base:1.194
	pgoyette-compat-merge-20190127:1.189.2.4
	pgoyette-compat-20190127:1.194
	pgoyette-compat-20190118:1.194
	pgoyette-compat-1226:1.194
	pgoyette-compat-1126:1.194
	pgoyette-compat-1020:1.194
	pgoyette-compat-0930:1.194
	pgoyette-compat-0906:1.193
	netbsd-7-2-RELEASE:1.182
	pgoyette-compat-0728:1.193
	netbsd-8-0-RELEASE:1.185.10.1
	phil-wifi:1.193.0.2
	phil-wifi-base:1.193
	pgoyette-compat-0625:1.193
	netbsd-8-0-RC2:1.185.10.1
	pgoyette-compat-0521:1.191
	pgoyette-compat-0502:1.191
	pgoyette-compat-0422:1.191
	netbsd-8-0-RC1:1.185.10.1
	pgoyette-compat-0415:1.190
	pgoyette-compat-0407:1.189
	pgoyette-compat-0330:1.189
	pgoyette-compat-0322:1.189
	pgoyette-compat-0315:1.189
	netbsd-7-1-2-RELEASE:1.182
	pgoyette-compat:1.189.0.2
	pgoyette-compat-base:1.189
	netbsd-7-1-1-RELEASE:1.182
	tls-maxphys-base-20171202:1.186
	matt-nb8-mediatek:1.185.0.14
	matt-nb8-mediatek-base:1.185
	nick-nhusb-base-20170825:1.186
	perseant-stdc-iso10646:1.185.0.12
	perseant-stdc-iso10646-base:1.185
	netbsd-8:1.185.0.10
	netbsd-8-base:1.185
	prg-localcount2-base3:1.185
	prg-localcount2-base2:1.185
	prg-localcount2-base1:1.185
	prg-localcount2:1.185.0.8
	prg-localcount2-base:1.185
	pgoyette-localcount-20170426:1.185
	bouyer-socketcan-base1:1.185
	jdolecek-ncq:1.185.0.6
	jdolecek-ncq-base:1.185
	pgoyette-localcount-20170320:1.185
	netbsd-7-1:1.182.0.8
	netbsd-7-1-RELEASE:1.182
	netbsd-7-1-RC2:1.182
	nick-nhusb-base-20170204:1.185
	netbsd-7-nhusb-base-20170116:1.182
	bouyer-socketcan:1.185.0.4
	bouyer-socketcan-base:1.185
	pgoyette-localcount-20170107:1.185
	netbsd-7-1-RC1:1.182
	nick-nhusb-base-20161204:1.185
	pgoyette-localcount-20161104:1.185
	netbsd-7-0-2-RELEASE:1.182
	nick-nhusb-base-20161004:1.185
	localcount-20160914:1.185
	netbsd-7-nhusb:1.182.0.6
	netbsd-7-nhusb-base:1.182
	pgoyette-localcount-20160806:1.185
	pgoyette-localcount-20160726:1.185
	pgoyette-localcount:1.185.0.2
	pgoyette-localcount-base:1.185
	nick-nhusb-base-20160907:1.185
	nick-nhusb-base-20160529:1.185
	netbsd-7-0-1-RELEASE:1.182
	nick-nhusb-base-20160422:1.185
	nick-nhusb-base-20160319:1.185
	nick-nhusb-base-20151226:1.185
	netbsd-7-0:1.182.0.4
	netbsd-7-0-RELEASE:1.182
	nick-nhusb-base-20150921:1.185
	netbsd-7-0-RC3:1.182
	netbsd-7-0-RC2:1.182
	netbsd-7-0-RC1:1.182
	nick-nhusb-base-20150606:1.183
	nick-nhusb-base-20150406:1.183
	nick-nhusb:1.183.0.2
	nick-nhusb-base:1.183
	netbsd-5-2-3-RELEASE:1.159.4.1
	netbsd-5-1-5-RELEASE:1.159.4.1
	netbsd-6-0-6-RELEASE:1.176
	netbsd-6-1-5-RELEASE:1.176
	netbsd-7:1.182.0.2
	netbsd-7-base:1.182
	yamt-pagecache-base9:1.181
	yamt-pagecache-tag8:1.175.2.2
	netbsd-6-1-4-RELEASE:1.176
	netbsd-6-0-5-RELEASE:1.176
	tls-earlyentropy:1.181.0.2
	tls-earlyentropy-base:1.182
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.181
	riastradh-drm2-base3:1.181
	netbsd-6-1-3-RELEASE:1.176
	netbsd-6-0-4-RELEASE:1.176
	netbsd-5-2-2-RELEASE:1.159.4.1
	netbsd-5-1-4-RELEASE:1.159.4.1
	netbsd-6-1-2-RELEASE:1.176
	netbsd-6-0-3-RELEASE:1.176
	netbsd-5-2-1-RELEASE:1.159.4.1
	netbsd-5-1-3-RELEASE:1.159.4.1
	rmind-smpnet-nbase:1.181
	netbsd-6-1-1-RELEASE:1.176
	riastradh-drm2-base2:1.178
	riastradh-drm2-base1:1.178
	riastradh-drm2:1.178.0.8
	riastradh-drm2-base:1.178
	rmind-smpnet:1.178.0.2
	rmind-smpnet-base:1.181
	netbsd-6-1:1.176.0.10
	netbsd-6-0-2-RELEASE:1.176
	netbsd-6-1-RELEASE:1.176
	khorben-n900:1.178.0.6
	netbsd-6-1-RC4:1.176
	netbsd-6-1-RC3:1.176
	agc-symver:1.178.0.4
	agc-symver-base:1.178
	netbsd-6-1-RC2:1.176
	netbsd-6-1-RC1:1.176
	yamt-pagecache-base8:1.178
	netbsd-5-2:1.159.4.1.0.6
	netbsd-6-0-1-RELEASE:1.176
	yamt-pagecache-base7:1.178
	netbsd-5-2-RELEASE:1.159.4.1
	netbsd-5-2-RC1:1.159.4.1
	matt-nb6-plus-nbase:1.176
	yamt-pagecache-base6:1.178
	netbsd-6-0:1.176.0.8
	netbsd-6-0-RELEASE:1.176
	netbsd-6-0-RC2:1.176
	tls-maxphys:1.176.0.6
	tls-maxphys-base:1.182
	matt-nb6-plus:1.176.0.4
	matt-nb6-plus-base:1.176
	netbsd-6-0-RC1:1.176
	jmcneill-usbmp-base10:1.176
	yamt-pagecache-base5:1.176
	jmcneill-usbmp-base9:1.176
	yamt-pagecache-base4:1.176
	jmcneill-usbmp-base8:1.176
	jmcneill-usbmp-base7:1.176
	jmcneill-usbmp-base6:1.176
	jmcneill-usbmp-base5:1.176
	jmcneill-usbmp-base4:1.176
	jmcneill-usbmp-base3:1.176
	jmcneill-usbmp-pre-base2:1.175
	jmcneill-usbmp-base2:1.176
	netbsd-6:1.176.0.2
	netbsd-6-base:1.176
	netbsd-5-1-2-RELEASE:1.159.4.1
	netbsd-5-1-1-RELEASE:1.159.4.1
	jmcneill-usbmp:1.175.0.6
	jmcneill-usbmp-base:1.175
	jmcneill-audiomp3:1.175.0.4
	jmcneill-audiomp3-base:1.175
	yamt-pagecache-base3:1.175
	yamt-pagecache-base2:1.175
	yamt-pagecache:1.175.0.2
	yamt-pagecache-base:1.175
	rmind-uvmplock-nbase:1.172
	cherry-xenmp:1.171.0.2
	cherry-xenmp-base:1.171
	jym-xensuspend-nbase:1.174
	uebayasi-xip-base7:1.168
	bouyer-quota2-nbase:1.168
	bouyer-quota2:1.168.0.4
	bouyer-quota2-base:1.168
	jruoho-x86intr:1.168.0.2
	jruoho-x86intr-base:1.168
	matt-mips64-premerge-20101231:1.167
	matt-nb5-mips64-premerge-20101231:1.159.8.1
	matt-nb5-pq3:1.159.4.1.0.4
	matt-nb5-pq3-base:1.159.4.1
	netbsd-5-1:1.159.4.1.0.2
	uebayasi-xip-base6:1.167
	uebayasi-xip-base5:1.167
	netbsd-5-1-RELEASE:1.159.4.1
	uebayasi-xip-base4:1.167
	uebayasi-xip-base3:1.167
	yamt-nfs-mp-base11:1.167
	netbsd-5-1-RC4:1.159.4.1
	matt-nb5-mips64-k15:1.159.8.1
	uebayasi-xip-base2:1.167
	yamt-nfs-mp-base10:1.167
	netbsd-5-1-RC3:1.159.4.1
	netbsd-5-1-RC2:1.159.4.1
	uebayasi-xip-base1:1.166
	netbsd-5-1-RC1:1.159.4.1
	rmind-uvmplock:1.166.0.4
	rmind-uvmplock-base:1.172
	yamt-nfs-mp-base9:1.166
	uebayasi-xip:1.166.0.2
	uebayasi-xip-base:1.166
	netbsd-5-0-2-RELEASE:1.159
	matt-nb5-mips64-premerge-20091211:1.159
	matt-premerge-20091211:1.166
	yamt-nfs-mp-base8:1.165
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.159
	matt-nb4-mips64-k7-u2a-k9b:1.159
	matt-nb5-mips64-u1-k1-k5:1.159
	yamt-nfs-mp-base7:1.165
	matt-nb5-mips64:1.159.0.8
	netbsd-5-0-1-RELEASE:1.159
	jymxensuspend-base:1.165
	yamt-nfs-mp-base6:1.165
	yamt-nfs-mp-base5:1.165
	yamt-nfs-mp-base4:1.165
	yamt-nfs-mp-base3:1.165
	nick-hppapmap-base4:1.165
	nick-hppapmap-base3:1.165
	netbsd-5-0:1.159.0.6
	netbsd-5-0-RELEASE:1.159
	netbsd-5-0-RC4:1.159
	netbsd-5-0-RC3:1.159
	nick-hppapmap-base2:1.164
	netbsd-5-0-RC2:1.159
	jym-xensuspend:1.162.0.2
	jym-xensuspend-base:1.174
	netbsd-5-0-RC1:1.159
	haad-dm-base2:1.162
	haad-nbase2:1.162
	ad-audiomp2:1.161.0.2
	ad-audiomp2-base:1.161
	netbsd-5:1.159.0.4
	netbsd-5-base:1.159
	nick-hppapmap:1.159.0.2
	nick-hppapmap-base:1.165
	matt-mips64-base2:1.158
	haad-dm-base1:1.158
	wrstuden-revivesa-base-4:1.158
	netbsd-4-0-1-RELEASE:1.149
	wrstuden-revivesa-base-3:1.158
	wrstuden-revivesa-base-2:1.158
	wrstuden-fixsa-newbase:1.149
	nick-csl-alignment-base5:1.150
	haad-dm:1.158.0.16
	haad-dm-base:1.162
	wrstuden-revivesa-base-1:1.158
	simonb-wapbl-nbase:1.158
	yamt-pf42-base4:1.158
	simonb-wapbl:1.158.0.14
	simonb-wapbl-base:1.158
	yamt-pf42-base3:1.158
	hpcarm-cleanup-nbase:1.158
	yamt-pf42-baseX:1.158
	yamt-pf42-base2:1.158
	yamt-nfs-mp-base2:1.158
	wrstuden-revivesa:1.158.0.12
	wrstuden-revivesa-base:1.158
	yamt-nfs-mp:1.158.0.10
	yamt-nfs-mp-base:1.158
	yamt-pf42:1.158.0.8
	yamt-pf42-base:1.158
	ad-socklock-base1:1.158
	yamt-lazymbuf-base15:1.158
	yamt-lazymbuf-base14:1.158
	keiichi-mipv6-nbase:1.158
	mjf-devfs2:1.158.0.6
	mjf-devfs2-base:1.162
	nick-net80211-sync:1.158.0.4
	nick-net80211-sync-base:1.158
	keiichi-mipv6:1.158.0.2
	keiichi-mipv6-base:1.158
	bouyer-xeni386-merge1:1.154.2.2
	matt-armv6-prevmlocking:1.150.10.1
	wrstuden-fixsa-base-1:1.149
	vmlocking2-base3:1.154
	netbsd-4-0:1.149.0.26
	netbsd-4-0-RELEASE:1.149
	bouyer-xeni386-nbase:1.157
	yamt-kmem-base3:1.154
	cube-autoconf:1.154.0.4
	cube-autoconf-base:1.154
	yamt-kmem-base2:1.154
	bouyer-xeni386:1.154.0.2
	bouyer-xeni386-base:1.157
	yamt-kmem:1.153.0.4
	yamt-kmem-base:1.153
	vmlocking2-base2:1.153
	reinoud-bufcleanup-nbase:1.153
	vmlocking2:1.153.0.2
	vmlocking2-base1:1.153
	netbsd-4-0-RC5:1.149
	matt-nb4-arm:1.149.0.24
	matt-nb4-arm-base:1.149
	matt-armv6-nbase:1.158
	jmcneill-base:1.152
	netbsd-4-0-RC4:1.149
	mjf-devfs:1.152.0.2
	mjf-devfs-base:1.158
	bouyer-xenamd64-base2:1.152
	vmlocking-nbase:1.153
	yamt-x86pmap-base4:1.151
	bouyer-xenamd64:1.150.0.14
	bouyer-xenamd64-base:1.152
	netbsd-4-0-RC3:1.149
	yamt-x86pmap-base3:1.150
	yamt-x86pmap-base2:1.150
	netbsd-4-0-RC2:1.149
	yamt-x86pmap:1.150.0.12
	yamt-x86pmap-base:1.150
	netbsd-4-0-RC1:1.149
	matt-armv6:1.150.0.10
	matt-armv6-base:1.156
	jmcneill-pm:1.150.0.8
	jmcneill-pm-base:1.153
	hpcarm-cleanup:1.150.0.6
	hpcarm-cleanup-base:1.158
	nick-csl-alignment:1.150.0.4
	nick-csl-alignment-base:1.150
	matt-mips64:1.150.0.2
	matt-mips64-base:1.150
	netbsd-3-1-1-RELEASE:1.137
	netbsd-3-0-3-RELEASE:1.137
	yamt-idlelwp-base8:1.149
	wrstuden-fixsa:1.149.0.22
	wrstuden-fixsa-base:1.149
	ppcoea-renovation:1.149.0.20
	ppcoea-renovation-base:1.150
	thorpej-atomic:1.149.0.18
	thorpej-atomic-base:1.149
	reinoud-bufcleanup:1.149.0.16
	reinoud-bufcleanup-base:1.153
	mjf-ufs-trans:1.149.0.14
	mjf-ufs-trans-base:1.150
	vmlocking:1.149.0.12
	vmlocking-base:1.150
	ad-audiomp:1.149.0.10
	ad-audiomp-base:1.149
	yamt-idlelwp:1.149.0.8
	post-newlock2-merge:1.149
	newlock2-nbase:1.149
	yamt-splraiseipl-base5:1.149
	yamt-splraiseipl-base4:1.149
	yamt-splraiseipl-base3:1.149
	abandoned-netbsd-4-base:1.148
	abandoned-netbsd-4:1.148.0.2
	netbsd-3-1:1.137.0.6
	netbsd-3-1-RELEASE:1.137
	netbsd-3-0-2-RELEASE:1.137
	yamt-splraiseipl-base2:1.149
	netbsd-3-1-RC4:1.137
	yamt-splraiseipl:1.149.0.4
	yamt-splraiseipl-base:1.149
	netbsd-3-1-RC3:1.137
	yamt-pdpolicy-base9:1.149
	newlock2:1.149.0.2
	newlock2-base:1.149
	yamt-pdpolicy-base8:1.149
	netbsd-3-1-RC2:1.137
	netbsd-3-1-RC1:1.137
	yamt-pdpolicy-base7:1.148
	netbsd-4:1.149.0.6
	netbsd-4-base:1.149
	yamt-pdpolicy-base6:1.145
	chap-midi-nbase:1.145
	netbsd-3-0-1-RELEASE:1.137
	gdamore-uart:1.145.0.2
	gdamore-uart-base:1.145
	simonb-timcounters-final:1.142.6.2
	yamt-pdpolicy-base5:1.144
	chap-midi:1.144.0.2
	chap-midi-base:1.145
	yamt-pdpolicy-base4:1.144
	yamt-pdpolicy-base3:1.142
	peter-altq-base:1.142
	peter-altq:1.142.0.12
	yamt-pdpolicy-base2:1.142
	elad-kernelauth-base:1.144
	elad-kernelauth:1.142.0.10
	yamt-pdpolicy:1.142.0.8
	yamt-pdpolicy-base:1.142
	yamt-uio_vmspace-base5:1.142
	simonb-timecounters:1.142.0.6
	simonb-timecounters-base:1.144
	rpaulo-netinet-merge-pcb:1.142.0.4
	rpaulo-netinet-merge-pcb-base:1.149
	yamt-uio_vmspace:1.142.0.2
	netbsd-3-0:1.137.0.4
	netbsd-3-0-RELEASE:1.137
	netbsd-3-0-RC6:1.137
	yamt-readahead-base3:1.141
	netbsd-3-0-RC5:1.137
	netbsd-3-0-RC4:1.137
	netbsd-3-0-RC3:1.137
	yamt-readahead-base2:1.141
	netbsd-3-0-RC2:1.137
	yamt-readahead-pervnode:1.141
	yamt-readahead-perfile:1.141
	yamt-readahead:1.141.0.2
	yamt-readahead-base:1.141
	netbsd-3-0-RC1:1.137
	yamt-vop-base3:1.140
	netbsd-2-0-3-RELEASE:1.133.2.2
	netbsd-2-1:1.133.2.2.2.1.0.2
	yamt-vop-base2:1.140
	thorpej-vnode-attr:1.140.0.2
	thorpej-vnode-attr-base:1.140
	netbsd-2-1-RELEASE:1.133.2.2.2.1
	yamt-vop:1.139.0.4
	yamt-vop-base:1.139
	netbsd-2-1-RC6:1.133.2.2.2.1
	netbsd-2-1-RC5:1.133.2.2.2.1
	netbsd-2-1-RC4:1.133.2.2.2.1
	netbsd-2-1-RC3:1.133.2.2.2.1
	netbsd-2-1-RC2:1.133.2.2.2.1
	netbsd-2-1-RC1:1.133.2.2.2.1
	yamt-lazymbuf:1.139.0.2
	yamt-km-base4:1.137
	netbsd-2-0-2-RELEASE:1.133.2.2
	yamt-km-base3:1.137
	netbsd-3:1.137.0.2
	netbsd-3-base:1.137
	yamt-km-base2:1.136
	yamt-km:1.136.0.6
	yamt-km-base:1.136
	kent-audio2:1.136.0.4
	kent-audio2-base:1.137
	netbsd-2-0-1-RELEASE:1.133.2.2
	kent-audio1-beforemerge:1.136
	netbsd-2:1.133.2.2.0.2
	netbsd-2-base:1.133.2.2
	kent-audio1:1.136.0.2
	kent-audio1-base:1.136
	netbsd-2-0-RELEASE:1.133.2.2
	netbsd-2-0-RC5:1.133.2.2
	netbsd-2-0-RC4:1.133.2.2
	netbsd-2-0-RC3:1.133.2.2
	netbsd-2-0-RC2:1.133.2.2
	netbsd-2-0-RC1:1.133.2.2
	netbsd-2-0:1.133.0.2
	netbsd-2-0-base:1.133
	netbsd-1-6-PATCH002-RELEASE:1.122
	netbsd-1-6-PATCH002:1.122
	netbsd-1-6-PATCH002-RC4:1.122
	netbsd-1-6-PATCH002-RC3:1.122
	netbsd-1-6-PATCH002-RC2:1.122
	netbsd-1-6-PATCH002-RC1:1.122
	ktrace-lwp:1.131.0.2
	ktrace-lwp-base:1.141
	netbsd-1-6-PATCH001:1.122
	netbsd-1-6-PATCH001-RELEASE:1.122
	netbsd-1-6-PATCH001-RC3:1.122
	netbsd-1-6-PATCH001-RC2:1.122
	netbsd-1-6-PATCH001-RC1:1.122
	nathanw_sa_end:1.112.2.7
	nathanw_sa_before_merge:1.128
	fvdl_fs64_base:1.128
	gmcgarry_ctxsw:1.128.0.4
	gmcgarry_ctxsw_base:1.128
	gmcgarry_ucred:1.128.0.2
	gmcgarry_ucred_base:1.128
	nathanw_sa_base:1.128
	kqueue-aftermerge:1.123
	kqueue-beforemerge:1.123
	netbsd-1-6-RELEASE:1.122
	netbsd-1-6-RC3:1.122
	netbsd-1-6-RC2:1.122
	netbsd-1-6-RC1:1.122
	i386mp_plus16_stable:1.122
	netbsd-1-6:1.122.0.12
	netbsd-1-6-base:1.122
	gehenna-devsw:1.122.0.10
	gehenna-devsw-base:1.123
	netbsd-1-5-PATCH003:1.106
	eeh-devprop:1.122.0.8
	eeh-devprop-base:1.122
	newlock:1.122.0.6
	newlock-base:1.122
	ifpoll-base:1.122
	thorpej-mips-cache:1.117.0.2
	thorpej-mips-cache-base:1.118
	thorpej-devvp-base3:1.116
	thorpej-devvp-base2:1.116
	post-chs-ubcperf:1.116
	pre-chs-ubcperf:1.116
	thorpej-devvp:1.116.0.4
	thorpej-devvp-base:1.116
	netbsd-1-5-PATCH002:1.106
	kqueue:1.116.0.2
	kqueue-base:1.123
	netbsd-1-5-PATCH001:1.106
	thorpej_scsipi_beforemerge:1.112
	nathanw_sa:1.112.0.2
	thorpej_scsipi_nbase:1.112
	sommerfeld_i386mpnext:1.123
	netbsd-1-5-RELEASE:1.106
	netbsd-1-5-BETA2:1.106
	netbsd-1-5-BETA:1.106
	netbsd-1-4-PATCH003:1.97.2.1
	netbsd-1-5-ALPHA2:1.106
	sommerfeld_i386mp_houseclean:1.106
	netbsd-1-5:1.106.0.4
	netbsd-1-5-base:1.106
	minoura-xpg4dl:1.106.0.2
	minoura-xpg4dl-base:1.106
	sommerfeld_i386mpbase_20000422:1.104
	netbsd-1-4-PATCH002:1.97.2.1
	sommerfeld_i386mp_1:1.123.0.2
	sommerfeld_i386mpbase_1:1.123
	chs-ubc2-newbase:1.104
	wrstuden-devbsize-19991221:1.99
	wrstuden-devbsize:1.99.0.8
	wrstuden-devbsize-base:1.99
	kame_141_19991130:1.97
	comdex-fall-1999:1.99.0.6
	comdex-fall-1999-base:1.99
	fvdl-softdep:1.99.0.4
	fvdl-softdep-base:1.99
	thorpej_scsipi:1.99.0.2
	thorpej_scsipi_base:1.112
	netbsd-1-4-PATCH001:1.97
	kame_14_19990705:1.97
	kame_14_19990628:1.97
	kame:1.97.0.6
	chs-ubc2:1.97.0.4
	chs-ubc2-base:1.99
	netbsd-1-4-RELEASE:1.97
	netbsd-1-4:1.97.0.2
	netbsd-1-4-base:1.97
	netbsd-1-3-PATCH003:1.86.2.1
	netbsd-1-3-PATCH003-CANDIDATE2:1.86.2.1
	kenh-if-detach:1.94.0.4
	kenh-if-detach-base:1.94
	netbsd-1-3-PATCH003-CANDIDATE1:1.86.2.1
	netbsd-1-3-PATCH003-CANDIDATE0:1.86.2.1
	chs-ubc:1.94.0.2
	chs-ubc-base:1.94
	eeh-paddr_t:1.92.0.2
	eeh-paddr_t-base:1.92
	netbsd-1-3-PATCH002:1.86.2.1
	netbsd-1-3-PATCH001:1.86.2.1
	netbsd-1-3-RELEASE:1.86.2.1
	netbsd-1-3-BETA:1.86.2.1
	netbsd-1-3:1.86.0.2
	netbsd-1-3-base:1.86
	thorpej-signal:1.83.0.4
	thorpej-signal-base:1.83
	marc-pcmcia:1.83.0.2
	marc-pcmcia-bp:1.83
	marc-pcmcia-base:1.85
	bouyer-scsipi:1.82.0.2
	is-newarp-before-merge:1.81
	is-newarp:1.80.0.4
	is-newarp-base:1.80
	netbsd-1-2-PATCH001:1.67.4.1
	mrg-vm-swap:1.80.0.2
	thorpej-setroot:1.77.0.2
	netbsd-1-2-RELEASE:1.67
	netbsd-1-2-BETA:1.67
	netbsd-1-2:1.67.0.4
	netbsd-1-2-base:1.67
	netbsd-1-1-PATCH001:1.59
	netbsd-1-1-RELEASE:1.59
	netbsd-1-1:1.59.0.2
	netbsd-1-1-base:1.59
	netbsd-1-0-PATCH06:1.45
	netbsd-1-0-PATCH05:1.45
	netbsd-1-0-PATCH04:1.45
	netbsd-1-0-PATCH03:1.45
	netbsd-1-0-PATCH02:1.45
	netbsd-1-0-PATCH1:1.45
	netbsd-1-0-PATCH0:1.45
	before_newconf_base:1.47
	netbsd-1-0-RELEASE:1.45
	netbsd-1-0:1.45.0.2
	netbsd-1-0-base:1.45
	magnum-base:1.30
	magnum:1.28.0.2
	netbsd-0-9-patch-001:1.25
	netbsd-0-9-RELEASE:1.25
	netbsd-0-9-BETA:1.25
	netbsd-0-9-ALPHA2:1.25
	netbsd-0-9-ALPHA:1.25
	netbsd-0-9:1.25.0.2
	netbsd-0-9-base:1.25
	netbsd-0-8:1.5
	netbsd-alpha-1:1.5
	patchkit-0-2-2:1.2
	WFJ-386bsd-01:1.1.1.1
	WFJ-920714:1.1.1;
locks; strict;
comment	@# @;


1.197
date	2023.01.06.15.35.05;	author christos;	state Exp;
branches;
next	1.196;
commitid	3vYfIw4CQILXLu8E;

1.196
date	2020.05.11.15.15.15;	author joerg;	state Exp;
branches;
next	1.195;
commitid	SPJXr9vMVqbsQP7C;

1.195
date	2020.04.25.15.26.16;	author bouyer;	state Exp;
branches;
next	1.194;
commitid	OlHyMKBWmojOpM5C;

1.194
date	2018.09.22.12.24.02;	author rin;	state Exp;
branches
	1.194.10.1;
next	1.193;
commitid	oPiNEJ7VnAF626TA;

1.193
date	2018.06.05.00.58.42;	author christos;	state Exp;
branches
	1.193.2.1;
next	1.192;
commitid	qQKyfcP6tMpGN1FA;

1.192
date	2018.06.04.20.28.44;	author christos;	state Exp;
branches;
next	1.191;
commitid	z8iwNZZDbwp3j0FA;

1.191
date	2018.04.18.10.40.22;	author martin;	state Exp;
branches;
next	1.190;
commitid	yweP42vDYYoOyUyA;

1.190
date	2018.04.07.19.38.06;	author mrg;	state Exp;
branches;
next	1.189;
commitid	fo5PW4JGs6a0TxxA;

1.189
date	2018.02.23.14.16.52;	author maxv;	state Exp;
branches
	1.189.2.1;
next	1.188;
commitid	vndk8J0ArIgMuZrA;

1.188
date	2018.02.23.09.00.55;	author maxv;	state Exp;
branches;
next	1.187;
commitid	l00wGMGbx0xlKXrA;

1.187
date	2017.12.10.14.29.47;	author christos;	state Exp;
branches;
next	1.186;
commitid	d9aiTEWUrGjBYliA;

1.186
date	2017.08.09.19.11.13;	author maxv;	state Exp;
branches;
next	1.185;

1.185
date	2015.08.24.14.04.24;	author uebayasi;	state Exp;
branches
	1.185.10.1;
next	1.184;

1.184
date	2015.08.18.10.18.20;	author uebayasi;	state Exp;
branches;
next	1.183;

1.183
date	2014.11.15.12.26.44;	author uebayasi;	state Exp;
branches
	1.183.2.1;
next	1.182;

1.182
date	2014.05.24.18.39.04;	author jakllsch;	state Exp;
branches;
next	1.181;

1.181
date	2014.02.07.00.25.45;	author joerg;	state Exp;
branches
	1.181.2.1;
next	1.180;

1.180
date	2014.02.05.18.52.22;	author dsl;	state Exp;
branches;
next	1.179;

1.179
date	2014.01.15.22.25.22;	author joerg;	state Exp;
branches;
next	1.178;

1.178
date	2012.10.03.18.58.31;	author dsl;	state Exp;
branches
	1.178.2.1;
next	1.177;

1.177
date	2012.10.01.17.35.57;	author dsl;	state Exp;
branches;
next	1.176;

1.176
date	2011.12.19.14.06.16;	author joerg;	state Exp;
branches
	1.176.6.1;
next	1.175;

1.175
date	2011.09.14.14.58.08;	author christos;	state Exp;
branches
	1.175.2.1
	1.175.6.1;
next	1.174;

1.174
date	2011.08.07.14.39.15;	author jakllsch;	state Exp;
branches;
next	1.173;

1.173
date	2011.07.04.16.20.45;	author joerg;	state Exp;
branches;
next	1.172;

1.172
date	2011.06.10.03.19.25;	author joerg;	state Exp;
branches;
next	1.171;

1.171
date	2011.05.30.15.06.32;	author joerg;	state Exp;
branches
	1.171.2.1;
next	1.170;

1.170
date	2011.05.20.13.22.53;	author joerg;	state Exp;
branches;
next	1.169;

1.169
date	2011.05.20.13.22.30;	author joerg;	state Exp;
branches;
next	1.168;

1.168
date	2011.01.12.23.12.12;	author joerg;	state Exp;
branches
	1.168.2.1;
next	1.167;

1.167
date	2010.07.06.05.59.59;	author mrg;	state Exp;
branches;
next	1.166;

1.166
date	2009.11.25.17.08.08;	author tron;	state Exp;
branches
	1.166.2.1
	1.166.4.1;
next	1.165;

1.165
date	2009.03.15.05.45.32;	author tsutsui;	state Exp;
branches;
next	1.164;

1.164
date	2009.02.15.01.58.01;	author cube;	state Exp;
branches;
next	1.163;

1.163
date	2009.02.14.16.53.55;	author apb;	state Exp;
branches;
next	1.162;

1.162
date	2008.12.11.05.27.42;	author alc;	state Exp;
branches
	1.162.2.1;
next	1.161;

1.161
date	2008.11.27.01.57.40;	author joerg;	state Exp;
branches;
next	1.160;

1.160
date	2008.11.13.10.51.23;	author ad;	state Exp;
branches;
next	1.159;

1.159
date	2008.10.26.06.56.39;	author mrg;	state Exp;
branches
	1.159.2.1
	1.159.4.1
	1.159.8.1;
next	1.158;

1.158
date	2008.01.25.21.12.11;	author joerg;	state Exp;
branches
	1.158.6.1
	1.158.10.1
	1.158.16.1;
next	1.157;

1.157
date	2008.01.17.01.56.02;	author lukem;	state Exp;
branches;
next	1.156;

1.156
date	2008.01.03.20.58.06;	author joerg;	state Exp;
branches;
next	1.155;

1.155
date	2007.12.30.12.34.12;	author joerg;	state Exp;
branches;
next	1.154;

1.154
date	2007.12.09.20.27.46;	author jmcneill;	state Exp;
branches
	1.154.2.1;
next	1.153;

1.153
date	2007.12.02.04.24.44;	author christos;	state Exp;
branches
	1.153.2.1
	1.153.4.1;
next	1.152;

1.152
date	2007.10.24.06.26.56;	author joerg;	state Exp;
branches
	1.152.2.1;
next	1.151;

1.151
date	2007.10.17.19.54.43;	author garbled;	state Exp;
branches;
next	1.150;

1.150
date	2007.05.30.17.16.55;	author christos;	state Exp;
branches
	1.150.8.1
	1.150.10.1
	1.150.14.1;
next	1.149;

1.149
date	2006.08.19.17.50.56;	author dsl;	state Exp;
branches
	1.149.12.1
	1.149.14.1
	1.149.20.1;
next	1.148;

1.148
date	2006.07.31.18.40.41;	author christos;	state Exp;
branches
	1.148.2.1;
next	1.147;

1.147
date	2006.07.31.17.07.27;	author christos;	state Exp;
branches;
next	1.146;

1.146
date	2006.07.04.18.41.41;	author christos;	state Exp;
branches;
next	1.145;

1.145
date	2006.06.07.22.37.57;	author kardel;	state Exp;
branches
	1.145.2.1;
next	1.144;

1.144
date	2006.04.04.03.13.12;	author gdamore;	state Exp;
branches
	1.144.2.1;
next	1.143;

1.143
date	2006.04.02.05.52.14;	author gdamore;	state Exp;
branches;
next	1.142;

1.142
date	2005.12.11.12.17.40;	author christos;	state Exp;
branches
	1.142.4.1
	1.142.6.1
	1.142.8.1
	1.142.10.1
	1.142.12.1;
next	1.141;

1.141
date	2005.11.07.11.42.34;	author yamt;	state Exp;
branches;
next	1.140;

1.140
date	2005.10.19.09.01.27;	author dyoung;	state Exp;
branches;
next	1.139;

1.139
date	2005.06.22.06.14.51;	author dyoung;	state Exp;
branches
	1.139.2.1
	1.139.4.1;
next	1.138;

1.138
date	2005.05.31.04.03.10;	author christos;	state Exp;
branches;
next	1.137;

1.137
date	2005.03.12.14.39.12;	author dsl;	state Exp;
branches;
next	1.136;

1.136
date	2004.07.15.03.35.20;	author atatat;	state Exp;
branches
	1.136.4.1
	1.136.6.1;
next	1.135;

1.135
date	2004.06.04.04.45.50;	author thorpej;	state Exp;
branches;
next	1.134;

1.134
date	2004.04.15.15.02.17;	author he;	state Exp;
branches;
next	1.133;

1.133
date	2004.03.25.23.32.10;	author jmc;	state Exp;
branches
	1.133.2.1;
next	1.132;

1.132
date	2003.07.05.16.56.10;	author simonb;	state Exp;
branches;
next	1.131;

1.131
date	2003.05.02.17.40.13;	author yamt;	state Exp;
branches
	1.131.2.1;
next	1.130;

1.130
date	2003.04.02.22.10.23;	author christos;	state Exp;
branches;
next	1.129;

1.129
date	2003.03.02.22.19.05;	author christos;	state Exp;
branches;
next	1.128;

1.128
date	2002.12.12.17.41.19;	author christos;	state Exp;
branches;
next	1.127;

1.127
date	2002.11.26.18.51.14;	author thorpej;	state Exp;
branches;
next	1.126;

1.126
date	2002.11.24.18.56.01;	author christos;	state Exp;
branches;
next	1.125;

1.125
date	2002.11.22.15.23.36;	author fvdl;	state Exp;
branches;
next	1.124;

1.124
date	2002.11.02.07.59.26;	author perry;	state Exp;
branches;
next	1.123;

1.123
date	2002.06.04.21.39.10;	author thorpej;	state Exp;
branches
	1.123.2.1;
next	1.122;

1.122
date	2001.12.09.05.00.45;	author atatat;	state Exp;
branches
	1.122.10.1;
next	1.121;

1.121
date	2001.11.23.05.19.00;	author atatat;	state Exp;
branches;
next	1.120;

1.120
date	2001.11.20.12.56.30;	author lukem;	state Exp;
branches;
next	1.119;

1.119
date	2001.11.16.00.23.03;	author atatat;	state Exp;
branches;
next	1.118;

1.118
date	2001.10.26.06.45.37;	author jmc;	state Exp;
branches;
next	1.117;

1.117
date	2001.10.23.19.26.45;	author thorpej;	state Exp;
branches
	1.117.2.1;
next	1.116;

1.116
date	2001.06.05.05.05.46;	author thorpej;	state Exp;
branches
	1.116.2.1;
next	1.115;

1.115
date	2001.05.29.02.20.23;	author mrg;	state Exp;
branches;
next	1.114;

1.114
date	2001.05.16.03.48.45;	author lukem;	state Exp;
branches;
next	1.113;

1.113
date	2001.05.15.22.34.36;	author perry;	state Exp;
branches;
next	1.112;

1.112
date	2001.01.20.07.18.06;	author lukem;	state Exp;
branches
	1.112.2.1;
next	1.111;

1.111
date	2001.01.20.01.05.53;	author thorpej;	state Exp;
branches;
next	1.110;

1.110
date	2001.01.09.12.03.15;	author fvdl;	state Exp;
branches;
next	1.109;

1.109
date	2001.01.08.21.46.36;	author martin;	state Exp;
branches;
next	1.108;

1.108
date	2000.12.17.15.52.41;	author jdolecek;	state Exp;
branches;
next	1.107;

1.107
date	2000.09.07.06.39.36;	author thorpej;	state Exp;
branches;
next	1.106;

1.106
date	2000.05.09.00.56.24;	author hubertf;	state Exp;
branches;
next	1.105;

1.105
date	2000.05.09.00.32.23;	author thorpej;	state Exp;
branches;
next	1.104;

1.104
date	2000.02.11.07.00.11;	author thorpej;	state Exp;
branches;
next	1.103;

1.103
date	2000.02.01.05.25.32;	author tsutsui;	state Exp;
branches;
next	1.102;

1.102
date	2000.01.24.20.36.13;	author tron;	state Exp;
branches;
next	1.101;

1.101
date	2000.01.19.16.29.57;	author tsutsui;	state Exp;
branches;
next	1.100;

1.100
date	2000.01.19.14.45.03;	author tsutsui;	state Exp;
branches;
next	1.99;

1.99
date	99.07.26.05.20.46;	author cgd;	state Exp;
branches
	1.99.2.1;
next	1.98;

1.98
date	99.07.09.09.52.57;	author mrg;	state Exp;
branches;
next	1.97;

1.97
date	99.01.28.20.04.54;	author christos;	state Exp;
branches
	1.97.2.1
	1.97.4.1;
next	1.96;

1.96
date	99.01.15.23.37.06;	author thorpej;	state Exp;
branches;
next	1.95;

1.95
date	99.01.08.19.26.13;	author augustss;	state Exp;
branches;
next	1.94;

1.94
date	98.10.15.18.37.14;	author drochner;	state Exp;
branches;
next	1.93;

1.93
date	98.09.05.15.15.15;	author lukem;	state Exp;
branches;
next	1.92;

1.92
date	98.06.07.03.01.06;	author enami;	state Exp;
branches;
next	1.91;

1.91
date	98.05.31.23.25.42;	author thorpej;	state Exp;
branches;
next	1.90;

1.90
date	98.04.12.23.47.43;	author tv;	state Exp;
branches;
next	1.89;

1.89
date	98.02.06.07.21.48;	author mrg;	state Exp;
branches;
next	1.88;

1.88
date	97.11.12.23.12.09;	author thorpej;	state Exp;
branches;
next	1.87;

1.87
date	97.11.12.22.26.02;	author thorpej;	state Exp;
branches;
next	1.86;

1.86
date	97.10.20.00.43.21;	author fvdl;	state Exp;
branches
	1.86.2.1;
next	1.85;

1.85
date	97.10.03.07.17.39;	author lukem;	state Exp;
branches;
next	1.84;

1.84
date	97.09.30.22.10.32;	author christos;	state Exp;
branches;
next	1.83;

1.83
date	97.07.12.22.07.57;	author leo;	state Exp;
branches
	1.83.2.1;
next	1.82;

1.82
date	97.03.14.23.16.08;	author mycroft;	state Exp;
branches;
next	1.81;

1.81
date	97.02.26.23.50.04;	author mycroft;	state Exp;
branches;
next	1.80;

1.80
date	97.02.04.05.08.34;	author perry;	state Exp;
branches
	1.80.4.1;
next	1.79;

1.79
date	97.02.04.04.32.04;	author perry;	state Exp;
branches;
next	1.78;

1.78
date	97.01.23.23.07.56;	author cgd;	state Exp;
branches;
next	1.77;

1.77
date	96.12.01.06.12.31;	author jonathan;	state Exp;
branches
	1.77.2.1;
next	1.76;

1.76
date	96.10.11.00.04.22;	author christos;	state Exp;
branches;
next	1.75;

1.75
date	96.09.13.00.02.41;	author jtk;	state Exp;
branches;
next	1.74;

1.74
date	96.09.09.21.07.00;	author mycroft;	state Exp;
branches;
next	1.73;

1.73
date	96.08.31.21.41.16;	author mycroft;	state Exp;
branches;
next	1.72;

1.72
date	96.08.25.23.39.29;	author jtk;	state Exp;
branches;
next	1.71;

1.71
date	96.08.12.00.51.40;	author mycroft;	state Exp;
branches;
next	1.70;

1.70
date	96.08.10.08.40.53;	author mycroft;	state Exp;
branches;
next	1.69;

1.69
date	96.08.10.06.09.00;	author mycroft;	state Exp;
branches;
next	1.68;

1.68
date	96.08.10.05.29.36;	author mycroft;	state Exp;
branches;
next	1.67;

1.67
date	96.05.11.16.12.11;	author mycroft;	state Exp;
branches
	1.67.4.1;
next	1.66;

1.66
date	96.02.29.20.56.16;	author cgd;	state Exp;
branches;
next	1.65;

1.65
date	96.02.26.02.53.37;	author mycroft;	state Exp;
branches;
next	1.64;

1.64
date	96.02.09.02.21.25;	author mycroft;	state Exp;
branches;
next	1.63;

1.63
date	96.02.03.00.44.02;	author mycroft;	state Exp;
branches;
next	1.62;

1.62
date	96.02.02.20.09.06;	author mycroft;	state Exp;
branches;
next	1.61;

1.61
date	96.02.02.02.36.34;	author mycroft;	state Exp;
branches;
next	1.60;

1.60
date	96.02.01.22.30.32;	author mycroft;	state Exp;
branches;
next	1.59;

1.59
date	95.10.10.05.58.00;	author mycroft;	state Exp;
branches;
next	1.58;

1.58
date	95.09.19.23.25.29;	author thorpej;	state Exp;
branches;
next	1.57;

1.57
date	95.07.24.03.30.07;	author mycroft;	state Exp;
branches;
next	1.56;

1.56
date	95.06.24.20.39.42;	author christos;	state Exp;
branches;
next	1.55;

1.55
date	95.05.16.22.24.50;	author jtc;	state Exp;
branches;
next	1.54;

1.54
date	95.04.17.12.06.30;	author cgd;	state Exp;
branches;
next	1.53;

1.53
date	95.04.17.07.30.54;	author cgd;	state Exp;
branches;
next	1.52;

1.52
date	95.03.23.19.46.50;	author jtc;	state Exp;
branches;
next	1.51;

1.51
date	94.12.06.06.07.39;	author mycroft;	state Exp;
branches;
next	1.50;

1.50
date	94.11.04.01.22.26;	author mycroft;	state Exp;
branches;
next	1.49;

1.49
date	94.11.04.00.02.39;	author mycroft;	state Exp;
branches;
next	1.48;

1.48
date	94.11.04.00.01.19;	author mycroft;	state Exp;
branches;
next	1.47;

1.47
date	94.10.28.17.05.29;	author mycroft;	state Exp;
branches;
next	1.46;

1.46
date	94.10.27.04.14.54;	author cgd;	state Exp;
branches;
next	1.45;

1.45
date	94.06.15.16.46.39;	author mycroft;	state Exp;
branches;
next	1.44;

1.44
date	94.06.15.02.13.47;	author deraadt;	state Exp;
branches;
next	1.43;

1.43
date	94.06.08.07.51.48;	author mycroft;	state Exp;
branches;
next	1.42;

1.42
date	94.05.23.10.18.52;	author mycroft;	state Exp;
branches;
next	1.41;

1.41
date	94.04.16.08.38.08;	author cgd;	state Exp;
branches;
next	1.40;

1.40
date	94.01.28.08.43.10;	author cgd;	state Exp;
branches;
next	1.39;

1.39
date	94.01.05.16.03.32;	author mycroft;	state Exp;
branches;
next	1.38;

1.38
date	93.12.30.06.56.48;	author deraadt;	state Exp;
branches;
next	1.37;

1.37
date	93.12.18.04.23.04;	author mycroft;	state Exp;
branches;
next	1.36;

1.36
date	93.12.15.01.06.55;	author deraadt;	state Exp;
branches;
next	1.35;

1.35
date	93.10.18.14.35.45;	author pk;	state Exp;
branches;
next	1.34;

1.34
date	93.10.17.20.56.09;	author pk;	state Exp;
branches;
next	1.33;

1.33
date	93.10.13.06.43.17;	author cgd;	state Exp;
branches;
next	1.32;

1.32
date	93.10.09.00.31.21;	author cgd;	state Exp;
branches;
next	1.31;

1.31
date	93.10.06.21.19.11;	author cgd;	state Exp;
branches;
next	1.30;

1.30
date	93.09.13.15.28.23;	author brezak;	state Exp;
branches;
next	1.29;

1.29
date	93.09.11.00.14.13;	author jtc;	state Exp;
branches;
next	1.28;

1.28
date	93.08.29.12.48.10;	author brezak;	state Exp;
branches
	1.28.2.1;
next	1.27;

1.27
date	93.08.27.23.58.20;	author brezak;	state Exp;
branches;
next	1.26;

1.26
date	93.07.31.15.26.37;	author mycroft;	state Exp;
branches;
next	1.25;

1.25
date	93.07.19.16.52.16;	author mycroft;	state Exp;
branches
	1.25.2.1;
next	1.24;

1.24
date	93.07.18.21.26.34;	author mycroft;	state Exp;
branches;
next	1.23;

1.23
date	93.07.18.16.44.16;	author cgd;	state Exp;
branches;
next	1.22;

1.22
date	93.07.18.10.08.22;	author mycroft;	state Exp;
branches;
next	1.21;

1.21
date	93.07.18.09.48.49;	author mycroft;	state Exp;
branches;
next	1.20;

1.20
date	93.07.18.09.47.40;	author mycroft;	state Exp;
branches;
next	1.19;

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

1.18
date	93.07.12.11.58.27;	author cgd;	state Exp;
branches;
next	1.17;

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

1.16
date	93.06.18.02.03.34;	author brezak;	state Exp;
branches;
next	1.15;

1.15
date	93.06.11.02.59.54;	author cgd;	state Exp;
branches;
next	1.14;

1.14
date	93.06.06.23.29.03;	author cgd;	state Exp;
branches;
next	1.13;

1.13
date	93.06.06.04.15.38;	author cgd;	state Exp;
branches;
next	1.12;

1.12
date	93.05.24.11.04.52;	author cgd;	state Exp;
branches;
next	1.11;

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

1.10
date	93.05.17.09.10.36;	author cgd;	state Exp;
branches;
next	1.9;

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

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

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

1.6
date	93.04.28.05.29.08;	author cgd;	state Exp;
branches;
next	1.5;

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

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

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

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

1.1
date	93.03.21.09.45.37;	author cgd;	state Exp;
branches
	1.1.1.1;
next	;

1.194.10.1
date	2020.04.16.08.46.34;	author bouyer;	state Exp;
branches;
next	;
commitid	EHiLAyAEgTwmsA4C;

1.193.2.1
date	2019.06.10.22.06.20;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.189.2.1
date	2018.04.16.01.59.54;	author pgoyette;	state Exp;
branches;
next	1.189.2.2;
commitid	qk3nktk0szmTIByA;

1.189.2.2
date	2018.04.22.07.20.17;	author pgoyette;	state Exp;
branches;
next	1.189.2.3;
commitid	W6xykws0Zbl4kpzA;

1.189.2.3
date	2018.06.25.07.25.42;	author pgoyette;	state Exp;
branches;
next	1.189.2.4;
commitid	8PtAu9af7VvhiDHA;

1.189.2.4
date	2018.09.30.01.45.44;	author pgoyette;	state Exp;
branches;
next	;
commitid	SQ44grEPCeKPh4UA;

1.185.10.1
date	2018.04.11.14.23.30;	author martin;	state Exp;
branches;
next	;
commitid	q9ShjU00H40q12yA;

1.183.2.1
date	2015.09.22.12.05.44;	author skrll;	state Exp;
branches;
next	1.183.2.2;

1.183.2.2
date	2017.08.28.17.51.40;	author skrll;	state Exp;
branches;
next	;
commitid	UQQpnjvcNkUZn05A;

1.181.2.1
date	2014.08.10.06.53.59;	author tls;	state Exp;
branches;
next	;

1.178.2.1
date	2014.05.18.17.45.12;	author rmind;	state Exp;
branches;
next	;

1.176.6.1
date	2012.11.20.03.01.26;	author tls;	state Exp;
branches;
next	1.176.6.2;

1.176.6.2
date	2014.08.20.00.03.06;	author tls;	state Exp;
branches;
next	1.176.6.3;

1.176.6.3
date	2017.12.03.11.36.17;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.175.2.1
date	2012.04.17.00.06.28;	author yamt;	state Exp;
branches;
next	1.175.2.2;

1.175.2.2
date	2012.10.30.17.19.48;	author yamt;	state Exp;
branches;
next	1.175.2.3;

1.175.2.3
date	2014.05.22.11.39.51;	author yamt;	state Exp;
branches;
next	;

1.175.6.1
date	2012.02.18.07.32.19;	author mrg;	state Exp;
branches;
next	;

1.171.2.1
date	2011.06.23.14.19.14;	author cherry;	state Exp;
branches;
next	;

1.168.2.1
date	2011.06.06.09.05.47;	author jruoho;	state Exp;
branches;
next	;

1.166.2.1
date	2010.08.17.06.44.35;	author uebayasi;	state Exp;
branches;
next	;

1.166.4.1
date	2011.03.05.20.50.38;	author rmind;	state Exp;
branches;
next	1.166.4.2;

1.166.4.2
date	2011.05.31.03.04.03;	author rmind;	state Exp;
branches;
next	1.166.4.3;

1.166.4.3
date	2011.06.12.00.23.58;	author rmind;	state Exp;
branches;
next	;

1.162.2.1
date	2009.05.13.17.17.49;	author jym;	state Exp;
branches;
next	1.162.2.2;

1.162.2.2
date	2009.11.01.13.58.20;	author jym;	state Exp;
branches;
next	1.162.2.3;

1.162.2.3
date	2011.03.28.23.04.39;	author jym;	state Exp;
branches;
next	1.162.2.4;

1.162.2.4
date	2011.03.29.20.42.58;	author jym;	state Exp;
branches;
next	1.162.2.5;

1.162.2.5
date	2011.08.27.15.37.24;	author jym;	state Exp;
branches;
next	;

1.159.2.1
date	2009.01.19.13.16.15;	author skrll;	state Exp;
branches;
next	1.159.2.2;

1.159.2.2
date	2009.03.03.18.28.59;	author skrll;	state Exp;
branches;
next	1.159.2.3;

1.159.2.3
date	2009.04.28.07.34.07;	author skrll;	state Exp;
branches;
next	;

1.159.4.1
date	2009.08.07.18.33.48;	author snj;	state Exp;
branches;
next	;

1.159.8.1
date	2010.04.21.00.33.50;	author matt;	state Exp;
branches;
next	;

1.158.6.1
date	2009.01.17.13.28.03;	author mjf;	state Exp;
branches;
next	;

1.158.10.1
date	2009.05.04.08.11.15;	author yamt;	state Exp;
branches;
next	1.158.10.2;

1.158.10.2
date	2010.03.11.15.02.27;	author yamt;	state Exp;
branches;
next	1.158.10.3;

1.158.10.3
date	2010.08.11.22.52.10;	author yamt;	state Exp;
branches;
next	;

1.158.16.1
date	2008.12.13.01.13.13;	author haad;	state Exp;
branches;
next	;

1.154.2.1
date	2008.01.02.21.48.10;	author bouyer;	state Exp;
branches;
next	1.154.2.2;

1.154.2.2
date	2008.01.08.22.09.55;	author bouyer;	state Exp;
branches;
next	1.154.2.3;

1.154.2.3
date	2008.01.19.12.14.17;	author bouyer;	state Exp;
branches;
next	;

1.153.2.1
date	2007.12.26.19.42.13;	author ad;	state Exp;
branches;
next	;

1.153.4.1
date	2007.12.11.15.20.29;	author yamt;	state Exp;
branches;
next	;

1.152.2.1
date	2007.12.08.18.17.07;	author mjf;	state Exp;
branches;
next	1.152.2.2;

1.152.2.2
date	2007.12.27.00.43.01;	author mjf;	state Exp;
branches;
next	1.152.2.3;

1.152.2.3
date	2008.02.18.21.04.37;	author mjf;	state Exp;
branches;
next	;

1.150.8.1
date	2007.09.09.20.08.30;	author jmcneill;	state Exp;
branches;
next	1.150.8.2;

1.150.8.2
date	2007.09.09.20.11.42;	author christos;	state Exp;
branches;
next	1.150.8.3;

1.150.8.3
date	2007.09.10.20.36.28;	author joerg;	state Exp;
branches;
next	1.150.8.4;

1.150.8.4
date	2007.09.24.16.33.01;	author joerg;	state Exp;
branches;
next	1.150.8.5;

1.150.8.5
date	2007.10.26.15.42.32;	author joerg;	state Exp;
branches;
next	1.150.8.6;

1.150.8.6
date	2007.12.03.16.14.01;	author joerg;	state Exp;
branches;
next	;

1.150.10.1
date	2007.11.06.23.17.16;	author matt;	state Exp;
branches;
next	1.150.10.2;

1.150.10.2
date	2008.01.09.01.46.29;	author matt;	state Exp;
branches;
next	1.150.10.3;

1.150.10.3
date	2008.03.23.02.04.06;	author matt;	state Exp;
branches;
next	;

1.150.14.1
date	2007.11.13.15.58.31;	author bouyer;	state Exp;
branches;
next	;

1.149.12.1
date	2007.06.09.23.55.09;	author ad;	state Exp;
branches;
next	1.149.12.2;

1.149.12.2
date	2007.12.03.18.36.30;	author ad;	state Exp;
branches;
next	;

1.149.14.1
date	2007.07.11.19.59.52;	author mjf;	state Exp;
branches;
next	;

1.149.20.1
date	2007.06.26.18.12.36;	author garbled;	state Exp;
branches;
next	;

1.148.2.1
date	2006.08.27.06.32.46;	author riz;	state Exp;
branches;
next	;

1.145.2.1
date	2006.07.13.17.48.52;	author gdamore;	state Exp;
branches;
next	;

1.144.2.1
date	2006.06.19.03.44.03;	author chap;	state Exp;
branches;
next	;

1.142.4.1
date	2006.09.09.02.39.53;	author rpaulo;	state Exp;
branches;
next	;

1.142.6.1
date	2006.02.04.15.08.44;	author simonb;	state Exp;
branches;
next	1.142.6.2;

1.142.6.2
date	2006.04.22.11.37.32;	author simonb;	state Exp;
branches;
next	;

1.142.8.1
date	2006.04.11.11.53.27;	author yamt;	state Exp;
branches;
next	1.142.8.2;

1.142.8.2
date	2006.06.26.12.44.39;	author yamt;	state Exp;
branches;
next	1.142.8.3;

1.142.8.3
date	2006.08.11.15.41.53;	author yamt;	state Exp;
branches;
next	1.142.8.4;

1.142.8.4
date	2006.09.03.15.22.58;	author yamt;	state Exp;
branches;
next	;

1.142.10.1
date	2006.04.19.02.32.44;	author elad;	state Exp;
branches;
next	;

1.142.12.1
date	2006.05.24.15.47.57;	author tron;	state Exp;
branches;
next	;

1.139.2.1
date	2006.06.21.14.52.10;	author yamt;	state Exp;
branches;
next	1.139.2.2;

1.139.2.2
date	2006.12.30.20.46.05;	author yamt;	state Exp;
branches;
next	1.139.2.3;

1.139.2.3
date	2007.09.03.14.26.34;	author yamt;	state Exp;
branches;
next	1.139.2.4;

1.139.2.4
date	2007.10.27.11.26.27;	author yamt;	state Exp;
branches;
next	1.139.2.5;

1.139.2.5
date	2007.12.07.17.24.56;	author yamt;	state Exp;
branches;
next	1.139.2.6;

1.139.2.6
date	2008.01.21.09.36.52;	author yamt;	state Exp;
branches;
next	1.139.2.7;

1.139.2.7
date	2008.02.04.09.22.02;	author yamt;	state Exp;
branches;
next	;

1.139.4.1
date	2005.10.26.08.32.44;	author yamt;	state Exp;
branches;
next	;

1.136.4.1
date	2005.04.29.11.28.12;	author kent;	state Exp;
branches;
next	;

1.136.6.1
date	2005.03.19.08.33.01;	author yamt;	state Exp;
branches;
next	;

1.133.2.1
date	2004.04.18.02.21.57;	author jmc;	state Exp;
branches;
next	1.133.2.2;

1.133.2.2
date	2004.07.15.19.26.49;	author he;	state Exp;
branches
	1.133.2.2.2.1;
next	;

1.133.2.2.2.1
date	2005.02.06.07.45.25;	author jmc;	state Exp;
branches;
next	;

1.131.2.1
date	2004.08.03.10.35.47;	author skrll;	state Exp;
branches;
next	1.131.2.2;

1.131.2.2
date	2004.09.18.14.35.22;	author skrll;	state Exp;
branches;
next	1.131.2.3;

1.131.2.3
date	2004.09.21.13.16.38;	author skrll;	state Exp;
branches;
next	1.131.2.4;

1.131.2.4
date	2005.04.01.14.27.39;	author skrll;	state Exp;
branches;
next	1.131.2.5;

1.131.2.5
date	2005.11.10.13.56.32;	author skrll;	state Exp;
branches;
next	;

1.123.2.1
date	2002.06.04.21.39.10;	author thorpej;	state dead;
branches;
next	1.123.2.2;

1.123.2.2
date	2002.06.04.21.39.11;	author thorpej;	state Exp;
branches;
next	;

1.122.10.1
date	2002.07.14.17.47.54;	author gehenna;	state Exp;
branches;
next	;

1.117.2.1
date	2001.11.12.21.17.03;	author thorpej;	state Exp;
branches;
next	;

1.116.2.1
date	2002.01.10.19.44.31;	author thorpej;	state Exp;
branches;
next	1.116.2.2;

1.116.2.2
date	2002.06.23.17.37.21;	author jdolecek;	state Exp;
branches;
next	;

1.112.2.1
date	2001.06.21.19.25.19;	author nathanw;	state Exp;
branches;
next	1.112.2.2;

1.112.2.2
date	2001.11.14.19.12.44;	author nathanw;	state Exp;
branches;
next	1.112.2.3;

1.112.2.3
date	2002.01.08.00.25.14;	author nathanw;	state Exp;
branches;
next	1.112.2.4;

1.112.2.4
date	2002.06.20.03.39.07;	author nathanw;	state Exp;
branches;
next	1.112.2.5;

1.112.2.5
date	2002.11.11.21.58.54;	author nathanw;	state Exp;
branches;
next	1.112.2.6;

1.112.2.6
date	2002.12.11.06.00.50;	author thorpej;	state Exp;
branches;
next	1.112.2.7;

1.112.2.7
date	2002.12.19.00.33.46;	author thorpej;	state Exp;
branches;
next	;

1.99.2.1
date	2000.11.20.20.09.17;	author bouyer;	state Exp;
branches;
next	1.99.2.2;

1.99.2.2
date	2001.01.05.17.34.28;	author bouyer;	state Exp;
branches;
next	1.99.2.3;

1.99.2.3
date	2001.02.11.19.10.53;	author bouyer;	state Exp;
branches;
next	;

1.97.2.1
date	2000.02.19.00.20.18;	author he;	state Exp;
branches;
next	;

1.97.4.1
date	99.08.02.19.50.31;	author thorpej;	state Exp;
branches;
next	;

1.86.2.1
date	97.11.12.23.45.32;	author thorpej;	state Exp;
branches;
next	;

1.83.2.1
date	97.10.14.09.09.30;	author thorpej;	state Exp;
branches;
next	;

1.80.4.1
date	97.03.12.14.34.38;	author is;	state Exp;
branches;
next	;

1.77.2.1
date	97.01.30.05.46.22;	author thorpej;	state Exp;
branches;
next	;

1.67.4.1
date	97.03.04.14.57.11;	author mycroft;	state Exp;
branches;
next	;

1.28.2.1
date	93.09.14.17.28.05;	author mycroft;	state Exp;
branches;
next	1.28.2.2;

1.28.2.2
date	93.10.09.08.55.41;	author mycroft;	state Exp;
branches;
next	1.28.2.3;

1.28.2.3
date	93.10.09.09.14.19;	author mycroft;	state Exp;
branches;
next	1.28.2.4;

1.28.2.4
date	93.12.04.07.28.01;	author cgd;	state Exp;
branches;
next	1.28.2.5;

1.28.2.5
date	94.02.01.20.48.30;	author mycroft;	state Exp;
branches;
next	;

1.25.2.1
date	93.07.19.16.52.16;	author mycroft;	state dead;
branches;
next	1.25.2.2;

1.25.2.2
date	93.07.19.16.52.17;	author mycroft;	state Exp;
branches;
next	;

1.1.1.1
date	93.03.21.09.45.37;	author cgd;	state Exp;
branches;
next	;


desc
@@


1.197
log
@Explicitly set -z noseparate-code because the default is about to change
and the boot blocks might not be able to load binaries with more than two
PT_LOAD sections.
@
text
@#	$NetBSD: Makefile.i386,v 1.196 2020/05/11 15:15:15 joerg Exp $

# Makefile for NetBSD
#
# This makefile is constructed from a machine description:
#	config machineid
# Most changes should be made in the machine description
#	/sys/arch/i386/conf/``machineid''
# after which you should do
#	config machineid
# Machine generic makefile changes should be made in
#	/sys/arch/i386/conf/Makefile.i386
# after which config should be rerun for all machines of that type.
#
# To specify debugging, add the config line: makeoptions DEBUG="-g"
# A better way is to specify -g only for a few files.
#
#	makeoptions DEBUGLIST="uvm* trap if_*"

NOSANITIZER=	# defined
MACHINE_ARCH=	i386
USETOOLS?=	no
NEED_OWN_INSTALL_TARGET?=no
.include <bsd.own.mk>

USE_SSP?=	yes

##
## (1) port identification
##
I386=		$S/arch/i386
GENASSYM_CONF=	${I386}/i386/genassym.cf

##
## (2) compile settings
##
DEFCOPTS=	-O2 -fno-omit-frame-pointer
CPPFLAGS+=	-Di386
CFLAGS+=	-msoft-float
## no-sse implies no-sse2 but not no-avx
CFLAGS+=	-mno-mmx -mno-sse -mno-avx

.if ${SPECTRE_V2_GCC_MITIGATION:U0} > 0
CFLAGS+=	${${ACTIVE_CC} == "gcc" :? -mindirect-branch=thunk :}
CFLAGS+=	${${ACTIVE_CC} == "gcc" :? -mindirect-branch-register :}
.endif
EXTRA_INCLUDES= -I$S/external/mit/xen-include-public/dist/
EXTRA_LINKFLAGS= -z noseparate-code

##
## (3) libkern and compat
##
OPT_MODULAR=	%MODULAR%

##
## (4) local objects, compile rules, and dependencies
##
MD_OBJS=	locore.o copy.o spl.o vector.o lock_stubs.o
MD_CFILES=
MD_SFILES=	${I386}/i386/locore.S ${I386}/i386/copy.S ${I386}/i386/spl.S \
		${I386}/i386/vector.S ${I386}/i386/lock_stubs.S

locore.o: ${I386}/i386/locore.S assym.h
	${NORMAL_S}

copy.o: ${I386}/i386/copy.S assym.h
	${NORMAL_S}

spl.o: ${I386}/i386/spl.S assym.h
	${NORMAL_S}

vector.o: ${I386}/i386/vector.S assym.h
	${NORMAL_S}

lock_stubs.o: ${I386}/i386/lock_stubs.S assym.h
	${NORMAL_S}

##
## (5) link settings
##
TEXTADDR?=	c0100000
LINKFLAGS_NORMAL=	-X
KERNLDSCRIPT?=	${I386}/conf/kern.ldscript

##
## (6) port specific target dependencies
##

i386func.o: assym.h
linux_sigcode.o lock_stubs.o: assym.h
cpufunc.o cpu_in_cksum.o pnpbioscall.o bioscall.o: assym.h
mptramp.o: assym.h
acpi_wakeup_low.o busfunc.o: assym.h

##
## (7) misc settings
##

.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN::
	-@@rm -f i386 && \
		ln -s $S/arch/i386/include i386
.endif

##
## (8) config(8) generated machinery
##
%INCLUDES

%OBJS

%CFILES

%SFILES

%LOAD

%RULES

##
## (9) port independent kernel machinery
##
.include "$S/conf/Makefile.kern.inc"

## Include rules for ACPI wakecode
.include "$S/arch/x86/acpi/Makefile.wakecode.inc"

##
## (10) Appending make options.
##
%MAKEOPTIONSAPPEND
@


1.196
log
@Fix GCC flags for Spectre mitigation to really only apply to GCC.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.195 2020/04/25 15:26:16 bouyer Exp $
d48 1
@


1.195
log
@Merge the bouyer-xenpvh branch, bringing in Xen PV drivers support under HVM
guests in GENERIC.
Xen support can be disabled at runtime with
boot -c
disable hypervisor
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.194.10.1 2020/04/16 08:46:34 bouyer Exp $
d43 3
a45 3
.if ${SPECTRE_V2_GCC_MITIGATION:U0} > 0 && ${HAVE_GCC:U0} > 0
CFLAGS+=	-mindirect-branch=thunk
CFLAGS+=	-mindirect-branch-register
@


1.194
log
@- Determine KERN_AS automatically depending on whether OPT_MODULAR is
  set or not, in the same way as libcompat.

- Specify OPT_MODULAR in the port Makefile instead of KERN_AS.

Now, KERN_AS=library is used for kernels without module(7) for all ports.

OK christos
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.193 2018/06/05 00:58:42 christos Exp $
d47 1
@


1.194.10.1
log
@Reorganise sources to make it possible to include Xen PVHVM support in
native kernels. Among others:
- move xen/include/amd64/hypercall.h to amd64/include/xen and
  xen/include/i386/hypercall.h to i386/include/xen
- exclude some native files from the build for xenpv
- add xen to "machine" config statement for amd64 and i386
- split arch/xen/conf/files.xen to arch/xen/conf/files.xen (for pv drivers)
  and arch/xen/conf/files.xen.pv (for full pv support)
- add GENERIC_XENHVM kernel config which includes GENERIC and add Xen PV
  drivers.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.194 2018/09/22 12:24:02 rin Exp $
a46 1
EXTRA_INCLUDES= -I$S/external/mit/xen-include-public/dist/
@


1.193
log
@No need for NORELRO here.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.192 2018/06/04 20:28:44 christos Exp $
a51 5
.if !empty(OPT_MODULAR)
KERN_AS=	obj
.else
KERN_AS=	library
.endif
@


1.193.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.194 2018/09/22 12:24:02 rin Exp $
d52 5
@


1.192
log
@Disable RELRO/SANITIZER
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.191 2018/04/18 10:40:22 martin Exp $
a20 1
NORELRO=	# defined
@


1.191
log
@Make SPECTRE_V2_GCC_MITIGATION overridable at the make command line.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.190 2018/04/07 19:38:06 mrg Exp $
d20 2
@


1.190
log
@add an SPECTRE_V2_GCC_MITIGATION option to x86 kernels, that turns
on the GCC spectre v2 mitigation options.

XXX: pullup-8.
XXX: turn on in all kernels.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.189 2018/02/23 14:16:52 maxv Exp $
d42 1
a42 1
.if !empty(SPECTRE_V2_GCC_MITIGATION) && ${HAVE_GCC:U0} > 0
@


1.189
log
@Revert previous, we'll need something better (and compatible with Clang).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.188 2018/02/23 09:00:55 maxv Exp $
d42 5
@


1.189.2.1
log
@Sync with HEAD, resolve some conflicts
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.190 2018/04/07 19:38:06 mrg Exp $
a41 5
.if !empty(SPECTRE_V2_GCC_MITIGATION) && ${HAVE_GCC:U0} > 0
CFLAGS+=	-mindirect-branch=thunk
CFLAGS+=	-mindirect-branch-register
.endif

@


1.189.2.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.191 2018/04/18 10:40:22 martin Exp $
d42 1
a42 1
.if ${SPECTRE_V2_GCC_MITIGATION:U0} > 0 && ${HAVE_GCC:U0} > 0
@


1.189.2.3
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.193 2018/06/05 00:58:42 christos Exp $
a19 1
NOSANITIZER=	# defined
@


1.189.2.4
log
@Ssync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.194 2018/09/22 12:24:02 rin Exp $
d52 5
@


1.188
log
@Add -fno-shrink-wrap, to force GCC to push the frames at the very beginning
of the functions. Otherwise DDB is unable to display a correct stack trace
if a fault occurred in a function before the frame was pushed.

Discussed on tech-kern@@, flag suggested by Krister Walfridsson. Should fix
PR/52560.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.187 2017/12/10 14:29:47 christos Exp $
d38 1
a38 1
CFLAGS+=	-msoft-float -fno-shrink-wrap
@


1.187
log
@- Allow multiple .BEGIN targets
- Make their protection consistent
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.186 2017/08/09 19:11:13 maxv Exp $
d38 1
a38 1
CFLAGS+=	-msoft-float
@


1.186
log
@Remove several dead entries from the x86 makefiles. Looks like people (me
included) regularly forget to take care of this.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.185 2015/08/24 14:04:24 uebayasi Exp $
d97 2
a98 2
.BEGIN:
	@@rm -f i386 && \
@


1.185
log
@Define ${LINKSCRIPT} in one place.
@
text
@d1 1
a1 1
#	$NetBSD$
d86 2
a87 2
freebsd_sigcode.o i386func.o ibcs2_sigcode.o linux_support.o: assym.h
linux_sigcode.o lock_stubs.o svr4_sigcode.o mach_sigcode.o: assym.h
@


1.185.10.1
log
@Pull up following revision(s) (requested by mrg in ticket #731):
	sys/arch/i386/conf/files.i386: revision 1.392
	sys/arch/i386/conf/GENERIC: revision 1.1175
	sys/arch/i386/conf/GENERIC: revision 1.1176
	sys/arch/amd64/conf/files.amd64: revision 1.102
	sys/arch/i386/conf/GENERIC: revision 1.1177
	share/man/man4/options.4: revision 1.485 (patch)
	sys/arch/i386/conf/Makefile.i386: revision 1.190
	sys/arch/amd64/conf/GENERIC: revision 1.487
	sys/arch/amd64/conf/ALL: revision 1.85
	sys/arch/amd64/conf/GENERIC: revision 1.488
	sys/arch/amd64/conf/GENERIC: revision 1.489
	sys/arch/amd64/conf/Makefile.amd64: revision 1.67
	sys/arch/i386/conf/ALL: revision 1.437

add an SPECTRE_V2_GCC_MITIGATION option to x86 kernels, that turns
on the GCC spectre v2 mitigation options.
XXX: pullup-8.
XXX: turn on in all kernels.

actually do what the previous change said:
don't turn on the new 'SPECTRE_V2_GCC_MITIGATION' option yet.

turn on GCC spectre v2 mitigation options.
XXX: amd64 ALL doesn't build for me right now
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.185 2015/08/24 14:04:24 uebayasi Exp $
a41 5
.if !empty(SPECTRE_V2_GCC_MITIGATION) && ${HAVE_GCC:U0} > 0
CFLAGS+=	-mindirect-branch=thunk
CFLAGS+=	-mindirect-branch-register
.endif

@


1.184
log
@${KERN_LDSCRIPT} -> ${KERNLDSCRIPT}
@
text
@a80 1
LINKSCRIPT=	-T ${KERNLDSCRIPT}
@


1.183
log
@Use LINKSCRIPT.
@
text
@d80 2
a81 2
KERN_LDSCRIPT?=	kern.ldscript
LINKSCRIPT=	-T ${I386}/conf/${KERN_LDSCRIPT}
@


1.183.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.185 2015/08/24 14:04:24 uebayasi Exp $
d80 2
a81 1
KERNLDSCRIPT?=	${I386}/conf/kern.ldscript
@


1.183.2.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.183.2.1 2015/09/22 12:05:44 skrll Exp $
d86 2
a87 2
i386func.o: assym.h
linux_sigcode.o lock_stubs.o: assym.h
@


1.182
log
@Now that GCC 4.8 on i486 has stolen the frame pointer, do like amd64 and
add -fno-omit-frame-pointer to kernel DEFCOPTS and modules CFLAGS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.181 2014/02/07 00:25:45 joerg Exp $
d81 1
a81 1
LINKFORMAT=	-T ${I386}/conf/${KERN_LDSCRIPT}
@


1.181
log
@Like amd64, use -msoft-float.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.180 2014/02/05 18:52:22 dsl Exp $
d36 1
@


1.181.2.1
log
@Rebase.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.182 2014/05/24 18:39:04 jakllsch Exp $
a35 1
DEFCOPTS=	-O2 -fno-omit-frame-pointer
@


1.180
log
@Change the compiler options to explicitly specify:
  -mno-mmx -mno-sse -mno-avx -mno-80387 -mno-fp-ret-in-387
Since no-sse implies no-sse2 that should ensure that the compiler really
  doesn't emit any instructions that might trap trying to use the FPU.
On amd64 at least some of those are needed to stop the compiler
  saving the registers to stack on every varargs function.
It might be that -mno-sse did that before.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.179 2014/01/15 22:25:22 joerg Exp $
d37 1
a37 1
CFLAGS+=        -mno-80387 -mno-fp-ret-in-387
@


1.179
log
@Reduce amount of -no-integrated-as on x86 as .code16 is now supported by
LLVM.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.178 2012/10/03 18:58:31 dsl Exp $
d37 3
a39 1
CFLAGS+=	-mno-sse -mno-sse2 -mno-sse3
@


1.178
log
@Remove all references to KVM86.
It was only ever used by APMBIOS - and then only if an option was selected.
Probably didn't work well at all!
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.177 2012/10/01 17:35:57 dsl Exp $
a38 4
AFLAGS.mptramp.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
AFLAGS.spl.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
AFLAGS.lock_stubs.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}

@


1.178.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.178 2012/10/03 18:58:31 dsl Exp $
d37 5
a41 3
CFLAGS+=	-msoft-float
## no-sse implies no-sse2 but not no-avx
CFLAGS+=	-mno-mmx -mno-sse -mno-avx
@


1.177
log
@apmcall.o no longer exists.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.176 2011/12/19 14:06:16 joerg Exp $
d92 1
a92 1
acpi_wakeup_low.o busfunc.o kvm86call.o: assym.h
@


1.176
log
@Move Clang-warning flags for ah_regdomain.c into sys/conf, they are
platform independent. Use the selective -Wno-* flags instead of
-Wno-error.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.175 2011/09/14 14:58:08 christos Exp $
d90 1
a90 1
apmcall.o cpufunc.o cpu_in_cksum.o pnpbioscall.o bioscall.o: assym.h
@


1.176.6.1
log
@Resync to 2012-11-19 00:00:00 UTC
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.178 2012/10/03 18:58:31 dsl Exp $
d90 1
a90 1
cpufunc.o cpu_in_cksum.o pnpbioscall.o bioscall.o: assym.h
d92 1
a92 1
acpi_wakeup_low.o busfunc.o: assym.h
@


1.176.6.2
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
a35 1
DEFCOPTS=	-O2 -fno-omit-frame-pointer
d37 5
a41 3
CFLAGS+=	-msoft-float
## no-sse implies no-sse2 but not no-avx
CFLAGS+=	-mno-mmx -mno-sse -mno-avx
@


1.176.6.3
log
@update from HEAD
@
text
@d80 2
a81 1
KERNLDSCRIPT?=	${I386}/conf/kern.ldscript
d87 2
a88 2
i386func.o: assym.h
linux_sigcode.o lock_stubs.o: assym.h
@


1.175
log
@include wakecode after so that the depend rules are defined!
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.174 2011/08/07 14:39:15 jakllsch Exp $
a39 1
CWARNFLAGS.ah_regdomain.c= ${${ACTIVE_CC} == "clang":?-Wno-error:}
@


1.175.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.175 2011/09/14 14:58:08 christos Exp $
d40 1
@


1.175.2.2
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.175.2.1 2012/04/17 00:06:28 yamt Exp $
d90 1
a90 1
cpufunc.o cpu_in_cksum.o pnpbioscall.o bioscall.o: assym.h
d92 1
a92 1
acpi_wakeup_low.o busfunc.o: assym.h
@


1.175.2.3
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.i386,v 1.175.2.2 2012/10/30 17:19:48 yamt Exp $
d37 5
a41 3
CFLAGS+=	-msoft-float
## no-sse implies no-sse2 but not no-avx
CFLAGS+=	-mno-mmx -mno-sse -mno-avx
@


1.175.6.1
log
@merge to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.176 2011/12/19 14:06:16 joerg Exp $
d40 1
@


1.174
log
@Try to ensure no SSE instructions are generated for kernel code,
as is already done on amd64.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.173 2011/07/04 16:20:45 joerg Exp $
a119 3
## Include rules for ACPI wakecode
.include "$S/arch/x86/acpi/Makefile.wakecode.inc"

d125 3
@


1.173
log
@Use integrated assembler with clang for Via PadLock.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.172 2011/06/10 03:19:25 joerg Exp $
d37 1
@


1.172
log
@Add a few more cases that need GNU as. One of the padlock instructions
is missing in LLVM. spl.S and lock_stubs.S break with patchfunc
otherwise.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.171 2011/05/30 15:06:32 joerg Exp $
a37 1
AFLAGS.via_padlock.c= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
@


1.171
log
@Disable -Werror for ah_regdomain.c if building with clang as workaround
for http://llvm.org/bugs/show_bug.cgi?id=10030.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.170 2011/05/20 13:22:53 joerg Exp $
d38 1
d41 2
@


1.171.2.1
log
@Catchup with rmind-uvmplock merge.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.172 2011/06/10 03:19:25 joerg Exp $
a37 1
AFLAGS.via_padlock.c= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
a39 2
AFLAGS.spl.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
AFLAGS.lock_stubs.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
@


1.170
log
@Use -x assembler-with-cpp from sys.mk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.169 2011/05/20 13:22:30 joerg Exp $
d39 1
@


1.169
log
@LLVM's assembler parser doesn't support .code16 yet, so disable it as
needed.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.168 2011/01/12 23:12:12 joerg Exp $
d37 1
a37 1
AFLAGS+=	-x assembler-with-cpp
@


1.168
log
@Allow use of traditional CPP to be set on a per platform base in sys.mk.
Honour this for dependency processing in bsd.dep.mk.  Switch i386 and
amd64 assembly to use ISO C90 preprocessor concat and drop the
-traditional-cpp on this platform.
@
text
@d1 1
a1 1
#	$NetBSD: src/sys/arch/i386/conf/Makefile.i386,v 1.167 2010-07-06 05:59:59 mrg Exp $
d38 1
@


1.168.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.171 2011/05/30 15:06:32 joerg Exp $
d37 1
a37 3

AFLAGS.mptramp.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
CWARNFLAGS.ah_regdomain.c= ${${ACTIVE_CC} == "clang":?-Wno-error:}
@


1.167
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.i386,v 1.166 2009/11/25 17:08:08 tron Exp $
d37 1
a37 1
AFLAGS+=	-x assembler-with-cpp -traditional-cpp
@


1.166
log
@Enable SSP (Stack Smash Protection) in x86 kernels by default (except
in i386 *TINY kernels). The NetBSD/i386 "ALL" kernel is unconditionally
compiled with SSP enabled.

Change approved by the core team.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.165 2009/03/15 05:45:32 tsutsui Exp $
a76 1
.if (${OBJECT_FMT} == "ELF")
a78 3
.else
LINKFORMAT=	-z
.endif
@


1.166.4.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD$
d37 1
a37 1
AFLAGS+=	-x assembler-with-cpp
d77 1
d80 3
@


1.166.4.2
log
@sync with head
@
text
@d37 1
a37 3

AFLAGS.mptramp.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
CWARNFLAGS.ah_regdomain.c= ${${ACTIVE_CC} == "clang":?-Wno-error:}
@


1.166.4.3
log
@sync with head
@
text
@a37 1
AFLAGS.via_padlock.c= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
a39 2
AFLAGS.spl.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
AFLAGS.lock_stubs.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
@


1.166.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD$
d77 1
d80 3
@


1.165
log
@Make sure to create i386 symlink on more generic targets.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.164 2009/02/15 01:58:01 cube Exp $
d25 2
@


1.164
log
@Convert the recently introduced awk command to retrieve the value of the
option MODULAR to using %MODULAR%.  While it is now possible to only
request the new version in the affected Makefiles, it is made mandatory for
everybody because I just fixed a bug in config(1) that would not make it
fail in the case of a syntax error in the Makefile template.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.163 2009/02/14 16:53:55 apb Exp $
d96 1
a96 5
# define .MAIN _before_ the make() check, so that implicit target
# would be defined
.MAIN: all

.if make(depend) || make(all) || make(dependall)
@


1.163
log
@Now that "options MODULAR" is handled via defflag, the Makefile
generated by config(1) in the kernel compile directory no longer
contains IDENT=-DMODULAR.  Instead, there's an opt_modular.h file that
might or might not contain "#define MODULAR 1".

Adapt to this by adding an OPT_MODULAR variable to relevant Makefiles,
set via an awk script that parses opt_modular.h.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.162 2008/12/11 05:27:42 alc Exp $
d40 1
a40 2
OPT_MODULAR != ${TOOL_AWK} '/^\#define[ \t]MODULAR/ {x=$$3} END {print x}' \
	opt_modular.h
@


1.162
log
@Clean-up makefile stub used to include in the build the binary HAL object
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.161 2008/11/27 01:57:40 joerg Exp $
d40 3
a42 1
.if !empty(IDENT:M-DMODULAR)
@


1.162.2.1
log
@Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.165 2009/03/15 05:45:32 tsutsui Exp $
d40 1
a40 2
OPT_MODULAR=	%MODULAR%
.if !empty(OPT_MODULAR)
d95 5
a99 1
.if !make(obj) && !make(clean) && !make(cleandir)
@


1.162.2.2
log
@Sync with HEAD.
@
text
@@


1.162.2.3
log
@Sync with HEAD. TODO before merge:
- shortcut for suspend code in sysmon, when powerd(8) is not running.
Borrow ``xs_watch'' thread context?
- bug hunting in xbd + xennet resume. Rings are currently thrashed upon
resume, so current implementation force flush them on suspend. It's not
really needed.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.168 2011/01/12 23:12:12 joerg Exp $
d35 1
a35 1
AFLAGS+=	-x assembler-with-cpp
@


1.162.2.4
log
@More sync fixes. And add the mbr_gpt files.
@
text
@a24 2
USE_SSP?=	yes

d75 1
d78 3
@


1.162.2.5
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.i386,v 1.174 2011/08/07 14:39:15 jakllsch Exp $
d37 1
a37 6
CFLAGS+=	-mno-sse -mno-sse2 -mno-sse3

AFLAGS.mptramp.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
CWARNFLAGS.ah_regdomain.c= ${${ACTIVE_CC} == "clang":?-Wno-error:}
AFLAGS.spl.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
AFLAGS.lock_stubs.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
@


1.161
log
@Another assym.h dependency.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.160 2008/11/13 10:51:23 ad Exp $
d120 1
a120 2
## Include rules for Atheros WLAN
.include "$S/contrib/dev/ath/netbsd/Makefile.ath.inc"
@


1.160
log
@LKM -> MODULAR
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.159 2008/10/26 06:56:39 mrg Exp $
d85 2
a86 2
freebsd_sigcode.o i386func.o ibcs2_sigcode.o linux_sigcode.o: assym.h
lock_stubs.o svr4_sigcode.o mach_sigcode.o: assym.h
@


1.159
log
@provide an i386/ symlink.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.158 2008/01/25 21:12:11 joerg Exp $
d40 1
a40 1
.if !empty(IDENT:M-DLKM)
@


1.159.8.1
log
@sync to netbsd-5
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.159.4.1 2009/08/07 18:33:48 snj Exp $
d120 2
a121 1
## Include rules for ACPI wakecode
@


1.159.4.1
log
@Pull up following revision(s) (requested by sborrill in ticket #905):
	sys/arch/alpha/conf/Makefile.alpha: revision 1.81
	sys/arch/amd64/conf/Makefile.amd64: revision 1.26
	sys/arch/i386/conf/Makefile.i386: revision 1.162
	sys/arch/macppc/conf/Makefile.macppc: revision 1.31
	sys/arch/mips/conf/Makefile.mips: revision 1.52
	sys/arch/sparc64/conf/Makefile.sparc64: revision 1.68
	sys/arch/xen/conf/Makefile.xen: revision 1.28
Clean-up makefile stub used to include in the build the binary HAL object
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.159 2008/10/26 06:56:39 mrg Exp $
d120 2
a121 1
## Include rules for ACPI wakecode
@


1.159.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.162 2008/12/11 05:27:42 alc Exp $
d40 1
a40 1
.if !empty(IDENT:M-DMODULAR)
d85 2
a86 2
freebsd_sigcode.o i386func.o ibcs2_sigcode.o linux_support.o: assym.h
linux_sigcode.o lock_stubs.o svr4_sigcode.o mach_sigcode.o: assym.h
d120 2
a121 1
## Include rules for ACPI wakecode
@


1.159.2.2
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.159.2.1 2009/01/19 13:16:15 skrll Exp $
d40 1
a40 2
OPT_MODULAR=	%MODULAR%
.if !empty(OPT_MODULAR)
@


1.159.2.3
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.159.2.2 2009/03/03 18:28:59 skrll Exp $
d96 5
a100 1
.if !make(obj) && !make(clean) && !make(cleandir)
@


1.158
log
@Refactor in_cksum/in4_cksum/in6_cksum implementations:
- All three functions are included in the kernel by default.
  They call a backend function cpu_in_cksum after possibly
  computing the checksum of the pseudo header.
- cpu_in_cksum is the core to implement the one-complement sum.
  The default implementation is moderate fast on most platforms
  and provides a 32bit accumulator with 16bit addends for L32 platforms
  and a 64bit accumulator with 32bit addends for L64 platforms.
  It handles edge cases like very large mbuf chains (could happen with
  native IPv6 in the future) and provides a good base for new native
  implementations.
- Modify i386 and amd64 assembly to use the new interface.

This disables the MD implementations on !x86 until the conversion is
done. For Alpha, the portable version is faster.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.157 2008/01/17 01:56:02 lukem Exp $
d95 10
@


1.158.10.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.158 2008/01/25 21:12:11 joerg Exp $
d40 1
a40 2
OPT_MODULAR=	%MODULAR%
.if !empty(OPT_MODULAR)
d85 2
a86 2
freebsd_sigcode.o i386func.o ibcs2_sigcode.o linux_support.o: assym.h
linux_sigcode.o lock_stubs.o svr4_sigcode.o mach_sigcode.o: assym.h
a94 6
.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
	@@rm -f i386 && \
		ln -s $S/arch/i386/include i386
.endif

d110 2
a111 1
## Include rules for ACPI wakecode
@


1.158.10.2
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.158.10.1 2009/05/04 08:11:15 yamt Exp $
a24 2
USE_SSP?=	yes

@


1.158.10.3
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.158.10.2 2010/03/11 15:02:27 yamt Exp $
d77 1
d80 3
@


1.158.6.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD$
d40 1
a40 1
.if !empty(IDENT:M-DMODULAR)
d85 2
a86 2
freebsd_sigcode.o i386func.o ibcs2_sigcode.o linux_support.o: assym.h
linux_sigcode.o lock_stubs.o svr4_sigcode.o mach_sigcode.o: assym.h
a94 10
# define .MAIN _before_ the make() check, so that implicit target
# would be defined
.MAIN: all

.if make(depend) || make(all) || make(dependall)
.BEGIN:
	@@rm -f i386 && \
		ln -s $S/arch/i386/include i386
.endif

d110 2
a111 1
## Include rules for ACPI wakecode
@


1.158.16.1
log
@Update haad-dm branch to haad-dm-base2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.162 2008/12/11 05:27:42 alc Exp $
d40 1
a40 1
.if !empty(IDENT:M-DMODULAR)
d85 2
a86 2
freebsd_sigcode.o i386func.o ibcs2_sigcode.o linux_support.o: assym.h
linux_sigcode.o lock_stubs.o svr4_sigcode.o mach_sigcode.o: assym.h
a94 10
# define .MAIN _before_ the make() check, so that implicit target
# would be defined
.MAIN: all

.if make(depend) || make(all) || make(dependall)
.BEGIN:
	@@rm -f i386 && \
		ln -s $S/arch/i386/include i386
.endif

d110 2
a111 1
## Include rules for ACPI wakecode
@


1.157
log
@Remove unnecessary references to config_time.h.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.156 2008/01/03 20:58:06 joerg Exp $
d87 1
a87 1
apmcall.o cpufunc.o in_cksum.o pnpbioscall.o bioscall.o: assym.h
@


1.156
log
@Missing assym.h dependency.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.155 2007/12/30 12:34:12 joerg Exp $
a89 1
clock.o: config_time.h
@


1.155
log
@i386func.S needs assym.h.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.154 2007/12/09 20:27:46 jmcneill Exp $
d86 1
a86 1
svr4_sigcode.o mach_sigcode.o: assym.h
@


1.154
log
@Merge jmcneill-pm branch.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.153 2007/12/02 04:24:44 christos Exp $
d85 1
a85 1
freebsd_sigcode.o ibcs2_sigcode.o linux_sigcode.o: assym.h
@


1.154.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD$
d85 1
a85 1
freebsd_sigcode.o i386func.o ibcs2_sigcode.o linux_sigcode.o: assym.h
@


1.154.2.2
log
@Sync with HEAD
@
text
@d86 1
a86 1
lock_stubs.o svr4_sigcode.o mach_sigcode.o: assym.h
@


1.154.2.3
log
@Sync with HEAD
@
text
@d90 1
@


1.153
log
@busfunc needs assym.h too.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.152 2007/10/24 06:26:56 joerg Exp $
d89 1
a89 1
busfunc.o kvm86call.o: assym.h
d113 1
@


1.153.2.1
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.154 2007/12/09 20:27:46 jmcneill Exp $
d89 1
a89 1
acpi_wakeup_low.o busfunc.o kvm86call.o: assym.h
a112 1
.include "$S/arch/x86/acpi/Makefile.wakecode.inc"
@


1.153.4.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.153 2007/12/02 04:24:44 christos Exp $
d89 1
a89 1
acpi_wakeup_low.o busfunc.o kvm86call.o: assym.h
a112 1
.include "$S/arch/x86/acpi/Makefile.wakecode.inc"
@


1.152
log
@cpufunc.S depends on assym.h.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.151 2007/10/17 19:54:43 garbled Exp $
d89 1
a89 1
kvm86call.o: assym.h
@


1.152.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.153 2007/12/02 04:24:44 christos Exp $
d89 1
a89 1
busfunc.o kvm86call.o: assym.h
@


1.152.2.2
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.154 2007/12/09 20:27:46 jmcneill Exp $
d89 1
a89 1
acpi_wakeup_low.o busfunc.o kvm86call.o: assym.h
a112 1
.include "$S/arch/x86/acpi/Makefile.wakecode.inc"
@


1.152.2.3
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.158 2008/01/25 21:12:11 joerg Exp $
d85 3
a87 3
freebsd_sigcode.o i386func.o ibcs2_sigcode.o linux_sigcode.o: assym.h
lock_stubs.o svr4_sigcode.o mach_sigcode.o: assym.h
apmcall.o cpufunc.o cpu_in_cksum.o pnpbioscall.o bioscall.o: assym.h
d90 1
@


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

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.149.20.1 2007/06/26 18:12:36 garbled Exp $
d87 1
a87 1
apmcall.o in_cksum.o pnpbioscall.o bioscall.o: assym.h
@


1.150
log
@lock_stubs.S depends on assym.h
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.149 2006/08/19 17:50:56 dsl Exp $
@


1.150.14.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD$
d87 1
a87 1
apmcall.o cpufunc.o in_cksum.o pnpbioscall.o bioscall.o: assym.h
@


1.150.10.1
log
@sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.152 2007/10/24 06:26:56 joerg Exp $
d87 1
a87 1
apmcall.o cpufunc.o in_cksum.o pnpbioscall.o bioscall.o: assym.h
@


1.150.10.2
log
@sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.150.10.1 2007/11/06 23:17:16 matt Exp $
d85 2
a86 2
freebsd_sigcode.o i386func.o ibcs2_sigcode.o linux_sigcode.o: assym.h
lock_stubs.o svr4_sigcode.o mach_sigcode.o: assym.h
d89 1
a89 1
acpi_wakeup_low.o busfunc.o kvm86call.o: assym.h
a112 1
.include "$S/arch/x86/acpi/Makefile.wakecode.inc"
@


1.150.10.3
log
@sync with HEAD
@
text
@d1 1
a1 1
#	Makefile.i386,v 1.150.10.2 2008/01/09 01:46:29 matt Exp
d87 1
a87 1
apmcall.o cpufunc.o cpu_in_cksum.o pnpbioscall.o bioscall.o: assym.h
d90 1
@


1.150.8.1
log
@acpi_wakeup_low.o depends on assym.h
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.150 2007/05/30 17:16:55 christos Exp $
a89 1
acpi_wakeup_low.o: assym.h
@


1.150.8.2
log
@acpi_wakeup_low.S needs assym.h
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.150.8.1 2007/09/09 20:08:30 jmcneill Exp $
a88 1
acpi_wakeup_low.o: assym.h
@


1.150.8.3
log
@Depending once is good enough.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.150.8.2 2007/09/09 20:11:42 christos Exp $
d91 1
@


1.150.8.4
log
@Generate the ACPI wakecode image dynamically at build time.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.150.8.3 2007/09/10 20:36:28 joerg Exp $
a113 1
.include "$S/arch/x86/acpi/Makefile.wakecode.inc"
@


1.150.8.5
log
@Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.150.8.4 2007/09/24 16:33:01 joerg Exp $
d87 1
a87 1
apmcall.o cpufunc.o in_cksum.o pnpbioscall.o bioscall.o: assym.h
@


1.150.8.6
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.150.8.5 2007/10/26 15:42:32 joerg Exp $
d89 2
a90 1
acpi_wakeup_low.o busfunc.o kvm86call.o: assym.h
@


1.149
log
@There is no need to compile machdep.c with -O2 anymore.
Fixed by changing the asm for lidt() in cpufunc.h
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.148 2006/07/31 18:40:41 christos Exp $
d49 1
a49 1
MD_OBJS=	locore.o copy.o spl.o vector.o
d52 1
a52 1
		${I386}/i386/vector.S
d66 3
@


1.149.14.1
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.150 2007/05/30 17:16:55 christos Exp $
d49 1
a49 1
MD_OBJS=	locore.o copy.o spl.o vector.o lock_stubs.o
d52 1
a52 1
		${I386}/i386/vector.S ${I386}/i386/lock_stubs.S
a65 3
lock_stubs.o: ${I386}/i386/lock_stubs.S assym.h
	${NORMAL_S}

@


1.149.20.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.150 2007/05/30 17:16:55 christos Exp $
d49 1
a49 1
MD_OBJS=	locore.o copy.o spl.o vector.o lock_stubs.o
d52 1
a52 1
		${I386}/i386/vector.S ${I386}/i386/lock_stubs.S
a65 3
lock_stubs.o: ${I386}/i386/lock_stubs.S assym.h
	${NORMAL_S}

@


1.149.12.1
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.149 2006/08/19 17:50:56 dsl Exp $
d49 1
a49 1
MD_OBJS=	locore.o copy.o spl.o vector.o lock_stubs.o
d52 1
a52 1
		${I386}/i386/vector.S ${I386}/i386/lock_stubs.S
a65 3
lock_stubs.o: ${I386}/i386/lock_stubs.S assym.h
	${NORMAL_S}

@


1.149.12.2
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.149.12.1 2007/06/09 23:55:09 ad Exp $
d87 1
a87 1
apmcall.o cpufunc.o in_cksum.o pnpbioscall.o bioscall.o: assym.h
d89 1
a89 1
busfunc.o kvm86call.o: assym.h
@


1.148
log
@mention the correct PR/33725
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.147 2006/07/31 17:07:27 christos Exp $
a91 2
# PR/33725: Misoptimization of machdep.c with -Os under gcc4
COPTS.machdep.c+=     -O2
@


1.148.2.1
log
@Pull up following revision(s) (requested by dsl in ticket #70):
	sys/arch/i386/conf/Makefile.i386: revision 1.149
There is no need to compile machdep.c with -O2 anymore.
Fixed by changing the asm for lidt() in cpufunc.h
@
text
@d1 1
a1 1
#	$NetBSD$
d92 2
@


1.147
log
@workaround for PR 33918
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.146 2006/07/04 18:41:41 christos Exp $
d92 1
a92 1
# PR/33918: Misoptimization of machdep.c with -Os under gcc4
@


1.146
log
@Another missed dependency.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.145 2006/06/07 22:37:57 kardel Exp $
d92 2
@


1.145
log
@convert to timecounters (from branch simonb-timecounters)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.144 2006/04/04 03:13:12 gdamore Exp $
d86 1
@


1.145.2.1
log
@Merge from HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.146 2006/07/04 18:41:41 christos Exp $
a85 1
kvm86call.o: assym.h
@


1.144
log
@Convert existing ath users to new Makefile, except for amd64, which needs
the rules due to needing to conditionally postprocess the HAL object file.

Macppc needs a a non-ELF HAL (EABI) object, so take care of that by default
in the atheros include file.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.143 2006/04/02 05:52:14 gdamore Exp $
d49 1
a49 1
MD_OBJS=	locore.o copy.o spl.o vector.o microtime.o
d52 1
a52 1
		${I386}/i386/vector.S ${I386}/i386/microtime.S
a65 3
microtime.o: ${I386}/i386/microtime.S assym.h
	${NORMAL_S}

@


1.144.2.1
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.145 2006/06/07 22:37:57 kardel Exp $
d49 1
a49 1
MD_OBJS=	locore.o copy.o spl.o vector.o
d52 1
a52 1
		${I386}/i386/vector.S
d66 3
@


1.143
log
@Reorganize ath layout as requested by sam@@ and suggested by dyoung@@ in
http://mail-index.netbsd.org/tech-net/2006/03/15/0000.html.

The new layout almost precisely matches FreeBSD, and should make
future imports much easier.

At the same time, import the current 0.9.16.16 HAL from FreeBSD.  According
to sam@@, this is the proper version we should be using.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.142 2005/12/11 12:17:40 christos Exp $
d110 2
a111 15
# XXX - Ugly, but make doesn't easily handle .o.uu (assumes it's a suffix)
# XXX - Also, config has no simple was to just add foo.o to the Makefile. 
#       It needs a pathname of some sort for "object"        
.if !empty(OBJS:M\/athhal-i386-elf.hal.o)
OBJS:=${OBJS:C/\/athhal-i386-elf.hal.o/athhal-i386-elf.hal.o/}
 
.PATH: $S/contrib/dev/ath/public
ATH_UUDEC?=	@@${_MKSHMSG} "uudecode ${.CURDIR:T}/${.TARGET}"; \
		${_MKSHECHO}\
		${UUDECODE} -p $> \> ${.TARGET}; \
		rm -f ${.TARGET}; \
		${UUDECODE} -p $> > ${.TARGET}
athhal-i386-elf.hal.o: i386-elf.hal.o.uu
	${ATH_UUDEC}
.endif
@


1.142
log
@merge ktrace-lwp.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.131.2.5 2005/11/10 13:56:32 skrll Exp $
d110 1
a110 1
# XXX - Ugly, but make doesn't easily handle .o.uue (assumes it's a suffix)
d116 1
a116 1
.PATH: $S/contrib/arch/i386/dev
d122 1
a122 1
athhal-i386-elf.hal.o: athhal-i386-elf.hal.o.uue
@


1.142.4.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.149 2006/08/19 17:50:56 dsl Exp $
d49 1
a49 1
MD_OBJS=	locore.o copy.o spl.o vector.o
d52 1
a52 1
		${I386}/i386/vector.S
d66 3
a88 1
kvm86call.o: assym.h
d110 15
a124 2
## Include rules for Atheros WLAN
.include "$S/contrib/dev/ath/netbsd/Makefile.ath.inc"
@


1.142.12.1
log
@Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
@
text
@d1 1
a1 1
#	$NetBSD$
d110 15
a124 2
## Include rules for Atheros WLAN
.include "$S/contrib/dev/ath/netbsd/Makefile.ath.inc"
@


1.142.10.1
log
@sync with head - hopefully this will work
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.144 2006/04/04 03:13:12 gdamore Exp $
d110 15
a124 2
## Include rules for Atheros WLAN
.include "$S/contrib/dev/ath/netbsd/Makefile.ath.inc"
@


1.142.8.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.142 2005/12/11 12:17:40 christos Exp $
d110 15
a124 2
## Include rules for Atheros WLAN
.include "$S/contrib/dev/ath/netbsd/Makefile.ath.inc"
@


1.142.8.2
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.142.8.1 2006/04/11 11:53:27 yamt Exp $
d49 1
a49 1
MD_OBJS=	locore.o copy.o spl.o vector.o
d52 1
a52 1
		${I386}/i386/vector.S
d66 3
@


1.142.8.3
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.142.8.2 2006/06/26 12:44:39 yamt Exp $
a85 1
kvm86call.o: assym.h
a90 2
# PR/33725: Misoptimization of machdep.c with -Os under gcc4
COPTS.machdep.c+=     -O2
@


1.142.8.4
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.142.8.3 2006/08/11 15:41:53 yamt Exp $
d92 2
@


1.142.6.1
log
@Don't need old i8254 microtime() with timecounters.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.142 2005/12/11 12:17:40 christos Exp $
d49 1
a49 1
MD_OBJS=	locore.o copy.o spl.o vector.o
d52 1
a52 1
		${I386}/i386/vector.S
d66 3
@


1.142.6.2
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.144 2006/04/04 03:13:12 gdamore Exp $
d107 15
a121 2
## Include rules for Atheros WLAN
.include "$S/contrib/dev/ath/netbsd/Makefile.ath.inc"
@


1.141
log
@some assym cleanup.
- move copyin and friends from locore.S to their own file, copy.S.
  share it between i386 and xen.
- defparam KERNBASE and kill KERNBASE_LOCORE hack.
- add more symbols to assym.h and use it where appropriate.
@
text
@d1 1
a1 1
#	$NetBSD$
@


1.140
log
@No need to create opt_ah.h in these makefiles, config(8) takes care
of it.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.139 2005/06/22 06:14:51 dyoung Exp $
d49 1
a49 1
MD_OBJS=	locore.o spl.o vector.o microtime.o
d51 1
a51 1
MD_SFILES=	${I386}/i386/locore.S ${I386}/i386/spl.S \
d57 3
@


1.139
log
@Resolve conflicts in importation of 18-May-2005 ath(4) / net80211(9)
from FreeBSD.  Introduce compatibility shims (sys/dev/ic/ath_netbsd.[ch],
sys/net80211/ieee80211_netbsd.[ch]).  Update drivers (an, atu, atw,
awi, ipw, iwi, rtw, wi) for the new net80211(9) API.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.138 2005/05/31 04:03:10 christos Exp $
a120 3
all depend:	opt_ah.h
opt_ah.h:	athhal-i386-elf.opt_ah.h
	ln -s ${.ALLSRC} ${.TARGET}
@


1.139.2.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.139 2005/06/22 06:14:51 dyoung Exp $
d49 1
a49 1
MD_OBJS=	locore.o copy.o spl.o vector.o
d51 2
a52 2
MD_SFILES=	${I386}/i386/locore.S ${I386}/i386/copy.S ${I386}/i386/spl.S \
		${I386}/i386/vector.S
d57 1
a57 1
copy.o: ${I386}/i386/copy.S assym.h
d60 1
a60 1
spl.o: ${I386}/i386/spl.S assym.h
d63 1
a63 1
vector.o: ${I386}/i386/vector.S assym.h
d107 18
a124 2
## Include rules for Atheros WLAN
.include "$S/contrib/dev/ath/netbsd/Makefile.ath.inc"
@


1.139.2.2
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.139.2.1 2006/06/21 14:52:10 yamt Exp $
a85 1
kvm86call.o: assym.h
@


1.139.2.3
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.139.2.2 2006/12/30 20:46:05 yamt Exp $
d49 1
a49 1
MD_OBJS=	locore.o copy.o spl.o vector.o lock_stubs.o
d52 1
a52 1
		${I386}/i386/vector.S ${I386}/i386/lock_stubs.S
a65 3
lock_stubs.o: ${I386}/i386/lock_stubs.S assym.h
	${NORMAL_S}

@


1.139.2.4
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.139.2.3 2007/09/03 14:26:34 yamt Exp $
d87 1
a87 1
apmcall.o cpufunc.o in_cksum.o pnpbioscall.o bioscall.o: assym.h
@


1.139.2.5
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.139.2.4 2007/10/27 11:26:27 yamt Exp $
d89 1
a89 1
busfunc.o kvm86call.o: assym.h
@


1.139.2.6
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.139.2.5 2007/12/07 17:24:56 yamt Exp $
d85 2
a86 2
freebsd_sigcode.o i386func.o ibcs2_sigcode.o linux_sigcode.o: assym.h
lock_stubs.o svr4_sigcode.o mach_sigcode.o: assym.h
d89 2
a90 1
acpi_wakeup_low.o busfunc.o kvm86call.o: assym.h
a112 1
.include "$S/arch/x86/acpi/Makefile.wakecode.inc"
@


1.139.2.7
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.139.2.6 2008/01/21 09:36:52 yamt Exp $
d87 1
a87 1
apmcall.o cpufunc.o cpu_in_cksum.o pnpbioscall.o bioscall.o: assym.h
@


1.139.4.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.139 2005/06/22 06:14:51 dyoung Exp $
d121 3
@


1.138
log
@s/GENASSYM/GENASSYM_CONF/ so we can use "GENASSYM" as the program name.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.137 2005/03/12 14:39:12 dsl Exp $
d110 2
a111 2
.if !empty(OBJS:M\/athhal-elf.o)
OBJS:=${OBJS:C/\/athhal-elf.o/athhal-elf.o/}
d113 1
a113 1
.PATH: $S/../contrib/sys/arch/i386/dev
d119 1
a119 1
athhal-elf.o: athhal-elf-o.uue
d121 3
@


1.137
log
@Use an archive library for libkern if we don't support LKMs.
Enough to get INSTALL_TINY small enough again.
Someone else can fix it next time...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.136 2004/07/15 03:35:20 atatat Exp $
d29 1
a29 1
GENASSYM=	${I386}/i386/genassym.cf
@


1.136
log
@Make uudecode into a tool that can be used to build a kernel and redo
the athhal-elf.o handling to take advantage of it.  This means that
bsd.files.mk is no longer included by Makefile.i386 so CFLAGS won't be
duplicated.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.135 2004/06/04 04:45:50 thorpej Exp $
d40 1
d42 3
@


1.136.4.1
log
@sync with -current
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.137 2005/03/12 14:39:12 dsl Exp $
a39 1
.if !empty(IDENT:M-DLKM)
a40 3
.else
KERN_AS=	library
.endif
@


1.136.6.1
log
@sync with head.  xen and whitespace.  xen part is not finished.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.136 2004/07/15 03:35:20 atatat Exp $
a39 1
.if !empty(IDENT:M-DLKM)
a40 3
.else
KERN_AS=	library
.endif
@


1.135
log
@Add the %MAKEOPTIONSAPPEND token at the end of the file, after the
common Makefile.kern.inc has been included.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.134 2004/04/15 15:02:17 he Exp $
a108 7
UUDECODE_FILES=athhal-elf-o
UUDECODE_FILES_RENAME_athhal-elf-o=athhal-elf.o

athhal-elf.o: athhal-elf-o

EXTRA_CLEAN+= athhal-elf-o

d110 7
a116 2

.include <bsd.files.mk>
@


1.134
log
@We need to also clean out athhal-elf-o, so that "make clean; make"
after an initial "make" will also (re)build athhal-elf.o.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.133 2004/03/25 23:32:10 jmc Exp $
d125 5
@


1.133
log
@Convert athhal-elf.o to a .uue and add appropriate make hooks to use it
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.132 2003/07/05 16:56:10 simonb Exp $
d114 2
@


1.133.2.1
log
@Pullup rev 1.134 (requested by he in ticket #148)

We need to also clean out athhal-elf-o, so that "make clean; make"
after an initial "make" will also (re)build athhal-elf.o.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.133 2004/03/25 23:32:10 jmc Exp $
a113 2
EXTRA_CLEAN+= athhal-elf-o

@


1.133.2.2
log
@Pull up revision 1.136 (requested by atatat in ticket #661):
  Make uudecode into a tool which can be used to build a
  kernel and redo the athhal-elf.o handling to take advantage
  of it.  This means that bsd.files.mk is no longer included
  by Makefile.i386 so CFLAGS will not be duplicated.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.133.2.1 2004/04/18 02:21:57 jmc Exp $
d109 7
d117 2
a118 7
ATH_UUDEC?=	@@${_MKSHMSG} "uudecode ${.CURDIR:T}/${.TARGET}"; \
		${_MKSHECHO}\
		${UUDECODE} -p $> \> ${.TARGET}; \
		rm -f ${.TARGET}; \
		${UUDECODE} -p $> > ${.TARGET}
athhal-elf.o: athhal-elf-o.uue
	${ATH_UUDEC}
@


1.133.2.2.2.1
log
@Pull up patch (requested by martti in ticket #1086)
Move ipf to sys/dist/ipf and sync w. trunk
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.133.2.2 2004/07/15 19:26:49 he Exp $
a122 5

##
## (10) IPF source directory
##
CPPFLAGS+=	-I$S/dist/ipf
@


1.132
log
@Make mptrap.o depend on assym.h; fixes GENERIC.MP -j N kernel build.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.131 2003/05/02 17:40:13 yamt Exp $
d103 16
@


1.131
log
@add spl.S, vector.S and microtime.S to MD_SFILES so that
'make depend' takes care of them.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.130 2003/04/02 22:10:23 christos Exp $
d81 1
@


1.131.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.136 2004/07/15 03:35:20 atatat Exp $
a80 1
mptramp.o: assym.h
a101 16
# XXX - Ugly, but make doesn't easily handle .o.uue (assumes it's a suffix)
# XXX - Also, config has no simple was to just add foo.o to the Makefile. 
#       It needs a pathname of some sort for "object"        
.if !empty(OBJS:M\/athhal-elf.o)
OBJS:=${OBJS:C/\/athhal-elf.o/athhal-elf.o/}
 
.PATH: $S/../contrib/sys/arch/i386/dev
ATH_UUDEC?=	@@${_MKSHMSG} "uudecode ${.CURDIR:T}/${.TARGET}"; \
		${_MKSHECHO}\
		${UUDECODE} -p $> \> ${.TARGET}; \
		rm -f ${.TARGET}; \
		${UUDECODE} -p $> > ${.TARGET}
athhal-elf.o: athhal-elf-o.uue
	${ATH_UUDEC}
.endif

a105 5

##
## (10) Appending make options.
##
%MAKEOPTIONSAPPEND
@


1.131.2.2
log
@Sync with HEAD.
@
text
@@


1.131.2.3
log
@Fix the sync with head I botched.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.131.2.1 2004/08/03 10:35:47 skrll Exp $
@


1.131.2.4
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.131.2.3 2004/09/21 13:16:38 skrll Exp $
a39 1
.if !empty(IDENT:M-DLKM)
a40 3
.else
KERN_AS=	library
.endif
@


1.131.2.5
log
@Sync with HEAD. Here we go again...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.131.2.4 2005/04/01 14:27:39 skrll Exp $
d29 1
a29 1
GENASSYM_CONF=	${I386}/i386/genassym.cf
d49 1
a49 1
MD_OBJS=	locore.o copy.o spl.o vector.o microtime.o
d51 1
a51 1
MD_SFILES=	${I386}/i386/locore.S ${I386}/i386/copy.S ${I386}/i386/spl.S \
a56 3
copy.o: ${I386}/i386/copy.S assym.h
	${NORMAL_S}

d110 2
a111 2
.if !empty(OBJS:M\/athhal-i386-elf.hal.o)
OBJS:=${OBJS:C/\/athhal-i386-elf.hal.o/athhal-i386-elf.hal.o/}
d113 1
a113 1
.PATH: $S/contrib/arch/i386/dev
d119 1
a119 1
athhal-i386-elf.hal.o: athhal-i386-elf.hal.o.uue
@


1.130
log
@bioscall.S needs assym.h now.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.129 2003/03/02 22:19:05 christos Exp $
d47 2
a48 1
MD_SFILES=	${I386}/i386/locore.S
@


1.129
log
@microtime.S depends on assym.h
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.128 2002/12/12 17:41:19 christos Exp $
d79 1
a79 1
apmcall.o in_cksum.o pnpbioscall.o: assym.h
@


1.128
log
@add missing dependency.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.127 2002/11/26 18:51:14 thorpej Exp $
d45 1
a45 1
MD_OBJS=	locore.o spl.o vector.o
d56 3
@


1.127
log
@The traditional C preprocessor is fixed in GCC 3.3 now, so no need
to skip -traditional-cpp for HAVE_GCC3.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.126 2002/11/24 18:56:01 christos Exp $
d77 1
@


1.126
log
@add mach_sigcode.o to the files that depend on assym.h
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.125 2002/11/22 15:23:36 fvdl Exp $
a34 3
.if defined(HAVE_GCC3)
AFLAGS+=	-x assembler-with-cpp
.else
a35 1
.endif
@


1.125
log
@New interrupt code. The basic idea behind it is to hide the differences
in interrupt controllers in struct pic, and try to keep as much
common code as possible. At the lowest (asm) level, this is done
with CPP macros.

The main structure is now struct intrsource, describing an established
interrupt line, of any kind (soft/hard local apic/legacy apic/IO apic).
For quick masking, there may be a maximum of 32 sources per CPU.
Sources can be assigned to any CPU in the MP case, though currently they
all go to the boot CPU.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.124 2002/11/02 07:59:26 perry Exp $
d78 2
a79 1
freebsd_sigcode.o ibcs2_sigcode.o linux_sigcode.o svr4_sigcode.o: assym.h
@


1.124
log
@We don't need our on KERNLINTFLAGS any longer.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.123 2002/06/04 21:39:10 thorpej Exp $
d49 1
a49 1
MD_OBJS=	locore.o
d51 1
a51 1
MD_SFILES=	${I386}/i386/locore.s
d53 7
a59 1
locore.o: ${I386}/i386/locore.s assym.h
@


1.123
log
@Don't use -traditional-cpp if HAVE_GCC3.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.122 2001/12/09 05:00:45 atatat Exp $
a77 1
KERNLINTFLAGS=	-bceghnxzF
@


1.123.2.1
log
@file Makefile.i386 was added on branch sommerfeld_i386mp_1 on 2002-06-04 21:39:11 +0000
@
text
@d1 98
@


1.123.2.2
log
@Don't use -traditional-cpp if HAVE_GCC3.
@
text
@a0 98
#	$NetBSD: Makefile.i386,v 1.123 2002/06/04 21:39:10 thorpej Exp $

# Makefile for NetBSD
#
# This makefile is constructed from a machine description:
#	config machineid
# Most changes should be made in the machine description
#	/sys/arch/i386/conf/``machineid''
# after which you should do
#	config machineid
# Machine generic makefile changes should be made in
#	/sys/arch/i386/conf/Makefile.i386
# after which config should be rerun for all machines of that type.
#
# To specify debugging, add the config line: makeoptions DEBUG="-g"
# A better way is to specify -g only for a few files.
#
#	makeoptions DEBUGLIST="uvm* trap if_*"

MACHINE_ARCH=	i386
USETOOLS?=	no
NEED_OWN_INSTALL_TARGET?=no
.include <bsd.own.mk>

##
## (1) port identification
##
I386=		$S/arch/i386
GENASSYM=	${I386}/i386/genassym.cf

##
## (2) compile settings
##
CPPFLAGS+=	-Di386
.if defined(HAVE_GCC3)
AFLAGS+=	-x assembler-with-cpp
.else
AFLAGS+=	-x assembler-with-cpp -traditional-cpp
.endif

##
## (3) libkern and compat
##
KERN_AS=	obj

##
## (4) local objects, compile rules, and dependencies
##
MD_OBJS=	locore.o
MD_CFILES=
MD_SFILES=	${I386}/i386/locore.s

locore.o: ${I386}/i386/locore.s assym.h
	${NORMAL_S}

##
## (5) link settings
##
TEXTADDR?=	c0100000
LINKFLAGS_NORMAL=	-X
.if (${OBJECT_FMT} == "ELF")
KERN_LDSCRIPT?=	kern.ldscript
LINKFORMAT=	-T ${I386}/conf/${KERN_LDSCRIPT}
.else
LINKFORMAT=	-z
.endif

##
## (6) port specific target dependencies
##

freebsd_sigcode.o ibcs2_sigcode.o linux_sigcode.o svr4_sigcode.o: assym.h
apmcall.o in_cksum.o pnpbioscall.o: assym.h

##
## (7) misc settings
##
KERNLINTFLAGS=	-bceghnxzF

##
## (8) config(8) generated machinery
##
%INCLUDES

%OBJS

%CFILES

%SFILES

%LOAD

%RULES

##
## (9) port independent kernel machinery
##
.include "$S/conf/Makefile.kern.inc"
@


1.122
log
@Roll the rest of the ports over to the new MI kernel build machinery.
Any problems reported by testers have been fixed, and massive
cross-compiling of kernels has shown that any problems that remain
with actually building kernels are not related to this.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.121 2001/11/23 05:19:00 atatat Exp $
d35 3
d39 1
@


1.122.10.1
log
@catch up with -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.123 2002/06/04 21:39:10 thorpej Exp $
a34 3
.if defined(HAVE_GCC3)
AFLAGS+=	-x assembler-with-cpp
.else
a35 1
.endif
@


1.121
log
@Instead of checking for previous usage, just append to some make
variables.  Tweak some variables to provide for more uniform defaults.
Minor adaption to makefiles for already converted ports.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.120 2001/11/20 12:56:30 lukem Exp $
d56 1
a56 1
EXTRA_LINKFLAGS=	-X
@


1.120
log
@cleanup:
	options SPACE TAB
	makeoptions TAB
	psuedo-device TAB
	remove trailing whitespace
	replace multiple spaces -> tabs
	options "FOO" -> options FOO
	options "FOO=bar" -> options FOO=bar
	options "FOO=\"bar\"" -> options FOO="\"bar\""
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.119 2001/11/16 00:23:03 atatat Exp $
a29 1
MD_CPPFLAGS=	-Di386
d34 2
a35 5
CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D_KERNEL_OPT \
		${MD_CPPFLAGS}
COPTS?=		-O2
CFLAGS=		${DEBUG} ${COPTS} ${CWARNFLAGS}
AFLAGS=		-x assembler-with-cpp -traditional-cpp -D_LOCORE
d56 1
a56 1
EXTRA_LINKFLAGS=-X
@


1.119
log
@Abstract out a large chunk of the kernel build machinery so that new
build features (such as ross's DEBUGLIST) can easily be applied to all
ports.  This should reduce the complexity of each port's kernel
Makefile considerably.  Line counts:

     227 arch/i386/conf/Makefile.i386.orig
      98 arch/i386/conf/Makefile.i386
     227 arch/alpha/conf/Makefile.alpha.orig
      99 arch/alpha/conf/Makefile.alpha
     219 arch/sparc/conf/Makefile.sparc.orig
     102 arch/sparc/conf/Makefile.sparc
     215 arch/vax/conf/Makefile.vax.orig
     102 arch/vax/conf/Makefile.vax
     253 conf/Makefile.kern.inc

Roll i386, alpha, sparc, and vax over to the new build machinery.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.118 2001/10/26 06:45:37 jmc Exp $
d15 1
a15 1
# To specify debugging, add the config line: makeoptions DEBUG="-g" 
d42 1
a42 1
## (3) libkern and compat 
@


1.118
log
@Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.117 2001/10/23 19:26:45 thorpej Exp $
d14 5
d20 1
a20 1
MACHINE_ARCH=i386
d22 2
d25 15
a39 1
.include <bsd.own.mk>
d41 4
a44 2
# DEBUG is set to -g if debugging.
# PROF is set to -pg if profiling.
d46 6
a51 20
AR?=	ar
AS?=	as
CC?=	cc
CPP?=	cpp
LD?=	ld
LORDER?=lorder
MKDEP?=	mkdep
NM?=	nm
RANLIB?=ranlib
SIZE?=	size
STRIP?=	strip
TSORT?=	tsort -q

COPTS?=	-O2

# source tree is located via $S relative to the compilation directory
.ifndef S
S!=	cd ../../../..; pwd
.endif
I386=	$S/arch/i386
d53 2
a54 13
HAVE_EGCS!=	${CC} --version | egrep "^(2\.[89]|egcs)" ; echo
INCLUDES=	-I. -I$S/arch -I$S -nostdinc
CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D_KERNEL_OPT -Di386
CWARNFLAGS?=	-Werror -Wall -Wmissing-prototypes -Wstrict-prototypes \
		-Wpointer-arith
# XXX Delete -Wuninitialized for now, since the compiler doesn't
# XXX always get it right.  --thorpej
CWARNFLAGS+=	-Wno-uninitialized
.if (${HAVE_EGCS} != "")
CWARNFLAGS+=	-Wno-main
.endif
CFLAGS=		${DEBUG} ${COPTS} ${CWARNFLAGS}
AFLAGS=		-x assembler-with-cpp -traditional-cpp -D_LOCORE
d56 3
d60 1
a60 2
LINKFLAGS=	-Ttext ${TEXTADDR} -e start

d63 1
a63 1
LINKFLAGS+=	-T ${I386}/conf/${KERN_LDSCRIPT}
d65 1
a65 1
LINKFLAGS+=	-z
d68 3
a70 1
STRIPFLAGS=	-g
d72 11
a84 24
### find out what to use for libkern
KERN_AS=	obj
.include "$S/lib/libkern/Makefile.inc"
.ifndef PROF
LIBKERN=	${KERNLIB}
.else
LIBKERN=	${KERNLIB_PROF}
.endif

### find out what to use for libcompat
.include "$S/compat/common/Makefile.inc"
.ifndef PROF
LIBCOMPAT=	${COMPATLIB}
.else
LIBCOMPAT=	${COMPATLIB_PROF}
.endif

# compile rules: rules are named ${TYPE}_${SUFFIX} where TYPE is NORMAL or
# HOSTED}, and SUFFIX is the file suffix, capitalized (e.g. C for a .c file).

NORMAL_C=	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NOPROF_C=	${CC} ${CFLAGS} ${CPPFLAGS} -c $<
NORMAL_S=	${CC} ${AFLAGS} ${CPPFLAGS} -c $<

a90 24
# load lines for config "xxx" will be emitted as:
# xxx: ${SYSTEM_DEP} swapxxx.o
#	${SYSTEM_LD_HEAD}
#	${SYSTEM_LD} swapxxx.o
#	${SYSTEM_LD_TAIL}
SYSTEM_OBJ=	locore.o \
		param.o ioconf.o ${OBJS} ${LIBCOMPAT} ${LIBKERN}
SYSTEM_DEP=	Makefile ${SYSTEM_OBJ}
SYSTEM_LD_HEAD=	rm -f $@@
SYSTEM_LD=	@@echo ${LD} ${LINKFLAGS} -o $@@ '$${SYSTEM_OBJ}' vers.o; \
		${LD} ${LINKFLAGS} -o $@@ ${SYSTEM_OBJ} vers.o
SYSTEM_LD_TAIL=	@@${SIZE} $@@; chmod 755 $@@

DEBUG?=
.if ${DEBUG} == "-g"
LINKFLAGS+=	-X
SYSTEM_LD_TAIL+=; \
		echo mv -f $@@ $@@.gdb; mv -f $@@ $@@.gdb; \
		echo ${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb; \
		${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb
.else
LINKFLAGS+=	-X
.endif

d93 1
a93 8
assym.h: $S/kern/genassym.sh ${I386}/i386/genassym.cf
	sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
	    < ${I386}/i386/genassym.cf > assym.h.tmp && \
	mv -f assym.h.tmp assym.h

param.c: $S/conf/param.c
	rm -f param.c
	cp $S/conf/param.c .
d95 4
a98 94
param.o: param.c Makefile
	${NORMAL_C}

ioconf.o: ioconf.c
	${NORMAL_C}

newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
	sh $S/conf/newvers.sh
	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c


__CLEANKERNEL: .USE
	@@echo "${.TARGET}ing the kernel objects"
	rm -f eddep *netbsd netbsd.gdb tags *.[io] [a-z]*.s \
	    [Ee]rrs linterrs makelinks assym.h.tmp assym.h

__CLEANDEPEND: .USE
	rm -f .depend

clean: __CLEANKERNEL

cleandir distclean: __CLEANKERNEL __CLEANDEPEND

ALLSFILES=	${I386}/i386/locore.s ${SFILES}
LINTSTUBS=	${ALLSFILES:T:R:C/^.*$/LintStub_&.c/g}

.for _sfile in ${ALLSFILES}
LintStub_${_sfile:T:R}.c: ${_sfile} assym.h
	${CC} -E -C ${AFLAGS} ${CPPFLAGS} ${_sfile} | \
	      awk -f $S/kern/genlintstub.awk >${.TARGET}
.endfor

lint: ${CFILES} ${LINTSTUBS} ioconf.c param.c
	@@lint -bceghnxzF ${CPPFLAGS} -UKGDB \
	    ${CFILES} ${LINTSTUBS} ioconf.c param.c

tags:
	@@echo "see $S/kern/Makefile for tags"

links:
	egrep '#if' ${CFILES} | sed -f $S/conf/defines | \
	  sed -e 's/:.*//' -e 's/\.c/.o/' | sort -u > dontlink
	echo ${CFILES} | tr -s ' ' '\12' | sed 's/\.c/.o/' | \
	  sort -u | comm -23 - dontlink | \
	  sed 's,../.*/\(.*.o\),rm -f \1; ln -s ../GENERIC/\1 \1,' > makelinks
	sh makelinks && rm -f dontlink

SRCS=	${I386}/i386/locore.s \
	param.c ioconf.c ${CFILES} ${SFILES}
depend: .depend
.depend: ${SRCS} assym.h param.c
	${MKDEP} ${AFLAGS} ${CPPFLAGS} ${I386}/i386/locore.s
	${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
	${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
	sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \
	  ${CPPFLAGS} < ${I386}/i386/genassym.cf
	@@sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend
	@@rm -f assym.dep

dependall: depend all


# depend on root or device configuration
autoconf.o conf.o: Makefile

# depend on network or filesystem configuration
uipc_proto.o vfs_conf.o: Makefile

# depend on maxusers
machdep.o: Makefile

# depend on CPU configuration
locore.o machdep.o: Makefile

locore.o: ${I386}/i386/locore.s assym.h
	${NORMAL_S}

apmcall.o in_cksum.o pnpbioscall.o: assym.h

freebsd_sigcode.o ibcs2_sigcode.o linux_sigcode.o svr4_sigcode.o: assym.h

# The install target can be redefined by putting a
# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
MACHINE_NAME!=  uname -n
install: install-kernel-${MACHINE_NAME}
.if !target(install-kernel-${MACHINE_NAME}})
install-kernel-${MACHINE_NAME}:
	rm -f /onetbsd
	ln /netbsd /onetbsd
	cp netbsd /nnetbsd
	mv /nnetbsd /netbsd
.endif

%RULES
@


1.117
log
@Set MACHINE_ARCH explicitly in Makefiles for which it is constant.
Also, since config(8) now explcitly sets MACHINE, there is no need
to do it here in the Makefile.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.116 2001/06/05 05:05:46 thorpej Exp $
d16 1
@


1.117.2.1
log
@Sync the thorpej-mips-cache branch with -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.118 2001/10/26 06:45:37 jmc Exp $
a15 1
USETOOLS?=	no
@


1.116
log
@Allow the text address to be set with makeoptions.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.115 2001/05/29 02:20:23 mrg Exp $
d14 2
@


1.116.2.1
log
@Sync kqueue branch with -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.122 2001/12/09 05:00:45 atatat Exp $
a13 5
#
# To specify debugging, add the config line: makeoptions DEBUG="-g"
# A better way is to specify -g only for a few files.
#
#	makeoptions DEBUGLIST="uvm* trap if_*"
a14 3
MACHINE_ARCH=	i386
USETOOLS?=	no
NEED_OWN_INSTALL_TARGET?=no
d17 2
a18 16
##
## (1) port identification
##
I386=		$S/arch/i386
GENASSYM=	${I386}/i386/genassym.cf

##
## (2) compile settings
##
CPPFLAGS+=	-Di386
AFLAGS+=	-x assembler-with-cpp -traditional-cpp

##
## (3) libkern and compat
##
KERN_AS=	obj
d20 20
a39 6
##
## (4) local objects, compile rules, and dependencies
##
MD_OBJS=	locore.o
MD_CFILES=
MD_SFILES=	${I386}/i386/locore.s
d41 13
a53 2
locore.o: ${I386}/i386/locore.s assym.h
	${NORMAL_S}
a54 3
##
## (5) link settings
##
d56 2
a57 1
LINKFLAGS_NORMAL=	-X
d60 14
a73 1
LINKFORMAT=	-T ${I386}/conf/${KERN_LDSCRIPT}
d75 1
a75 1
LINKFORMAT=	-z
d78 7
a84 3
##
## (6) port specific target dependencies
##
d86 2
a87 2
freebsd_sigcode.o ibcs2_sigcode.o linux_sigcode.o svr4_sigcode.o: assym.h
apmcall.o in_cksum.o pnpbioscall.o: assym.h
d89 3
a91 9
##
## (7) misc settings
##
KERNLINTFLAGS=	-bceghnxzF

##
## (8) config(8) generated machinery
##
%INCLUDES
d99 24
d125 102
a227 5

##
## (9) port independent kernel machinery
##
.include "$S/conf/Makefile.kern.inc"
@


1.116.2.2
log
@catch up with -current on kqueue branch
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.116.2.1 2002/01/10 19:44:31 thorpej Exp $
a34 3
.if defined(HAVE_GCC3)
AFLAGS+=	-x assembler-with-cpp
.else
a35 1
.endif
@


1.115
log
@define _KERNEL_OPT as well as _KERNEL. we will use this in the future to
get kernel "opt_foo.h" headers, rather than _KERNEL && !_LKM.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.114 2001/05/16 03:48:45 lukem Exp $
d54 3
a56 1
LINKFLAGS=	-Ttext c0100000 -e start
@


1.114
log
@changes to lint invocation:
- sort lint flags
- add flags -F (full pathname), -g (gcc extensions; XXX for now)
- lint CFILES before LINTSTUBS
- don't -Dvolatile=
- don't grep -v 'static function.*unused'
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.113 2001/05/15 22:34:36 perry Exp $
d43 1
a43 1
CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Di386
@


1.113
log
@1) Add infrastructure to generate lint stub files from stylized
   comments in .S files.
2) Update "make lint" target to use generated lint stubs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.112 2001/01/20 07:18:06 lukem Exp $
d164 3
a166 5
lint: ${LINTSTUBS} ${CFILES} ioconf.c param.c
	@@lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
	    ${LINTSTUBS} ${CFILES} \
	    ioconf.c param.c | \
	    grep -v 'static function .* unused'
@


1.112
log
@a few things depend upon assym.h, so add appropriate dependencies.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.111 2001/01/20 01:05:53 thorpej Exp $
d155 10
a164 1
lint:
d166 1
a166 1
	    ${I386}/i386/Locore.c ${CFILES} \
@


1.112.2.1
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.112 2001/01/20 07:18:06 lukem Exp $
d43 1
a43 1
CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D_KERNEL_OPT -Di386
d54 1
a54 3

TEXTADDR?=	c0100000
LINKFLAGS=	-Ttext ${TEXTADDR} -e start
d155 5
a159 12
ALLSFILES=	${I386}/i386/locore.s ${SFILES}
LINTSTUBS=	${ALLSFILES:T:R:C/^.*$/LintStub_&.c/g}

.for _sfile in ${ALLSFILES}
LintStub_${_sfile:T:R}.c: ${_sfile} assym.h
	${CC} -E -C ${AFLAGS} ${CPPFLAGS} ${_sfile} | \
	      awk -f $S/kern/genlintstub.awk >${.TARGET}
.endfor

lint: ${CFILES} ${LINTSTUBS} ioconf.c param.c
	@@lint -bceghnxzF ${CPPFLAGS} -UKGDB \
	    ${CFILES} ${LINTSTUBS} ioconf.c param.c
@


1.112.2.2
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.112.2.1 2001/06/21 19:25:19 nathanw Exp $
a13 3

MACHINE_ARCH=i386
USETOOLS?=	no
@


1.112.2.3
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.112.2.2 2001/11/14 19:12:44 nathanw Exp $
a13 5
#
# To specify debugging, add the config line: makeoptions DEBUG="-g"
# A better way is to specify -g only for a few files.
#
#	makeoptions DEBUGLIST="uvm* trap if_*"
d15 1
a15 1
MACHINE_ARCH=	i386
d17 1
a17 1
NEED_OWN_INSTALL_TARGET?=no
d20 2
a21 16
##
## (1) port identification
##
I386=		$S/arch/i386
GENASSYM=	${I386}/i386/genassym.cf

##
## (2) compile settings
##
CPPFLAGS+=	-Di386
AFLAGS+=	-x assembler-with-cpp -traditional-cpp

##
## (3) libkern and compat
##
KERN_AS=	obj
d23 20
a42 6
##
## (4) local objects, compile rules, and dependencies
##
MD_OBJS=	locore.o
MD_CFILES=
MD_SFILES=	${I386}/i386/locore.s
d44 13
a56 2
locore.o: ${I386}/i386/locore.s assym.h
	${NORMAL_S}
a57 3
##
## (5) link settings
##
d59 2
a60 1
LINKFLAGS_NORMAL=	-X
d63 14
a76 1
LINKFORMAT=	-T ${I386}/conf/${KERN_LDSCRIPT}
d78 1
a78 1
LINKFORMAT=	-z
d81 7
a87 3
##
## (6) port specific target dependencies
##
d89 2
a90 2
freebsd_sigcode.o ibcs2_sigcode.o linux_sigcode.o svr4_sigcode.o: assym.h
apmcall.o in_cksum.o pnpbioscall.o: assym.h
d92 3
a94 9
##
## (7) misc settings
##
KERNLINTFLAGS=	-bceghnxzF

##
## (8) config(8) generated machinery
##
%INCLUDES
d102 24
d128 102
a230 5

##
## (9) port independent kernel machinery
##
.include "$S/conf/Makefile.kern.inc"
@


1.112.2.4
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.112.2.3 2002/01/08 00:25:14 nathanw Exp $
a34 3
.if defined(HAVE_GCC3)
AFLAGS+=	-x assembler-with-cpp
.else
a35 1
.endif
@


1.112.2.5
log
@Catch up to -current
@
text
@d1 1
a1 1
#	$NetBSD$
d78 1
@


1.112.2.6
log
@Sync with HEAD.
@
text
@d35 3
d39 1
d49 1
a49 1
MD_OBJS=	locore.o spl.o vector.o
d51 1
a51 7
MD_SFILES=	${I386}/i386/locore.S

locore.o: ${I386}/i386/locore.S assym.h
	${NORMAL_S}

spl.o: ${I386}/i386/spl.S assym.h
	${NORMAL_S}
d53 1
a53 1
vector.o: ${I386}/i386/vector.S assym.h
d72 1
a72 2
freebsd_sigcode.o ibcs2_sigcode.o linux_sigcode.o: assym.h
svr4_sigcode.o mach_sigcode.o: assym.h
@


1.112.2.7
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.112.2.6 2002/12/11 06:00:50 thorpej Exp $
a76 1
clock.o: config_time.h
@


1.111
log
@In the ELF case, use the kern.ldscript unless overridden by the kernel
config file.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.110 2001/01/09 12:03:15 fvdl Exp $
a198 1

d201 4
@


1.110
log
@Revert apparently accidental commit.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.109 2001/01/08 21:46:36 martin Exp $
d55 1
d57 2
a58 1
#LINKFLAGS+=	-N
a60 4
.endif

.if defined(KERN_LDSCRIPT)
LINKFLAGS+=	-T ${I386}/conf/${KERN_LDSCRIPT}
@


1.109
log
@Add isdn devices to all archs that seem to support at least one of the
necessary busses. Sync comments with reality for archs that already had
the devices.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.108 2000/12/17 15:52:41 jdolecek Exp $
d33 1
a33 1
COPTS?=	-O2 -march=i686 -pipe
@


1.108
log
@delete obsolete comment
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.107 2000/09/07 06:39:36 thorpej Exp $
d33 1
a33 1
COPTS?=	-O2
@


1.107
log
@If KERN_LDSCRIPT is specified as a makeoption, then add it to the
linker flags.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.106 2000/05/09 00:56:24 hubertf Exp $
a13 6
#
# N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE VISIBLE TO MAKEFILE
#	IF YOU CHANGE THE DEFINITION OF ANY OF THESE RECOMPILE EVERYTHING
#
# -DTRACE	compile in kernel tracing hooks
# -DQUOTA	compile in file system quotas
@


1.106
log
@Add "install" target, so "make install" after building the kernel
does something useful.  The target can be redefined by putting a
install-kernel-${MACHINE_NAME} target that fits your needs into
/etc/mk.conf.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.105 2000/05/09 00:32:23 thorpej Exp $
d66 5
@


1.105
log
@HAVE_GCC28 -> HAVE_EGCS, and make it match gcc 2.9 as well.  Also,
make the use of -Wno-uninitialized explicit, don't rely on a compiler
hack to do it for us.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.104 2000/02/11 07:00:11 thorpej Exp $
d205 12
@


1.104
log
@Move KERNBASE to 0xc0000000, giving the kernel a more-or-less full 1G
of virtual address space, leaving userland with 3G, and update comments
to match the new reality.

We knew we were going to have to bite this bullet eventually, and there
are a couple of outstanding PRs related to this issue (9389 and 9313).
Complete solution to those PRs is going to involve some sort of run-time
decision on how large kmem_map should be, as well as changing some data
structure allocation strategies in UVM.  However, this change will at
least allow the PR submitter to simply throw resources at the problem.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.103 2000/02/01 05:25:32 tsutsui Exp $
d47 1
a47 1
HAVE_GCC28!=	${CC} --version | egrep "^(2\.8|egcs)" ; echo
d52 4
a55 1
.if (${HAVE_GCC28} != "")
@


1.103
log
@Revert STRIPPROG -> STRIP
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.102 2000/01/24 20:36:13 tron Exp $
d57 1
a57 1
LINKFLAGS=	-Ttext F0100000 -e start
@


1.102
log
@Add "dependall" target for comfort.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.101 2000/01/19 16:29:57 tsutsui Exp $
d36 1
a36 1
STRIPPROG?=strip
d115 2
a116 2
		echo ${STRIPPROG} ${STRIPFLAGS} -o $@@ $@@.gdb; \
		${STRIPPROG} ${STRIPFLAGS} -o $@@ $@@.gdb
@


1.101
log
@STRIP -> STRIPPROG
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.100 2000/01/19 14:45:03 tsutsui Exp $
d183 2
@


1.100
log
@Change STRIPFLAGS=-g for cross-toolchains.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.99 1999/07/26 05:20:46 cgd Exp $
d36 1
a36 1
STRIP?=	strip
d115 2
a116 2
		echo ${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb; \
		${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb
@


1.99
log
@be more efficient when doing the SYSTEM_LD_TAIL for -g kernels: don't
copy them just to strip them, use strip -o.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.98 1999/07/09 09:52:57 mrg Exp $
d63 1
a63 1
STRIPFLAGS=	-d
@


1.99.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 1
a1 1
#	$NetBSD: Makefile.i386,v 1.107 2000/09/07 06:39:36 thorpej Exp $
d47 1
a47 1
HAVE_EGCS!=	${CC} --version | egrep "^(2\.[89]|egcs)" ; echo
d52 1
a52 4
# XXX Delete -Wuninitialized for now, since the compiler doesn't
# XXX always get it right.  --thorpej
CWARNFLAGS+=	-Wno-uninitialized
.if (${HAVE_EGCS} != "")
d57 1
a57 1
LINKFLAGS=	-Ttext c0100000 -e start
d63 1
a63 6

.if defined(KERN_LDSCRIPT)
LINKFLAGS+=	-T ${I386}/conf/${KERN_LDSCRIPT}
.endif

STRIPFLAGS=	-g
a183 2
dependall: depend all

a199 12

# The install target can be redefined by putting a
# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
MACHINE_NAME!=  uname -n
install: install-kernel-${MACHINE_NAME}
.if !target(install-kernel-${MACHINE_NAME}})
install-kernel-${MACHINE_NAME}:
	rm -f /onetbsd
	ln /netbsd /onetbsd
	cp netbsd /nnetbsd
	mv /nnetbsd /netbsd
.endif
@


1.99.2.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD$
d14 6
@


1.99.2.3
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.99.2.2 2001/01/05 17:34:28 bouyer Exp $
a54 1

d56 1
a56 2
KERN_LDSCRIPT?=	kern.ldscript
LINKFLAGS+=	-T ${I386}/conf/${KERN_LDSCRIPT}
d61 4
d201 1
a203 4

apmcall.o in_cksum.o pnpbioscall.o: assym.h

freebsd_sigcode.o ibcs2_sigcode.o linux_sigcode.o svr4_sigcode.o: assym.h
@


1.98
log
@clean up a bit after jason :)

- fix emitrules() like emitfiles() to deal with the prefix (otherwise it
  would attempt to find the file in the normal base for the NORMAL_C rule).
- add emitincludes() which adds include directives for each prefix to the
  $INCLUDES variable in the makefile.
- add %INCLUDES to each Makefile.arch to deal with the above.

this makes "prefix" actually work in a usable manner, and now i can move
on to fixing compiler warnings (errors) in the ESP code. :)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.97 1999/01/28 20:04:54 christos Exp $
d114 3
a116 2
		echo cp $@@ $@@.gdb; rm -f $@@.gdb; cp $@@ $@@.gdb; \
		echo ${STRIP} ${STRIPFLAGS} $@@; ${STRIP} ${STRIPFLAGS} $@@
@


1.97
log
@Add ELF bits. -N does not work, because ld does not compute the correct
memsz.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.96 1999/01/15 23:37:06 thorpej Exp $
d64 2
@


1.97.2.1
log
@Apply patch (requested by thorpej):
  Move KERNBASE to 0xc0000000, giving the kernel a more-or-less
  full 1GB of virtual address space, leaving userland with 3GB,
  and update comments to match the new reality.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.97 1999/01/28 20:04:54 christos Exp $
d57 1
a57 1
LINKFLAGS=	-Ttext c0100000 -e start
@


1.97.4.1
log
@Update from trunk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.99 1999/07/26 05:20:46 cgd Exp $
a64 2
%INCLUDES

d112 2
a113 3
		echo mv -f $@@ $@@.gdb; mv -f $@@ $@@.gdb; \
		echo ${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb; \
		${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb
@


1.96
log
@Some minor, mostly costmetic, changes to CPPFLAGS/CFLAGS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.95 1999/01/08 19:26:13 augustss Exp $
d21 2
d57 6
a62 1
LINKFLAGS=	-z -Ttext F0100000 -e start
@


1.95
log
@Add -Wpointer-arith warning since `void *' arithmetic is not ANSI C.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.94 1998/10/15 18:37:14 drochner Exp $
d47 1
a47 2
CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
		-Di386
@


1.94
log
@change handling of libkern:
-sys/lib/libkern builds as library per default (as it was documented all
 the time)
-ports able to LKM set "KERN_AS=obj" explicitely in their Makefiles
 (for now; should depend on actual "option LKM" or -better- functions
 included for LKM use should be pulled in by a stub)
-always link libcompat before libkern - libkern stuff can be referred to
 by libcompat, but not the other way
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.93 1998/09/05 15:15:15 lukem Exp $
d49 2
a50 1
CWARNFLAGS?=	-Werror -Wall -Wmissing-prototypes -Wstrict-prototypes
@


1.93
log
@distclean is a synonym for cleandir
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.92 1998/06/07 03:01:06 enami Exp $
d59 1
d94 1
a94 1
		param.o ioconf.o ${OBJS} ${LIBKERN} ${LIBCOMPAT}
@


1.92
log
@Also, remove space at the end of line.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.91 1998/05/31 23:25:42 thorpej Exp $
d142 1
a142 1
cleandir: __CLEANKERNEL __CLEANDEPEND
@


1.91
log
@Specify a non-profiling C rule.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.90 1998/04/12 23:47:43 tv Exp $
d45 1
a45 1
HAVE_GCC28!=	${CC} --version | egrep "^(2\.8|egcs)" ; echo 
d176 3
a178 3
 
# depend on network or filesystem configuration 
uipc_proto.o vfs_conf.o: Makefile 
d183 1
a183 1
# depend on CPU configuration 
@


1.90
log
@Add -Wno-main conditional on compiler being gcc 2.8 or egcs.  (This adds
a HAVE_GCC28 check-variable that can now be used to add other gcc-2.8
flags in cases where they may be useful, or to remove gcc 2.7.2 "bug
workaround" flags.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.89 1998/02/06 07:21:48 mrg Exp $
d78 1
@


1.89
log
@add the i386 MD portions for UVM.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.88 1997/11/12 23:12:09 thorpej Exp $
d45 1
d49 4
a52 1
CWARNFLAGS=	-Werror -Wall -Wmissing-prototypes -Wstrict-prototypes
@


1.88
log
@Make sure CPP, AR, AS, and RANLIB are defined.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.87 1997/11/12 22:26:02 thorpej Exp $
d102 1
a102 1
LINKFLAGS+=	-S
@


1.87
log
@Define LORDER, NM, and TSORT here, like we do the rest of the tools.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.86 1997/10/20 00:43:21 fvdl Exp $
d24 2
d27 1
d32 1
d36 1
@


1.86
log
@Move kernel entry address down to f0100000
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.85 1997/10/03 07:17:39 lukem Exp $
d26 1
d28 1
d31 1
@


1.86.2.1
log
@Pull up "make sure tools are defined" changes from trunk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.88 1997/11/12 23:12:09 thorpej Exp $
a23 2
AR?=	ar
AS?=	as
a24 1
CPP?=	cpp
a25 1
LORDER?=lorder
a26 2
NM?=	nm
RANLIB?=ranlib
a28 2
TSORT?=	tsort -q

@


1.85
log
@define SIZE?=size, and use ${SIZE} instead of size. makes cross
compilation easier
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.84 1997/09/30 22:10:32 christos Exp $
d43 1
a43 1
LINKFLAGS=	-z -Ttext F8100000 -e start
@


1.84
log
@PR/4162: Chris Jones: make cleandir does not work properly; it does not
remove the object files and the .depend file in the kernel build directory.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.83 1997/07/12 22:07:57 leo Exp $
d27 1
d29 1
a29 1
COPTS?=		-O2
d85 1
a85 1
SYSTEM_LD_TAIL=	@@size $@@; chmod 755 $@@
@


1.83
log
@Generate assym.h dependencies when making 'depend'.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.82 1997/03/14 23:16:08 mycroft Exp $
d118 2
a119 2
clean: cleankernel
cleankernel:
d122 7
@


1.83.2.1
log
@Update marc-pcmcia branch from trunk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.85 1997/10/03 07:17:39 lukem Exp $
a26 1
SIZE?=	size
d28 1
a28 1
COPTS?=	-O2
d84 1
a84 1
SYSTEM_LD_TAIL=	@@${SIZE} $@@; chmod 755 $@@
d118 2
a119 2
__CLEANKERNEL: .USE
	@@echo "${.TARGET}ing the kernel objects"
a121 7

__CLEANDEPEND: .USE
	rm -f .depend

clean: __CLEANKERNEL

cleandir: __CLEANKERNEL __CLEANDEPEND
@


1.82
log
@Put the genassym.sh output in a temp file, and mv -f it, in case
it fails spectacularly and doesn't clean up.  Also, remove dependencies for
genassym.o (since it no longer exists).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.81 1997/02/26 23:50:04 mycroft Exp $
d147 4
@


1.81
log
@Use genassym.sh, to support cross-compilation.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.80 1997/02/04 05:08:34 perry Exp $
d98 4
a101 3
assym.h: ${I386}/i386/genassym.cf $S/kern/genassym.sh
	sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} \
	<${I386}/i386/genassym.cf >assym.h || rm assym.h
d121 1
a121 1
	    [Ee]rrs linterrs makelinks genassym genassym.o assym.h
d156 1
a156 1
genassym.o machdep.o: Makefile
@


1.80
log
@Nuke some options GENERIC residue.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.79 1997/02/04 04:32:04 perry Exp $
a44 4
HOSTED_CC=	${CC}
HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
HOSTED_CFLAGS=	${CFLAGS}

a66 2
HOSTED_C=	${HOSTED_CC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<

d98 3
a100 8
assym.h: genassym
	./genassym >assym.h

genassym: genassym.o
	${CC} -o $@@ genassym.o

genassym.o: ${I386}/i386/genassym.c
	${HOSTED_C}
a145 2
	${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} \
	    ${I386}/i386/genassym.c
@


1.80.4.1
log
@Merge in Changes from The Trunk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.80 1997/02/04 05:08:34 perry Exp $
d45 4
d71 2
d104 8
a111 3
assym.h: ${I386}/i386/genassym.cf $S/kern/genassym.sh
	sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} \
	<${I386}/i386/genassym.cf >assym.h || rm assym.h
d157 2
@


1.79
log
@Nuke some GENERIC residue.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.78 1997/01/23 23:07:56 cgd Exp $
d135 1
a135 1
	    ${I386}/i386/Locore.c ${CFILES} ${I386}/i386/swapgeneric.c \
@


1.78
log
@update for new kernel library Makefile.inc expectations
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.77 1996/12/01 06:12:31 jonathan Exp $
d134 1
a134 1
	@@lint -hbxncez -DGENERIC -Dvolatile= ${CPPFLAGS} -UKGDB \
@


1.77
log
@* Replace explicit -O2 in CFLAGS with  COPTS macro. Default COPTS?= -O2.
  Lets users over-ride with makeoptions COPTS="..." in kernel config files.

  Leave `mandatory' flags (like  -msoft-float which  on m68k enforces no
  FP in kernel) in CFLAGS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.76 1996/10/11 00:04:22 christos Exp $
d128 2
a129 1
clean::
d152 1
a152 1
depend:: .depend
@


1.77.2.1
log
@update from trunk
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.78 1997/01/23 23:07:56 cgd Exp $
d128 1
a128 2
clean: cleankernel
cleankernel:
d151 1
a151 1
depend: .depend
@


1.76
log
@add -Wall -Wstrict-prototypes -Wmissing-prototypes.
We are compiling cleanly now!
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.75 1996/09/13 00:02:41 jtk Exp $
d28 1
d40 1
a40 1
CFLAGS=		${DEBUG} ${CWARNFLAGS} -O2 
@


1.75
log
@BIOS trampoline is a static beast; generate it in the sources like
syscalls.h & friends, and include it when needed from the source directory.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.74 1996/09/09 21:07:00 mycroft Exp $
d38 1
a38 1
CWARNFLAGS=	-Werror -Wreturn-type
@


1.74
log
@Move strip(1) flags into a separate variable, so that $STRIP can
be passed to subordinate make(1)s.  Remove $TOUCH.  Add HOSTED_CC,
HOSTED_CPPFLAGS, and HOSTED_CFLAGS, and use them when depending genassym.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.73 1996/08/31 21:41:16 mycroft Exp $
a147 4
# depend on APM
.include "${I386}/apm_init/Makefile.inc"
locore.o: ${APMINC}

d151 1
a151 1
.depend: ${SRCS} assym.h param.c ${APMINC}
@


1.73
log
@Wrap the default definition of `S' in `.ifndef'.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.72 1996/08/25 23:39:29 jtk Exp $
d27 1
a27 3
STRIP?=	strip -d
APMSTRIP?=	strip
TOUCH?=	touch -f -c
d42 5
d70 1
a70 1
HOSTED_C=	${NORMAL_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//}
d96 1
a96 1
		echo ${STRIP} $@@; ${STRIP} $@@
d159 2
a160 1
	${MKDEP} -a ${CFLAGS} ${CPPFLAGS} ${I386}/i386/genassym.c
@


1.72
log
@add Advanced Power Management driver
Includes bootstrap support from FreeBSD (Tatsumi HOSOKAWA and <ukai>)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.71 1996/08/12 00:51:40 mycroft Exp $
d32 1
d34 1
@


1.71
log
@Put  into .  Remove hooks for `config-dependent' and
`device-driver' flags.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.70 1996/08/10 08:40:53 mycroft Exp $
d28 1
d143 4
d150 1
a150 1
.depend: ${SRCS} assym.h param.c
@


1.70
log
@Theres no microcode/Makefile.inc now.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.69 1996/08/10 06:09:00 mycroft Exp $
d35 2
a36 1
CPPFLAGS=	${INCLUDES} ${IDENT} -D_KERNEL -Di386
d58 2
a59 4
# compile rules: rules are named ${TYPE}_${SUFFIX}${CONFIG_DEP}
# where TYPE is NORMAL, DRIVER, or PROFILE; SUFFIX is the file suffix,
# capitalized (e.g. C for a .c file), and CONFIG_DEP is _C if the file
# is marked as config-dependent.
a61 5
NORMAL_C_C=	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} ${PARAM} -c $<

DRIVER_C=	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
DRIVER_C_C=	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} ${PARAM} -c $<

a62 1
NORMAL_S_C=	${CC} ${AFLAGS} ${CPPFLAGS} ${PARAM} -c $<
d64 1
a64 1
HOSTED_C_C=	${NORMAL_C_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//}
d104 1
a104 1
	${HOSTED_C_C}
d111 1
a111 1
	${NORMAL_C_C}
d126 1
a126 1
	@@lint -hbxncez -DGENERIC -Dvolatile= ${CPPFLAGS} ${PARAM} -UKGDB \
d149 1
a149 1
	${MKDEP} -a ${CFLAGS} ${CPPFLAGS} ${PARAM} ${I386}/i386/genassym.c
@


1.69
log
@* Add a HOSTED_C_C variable, which strips `-p', `-pg', and
`-nostdinc', and use it when building genassym.
* Use `-nostdinc' just to be sure we're self-contained.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.68 1996/08/10 05:29:36 mycroft Exp $
a175 3

### add microcode dependencies
.include "$S/dev/microcode/Makefile.inc"
@


1.68
log
@* Define CWARNFLAGS and MKDEP in some moderately consistent fashion.
* Make S expand to an absolute path at compile time.
* Use `-S' rather than `-x' to remove debugging symbols.
* Garbage collect unused variables.
* Reverse a handful of port-specific changes that do not correspond to
the common build model and are not needed.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.67 1996/05/11 16:12:11 mycroft Exp $
d34 1
a34 1
INCLUDES=	-I. -I$S/arch -I$S
d71 2
d111 1
a111 1
	${NORMAL_C_C}
@


1.67
log
@Make `make depend' work for libraries.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.66 1996/02/29 20:56:16 cgd Exp $
a23 1
AS?=	as
a24 1
CPP?=	cpp
d26 1
d31 2
a32 2
S=	../../../..
I386=	../..
d36 2
a37 1
CFLAGS=		${DEBUG} -O2 -Werror
d97 1
a97 1
LINKFLAGS+=	-x
d151 4
a154 4
	mkdep ${AFLAGS} ${CPPFLAGS} ${I386}/i386/locore.s
	mkdep -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
	mkdep -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
	mkdep -a ${CFLAGS} ${CPPFLAGS} ${PARAM} ${I386}/i386/genassym.c
@


1.67.4.1
log
@Pull up latest ahc driver.  Fixes several bugs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.67 1996/05/11 16:12:11 mycroft Exp $
d174 3
@


1.66
log
@Do not build vnode_if.[ch] for each kernel.  Build them once, like the
various syscall sources/headers, and just compile them.  From PR 2142, OK'd
by mycroft.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.65 1996/02/26 02:53:37 mycroft Exp $
d149 1
a149 1
depend: .depend
@


1.65
log
@Define build programs with `?=', so they can be overridden with `makeoptions'.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.63 1996/02/03 00:44:02 mycroft Exp $
a24 1
AWK?=	awk
d83 1
a83 1
		vnode_if.o param.o ioconf.o ${OBJS} ${LIBKERN} ${LIBCOMPAT}
a110 3
vnode_if.c vnode_if.h: $S/kern/vnode_if.sh $S/kern/vnode_if.src
	AWK="${AWK}" sh $S/kern/vnode_if.sh $S/kern/vnode_if.src

d127 1
a127 1
	rm -f eddep *netbsd netbsd.gdb tags vnode_if.[ch] *.[io] [a-z]*.s \
d148 1
a148 1
	vnode_if.c param.c ioconf.c ${CFILES} ${SFILES}
d150 1
a150 1
.depend: ${SRCS} assym.h vnode_if.h param.c
d152 1
a152 1
	mkdep -a ${CFLAGS} ${CPPFLAGS} vnode_if.c param.c ioconf.c ${CFILES}
@


1.64
log
@Fix mkdep problems due to missing flags.
@
text
@d24 7
a30 7
AS=	as
AWK=	awk
CC=	cc
CPP=	cpp
LD=	ld
STRIP=	strip -d
TOUCH=	touch -f -c
@


1.63
log
@Use `-traditional-cpp' when building .s and .S files.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.62 1996/02/02 20:09:06 mycroft Exp $
d39 1
a39 1
AFLAGS=		-D_LOCORE
d69 2
a70 2
NORMAL_S=	${CC} -traditional-cpp -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} -c $<
NORMAL_S_C=	${CC} -traditional-cpp -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} ${PARAM} -c $<
d155 1
a155 1
	mkdep -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} ${I386}/i386/locore.s
d157 1
a157 1
	mkdep -a -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} ${SFILES}
@


1.62
log
@Clone these, and fix many bugs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.61 1996/02/02 02:36:34 mycroft Exp $
d69 2
a70 2
NORMAL_S=	${CC} -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} -c $<
NORMAL_S_C=	${CC} -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} ${PARAM} -c $<
@


1.61
log
@assym.s -> assym.h
(Some ports did this already.)
@
text
@d1 2
a2 3
#	$NetBSD: Makefile.i386,v 1.60 1996/02/01 22:30:32 mycroft Exp $
# 	@@(#)Makefile.hp300	8.2 (Berkeley) 1/23/94
#
d10 2
a11 2
#	 config machineid
# Generic makefile changes should be made in
a19 1
#
d21 4
a24 3
# DEBUG is set to -g by config if debugging is requested (config -g).
# PROF is set to -pg by config if profiling is requested (config -p).
AS=	as ${DEBUG}
d26 1
a26 1
CC=	cc ${DEBUG}
d29 1
d36 5
a40 4
INCLUDES= -I. -I$S/arch -I$S -I$S/sys
COPTS=	${INCLUDES} ${IDENT} -D_KERNEL -Di386
CFLAGS=	-O6 -Werror ${COPTS}
LOAD_ADDRESS= F8100000
d63 2
a64 5
NORMAL_C=	${CC} -c ${CFLAGS} ${PROF} $<
NORMAL_C_C=	${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<

DRIVER_C=	${CC} -c ${CFLAGS} ${PROF} $<
DRIVER_C_C=	${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
d66 2
a67 4
PROFILE_C=	${CC} -S -c ${CFLAGS} $< ; \
		sed -e s/_mcount/mcount/ -e s/subrmcount/subr_mcount/ <$*.s | \
		${AS} -o $@@; \
		rm -f $*.s
d69 2
a70 2
NORMAL_S=	${CPP} -D_LOCORE ${COPTS} $< | ${AS} -o $@@
NORMAL_S_C=	${CPP} -D_LOCORE ${COPTS} ${PARAM} $< | ${AS} -o $@@
d76 2
d83 2
a84 2
SYSTEM_OBJ=	locore.o vnode_if.o ${OBJS} param.o ioconf.o ${LIBKERN} \
		${LIBCOMPAT}
d87 13
a99 12
SYSTEM_LD=	@@if [ X${DEBUG} = X-g ]; then \
			strip=-X; \
		else \
			strip=-x; \
		fi; \
		echo ${LD} $$strip -z -T ${LOAD_ADDRESS} -o $@@ -e start '$${SYSTEM_OBJ}' vers.o; \
		${LD} $$strip -z -T ${LOAD_ADDRESS} -o $@@ -e start ${SYSTEM_OBJ} vers.o
SYSTEM_LD_TAIL=	@@size $@@; chmod 755 $@@; \
		if [ X${DEBUG} = X-g ]; then \
			echo cp $@@ $@@.gdb; rm -f $@@.gdb; cp $@@ $@@.gdb; \
			echo strip -d $@@; strip -d $@@; \
		fi
d103 2
a104 1
newvers: vers.o
d106 2
a107 3
vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
	sh $S/conf/newvers.sh
	${CC} ${CFLAGS} -c vers.c
d109 2
a110 3
clean::
	rm -f eddep *netbsd netbsd.gdb tags vnode_if.[ch] *.o locore.i \
		[a-z]*.s [Ee]rrs linterrs makelinks genassym
d112 2
a113 6
lint: /tmp param.c
	@@lint -hbxn -DGENERIC -Dvolatile= ${COPTS} ${PARAM} -UKGDB \
	    ${I386}/i386/Locore.c ${CFILES} ${I386}/i386/swapgeneric.c \
	    ioconf.c param.c | \
	    grep -v 'struct/union .* never defined' | \
	    grep -v 'possible pointer alignment problem'
d115 3
a117 5
locore.o: assym.h ${I386}/i386/locore.s machine/trap.h machine/psl.h
locore.o: machine/pte.h ${I386}/isa/vector.s ${I386}/isa/icu.s
locore.o: $S/sys/errno.h machine/specialreg.h ${I386}/isa/debug.h
locore.o: ${I386}/isa/icu.h $S/dev/isa/isareg.h $S/net/netisr.h
	${CPP} -D_LOCORE ${COPTS} ${I386}/i386/locore.s | ${AS} -o locore.o
d119 2
a120 2
# the following is necessary because autoconf.o depends on #if GENERIC
autoconf.o: Makefile
d122 2
a123 3
# the following are necessary because the files depend on the types of
# cpu's included in the system configuration
locore.o machdep.o: Makefile
d125 3
a127 2
# depend on network or filesystem configuration
uipc_proto.o vfs_conf.o locore.o: Makefile
a128 2
# depend on maxusers
assym.h: Makefile
d130 3
a132 2
# depends on KDB (cons.o also depends on GENERIC)
trap.o cons.o: Makefile
d134 5
a138 2
assym.h: genassym
	./genassym >assym.h
d140 2
a141 7
genassym: ${I386}/i386/genassym.c
	${CC} ${INCLUDES} ${IDENT} ${PARAM} -Di386 -o genassym \
	    ${I386}/i386/genassym.c

depend: assym.h param.c vnode_if.h
	mkdep ${COPTS} ${CFILES} ioconf.c param.c
	mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${I386}/i386/genassym.c
d148 1
a148 1
	  sed 's,../.*/\(.*.o\),rm -f \1;ln -s ../GENERIC/\1 \1,' > makelinks
d151 15
a165 2
tags:
	@@echo "see $S/kern/Makefile for tags"
d167 2
a168 2
ioconf.o: ioconf.c
	${CC} -c ${CFLAGS} ioconf.c
d170 2
a171 3
param.c: $S/conf/param.c
	rm -f param.c
	cp $S/conf/param.c .
a172 2
param.o: param.c Makefile
	${CC} -c ${CFLAGS} ${PARAM} param.c
d174 2
a175 2
vnode_if.c vnode_if.h: $S/kern/vnode_if.sh $S/kern/vnode_if.src
	AWK="${AWK}" sh $S/kern/vnode_if.sh $S/kern/vnode_if.src
@


1.60
log
@LOCORE -> _LOCORE
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.59 1995/10/10 05:58:00 mycroft Exp $
d121 1
a121 1
locore.o: assym.s ${I386}/i386/locore.s machine/trap.h machine/psl.h
d138 1
a138 1
assym.s: Makefile
d143 2
a144 2
assym.s: genassym
	./genassym >assym.s
d150 1
a150 1
depend: assym.s param.c vnode_if.h
@


1.59
log
@Pull in microcode dependencies.  Remove -fno-builtin.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.58 1995/09/19 23:25:29 thorpej Exp $
d73 2
a74 2
NORMAL_S=	${CPP} -DLOCORE ${COPTS} $< | ${AS} -o $@@
NORMAL_S_C=	${CPP} -DLOCORE ${COPTS} ${PARAM} $< | ${AS} -o $@@
d125 1
a125 1
	${CPP} -DLOCORE ${COPTS} ${I386}/i386/locore.s | ${AS} -o locore.o
@


1.58
log
@Compile the kernel with -fno-builtin.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.57 1995/07/24 03:30:07 mycroft Exp $
d38 1
a38 1
CFLAGS=	-O6 -Werror -fno-builtin ${COPTS}
d179 3
@


1.57
log
@Add -Werror.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.56 1995/06/24 20:39:42 christos Exp $
d38 1
a38 1
CFLAGS=	-O6 -Werror ${COPTS}
@


1.56
log
@GENERIC: 		Add COMPAT_IBCS2 in too by default.
Makefile.`arch`:	- Add -lcompat
			- Change clean: target to be a double dep one,
			  so libraries can use the clean target too
			- Add genassym to the clean targets
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.55 1995/05/16 22:24:50 jtc Exp $
d25 6
a30 8
AS?=	as
AS+=	${DEBUG}
CC?=	cc
CC+=	${DEBUG}
CPP?=	cpp
LD?=	ld
TOUCH?=	touch -f -c
AWK?=	awk
d38 1
a38 1
CFLAGS=	-O6 ${COPTS}
@


1.55
log
@Removing -DKERNEL, transition to _KERNEL has been completed
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.54 1995/04/17 12:06:30 cgd Exp $
d51 8
d87 2
a88 1
SYSTEM_OBJ=	locore.o vnode_if.o ${OBJS} param.o ioconf.o ${LIBKERN}
d112 1
a112 1
clean:
d114 1
a114 1
		[a-z]*.s [Ee]rrs linterrs makelinks
@


1.54
log
@clean up several ISA device interfaces: autoconfiguration, header
inclusion, and interrupt configuration.  more work still needs to be done,
but it's getting better...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.53 1995/04/17 07:30:54 cgd Exp $
d39 1
a39 1
COPTS=	${INCLUDES} ${IDENT} -DKERNEL -D_KERNEL -Di386
@


1.53
log
@allow most program names to be overridden.  kill a bogus } in a comment, and
an unnecessary blank line.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.52 1995/03/23 19:46:50 jtc Exp $
d117 1
a117 1
locore.o: ${I386}/isa/icu.h ${I386}/isa/isareg.h $S/net/netisr.h
@


1.52
log
@Added -D_KERNEL to CFLAGS alongside each -DKERNEL.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.51 1994/12/06 06:07:39 mycroft Exp $
a22 1

d25 8
a32 6
AS=	as ${DEBUG}
CC=	cc ${DEBUG}
CPP=	cpp
LD=	ld
TOUCH=	touch -f -c
AWK=	awk
d52 1
a52 1
# where TYPE is NORMAL, DRIVER, or PROFILE}; SUFFIX is the file suffix,
@


1.51
log
@Don't ignore the exit status of ld(1).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.50 1994/11/04 01:22:26 mycroft Exp $
d38 1
a38 1
COPTS=	${INCLUDES} ${IDENT} -DKERNEL -Di386
@


1.50
log
@Add `newvers' target.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.49 1994/11/04 00:02:39 mycroft Exp $
d81 4
a84 3
SYSTEM_LD=	-@@if [ X${DEBUG} = X-g ]; \
		then strip=-X; \
		else strip=-x; \
d89 4
a92 3
		[ X${DEBUG} = X-g ] && { \
		echo cp $@@ $@@.gdb; rm -f $@@.gdb; cp $@@ $@@.gdb; \
		echo strip -d $@@; strip -d $@@; } || true
@


1.49
log
@vector.h should have been nuked ages ago.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.48 1994/11/04 00:01:19 mycroft Exp $
d93 2
@


1.48
log
@isa.h -> isareg.h
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.47 1994/10/28 17:05:29 mycroft Exp $
d112 1
a112 1
locore.o: ${I386}/isa/icu.h ${I386}/isa/isareg.h vector.h $S/net/netisr.h
@


1.47
log
@Add vnode_if.[ch] to the clean target.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.i386,v 1.46 1994/10/27 04:14:54 cgd Exp $
d112 1
a112 1
locore.o: ${I386}/isa/icu.h ${I386}/isa/isa.h vector.h $S/net/netisr.h
@


1.46
log
@new RCS ID format.
@
text
@d1 1
a1 1
#	$NetBSD$
d99 2
a100 2
	rm -f eddep *netbsd netbsd.gdb tags *.o locore.i [a-z]*.s \
		[Ee]rrs linterrs makelinks
@


1.45
log
@Allow overriding the name of the awk program.  This is a bit different from
how Gordon did it.
@
text
@d1 2
a2 2
# 	from: @@(#)Makefile.hp300	8.2 (Berkeley) 1/23/94
#	$Id: Makefile.i386,v 1.44 1994/06/15 02:13:47 deraadt Exp $
@


1.44
log
@build vnode_if.* early in a kernel compile
@
text
@d2 1
a2 1
#	$Id: Makefile.i386,v 1.43 1994/06/08 07:51:48 mycroft Exp $
d31 1
d163 2
a164 4
vnode_if.c: $S/kern/vnode_if.sh $S/kern/vnode_if.src
	sh $S/kern/vnode_if.sh $S/kern/vnode_if.src
vnode_if.h: $S/kern/vnode_if.sh $S/kern/vnode_if.src
	sh $S/kern/vnode_if.sh $S/kern/vnode_if.src
@


1.43
log
@Build vnode_if.o.
@
text
@d2 1
a2 1
#	$Id: Makefile.i386,v 1.42 1994/05/23 10:18:52 mycroft Exp $
d77 1
a77 1
SYSTEM_OBJ=	locore.o ${OBJS} param.o ioconf.o vnode_if.o ${LIBKERN}
@


1.42
log
@Clone from hp300 version.
@
text
@d2 1
a2 1
#	$Id: Makefile.i386,v 1.41 1994/04/16 08:38:08 cgd Exp $
d77 1
a77 1
SYSTEM_OBJ=	locore.o ${OBJS} param.o ioconf.o ${LIBKERN}
d137 1
a137 1
depend: assym.s param.c
@


1.41
log
@kill symbols.{raw,sort}; no longer necessary, with kvm dbs.
@
text
@d1 2
a2 3
# Copyright 1990 W. Jolitz
# 	from: @@(#)Makefile.i386	7.1 5/10/91
#	$Id: Makefile.i386,v 1.40 1994/01/28 08:43:10 cgd Exp $
d14 1
a14 1
# after which config should be rerun for all machines.
d16 1
a16 1
# N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE INVISIBLE TO MAKEFILE
d22 8
a30 4
LD=	/usr/bin/ld
CC=	cc 
CPP=	cpp
STRIP=	strip
d32 1
d38 1
a38 2
ASFLAGS=
CFLAGS=	-O ${DEBUG} ${COPTS}
d49 10
a58 13
NORMAL_C= ${CC} -c ${CFLAGS} ${PROF} $<
NORMAL_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
NORMAL_S= ${CPP} -I. -DLOCORE ${COPTS} $< | ${AS} ${ASFLAGS} -o $*.o
DRIVER_C= ${CC} -c ${CFLAGS} ${PROF} $<
DRIVER_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
SYSTEM_OBJS=locore.o ${OBJS} param.o ioconf.o conf.o ${LIBKERN}
SYSTEM_DEP=Makefile ${SYSTEM_OBJS}
SYSTEM_LD_HEAD= 	@@echo loading $@@; rm -f $@@
SYSTEM_LD= @@${LD} -z -e start -T ${LOAD_ADDRESS} -o $@@ -X vers.o ${SYSTEM_OBJS}
SYSTEM_LD_TAIL=	@@size $@@; chmod 755 $@@; \
		[ X${DEBUG} = X-g ] && { \
		echo cp $@@ $@@.gdb; rm -f $@@.gdb; cp $@@ $@@.gdb; \
		echo strip -d $@@; strip -d $@@; } || true
a59 1
GPROF.EX=	/usr/src/lib/csu/i386/gprof.ex
d61 2
a62 2
		ex - $*.s < ${GPROF.EX} ; \
		${AS} -o $@@ $*.s ; \
d65 3
d72 19
d93 4
d98 2
a99 2
	rm -f eddep *netbsd tags *.o locore.i [a-uw-z]*.s \
		errs linterrs makelinks genassym
d102 3
a104 2
	@@lint -hbxn -I. -DGENERIC -Dvolatile= ${COPTS} ${PARAM} \
	  ${I386}/i386/Locore.c ${CFILES} ioconf.c param.c | \
d108 5
a112 9
locore.o: assym.s ${I386}/i386/locore.s machine/trap.h machine/psl.h \
	machine/pte.h ${I386}/isa/vector.s ${I386}/isa/icu.s \
	$S/sys/errno.h machine/specialreg.h ${I386}/isa/debug.h \
	${I386}/isa/icu.h ${I386}/isa/isa.h vector.h $S/net/netisr.h
	${CPP} -I. -DLOCORE ${COPTS} ${I386}/i386/locore.s | \
		${AS} ${ASFLAGS} -o locore.o

machdep.o: ${I386}/i386/machdep.c Makefile
	${CC} -c ${CFLAGS} -DLOAD_ADDRESS=0x${LOAD_ADDRESS} ${PROF} $<
d117 6
a122 2
# depend on network configuration
af.o uipc_proto.o locore.o: Makefile
a129 4
assym.s: $S/sys/param.h machine/pte.h $S/sys/buf.h \
    $S/sys/vmmeter.h \
    $S/sys/proc.h $S/sys/msgbuf.h machine/vmparam.h

d134 2
a135 2
	${CC} -static ${INCLUDES} -DKERNEL ${IDENT} ${PARAM} \
		 ${I386}/i386/genassym.c -o genassym
d138 2
a139 2
	sh /usr/bin/mkdep -DLOAD_ADDRESS=0x${LOAD_ADDRESS} ${COPTS} ${CFILES} ioconf.c param.c ${I386}/i386/conf.c
	sh /usr/bin/mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${I386}/i386/genassym.c
d152 1
a152 2
ioconf.o: ioconf.c $S/sys/param.h machine/pte.h $S/sys/buf.h \
    ${I386}/isa/isa_device.h ${I386}/isa/isa.h ${I386}/isa/icu.h
a154 3
conf.o: ${I386}/i386/conf.c
	${CC} -traditional -c ${CFLAGS} ${I386}/i386/conf.c

d156 1
a156 1
	-rm -f param.c
d162 4
a165 3
vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
	sh $S/conf/newvers.sh
	${CC} ${CFLAGS} -c vers.c
a167 3

# DO NOT DELETE THIS LINE -- make depend uses it

@


1.40
log
@kill refs to dbsym, and note that we have a working 'ex' now.
@
text
@d3 1
a3 1
#	$Id: Makefile.i386,v 1.39 1994/01/05 16:03:32 mycroft Exp $
d52 1
a52 1
SYSTEM_DEP=Makefile symbols.sort ${SYSTEM_OBJS}
d55 4
a58 1
SYSTEM_LD_TAIL= @@echo rearranging symbols; symorder symbols.sort $@@; ${STRIP} -x $@@; size $@@; chmod 755 $@@
a80 4

symbols.sort: ${I386}/i386/symbols.raw
	grep -v '^#' ${I386}/i386/symbols.raw \
	    | sed 's/^	//' | sort -u > symbols.sort
@


1.39
log
@LOAD_ADDRESS is now fixed at 0xf8100000.
@
text
@d3 1
a3 1
#	$Id: Makefile.i386,v 1.38 1993/12/30 06:56:48 deraadt Exp $
a27 1
DBSYM=	/usr/sbin/dbsym
d55 1
a55 1
SYSTEM_LD_TAIL= @@echo rearranging symbols; symorder symbols.sort $@@; ${DBSYM} -fT ${LOAD_ADDRESS} $@@; ${STRIP} -x $@@; size $@@; chmod 755 $@@
a56 3
# (XXX) ok, this is weird.  but we've got a working ed, and a broken ex, and
# the script is identical for either... -- cgd
#
d59 1
a59 1
		ed - $*.s < ${GPROF.EX} ; \
@


1.38
log
@compile genassym -static as suggested by Jim McKim <mckim@@lerc.nasa.gov>
@
text
@d3 1
a3 1
#	$Id: Makefile.i386,v 1.37 1993/12/18 04:23:04 mycroft Exp $
d37 1
a37 1
LOAD_ADDRESS ?= FE100000
@


1.37
log
@Clean bogus arguments to newvers, and don't pass KERN_IDENT any more.
@
text
@d3 1
a3 1
#	$Id: Makefile.i386,v 1.36 1993/12/15 01:06:55 deraadt Exp $
d117 1
a117 1
	${CC} ${INCLUDES} -DKERNEL ${IDENT} ${PARAM} \
@


1.36
log
@correct docs
@
text
@d3 1
a3 1
#	$Id: Makefile.i386,v 1.35 1993/10/18 14:35:45 pk Exp $
d150 1
a150 1
	sh $S/conf/newvers.sh ${KERN_IDENT} ${IDENT}
@


1.35
log
@Fixed typo.
@
text
@d3 1
a3 1
#	$Id: Makefile.i386,v 1.34 1993/10/17 20:56:09 pk Exp $
d10 1
a10 1
#	/sys/i386/conf/``machineid''
d14 1
a14 1
#	/sys/i386/conf/Makefile.i386
@


1.34
log
@Explicit entry point specified in kernel link command.
(so far, we've been lucky only because vers.o doesn't contain text)
@
text
@d3 1
a3 1
#	$Id: Makefile.i386,v 1.33 1993/10/13 06:43:17 cgd Exp $
d55 1
a55 1
SYSTEM_LD= @@${LD} -z -e start T ${LOAD_ADDRESS} -o $@@ -X vers.o ${SYSTEM_OBJS}
@


1.33
log
@use the new location for libkern, auto-depend on it, and include
the right one, for profiling or non-profiling.
@
text
@d3 1
a3 1
#	$Id: Makefile.i386,v 1.32 1993/10/09 00:31:21 cgd Exp $
d55 1
a55 1
SYSTEM_LD= @@${LD} -z -T ${LOAD_ADDRESS} -o $@@ -X vers.o ${SYSTEM_OBJS}
@


1.32
log
@genassym needs a dependency...
@
text
@d3 1
a3 1
#	$Id: Makefile.i386,v 1.31 1993/10/06 21:19:11 cgd Exp $
d39 8
d52 1
a52 1
SYSTEM_OBJS=locore.o ${OBJS} param.o ioconf.o conf.o ../libkern.a
@


1.31
log
@get rid of excess target line for machdep.o
@
text
@d3 1
a3 1
#	$Id: Makefile.i386,v 1.30 1993/09/13 15:28:23 brezak Exp $
d108 1
a108 1
genassym:
@


1.30
log
@Default LOAD_ADDRESS at 0xfe100000 (1M)
@
text
@d3 1
a3 1
#	$Id: Makefile.i386,v 1.29 1993/09/11 00:14:13 jtc Exp $
d96 1
a96 1
assym.s machdep.o: Makefile
@


1.29
log
@Link with libkern.
@
text
@d3 1
a3 1
#	$Id: Makefile.i386,v 1.28 1993/08/29 12:48:10 brezak Exp $
d37 1
d85 3
@


1.28
log
@Changes for boot loading of symbols.
@
text
@d3 1
a3 1
#	$Id: Makefile.i386,v 1.27 1993/08/27 23:58:20 brezak Exp $
d43 1
a43 1
SYSTEM_OBJS=locore.o ${OBJS} param.o ioconf.o conf.o
@


1.28.2.1
log
@New i386 code.
@
text
@d3 1
a3 1
#	$Id: Makefile.i386,v 1.28 1993/08/29 12:48:10 brezak Exp $
d8 1
a8 1
#	config.new machineid
d10 1
a10 1
#	/sys/arch/i386/conf/``machineid''
d12 1
a12 1
#	config.new machineid
d14 1
a14 1
#	/sys/arch/i386/conf/Makefile.i386
d24 1
a24 1
LD=	ld
d28 1
a28 1
DBSYM=	dbsym
a32 3
# XXX: kluge
LOAD_ADDRESS=0xfe100000

d36 1
a36 1
CFLAGS=	-O6 ${DEBUG} ${COPTS}
d40 1
a40 1

d43 5
d49 3
a51 20
NORMAL_S= ${CPP} -I. -DLOCORE ${COPTS} $< | ${AS} ${ASFLAGS} -o $*.o
NORMAL_S_C= ${CPP} -I. -DLOCORE ${COPTS} ${PARAM} $< | ${AS} ${ASFLAGS} -o $*.o

SYSTEM_OBJS=	locore.o ${OBJS} param.o ioconf.o
SYSTEM_DEP=	Makefile symbols.sort ${SYSTEM_OBJS}
SYSTEM_LD_HEAD=	@@echo loading $@@; rm -f $@@
SYSTEM_LD= 	@@${LD} -z -T ${LOAD_ADDRESS} -o $@@ -X ${SYSTEM_OBJS} vers.o
SYSTEM_LD_TAIL=	@@echo rearranging symbols; \
		symorder symbols.sort $@@; \
		${DBSYM} -fT ${LOAD_ADDRESS} $@@; \
		${STRIP} $@@; \
		size $@@; chmod 755 $@@

.ifdef DEBUG
STRIP+=	-X
.else
STRIP+=	-x
.endif

# XXX: should use ex, not ed
a61 2
%SFILES

d65 2
a66 2
	rm -f *netbsd tags *.o locore.i [a-uw-z]*.s \
	    errs linterrs makelinks dontlink genassym
d68 1
a68 1
lint: param.c
d94 1
a94 1
# depend on KDB (cons.o also depends on GENERIC)
d97 2
a98 2
assym.s: Makefile genassym \
    $S/sys/param.h machine/pte.h $S/sys/buf.h $S/sys/vmmeter.h \
d100 2
a107 1
# XXX: fix me
a122 1
# XXX
a126 1
# XXX
@


1.28.2.2
log
@Majorly redone.
@
text
@d1 3
a3 2
# Copyright 1993 Charles Hannum
#	$Id: Makefile.i386,v 1.28.2.1 1993/09/14 17:28:05 mycroft Exp $
d10 1
a10 1
#	/sys/arch/``machinetype''/conf/``machineid''
d13 3
a15 3
# Machine generic makefile changes should be made in
#	/sys/arch/``machinetype''/conf/Makefile.``machinetype''
# after which config.new should be rerun for all machines of that type.
d17 1
a17 1
# N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE VISIBLE TO MAKEFILE
d22 4
a25 7

# DEBUG is set to -g if debugging.
# PROF is set to -pg if profiling.

AS?=	as

CC=	cc ${DEBUG}
d27 2
a28 2
LD=	ld
TOUCH=	touch -f -c
d32 3
a34 1
LIBKERN=../libkern.a
d38 2
a39 1
CFLAGS=	-O6 ${COPTS}
d41 2
a42 4
# compile rules: rules are named ${TYPE}_${SUFFIX}${CONFIG_DEP}
# where TYPE is NORMAL, DRIVER, or PROFILE}; SUFFIX is the file suffix,
# capitalized (e.g. C for a .c file), and CONFIG_DEP is _C if the file
# is marked as config-dependent.
d44 2
a45 1
# i386 kernel uses volatile, rather than heavy `device-driver's
d47 18
a64 2
NORMAL_C=	${CC} -c ${CFLAGS} ${PROF} $<
NORMAL_C_C=	${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
d66 6
a71 2
NORMAL_S=	${CPP} -I. -DLOCORE ${COPTS} $< | ${AS} ${ASFLAGS} -o $*.o
NORMAL_S_C=	${CPP} -I. -DLOCORE ${COPTS} ${PARAM} $< | ${AS} ${ASFLAGS} -o $*.o
a78 21
# load lines for config "xxx" will be emitted as:
# xxx: ${SYSTEM_DEP} swapxxx.o
#       ${SYSTEM_LD_HEAD}
#       ${SYSTEM_LD} swapxxx.o
#       ${SYSTEM_LD_TAIL}
DEBUG?=
.if ${DEBUG} == "-g"
LDX=-X
.else
LDX=-x
.endif
SYSTEM_OBJ=	locore.o ${OBJS} param.o ioconf.o
SYSTEM_DEP=	Makefile symbols.sort ${SYSTEM_OBJ}
SYSTEM_LD_HEAD=	rm -f $@@
SYSTEM_LD= 	${LD} ${LDX} -z -e start -T fe100000 -o $@@ ${SYSTEM_OBJ} \
		vers.o ${LIBKERN}
SYSTEM_LD_TAIL=	@@symorder symbols.sort $@@; \
		dbsym -fT fe100000 $@@; \
		strip ${LDX} $@@; \
		size $@@; chmod 755 $@@

d81 3
a83 1
newvers: vers.o
d85 5
a89 3
clean:
	rm -f eddep *netbsd tags *.[io] [a-z]*.s \
	    [Ee]rrs linterrs makelinks dontlink genassym
d95 6
a100 5
locore.o: ${I386}/i386/locore.s assym.s
	${NORMAL_S}

# depend on maxusers
assym.s: Makefile
d108 3
d114 3
a116 1
assym.s: genassym
d119 8
a126 2
genassym: genassym.o
	${CC} -o $@@ genassym.o
a127 8
genassym.o: ${I386}/i386/genassym.c
	${CC} -c ${CFLAGS} ${PARAM} $<

SRCS=	${CFILES} ${I386}/i386/locore.s ${I386}/i386/genassym.c ioconf.c param.c
depend: .depend
.depend: ${SRCS} assym.s
	mkdep ${COPTS} ${SRCS}

d139 8
a146 2
ioconf.o: ioconf.c
	${NORMAL_C}
d153 1
a153 1
	${NORMAL_C_C}
d156 4
a159 2
	sh $S/conf/newvers.sh
	${CC} -c ${CFLAGS} vers.c
d161 1
a161 3
# XXX
conf.o: ${I386}/i386/conf.c
	${CC} -traditional -c ${CFLAGS} ${I386}/i386/conf.c
a162 1
%RULES
@


1.28.2.3
log
@Oops.  Add some missing dependencies for locore.o.
@
text
@d2 1
a2 1
#	$Id: Makefile.i386,v 1.28.2.2 1993/10/09 08:55:41 mycroft Exp $
d92 1
a92 1
locore.o: ${I386}/i386/locore.s ${I386}/isa/icu.s ${I386}/isa/vector.s assym.s
@


1.28.2.4
log
@use new libkern setup
@
text
@d2 1
a2 1
#	$Id: Makefile.i386,v 1.28.2.3 1993/10/09 09:14:19 mycroft Exp $
d34 1
a39 8
# find out what to use for libkern
.include "$S/lib/libkern/Makefile.inc"
.ifndef PROF    
LIBKERN=	${KERNLIB} 
.else
LIBKERN=	${KERNLIB_PROF}
.endif 

d71 1
a71 1
SYSTEM_DEP=	Makefile symbols.sort ${SYSTEM_OBJ} ${LIBKERN}
@


1.28.2.5
log
@Use new link address, and junk dbsym.
@
text
@d2 1
a2 1
#	$Id: Makefile.i386,v 1.28.2.4 1993/12/04 07:28:01 cgd Exp $
d80 1
a80 1
SYSTEM_LD= 	${LD} ${LDX} -z -e start -T f8100000 -o $@@ ${SYSTEM_OBJ} \
d83 1
@


1.27
log
@Need LOAD_ADDRESS for depend pass.
@
text
@d3 1
a3 1
#	$Id: Makefile.i386,v 1.26 1993/07/31 15:26:37 mycroft Exp $
d27 2
d47 1
a47 1
SYSTEM_LD_TAIL= @@echo rearranging symbols; symorder symbols.sort $@@; /usr/sbin/dbsym -fT ${LOAD_ADDRESS} $@@; size $@@; chmod 755 $@@
@


1.26
log
@Add RCS indentifiers.
@
text
@d3 1
a3 1
#	$Id: $
d107 1
a107 1
	sh /usr/bin/mkdep ${COPTS} ${CFILES} ioconf.c param.c ${I386}/i386/conf.c
@


1.25
log
@Add ${DEBUG} to CFLAGS and -f to dbsym.
@
text
@d2 2
a3 2
# from @@(#)Makefile.i386	7.1 5/10/91
# $Id: Makefile.i386,v 1.24 1993/07/18 21:26:34 mycroft Exp $
@


1.25.2.1
log
@file Makefile.i386 was added on branch netbsd-0-9 on 1993-07-19 16:52:17 +0000
@
text
@d1 142
@


1.25.2.2
log
@Add ${DEBUG} to CFLAGS and -f to dbsym.
@
text
@a0 142
# Copyright 1990 W. Jolitz
# from @@(#)Makefile.i386	7.1 5/10/91
# $Id: Makefile.i386,v 1.25 1993/07/19 16:52:16 mycroft Exp $
#
# Makefile for NetBSD
#
# This makefile is constructed from a machine description:
#	config machineid
# Most changes should be made in the machine description
#	/sys/i386/conf/``machineid''
# after which you should do
#	 config machineid
# Generic makefile changes should be made in
#	/sys/i386/conf/Makefile.i386
# after which config should be rerun for all machines.
#
# N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE INVISIBLE TO MAKEFILE
#	IF YOU CHANGE THE DEFINITION OF ANY OF THESE RECOMPILE EVERYTHING
#
# -DTRACE	compile in kernel tracing hooks
# -DQUOTA	compile in file system quotas
#
TOUCH=	touch -f -c
LD=	/usr/bin/ld
CC=	cc 
CPP=	cpp

S=	../../../..
I386=	../..

INCLUDES= -I. -I$S/arch -I$S -I$S/sys
COPTS=	${INCLUDES} ${IDENT} -DKERNEL -Di386
ASFLAGS=
CFLAGS=	-O ${DEBUG} ${COPTS}

NORMAL_C= ${CC} -c ${CFLAGS} ${PROF} $<
NORMAL_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
NORMAL_S= ${CPP} -I. -DLOCORE ${COPTS} $< | ${AS} ${ASFLAGS} -o $*.o
DRIVER_C= ${CC} -c ${CFLAGS} ${PROF} $<
DRIVER_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
SYSTEM_OBJS=locore.o ${OBJS} param.o ioconf.o conf.o
SYSTEM_DEP=Makefile symbols.sort ${SYSTEM_OBJS}
SYSTEM_LD_HEAD= 	@@echo loading $@@; rm -f $@@
SYSTEM_LD= @@${LD} -z -T ${LOAD_ADDRESS} -o $@@ -X vers.o ${SYSTEM_OBJS}
SYSTEM_LD_TAIL= @@echo rearranging symbols; symorder symbols.sort $@@; /usr/sbin/dbsym -fT ${LOAD_ADDRESS} $@@; size $@@; chmod 755 $@@

# (XXX) ok, this is weird.  but we've got a working ed, and a broken ex, and
# the script is identical for either... -- cgd
#
GPROF.EX=	/usr/src/lib/csu/i386/gprof.ex
PROFILE_C=	${CC} -S -c ${CFLAGS} $< ; \
		ed - $*.s < ${GPROF.EX} ; \
		${AS} -o $@@ $*.s ; \
		rm -f $*.s

%OBJS

%CFILES

%LOAD

clean:
	rm -f eddep *netbsd tags *.o locore.i [a-uw-z]*.s \
		errs linterrs makelinks genassym

lint: /tmp param.c
	@@lint -hbxn -I. -DGENERIC -Dvolatile= ${COPTS} ${PARAM} \
	  ${I386}/i386/Locore.c ${CFILES} ioconf.c param.c | \
	    grep -v 'struct/union .* never defined' | \
	    grep -v 'possible pointer alignment problem'

symbols.sort: ${I386}/i386/symbols.raw
	grep -v '^#' ${I386}/i386/symbols.raw \
	    | sed 's/^	//' | sort -u > symbols.sort

locore.o: assym.s ${I386}/i386/locore.s machine/trap.h machine/psl.h \
	machine/pte.h ${I386}/isa/vector.s ${I386}/isa/icu.s \
	$S/sys/errno.h machine/specialreg.h ${I386}/isa/debug.h \
	${I386}/isa/icu.h ${I386}/isa/isa.h vector.h $S/net/netisr.h
	${CPP} -I. -DLOCORE ${COPTS} ${I386}/i386/locore.s | \
		${AS} ${ASFLAGS} -o locore.o

# the following is necessary because autoconf.o depends on #if GENERIC
autoconf.o: Makefile

# depend on network configuration
af.o uipc_proto.o locore.o: Makefile

# depend on maxusers
assym.s machdep.o: Makefile

# depends on KDB (cons.o also depends on GENERIC)
trap.o cons.o: Makefile

assym.s: $S/sys/param.h machine/pte.h $S/sys/buf.h \
    $S/sys/vmmeter.h \
    $S/sys/proc.h $S/sys/msgbuf.h machine/vmparam.h

assym.s: genassym
	./genassym >assym.s

genassym:
	${CC} ${INCLUDES} -DKERNEL ${IDENT} ${PARAM} \
		 ${I386}/i386/genassym.c -o genassym

depend: assym.s param.c
	sh /usr/bin/mkdep ${COPTS} ${CFILES} ioconf.c param.c ${I386}/i386/conf.c
	sh /usr/bin/mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${I386}/i386/genassym.c

links:
	egrep '#if' ${CFILES} | sed -f $S/conf/defines | \
	  sed -e 's/:.*//' -e 's/\.c/.o/' | sort -u > dontlink
	echo ${CFILES} | tr -s ' ' '\12' | sed 's/\.c/.o/' | \
	  sort -u | comm -23 - dontlink | \
	  sed 's,../.*/\(.*.o\),rm -f \1;ln -s ../GENERIC/\1 \1,' > makelinks
	sh makelinks && rm -f dontlink

tags:
	@@echo "see $S/kern/Makefile for tags"

ioconf.o: ioconf.c $S/sys/param.h machine/pte.h $S/sys/buf.h \
    ${I386}/isa/isa_device.h ${I386}/isa/isa.h ${I386}/isa/icu.h
	${CC} -c ${CFLAGS} ioconf.c

conf.o: ${I386}/i386/conf.c
	${CC} -traditional -c ${CFLAGS} ${I386}/i386/conf.c

param.c: $S/conf/param.c
	-rm -f param.c
	cp $S/conf/param.c .

param.o: param.c Makefile
	${CC} -c ${CFLAGS} ${PARAM} param.c

vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
	sh $S/conf/newvers.sh ${KERN_IDENT} ${IDENT}
	${CC} ${CFLAGS} -c vers.c

%RULES

# DO NOT DELETE THIS LINE -- make depend uses it

@


1.24
log
@Phooey.  Need a better mechanism for dealing with multiple sets of local
changes.
@
text
@d3 1
a3 1
# $Id: Makefile.i386,v 1.23 1993/07/18 16:44:16 cgd Exp $
d34 1
a34 1
CFLAGS=	-O ${COPTS}
d45 1
a45 1
SYSTEM_LD_TAIL= @@echo rearranging symbols; symorder symbols.sort $@@; /usr/sbin/dbsym -T ${LOAD_ADDRESS} $@@; size $@@; chmod 755 $@@
@


1.23
log
@CC should be cc.  cc is gcc2...
@
text
@d3 1
a3 1
# $Id: Makefile.i386,v 1.22 1993/07/18 10:08:22 mycroft Exp $
d34 1
a34 1
CFLAGS=	-O6 ${COPTS}
@


1.22
log
@Change to work with new config stuff for specifying load address.
@
text
@d3 1
a3 1
# $Id: Makefile.i386,v 1.21 1993/07/18 09:48:49 mycroft Exp $
d25 1
a25 1
CC=	gcc 
@


1.21
log
@Oops.  Back out a change that shouldn't be committed...
@
text
@d3 1
a3 1
# $Id: Makefile.i386,v 1.20 1993/07/18 09:47:40 mycroft Exp $
d25 1
a25 1
CC=	cc 
d34 1
a34 1
CFLAGS=	-O ${COPTS}
d44 2
a45 3
SYSTEM_LOAD_ADDRESS= FE000000
SYSTEM_LD= @@${LD} -z -T ${SYSTEM_LOAD_ADDRESS} -o $@@ -X vers.o ${SYSTEM_OBJS}
SYSTEM_LD_TAIL= @@echo rearranging symbols; symorder symbols.sort $@@; /usr/sbin/dbsym -T ${SYSTEM_LOAD_ADDRESS} $@@; size $@@; chmod 755 $@@
@


1.20
log
@Use new -T option to dbsym.
@
text
@d3 1
a3 1
# $Id: Makefile.i386,v 1.19 1993/07/17 12:22:00 cgd Exp $
d25 1
a25 1
CC=	gcc 
d34 1
a34 1
CFLAGS=	-O6 ${COPTS}
@


1.19
log
@gcc-2.4.5's  ffs() has been rendered safe for kernel compiling...
@
text
@d3 1
a3 1
# $Id: Makefile.i386,v 1.18 1993/07/12 11:58:27 cgd Exp $
d25 1
a25 1
CC=	cc 
d34 1
a34 1
CFLAGS=	-O ${COPTS}
d44 3
a46 2
SYSTEM_LD= @@${LD} -z -T FE000000 -o $@@ -X vers.o ${SYSTEM_OBJS}
SYSTEM_LD_TAIL= @@echo rearranging symbols; symorder symbols.sort $@@; /usr/sbin/dbsym $@@; size $@@; chmod 755 $@@
@


1.18
log
@add -fno-builtin to CFLAGS until gcc bug fixed
@
text
@d3 1
a3 1
# $Id: Makefile.i386,v 1.17 1993/07/11 08:42:22 cgd Exp $
d34 1
a34 1
CFLAGS=	-O ${COPTS} -fno-builtin
@


1.17
log
@don't ignore errors from dbsym...  it might say that, e.g. there's
not enough symbol space!
@
text
@d3 1
a3 1
# $Id: Makefile.i386,v 1.16 1993/06/18 02:03:34 brezak Exp $
d34 1
a34 1
CFLAGS=	-O ${COPTS}
@


1.16
log
@Use NNPX instead of NPX from npx.h for activating npx.
@
text
@d3 1
a3 1
# $Id: Makefile.i386,v 1.15 1993/06/11 02:59:54 cgd Exp $
d45 1
a45 1
SYSTEM_LD_TAIL= @@echo rearranging symbols; symorder symbols.sort $@@; /usr/sbin/dbsym $@@ 2>/dev/null || true; size $@@; chmod 755 $@@
@


1.15
log
@note gprof.ex is in csu/i386 not csu.i386 like it used to be...
@
text
@d3 1
a3 1
# $Id: Makefile.i386,v 1.14 1993/06/06 23:29:03 cgd Exp $
d32 1
a32 1
COPTS=	${INCLUDES} ${IDENT} -DKERNEL -Di386 -DNPX
@


1.14
log
@make conf.o actually depend on conf.c...
@
text
@d3 1
a3 1
# $Id: Makefile.i386,v 1.13 1993/06/06 04:15:38 cgd Exp $
d50 1
a50 1
GPROF.EX=	/usr/src/lib/csu.i386/gprof.ex
@


1.13
log
@incorporate Bruce Evans' interrupt changes, as hacked by Rod grimes,
for patchkit patch 158.  it appears to work well.
@
text
@d3 1
a3 1
# $Id: Makefile.i386,v 1.12 1993/05/24 11:04:52 cgd Exp $
d125 1
a125 1
conf.o:
@


1.12
log
@do the right thing for vers.o.  i.e. don't make newvers if nothing
has changed.
@
text
@d3 1
a3 1
# $Id: Makefile.i386,v 1.11 1993/05/18 08:54:21 cgd Exp $
d45 1
a45 1
SYSTEM_LD_TAIL= @@echo rearranging symbols; symorder symbols.sort $@@; /usr/sbin/dbsym $@@ || true; size $@@; chmod 755 $@@
d64 1
a64 1
		errs linterrs makelinks
d77 3
a79 2
	machine/pte.h vector.s ${I386}/isa/icu.s ${I386}/isa/isa.h \
	${I386}/isa/icu.h
d137 1
a137 1
	cc ${CFLAGS} -c vers.c
@


1.11
log
@changes for 'arch'
@
text
@d3 1
a3 1
# $Id: Makefile.i386,v 1.10 1993/05/17 09:10:36 cgd Exp $
d106 1
a106 1
	sh /usr/bin/mkdep ${COPTS} ${CFILES} ioconf.c
d124 1
a124 2
conf.o: $S/sys/param.h $S/sys/systm.h $S/sys/buf.h $S/sys/ioctl.h \
	$S/sys/tty.h $S/sys/conf.h ${I386}/i386/conf.c
d134 1
a134 1
newvers:
@


1.10
log
@make config use a /sys/${machine}/compile directory, rather than
/sys/compile
@
text
@d3 1
a3 1
# $Id: Makefile.i386,v 1.9 1993/05/07 08:33:27 cgd Exp $
d28 2
a29 2
S=	../../..
I386=	../../../i386
d31 1
a31 1
INCLUDES= -I. -I$S -I$S/sys
@


1.9
log
@add rcsid, and kernel description where necessary
@
text
@d3 1
a3 1
# $Id$
d28 2
a29 2
S=	../..
I386=	../../i386
@


1.8
log
@use ed instead of ex.  the script to use is identical, and we might
want to switch back to using ex when our ex supports -.
@
text
@d2 3
a4 1
# @@(#)Makefile.i386	7.1 5/10/91
@


1.7
log
@bsd->netbsd
@
text
@d3 1
a3 1
# Makefile for 4.3 BSD-Reno
a20 8
# PATCHES MAGIC                LEVEL   PATCH THAT GOT US HERE
# --------------------         -----   ----------------------
# CURRENT PATCH LEVEL:         1       00001
# --------------------         -----   ----------------------
#
# 29 Jun 92	Chris G. Demetriou	Fix vers.o for kernel profiling and
#						plain old link
#
d45 3
d50 1
a50 1
		ex - $*.s < ${GPROF.EX} ; \
@


1.6
log
@new kernel name is bsd
@
text
@d66 1
a66 1
	rm -f eddep *bsd tags *.o locore.i [a-uw-z]*.s \
@


1.5
log
@now use absolute path for dbsym
@
text
@d66 1
a66 1
	rm -f eddep *386bsd tags *.o locore.i [a-uw-z]*.s \
@


1.4
log
@automatically run dbsym on kernel
@
text
@d51 1
a51 1
SYSTEM_LD_TAIL= @@echo rearranging symbols; symorder symbols.sort $@@; dbsym $@@ || true; size $@@; chmod 755 $@@
@


1.3
log
@added support for microtime routines by Steve McCanne (mccanne@@ee.lbl.gov)
@
text
@d51 1
a51 1
SYSTEM_LD_TAIL= @@echo rearranging symbols; symorder symbols.sort $@@; size $@@; chmod 755 $@@
@


1.2
log
@after 0.2.2 "stable" patches applied
@
text
@d44 1
@


1.1
log
@Initial revision
@
text
@d21 8
d49 1
a49 1
SYSTEM_LD= @@${LD} -z -T FE000000 -o $@@ -X ${SYSTEM_OBJS}
d52 6
d136 4
@


1.1.1.1
log
@initial import of 386bsd-0.1 sources
@
text
@@
