head	1.62;
access;
symbols
	netbsd-11-0-RC4:1.62
	netbsd-11-0-RC3:1.62
	netbsd-11-0-RC2:1.62
	netbsd-11-0-RC1:1.62
	perseant-exfatfs-base-20250801:1.62
	netbsd-11:1.62.0.2
	netbsd-11-base:1.62
	netbsd-10-1-RELEASE:1.60
	perseant-exfatfs-base-20240630:1.60
	perseant-exfatfs:1.60.0.24
	perseant-exfatfs-base:1.60
	netbsd-8-3-RELEASE:1.58
	netbsd-9-4-RELEASE:1.59
	netbsd-10-0-RELEASE:1.60
	netbsd-10-0-RC6:1.60
	netbsd-10-0-RC5:1.60
	netbsd-10-0-RC4:1.60
	netbsd-10-0-RC3:1.60
	netbsd-10-0-RC2:1.60
	thorpej-ifq:1.60.0.22
	thorpej-ifq-base:1.60
	thorpej-altq-separation:1.60.0.20
	thorpej-altq-separation-base:1.60
	netbsd-10-0-RC1:1.60
	netbsd-10:1.60.0.18
	netbsd-10-base:1.60
	bouyer-sunxi-drm:1.60.0.16
	bouyer-sunxi-drm-base:1.60
	netbsd-9-3-RELEASE:1.59
	thorpej-i2c-spi-conf2:1.60.0.14
	thorpej-i2c-spi-conf2-base:1.60
	thorpej-futex2:1.60.0.12
	thorpej-futex2-base:1.60
	thorpej-cfargs2:1.60.0.10
	thorpej-cfargs2-base:1.60
	cjep_sun2x-base1:1.60
	cjep_sun2x:1.60.0.8
	cjep_sun2x-base:1.60
	cjep_staticlib_x-base1:1.60
	netbsd-9-2-RELEASE:1.59
	cjep_staticlib_x:1.60.0.6
	cjep_staticlib_x-base:1.60
	thorpej-i2c-spi-conf:1.60.0.4
	thorpej-i2c-spi-conf-base:1.60
	thorpej-cfargs:1.60.0.2
	thorpej-cfargs-base:1.60
	thorpej-futex:1.59.0.14
	thorpej-futex-base:1.60
	netbsd-9-1-RELEASE:1.59
	bouyer-xenpvh-base2:1.59
	phil-wifi-20200421:1.59
	bouyer-xenpvh-base1:1.59
	phil-wifi-20200411:1.59
	bouyer-xenpvh:1.59.0.12
	bouyer-xenpvh-base:1.59
	is-mlppp:1.59.0.10
	is-mlppp-base:1.59
	phil-wifi-20200406:1.59
	netbsd-8-2-RELEASE:1.58
	ad-namecache-base3:1.59
	netbsd-9-0-RELEASE:1.59
	netbsd-9-0-RC2:1.59
	ad-namecache-base2:1.59
	ad-namecache-base1:1.59
	ad-namecache:1.59.0.8
	ad-namecache-base:1.59
	netbsd-9-0-RC1:1.59
	phil-wifi-20191119:1.59
	netbsd-9:1.59.0.6
	netbsd-9-base:1.59
	phil-wifi-20190609:1.59
	netbsd-8-1-RELEASE:1.58
	netbsd-8-1-RC1:1.58
	isaki-audio2:1.59.0.4
	isaki-audio2-base:1.59
	pgoyette-compat-merge-20190127:1.58.10.1
	pgoyette-compat-20190127:1.59
	pgoyette-compat-20190118:1.59
	pgoyette-compat-1226:1.59
	pgoyette-compat-1126:1.59
	pgoyette-compat-1020:1.59
	pgoyette-compat-0930:1.59
	pgoyette-compat-0906:1.59
	netbsd-7-2-RELEASE:1.54
	pgoyette-compat-0728:1.59
	netbsd-8-0-RELEASE:1.58
	phil-wifi:1.59.0.2
	phil-wifi-base:1.59
	pgoyette-compat-0625:1.59
	netbsd-8-0-RC2:1.58
	pgoyette-compat-0521:1.58
	pgoyette-compat-0502:1.58
	pgoyette-compat-0422:1.58
	netbsd-8-0-RC1:1.58
	pgoyette-compat-0415:1.58
	pgoyette-compat-0407:1.58
	pgoyette-compat-0330:1.58
	pgoyette-compat-0322:1.58
	pgoyette-compat-0315:1.58
	netbsd-7-1-2-RELEASE:1.54
	pgoyette-compat:1.58.0.10
	pgoyette-compat-base:1.58
	netbsd-7-1-1-RELEASE:1.54
	tls-maxphys-base-20171202:1.58
	matt-nb8-mediatek:1.58.0.8
	matt-nb8-mediatek-base:1.58
	nick-nhusb-base-20170825:1.58
	perseant-stdc-iso10646:1.58.0.6
	perseant-stdc-iso10646-base:1.58
	netbsd-8:1.58.0.4
	netbsd-8-base:1.58
	prg-localcount2-base3:1.58
	prg-localcount2-base2:1.58
	prg-localcount2-base1:1.58
	prg-localcount2:1.58.0.2
	prg-localcount2-base:1.58
	pgoyette-localcount-20170426:1.58
	bouyer-socketcan-base1:1.58
	jdolecek-ncq:1.56.0.2
	jdolecek-ncq-base:1.56
	pgoyette-localcount-20170320:1.55
	netbsd-7-1:1.54.0.10
	netbsd-7-1-RELEASE:1.54
	netbsd-7-1-RC2:1.54
	nick-nhusb-base-20170204:1.55
	netbsd-7-nhusb-base-20170116:1.54
	bouyer-socketcan:1.55.0.4
	bouyer-socketcan-base:1.55
	pgoyette-localcount-20170107:1.55
	netbsd-7-1-RC1:1.54
	nick-nhusb-base-20161204:1.55
	pgoyette-localcount-20161104:1.55
	netbsd-7-0-2-RELEASE:1.54
	nick-nhusb-base-20161004:1.55
	localcount-20160914:1.55
	netbsd-7-nhusb:1.54.0.8
	netbsd-7-nhusb-base:1.54
	pgoyette-localcount-20160806:1.55
	pgoyette-localcount-20160726:1.55
	pgoyette-localcount:1.55.0.2
	pgoyette-localcount-base:1.55
	nick-nhusb-base-20160907:1.55
	nick-nhusb-base-20160529:1.55
	netbsd-7-0-1-RELEASE:1.54
	nick-nhusb-base-20160422:1.55
	nick-nhusb-base-20160319:1.55
	nick-nhusb-base-20151226:1.55
	netbsd-7-0:1.54.0.6
	netbsd-7-0-RELEASE:1.54
	nick-nhusb-base-20150921:1.55
	netbsd-7-0-RC3:1.54
	netbsd-7-0-RC2:1.54
	netbsd-7-0-RC1:1.54
	nick-nhusb-base-20150606:1.55
	nick-nhusb-base-20150406:1.55
	nick-nhusb:1.54.0.4
	nick-nhusb-base:1.54
	netbsd-5-2-3-RELEASE:1.46
	netbsd-5-1-5-RELEASE:1.46
	netbsd-6-0-6-RELEASE:1.51
	netbsd-6-1-5-RELEASE:1.51
	netbsd-7:1.54.0.2
	netbsd-7-base:1.54
	yamt-pagecache-base9:1.52
	yamt-pagecache-tag8:1.51
	netbsd-6-1-4-RELEASE:1.51
	netbsd-6-0-5-RELEASE:1.51
	tls-earlyentropy:1.52.0.2
	tls-earlyentropy-base:1.53
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.52
	riastradh-drm2-base3:1.52
	netbsd-6-1-3-RELEASE:1.51
	netbsd-6-0-4-RELEASE:1.51
	netbsd-5-2-2-RELEASE:1.46
	netbsd-5-1-4-RELEASE:1.46
	netbsd-6-1-2-RELEASE:1.51
	netbsd-6-0-3-RELEASE:1.51
	netbsd-5-2-1-RELEASE:1.46
	netbsd-5-1-3-RELEASE:1.46
	rmind-smpnet-nbase:1.52
	netbsd-6-1-1-RELEASE:1.51
	riastradh-drm2-base2:1.51
	riastradh-drm2-base1:1.51
	riastradh-drm2:1.51.0.26
	riastradh-drm2-base:1.51
	rmind-smpnet:1.51.0.18
	rmind-smpnet-base:1.52
	netbsd-6-1:1.51.0.24
	netbsd-6-0-2-RELEASE:1.51
	netbsd-6-1-RELEASE:1.51
	khorben-n900:1.51.0.22
	netbsd-6-1-RC4:1.51
	netbsd-6-1-RC3:1.51
	agc-symver:1.51.0.20
	agc-symver-base:1.51
	netbsd-6-1-RC2:1.51
	netbsd-6-1-RC1:1.51
	yamt-pagecache-base8:1.51
	netbsd-5-2:1.46.0.20
	netbsd-6-0-1-RELEASE:1.51
	yamt-pagecache-base7:1.51
	netbsd-5-2-RELEASE:1.46
	netbsd-5-2-RC1:1.46
	matt-nb6-plus-nbase:1.51
	yamt-pagecache-base6:1.51
	netbsd-6-0:1.51.0.16
	netbsd-6-0-RELEASE:1.51
	netbsd-6-0-RC2:1.51
	tls-maxphys:1.51.0.14
	tls-maxphys-base:1.54
	matt-nb6-plus:1.51.0.12
	matt-nb6-plus-base:1.51
	netbsd-6-0-RC1:1.51
	jmcneill-usbmp-base10:1.51
	yamt-pagecache-base5:1.51
	jmcneill-usbmp-base9:1.51
	yamt-pagecache-base4:1.51
	jmcneill-usbmp-base8:1.51
	jmcneill-usbmp-base7:1.51
	jmcneill-usbmp-base6:1.51
	jmcneill-usbmp-base5:1.51
	jmcneill-usbmp-base4:1.51
	jmcneill-usbmp-base3:1.51
	jmcneill-usbmp-pre-base2:1.51
	jmcneill-usbmp-base2:1.51
	netbsd-6:1.51.0.10
	netbsd-6-base:1.51
	netbsd-5-1-2-RELEASE:1.46
	netbsd-5-1-1-RELEASE:1.46
	jmcneill-usbmp:1.51.0.8
	jmcneill-usbmp-base:1.51
	jmcneill-audiomp3:1.51.0.6
	jmcneill-audiomp3-base:1.51
	yamt-pagecache-base3:1.51
	yamt-pagecache-base2:1.51
	yamt-pagecache:1.51.0.4
	yamt-pagecache-base:1.51
	rmind-uvmplock-nbase:1.51
	cherry-xenmp:1.51.0.2
	cherry-xenmp-base:1.51
	jym-xensuspend-nbase:1.51
	uebayasi-xip-base7:1.51
	bouyer-quota2-nbase:1.51
	bouyer-quota2:1.50.0.4
	bouyer-quota2-base:1.51
	jruoho-x86intr:1.50.0.2
	jruoho-x86intr-base:1.50
	matt-mips64-premerge-20101231:1.50
	matt-nb5-mips64-premerge-20101231:1.46
	matt-nb5-pq3:1.46.0.18
	matt-nb5-pq3-base:1.46
	netbsd-5-1:1.46.0.16
	uebayasi-xip-base6:1.50
	uebayasi-xip-base5:1.50
	netbsd-5-1-RELEASE:1.46
	uebayasi-xip-base4:1.50
	uebayasi-xip-base3:1.50
	yamt-nfs-mp-base11:1.50
	netbsd-5-1-RC4:1.46
	matt-nb5-mips64-k15:1.46
	uebayasi-xip-base2:1.50
	yamt-nfs-mp-base10:1.50
	netbsd-5-1-RC3:1.46
	netbsd-5-1-RC2:1.46
	uebayasi-xip-base1:1.49
	netbsd-5-1-RC1:1.46
	rmind-uvmplock:1.49.0.4
	rmind-uvmplock-base:1.51
	yamt-nfs-mp-base9:1.49
	uebayasi-xip:1.49.0.2
	uebayasi-xip-base:1.49
	netbsd-5-0-2-RELEASE:1.46
	matt-nb5-mips64-premerge-20091211:1.46
	matt-premerge-20091211:1.49
	yamt-nfs-mp-base8:1.49
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.46
	matt-nb4-mips64-k7-u2a-k9b:1.46
	matt-nb5-mips64-u1-k1-k5:1.46
	yamt-nfs-mp-base7:1.49
	matt-nb5-mips64:1.46.0.14
	netbsd-5-0-1-RELEASE:1.46
	jymxensuspend-base:1.49
	yamt-nfs-mp-base6:1.49
	yamt-nfs-mp-base5:1.49
	yamt-nfs-mp-base4:1.49
	yamt-nfs-mp-base3:1.49
	nick-hppapmap-base4:1.49
	nick-hppapmap-base3:1.49
	netbsd-5-0:1.46.0.12
	netbsd-5-0-RELEASE:1.46
	netbsd-5-0-RC4:1.46
	netbsd-5-0-RC3:1.46
	nick-hppapmap-base2:1.47
	netbsd-5-0-RC2:1.46
	jym-xensuspend:1.47.0.2
	jym-xensuspend-base:1.51
	netbsd-5-0-RC1:1.46
	haad-dm-base2:1.46
	haad-nbase2:1.46
	ad-audiomp2:1.46.0.10
	ad-audiomp2-base:1.46
	netbsd-5:1.46.0.8
	netbsd-5-base:1.46
	nick-hppapmap:1.46.0.6
	nick-hppapmap-base:1.49
	matt-mips64-base2:1.46
	haad-dm-base1:1.46
	wrstuden-revivesa-base-4:1.46
	netbsd-4-0-1-RELEASE:1.45
	wrstuden-revivesa-base-3:1.46
	wrstuden-revivesa-base-2:1.46
	wrstuden-fixsa-newbase:1.45
	nick-csl-alignment-base5:1.45
	haad-dm:1.46.0.4
	haad-dm-base:1.46
	wrstuden-revivesa-base-1:1.46
	simonb-wapbl-nbase:1.46
	yamt-pf42-base4:1.46
	simonb-wapbl:1.46.0.2
	simonb-wapbl-base:1.46
	yamt-pf42-base3:1.46
	hpcarm-cleanup-nbase:1.45
	yamt-pf42-baseX:1.45
	yamt-pf42-base2:1.45
	yamt-nfs-mp-base2:1.45
	wrstuden-revivesa:1.45.0.80
	wrstuden-revivesa-base:1.46
	yamt-nfs-mp:1.45.0.78
	yamt-nfs-mp-base:1.45
	yamt-pf42:1.45.0.76
	yamt-pf42-base:1.45
	ad-socklock-base1:1.45
	yamt-lazymbuf-base15:1.45
	yamt-lazymbuf-base14:1.45
	keiichi-mipv6-nbase:1.45
	mjf-devfs2:1.45.0.74
	mjf-devfs2-base:1.47
	nick-net80211-sync:1.45.0.72
	nick-net80211-sync-base:1.45
	keiichi-mipv6:1.45.0.70
	keiichi-mipv6-base:1.45
	bouyer-xeni386-merge1:1.45
	matt-armv6-prevmlocking:1.45
	wrstuden-fixsa-base-1:1.45
	vmlocking2-base3:1.45
	netbsd-4-0:1.45.0.68
	netbsd-4-0-RELEASE:1.45
	bouyer-xeni386-nbase:1.45
	yamt-kmem-base3:1.45
	cube-autoconf:1.45.0.66
	cube-autoconf-base:1.45
	yamt-kmem-base2:1.45
	bouyer-xeni386:1.45.0.64
	bouyer-xeni386-base:1.45
	yamt-kmem:1.45.0.62
	yamt-kmem-base:1.45
	vmlocking2-base2:1.45
	reinoud-bufcleanup-nbase:1.45
	vmlocking2:1.45.0.60
	vmlocking2-base1:1.45
	netbsd-4-0-RC5:1.45
	matt-nb4-arm:1.45.0.58
	matt-nb4-arm-base:1.45
	matt-armv6-nbase:1.45
	jmcneill-base:1.45
	netbsd-4-0-RC4:1.45
	mjf-devfs:1.45.0.56
	mjf-devfs-base:1.45
	bouyer-xenamd64-base2:1.45
	vmlocking-nbase:1.45
	yamt-x86pmap-base4:1.45
	bouyer-xenamd64:1.45.0.54
	bouyer-xenamd64-base:1.45
	netbsd-4-0-RC3:1.45
	yamt-x86pmap-base3:1.45
	yamt-x86pmap-base2:1.45
	netbsd-4-0-RC2:1.45
	yamt-x86pmap:1.45.0.52
	yamt-x86pmap-base:1.45
	netbsd-4-0-RC1:1.45
	matt-armv6:1.45.0.50
	matt-armv6-base:1.45
	jmcneill-pm:1.45.0.48
	jmcneill-pm-base:1.45
	hpcarm-cleanup:1.45.0.46
	hpcarm-cleanup-base:1.45
	nick-csl-alignment:1.45.0.44
	nick-csl-alignment-base:1.45
	matt-mips64:1.45.0.42
	matt-mips64-base:1.45
	netbsd-3-1-1-RELEASE:1.44
	netbsd-3-0-3-RELEASE:1.44
	yamt-idlelwp-base8:1.45
	wrstuden-fixsa:1.45.0.40
	wrstuden-fixsa-base:1.45
	ppcoea-renovation:1.45.0.38
	ppcoea-renovation-base:1.45
	thorpej-atomic:1.45.0.36
	thorpej-atomic-base:1.45
	reinoud-bufcleanup:1.45.0.34
	reinoud-bufcleanup-base:1.45
	mjf-ufs-trans:1.45.0.32
	mjf-ufs-trans-base:1.45
	vmlocking:1.45.0.30
	vmlocking-base:1.45
	ad-audiomp:1.45.0.28
	ad-audiomp-base:1.45
	yamt-idlelwp:1.45.0.26
	post-newlock2-merge:1.45
	newlock2-nbase:1.45
	yamt-splraiseipl-base5:1.45
	yamt-splraiseipl-base4:1.45
	yamt-splraiseipl-base3:1.45
	abandoned-netbsd-4-base:1.45
	abandoned-netbsd-4:1.45.0.18
	netbsd-3-1:1.44.0.22
	netbsd-3-1-RELEASE:1.44
	netbsd-3-0-2-RELEASE:1.44
	yamt-splraiseipl-base2:1.45
	netbsd-3-1-RC4:1.44
	yamt-splraiseipl:1.45.0.22
	yamt-splraiseipl-base:1.45
	netbsd-3-1-RC3:1.44
	yamt-pdpolicy-base9:1.45
	newlock2:1.45.0.20
	newlock2-base:1.45
	yamt-pdpolicy-base8:1.45
	netbsd-3-1-RC2:1.44
	netbsd-3-1-RC1:1.44
	yamt-pdpolicy-base7:1.45
	netbsd-4:1.45.0.24
	netbsd-4-base:1.45
	yamt-pdpolicy-base6:1.45
	chap-midi-nbase:1.45
	netbsd-3-0-1-RELEASE:1.44
	gdamore-uart:1.45.0.16
	gdamore-uart-base:1.45
	simonb-timcounters-final:1.45
	yamt-pdpolicy-base5:1.45
	chap-midi:1.45.0.14
	chap-midi-base:1.45
	yamt-pdpolicy-base4:1.45
	yamt-pdpolicy-base3:1.45
	peter-altq-base:1.45
	peter-altq:1.45.0.12
	yamt-pdpolicy-base2:1.45
	elad-kernelauth-base:1.45
	elad-kernelauth:1.45.0.10
	yamt-pdpolicy:1.45.0.8
	yamt-pdpolicy-base:1.45
	yamt-uio_vmspace-base5:1.45
	simonb-timecounters:1.45.0.6
	simonb-timecounters-base:1.45
	rpaulo-netinet-merge-pcb:1.45.0.4
	rpaulo-netinet-merge-pcb-base:1.45
	yamt-uio_vmspace:1.45.0.2
	netbsd-3-0:1.44.0.20
	netbsd-3-0-RELEASE:1.44
	netbsd-3-0-RC6:1.44
	yamt-readahead-base3:1.44
	netbsd-3-0-RC5:1.44
	netbsd-3-0-RC4:1.44
	netbsd-3-0-RC3:1.44
	yamt-readahead-base2:1.44
	netbsd-3-0-RC2:1.44
	yamt-readahead-pervnode:1.44
	yamt-readahead-perfile:1.44
	yamt-readahead:1.44.0.18
	yamt-readahead-base:1.44
	netbsd-3-0-RC1:1.44
	yamt-vop-base3:1.44
	netbsd-2-0-3-RELEASE:1.42.2.1
	netbsd-2-1:1.42.2.1.0.4
	yamt-vop-base2:1.44
	thorpej-vnode-attr:1.44.0.16
	thorpej-vnode-attr-base:1.44
	netbsd-2-1-RELEASE:1.42.2.1
	yamt-vop:1.44.0.14
	yamt-vop-base:1.44
	netbsd-2-1-RC6:1.42.2.1
	netbsd-2-1-RC5:1.42.2.1
	netbsd-2-1-RC4:1.42.2.1
	netbsd-2-1-RC3:1.42.2.1
	netbsd-2-1-RC2:1.42.2.1
	netbsd-2-1-RC1:1.42.2.1
	yamt-lazymbuf:1.44.0.12
	yamt-km-base4:1.44
	netbsd-2-0-2-RELEASE:1.42.2.1
	yamt-km-base3:1.44
	netbsd-3:1.44.0.10
	netbsd-3-base:1.44
	yamt-km-base2:1.44
	yamt-km:1.44.0.6
	yamt-km-base:1.44
	kent-audio2:1.44.0.4
	kent-audio2-base:1.44
	netbsd-2-0-1-RELEASE:1.42.2.1
	kent-audio1-beforemerge:1.44
	netbsd-2:1.42.2.1.0.2
	netbsd-2-base:1.42.2.1
	kent-audio1:1.44.0.2
	kent-audio1-base:1.44
	netbsd-2-0-RELEASE:1.42.2.1
	netbsd-2-0-RC5:1.42.2.1
	netbsd-2-0-RC4:1.42.2.1
	netbsd-2-0-RC3:1.42.2.1
	netbsd-2-0-RC2:1.42.2.1
	netbsd-2-0-RC1:1.42.2.1
	netbsd-2-0:1.42.0.2
	netbsd-2-0-base:1.42
	netbsd-1-6-PATCH002-RELEASE:1.33.4.1
	netbsd-1-6-PATCH002:1.33.4.1
	netbsd-1-6-PATCH002-RC4:1.33.4.1
	netbsd-1-6-PATCH002-RC3:1.33.4.1
	netbsd-1-6-PATCH002-RC2:1.33.4.1
	netbsd-1-6-PATCH002-RC1:1.33.4.1
	ktrace-lwp:1.37.0.2
	ktrace-lwp-base:1.44
	netbsd-1-6-PATCH001:1.33.4.1
	netbsd-1-6-PATCH001-RELEASE:1.33.4.1
	netbsd-1-6-PATCH001-RC3:1.33.4.1
	netbsd-1-6-PATCH001-RC2:1.33.4.1
	netbsd-1-6-PATCH001-RC1:1.33.4.1
	nathanw_sa_end:1.22.4.9
	nathanw_sa_before_merge:1.36
	fvdl_fs64_base:1.36
	gmcgarry_ctxsw:1.36.0.4
	gmcgarry_ctxsw_base:1.36
	gmcgarry_ucred:1.36.0.2
	gmcgarry_ucred_base:1.36
	nathanw_sa_base:1.36
	kqueue-aftermerge:1.35
	kqueue-beforemerge:1.35
	netbsd-1-6-RELEASE:1.33
	netbsd-1-6-RC3:1.33
	netbsd-1-6-RC2:1.33
	netbsd-1-6-RC1:1.33
	netbsd-1-6:1.33.0.4
	netbsd-1-6-base:1.33
	gehenna-devsw:1.33.0.2
	gehenna-devsw-base:1.34
	netbsd-1-5-PATCH003:1.11.2.6
	eeh-devprop:1.28.0.4
	eeh-devprop-base:1.28
	newlock:1.28.0.2
	newlock-base:1.28
	ifpoll-base:1.27
	nathanw_sa:1.22.0.4
	thorpej-mips-cache:1.22.0.2
	thorpej-mips-cache-base:1.22
	thorpej-devvp-base3:1.22
	thorpej-devvp-base2:1.22
	post-chs-ubcperf:1.21
	pre-chs-ubcperf:1.21
	thorpej-devvp:1.21.0.2
	thorpej-devvp-base:1.21
	netbsd-1-5-PATCH002:1.11.2.4
	kqueue:1.20.0.4
	kqueue-base:1.35
	netbsd-1-5-PATCH001:1.11.2.4
	thorpej_scsipi_beforemerge:1.20
	thorpej_scsipi_nbase:1.20
	netbsd-1-5-RELEASE:1.11.2.3
	netbsd-1-5-BETA2:1.11.2.2
	netbsd-1-5-BETA:1.11.2.2
	netbsd-1-4-PATCH003:1.4.2.1
	netbsd-1-5-ALPHA2:1.11.2.1
	netbsd-1-5:1.11.0.2
	netbsd-1-5-base:1.11
	minoura-xpg4dl:1.10.0.2
	minoura-xpg4dl-base:1.10
	netbsd-1-4-PATCH002:1.4
	chs-ubc2-newbase:1.9
	wrstuden-devbsize-19991221:1.7
	wrstuden-devbsize:1.6.0.8
	wrstuden-devbsize-base:1.7
	kame_141_19991130:1.4
	comdex-fall-1999:1.6.0.6
	comdex-fall-1999-base:1.6
	fvdl-softdep:1.6.0.4
	fvdl-softdep-base:1.6
	thorpej_scsipi:1.6.0.2
	thorpej_scsipi_base:1.20
	netbsd-1-4-PATCH001:1.4
	kame_14_19990705:1.4
	kame_14_19990628:1.4
	kame:1.4.0.6
	chs-ubc2:1.4.0.4
	chs-ubc2-base:1.6
	netbsd-1-4-RELEASE:1.4
	netbsd-1-4:1.4.0.2
	netbsd-1-4-base:1.4
	kenh-if-detach:1.3.0.6
	kenh-if-detach-base:1.3
	chs-ubc:1.3.0.4
	chs-ubc-base:1.3
	eeh-paddr_t:1.3.0.2
	eeh-paddr_t-base:1.3;
locks; strict;
comment	@# @;


1.62
date	2025.07.25.06.18.24;	author martin;	state Exp;
branches;
next	1.61;
commitid	eUpV8veOqlVrL54G;

1.61
date	2025.05.10.11.59.00;	author martin;	state Exp;
branches;
next	1.60;
commitid	NbdU2vloQSAJ5mUF;

1.60
date	2021.02.28.20.27.40;	author thorpej;	state Exp;
branches
	1.60.24.1;
next	1.59;
commitid	KG8fe4ePxUdH7wJC;

1.59
date	2018.06.06.22.56.25;	author uwe;	state Exp;
branches
	1.59.14.1;
next	1.58;
commitid	YtA82UxL13I72hFA;

1.58
date	2017.04.20.19.09.29;	author uwe;	state Exp;
branches
	1.58.10.1;
next	1.57;

1.57
date	2017.04.20.18.39.28;	author uwe;	state Exp;
branches;
next	1.56;

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

1.55
date	2014.12.24.00.36.09;	author matt;	state Exp;
branches
	1.55.2.1
	1.55.4.1;
next	1.54;

1.54
date	2014.08.10.17.44.26;	author joerg;	state Exp;
branches
	1.54.4.1;
next	1.53;

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

1.52
date	2014.01.12.15.26.30;	author tsutsui;	state Exp;
branches
	1.52.2.1;
next	1.51;

1.51
date	2011.01.22.19.19.19;	author joerg;	state Exp;
branches
	1.51.4.1
	1.51.14.1
	1.51.18.1;
next	1.50;

1.50
date	2010.05.27.06.58.14;	author dholland;	state Exp;
branches
	1.50.2.1
	1.50.4.1;
next	1.49;

1.49
date	2009.04.03.10.38.13;	author tsutsui;	state Exp;
branches
	1.49.2.1
	1.49.4.1;
next	1.48;

1.48
date	2009.03.15.14.54.24;	author tsutsui;	state Exp;
branches;
next	1.47;

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

1.46
date	2008.05.22.19.49.43;	author hauke;	state Exp;
branches
	1.46.6.1;
next	1.45;

1.45
date	2005.12.11.12.18.06;	author christos;	state Exp;
branches
	1.45.74.1
	1.45.76.1
	1.45.78.1
	1.45.80.1;
next	1.44;

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

1.43
date	2004.04.09.04.01.42;	author matt;	state Exp;
branches;
next	1.42;

1.42
date	2004.03.12.19.13.38;	author wrstuden;	state Exp;
branches
	1.42.2.1;
next	1.41;

1.41
date	2003.12.26.20.01.15;	author aymeric;	state Exp;
branches;
next	1.40;

1.40
date	2003.12.26.13.25.00;	author aymeric;	state Exp;
branches;
next	1.39;

1.39
date	2003.12.11.00.27.42;	author matt;	state Exp;
branches;
next	1.38;

1.38
date	2003.10.26.07.25.36;	author lukem;	state Exp;
branches;
next	1.37;

1.37
date	2003.02.28.05.24.57;	author matt;	state Exp;
branches
	1.37.2.1;
next	1.36;

1.36
date	2002.12.09.16.30.40;	author thorpej;	state Exp;
branches;
next	1.35;

1.35
date	2002.09.20.03.20.24;	author wrstuden;	state Exp;
branches;
next	1.34;

1.34
date	2002.06.18.00.37.25;	author itojun;	state Exp;
branches;
next	1.33;

1.33
date	2002.04.13.13.35.23;	author tsutsui;	state Exp;
branches
	1.33.2.1
	1.33.4.1;
next	1.32;

1.32
date	2002.04.13.13.31.40;	author tsutsui;	state Exp;
branches;
next	1.31;

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

1.30
date	2002.03.29.20.26.06;	author tsutsui;	state Exp;
branches;
next	1.29;

1.29
date	2002.03.29.18.21.38;	author tsutsui;	state Exp;
branches;
next	1.28;

1.28
date	2002.03.02.06.32.28;	author jmc;	state Exp;
branches;
next	1.27;

1.27
date	2002.02.13.17.52.08;	author wrstuden;	state Exp;
branches;
next	1.26;

1.26
date	2002.02.01.18.45.29;	author wrstuden;	state Exp;
branches;
next	1.25;

1.25
date	2002.01.07.23.09.53;	author matt;	state Exp;
branches;
next	1.24;

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

1.23
date	2001.11.14.00.58.50;	author tv;	state Exp;
branches;
next	1.22;

1.22
date	2001.09.22.03.34.19;	author tv;	state Exp;
branches
	1.22.4.1;
next	1.21;

1.21
date	2001.07.18.05.37.55;	author matt;	state Exp;
branches
	1.21.2.1;
next	1.20;

1.20
date	2000.11.16.07.36.04;	author matt;	state Exp;
branches
	1.20.4.1;
next	1.19;

1.19
date	2000.11.14.11.25.34;	author tsubai;	state Exp;
branches;
next	1.18;

1.18
date	2000.10.28.15.41.25;	author garbled;	state Exp;
branches;
next	1.17;

1.17
date	2000.10.13.00.19.30;	author wrstuden;	state Exp;
branches;
next	1.16;

1.16
date	2000.07.25.06.26.18;	author tsubai;	state Exp;
branches;
next	1.15;

1.15
date	2000.07.25.06.22.05;	author tsubai;	state Exp;
branches;
next	1.14;

1.14
date	2000.07.25.06.18.23;	author tsubai;	state Exp;
branches;
next	1.13;

1.13
date	2000.07.21.21.42.25;	author jdolecek;	state Exp;
branches;
next	1.12;

1.12
date	2000.07.06.19.42.55;	author dmcmahill;	state Exp;
branches;
next	1.11;

1.11
date	2000.06.08.17.35.48;	author matt;	state Exp;
branches
	1.11.2.1;
next	1.10;

1.10
date	2000.04.29.22.18.31;	author mycroft;	state Exp;
branches
	1.10.2.1;
next	1.9;

1.9
date	2000.02.07.16.27.00;	author tsubai;	state Exp;
branches;
next	1.8;

1.8
date	2000.01.23.17.04.05;	author mycroft;	state Exp;
branches;
next	1.7;

1.7
date	99.11.23.01.35.37;	author wrstuden;	state Exp;
branches;
next	1.6;

1.6
date	99.06.21.21.02.49;	author wrstuden;	state Exp;
branches
	1.6.2.1
	1.6.8.1;
next	1.5;

1.5
date	99.04.29.03.16.20;	author tsubai;	state Exp;
branches;
next	1.4;

1.4
date	99.02.13.02.54.47;	author lukem;	state Exp;
branches
	1.4.2.1
	1.4.4.1;
next	1.3;

1.3
date	98.06.26.12.29.29;	author tsubai;	state Exp;
branches;
next	1.2;

1.2
date	98.06.12.21.07.24;	author tsubai;	state Exp;
branches;
next	1.1;

1.1
date	98.05.15.10.15.59;	author tsubai;	state Exp;
branches;
next	;

1.60.24.1
date	2025.08.02.05.55.52;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;

1.59.14.1
date	2021.04.03.22.28.30;	author thorpej;	state Exp;
branches;
next	;
commitid	1gqS07EfPjskJTNC;

1.58.10.1
date	2018.06.25.07.25.44;	author pgoyette;	state Exp;
branches;
next	;
commitid	8PtAu9af7VvhiDHA;

1.55.2.1
date	2017.04.26.02.53.05;	author pgoyette;	state Exp;
branches;
next	;

1.55.4.1
date	2017.04.21.16.53.31;	author bouyer;	state Exp;
branches;
next	;

1.54.4.1
date	2015.04.06.15.17.59;	author skrll;	state Exp;
branches;
next	1.54.4.2;

1.54.4.2
date	2017.08.28.17.51.45;	author skrll;	state Exp;
branches;
next	;
commitid	UQQpnjvcNkUZn05A;

1.52.2.1
date	2014.08.10.06.54.02;	author tls;	state Exp;
branches;
next	;

1.51.4.1
date	2014.05.22.11.39.57;	author yamt;	state Exp;
branches;
next	;

1.51.14.1
date	2014.08.20.00.03.12;	author tls;	state Exp;
branches;
next	1.51.14.2;

1.51.14.2
date	2017.12.03.11.36.25;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.51.18.1
date	2014.05.18.17.45.17;	author rmind;	state Exp;
branches;
next	;

1.50.2.1
date	2011.06.06.09.06.00;	author jruoho;	state Exp;
branches;
next	;

1.50.4.1
date	2011.02.08.16.19.28;	author bouyer;	state Exp;
branches;
next	;

1.49.2.1
date	2010.08.17.06.44.50;	author uebayasi;	state Exp;
branches;
next	;

1.49.4.1
date	2010.05.30.05.16.58;	author rmind;	state Exp;
branches;
next	1.49.4.2;

1.49.4.2
date	2011.03.05.20.51.00;	author rmind;	state Exp;
branches;
next	;

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

1.46.6.1
date	2009.01.19.13.16.26;	author skrll;	state Exp;
branches;
next	1.46.6.2;

1.46.6.2
date	2009.04.28.07.34.24;	author skrll;	state Exp;
branches;
next	;

1.45.74.1
date	2008.06.02.13.22.23;	author mjf;	state Exp;
branches;
next	1.45.74.2;

1.45.74.2
date	2009.01.17.13.28.14;	author mjf;	state Exp;
branches;
next	;

1.45.76.1
date	2008.06.04.02.04.50;	author yamt;	state Exp;
branches;
next	;

1.45.78.1
date	2009.05.04.08.11.30;	author yamt;	state Exp;
branches;
next	1.45.78.2;

1.45.78.2
date	2010.08.11.22.52.21;	author yamt;	state Exp;
branches;
next	;

1.45.80.1
date	2008.06.23.04.30.31;	author wrstuden;	state Exp;
branches;
next	;

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

1.37.2.1
date	2004.08.03.10.37.31;	author skrll;	state Exp;
branches;
next	1.37.2.2;

1.37.2.2
date	2004.09.18.14.37.09;	author skrll;	state Exp;
branches;
next	1.37.2.3;

1.37.2.3
date	2004.09.21.13.18.30;	author skrll;	state Exp;
branches;
next	;

1.33.2.1
date	2002.07.16.08.48.24;	author gehenna;	state Exp;
branches;
next	;

1.33.4.1
date	2002.09.30.13.38.25;	author lukem;	state Exp;
branches;
next	;

1.22.4.1
date	2001.09.22.03.34.19;	author nathanw;	state dead;
branches;
next	1.22.4.2;

1.22.4.2
date	2002.01.08.00.26.15;	author nathanw;	state Exp;
branches;
next	1.22.4.3;

1.22.4.3
date	2002.01.11.23.38.38;	author nathanw;	state Exp;
branches;
next	1.22.4.4;

1.22.4.4
date	2002.02.28.04.10.41;	author nathanw;	state Exp;
branches;
next	1.22.4.5;

1.22.4.5
date	2002.04.01.07.40.56;	author nathanw;	state Exp;
branches;
next	1.22.4.6;

1.22.4.6
date	2002.04.17.00.03.44;	author nathanw;	state Exp;
branches;
next	1.22.4.7;

1.22.4.7
date	2002.06.20.03.39.42;	author nathanw;	state Exp;
branches;
next	1.22.4.8;

1.22.4.8
date	2002.10.18.02.38.41;	author nathanw;	state Exp;
branches;
next	1.22.4.9;

1.22.4.9
date	2002.12.11.06.10.54;	author thorpej;	state Exp;
branches;
next	;

1.21.2.1
date	2001.10.01.12.40.43;	author fvdl;	state Exp;
branches;
next	;

1.20.4.1
date	2001.08.03.04.11.57;	author lukem;	state Exp;
branches;
next	1.20.4.2;

1.20.4.2
date	2002.01.10.19.45.55;	author thorpej;	state Exp;
branches;
next	1.20.4.3;

1.20.4.3
date	2002.02.11.20.08.34;	author jdolecek;	state Exp;
branches;
next	1.20.4.4;

1.20.4.4
date	2002.03.16.15.58.33;	author jdolecek;	state Exp;
branches;
next	1.20.4.5;

1.20.4.5
date	2002.06.23.17.37.58;	author jdolecek;	state Exp;
branches;
next	1.20.4.6;

1.20.4.6
date	2002.09.06.08.37.17;	author jdolecek;	state Exp;
branches;
next	1.20.4.7;

1.20.4.7
date	2002.10.10.18.34.02;	author jdolecek;	state Exp;
branches;
next	;

1.11.2.1
date	2000.08.03.14.49.19;	author dmcmahill;	state Exp;
branches;
next	1.11.2.2;

1.11.2.2
date	2000.10.17.13.27.19;	author tv;	state Exp;
branches;
next	1.11.2.3;

1.11.2.3
date	2000.11.09.23.12.06;	author tv;	state Exp;
branches;
next	1.11.2.4;

1.11.2.4
date	2001.04.24.22.57.25;	author he;	state Exp;
branches;
next	1.11.2.5;

1.11.2.5
date	2002.02.13.23.12.10;	author he;	state Exp;
branches;
next	1.11.2.6;

1.11.2.6
date	2002.02.14.19.57.10;	author he;	state Exp;
branches;
next	;

1.10.2.1
date	2000.06.22.17.01.26;	author minoura;	state Exp;
branches;
next	;

1.6.2.1
date	2000.11.20.20.13.04;	author bouyer;	state Exp;
branches;
next	1.6.2.2;

1.6.2.2
date	2000.11.22.16.00.42;	author bouyer;	state Exp;
branches;
next	;

1.6.8.1
date	99.12.27.18.32.44;	author wrstuden;	state Exp;
branches;
next	;

1.4.2.1
date	2000.07.13.21.00.43;	author he;	state Exp;
branches;
next	;

1.4.4.1
date	99.06.21.00.51.42;	author thorpej;	state Exp;
branches;
next	1.4.4.2;

1.4.4.2
date	99.07.01.23.12.07;	author thorpej;	state Exp;
branches;
next	;


desc
@@


1.62
log
@PR 59550: do not build ofwboot as PIE.
While there, disabel all sanitziers too.
@
text
@#	$NetBSD: Makefile,v 1.61 2025/05/10 11:59:00 martin Exp $

NOLIBCSANITIZER=
NOSANITIZER=
NOPIE=

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

PROG=		ofwboot
FILES=		${PROG}.elf ${PROG}.xcf
SRCS=		Locore.c boot.c ofdev.c hfs.c net.c netif_of.c \
		loadfile_machdep.c
XCOFFXTRA=	Xcoffxtra.c
XCOFFXTRAOBJ=	Xcoffxtra.o
CFLAGS+=	-ffreestanding
CFLAGS+=	${${ACTIVE_CC} == "gcc":? -msoft-float :}
CFLAGS+=	${CFLAGS_UNWIND.${ACTIVE_CC}}
CFLAGS+=	-Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
#CPPFLAGS+=	-DDEBUG -DNETIF_DEBUG
CPPFLAGS+=	-D_STANDALONE -DSUPPORT_DHCP
CPPFLAGS+=	-DSUPPORT_USTARFS -DHAVE_CHANGEDISK_HOOK
DBG=		-Os

# PR port-macppc/44895
SRCS+=		alloc.c			# use ./alloc.c
#CPPFLAGS+=	-DHEAP_VARIABLE		# use libsa alloc.c

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

.PATH:		${S}/arch/powerpc/powerpc
SRCS+=		ofwmagic.S

.PATH:		${S}/lib/libsa
SRCS+=		byteorder.c

NOMAN=		# defined
STRIPFLAG=
BINMODE=	444

.include <bsd.own.mk>

.if !defined(FIXCOFF)
.if !defined(TOOL_MACPPCFIXCOFF)
TOOL_MACPPCFIXCOFFDIR!=	cd ${.CURDIR}/../fixcoff && ${PRINTOBJDIR}
TOOL_MACPPCFIXCOFF=	${TOOL_MACPPCFIXCOFFDIR}/fixcoff
.endif
.endif

NEWVERSWHAT=	"OpenFirmware Boot"

# For now...
#RELOC=		20000
RELOC=		E00000

ENTRY=		_start

CLEANFILES+=	${PROG}.elf ${PROG}.el1 ${PROG}.mrg ${PROG}.xcf
CLEANFILES+=	${XCOFFXTRAOBJ}

CPPFLAGS+=	-I. -I${.CURDIR} -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
CPPFLAGS+=	-DRELOC=0x${RELOC} -DRELOC_FLATFILE=0x${RELOC_FLATFILE}
#CPPFLAGS+=	-DXCOFF_GLUE		# for booting PCI Powermacs

LINKFLAGS=	-N -Ttext ${RELOC} -Bstatic
LINKFLAGS+=	${LINKFLAGS_UNWIND}

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

### find out what to use for libz
Z_AS=		library
.include "${S}/lib/libz/Makefile.inc"
LIBZ=		${ZLIB}

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

cleandir distclean: .WAIT cleanlibdir

cleanlibdir:
	-rm -rf lib

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

all realall: ${PROG} ${PROG}.xcf ${PROG}.elf

${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} 
	${_MKTARGET_LINK}
	${LD} -s -o ${PROG}.el1 ${LINKFLAGS} \
	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${OBJCOPY} -O binary ${PROG}.el1 ${PROG}

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

${PROG}.elf: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${_MKTARGET_LINK}
	${LD} -s -o ${PROG}.elf ${LINKFLAGS} \
	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}

${PROG}.xcf: ${OBJS} ${XCOFFXTRAOBJ} ${LIBSA} ${LIBZ} ${LIBKERN}
	${_MKTARGET_LINK}
	${LD} -o ${PROG}.mrg ${LINKFLAGS} \
	    -T ${.CURDIR}/../fixcoff/elf32_powerpc_merge.x \
	    -e _entry ${XCOFFXTRAOBJ} \
	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${OBJCOPY} -O aixcoff-rs6000 -R .comment -R .note \
	    --strip-debug --strip-unneeded \
	    ${PROG}.mrg ${PROG}.xcf.${.MAKE.PID}
	${TOOL_MACPPCFIXCOFF} ${PROG}.xcf.${.MAKE.PID} && \
	    mv ${PROG}.xcf.${.MAKE.PID} ${PROG}.xcf
@


1.61
log
@Strip ofwboot.xcf, pointed out in

 https://mail-index.netbsd.org/port-macppc/2024/02/03/msg003076.html

While here avoid modifying the binary in-place to make this more
parallel make safe.
@
text
@d1 5
a5 1
#	$NetBSD: Makefile,v 1.60 2021/02/28 20:27:40 thorpej Exp $
@


1.60
log
@- When starting the boot program, cache a bunch of OFW frequently used
  ihandles / phandles, rather than fetching them all the time.
- Change the signature of OF_call_method() to take an array of cells for
  the inputs and outputs, rather than using variadic arguments.  This
  makes it much easier to use OF_call_method() when the format of the
  arguments passed to a given method are determined at run-time
  (due to e.g. #address-cells).
- Properly inform OpenFirmware where the kernel is loaded by using
  "claim" on /chosen/memory and, if running in virtual-mode, using
  "claim" on /chosen/mmu to reserve the VA, and "map" on /chosen/mmu
  to enter the translation.  (The kernel is still always mapped VA==PA.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.59 2018/06/06 22:56:25 uwe Exp $
d113 4
a116 2
	    ${PROG}.mrg ${PROG}.xcf
	${TOOL_MACPPCFIXCOFF} ${PROG}.xcf
@


1.60.24.1
log
@Sync with HEAD
@
text
@d1 1
a1 5
#	$NetBSD: Makefile,v 1.62 2025/07/25 06:18:24 martin Exp $

NOLIBCSANITIZER=
NOSANITIZER=
NOPIE=
d113 2
a114 4
	    --strip-debug --strip-unneeded \
	    ${PROG}.mrg ${PROG}.xcf.${.MAKE.PID}
	${TOOL_MACPPCFIXCOFF} ${PROG}.xcf.${.MAKE.PID} && \
	    mv ${PROG}.xcf.${.MAKE.PID} ${PROG}.xcf
@


1.59
log
@Provide an option to use libsa allocator.  Not yet enabled.  Same
binary code is generated.

To enable uncomment -DHEAP_VARIABLE and comment out alloc.c in the
makefile.

PR port-macppc/44895
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.58 2017/04/20 19:09:29 uwe Exp $
d7 2
a8 1
SRCS=		Locore.c boot.c ofdev.c hfs.c net.c netif_of.c
@


1.59.14.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.60 2021/02/28 20:27:40 thorpej Exp $
d7 1
a7 2
SRCS=		Locore.c boot.c ofdev.c hfs.c net.c netif_of.c \
		loadfile_machdep.c
@


1.58
log
@Quash .eh_frame unwind tables in boot code.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.57 2017/04/20 18:39:28 uwe Exp $
d7 1
a7 1
SRCS=		Locore.c boot.c ofdev.c hfs.c net.c netif_of.c alloc.c
d19 4
@


1.58.10.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.59 2018/06/06 22:56:25 uwe Exp $
d7 1
a7 1
SRCS=		Locore.c boot.c ofdev.c hfs.c net.c netif_of.c
a18 4
# PR port-macppc/44895
SRCS+=		alloc.c			# use ./alloc.c
#CPPFLAGS+=	-DHEAP_VARIABLE		# use libsa alloc.c

@


1.57
log
@Group CLEANFILES assignments.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.56 2017/04/08 19:53:21 christos Exp $
d12 1
d59 3
d89 1
a89 1
	${LD} -s -N -Ttext ${RELOC} -Bstatic -o ${PROG}.el1 \
d98 1
a98 1
	${LD} -s -N -Ttext ${RELOC} -Bstatic -o ${PROG}.elf \
d103 3
a105 2
	${LD} -N -T ${.CURDIR}/../fixcoff/elf32_powerpc_merge.x -e _entry \
	    -Ttext ${RELOC} -Bstatic -o ${PROG}.mrg  ${XCOFFXTRAOBJ} \
@


1.56
log
@centralize vers.c building for standalone programs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.55 2014/12/24 00:36:09 matt Exp $
d52 1
a57 2
CLEANFILES+= ${XCOFFXTRAOBJ}

@


1.55
log
@Don't strip the .mrg since the symbols can be useful.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.54 2014/08/10 17:44:26 joerg Exp $
d7 1
a7 1
SRCS=		Locore.c boot.c ofdev.c hfs.c net.c netif_of.c alloc.c vers.c
d51 1
a51 1
CLEANFILES+=	vers.c ${PROG}.elf ${PROG}.el1 ${PROG}.mrg ${PROG}.xcf
d80 1
a80 4
.PHONY: vers.c
vers.c: version
	${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \
	    ${.CURDIR}/version "macppc" ${NEWVERSWHAT}
@


1.55.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.58 2017/04/20 19:09:29 uwe Exp $
d7 1
a7 1
SRCS=		Locore.c boot.c ofdev.c hfs.c net.c netif_of.c alloc.c
a11 1
CFLAGS+=	${CFLAGS_UNWIND.${ACTIVE_CC}}
d51 1
a51 2
CLEANFILES+=	${PROG}.elf ${PROG}.el1 ${PROG}.mrg ${PROG}.xcf
CLEANFILES+=	${XCOFFXTRAOBJ}
d57 1
a57 2
LINKFLAGS=	-N -Ttext ${RELOC} -Bstatic
LINKFLAGS+=	${LINKFLAGS_UNWIND}
d80 4
a83 1
.include "${S}/conf/newvers_stand.mk"
d89 1
a89 1
	${LD} -s -o ${PROG}.el1 ${LINKFLAGS} \
d98 1
a98 1
	${LD} -s -o ${PROG}.elf ${LINKFLAGS} \
d103 2
a104 3
	${LD} -o ${PROG}.mrg ${LINKFLAGS} \
	    -T ${.CURDIR}/../fixcoff/elf32_powerpc_merge.x \
	    -e _entry ${XCOFFXTRAOBJ} \
@


1.55.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.58 2017/04/20 19:09:29 uwe Exp $
d7 1
a7 1
SRCS=		Locore.c boot.c ofdev.c hfs.c net.c netif_of.c alloc.c
a11 1
CFLAGS+=	${CFLAGS_UNWIND.${ACTIVE_CC}}
d51 1
a51 2
CLEANFILES+=	${PROG}.elf ${PROG}.el1 ${PROG}.mrg ${PROG}.xcf
CLEANFILES+=	${XCOFFXTRAOBJ}
d57 1
a57 2
LINKFLAGS=	-N -Ttext ${RELOC} -Bstatic
LINKFLAGS+=	${LINKFLAGS_UNWIND}
d80 4
a83 1
.include "${S}/conf/newvers_stand.mk"
d89 1
a89 1
	${LD} -s -o ${PROG}.el1 ${LINKFLAGS} \
d98 1
a98 1
	${LD} -s -o ${PROG}.elf ${LINKFLAGS} \
d103 2
a104 3
	${LD} -o ${PROG}.mrg ${LINKFLAGS} \
	    -T ${.CURDIR}/../fixcoff/elf32_powerpc_merge.x \
	    -e _entry ${XCOFFXTRAOBJ} \
@


1.54
log
@Put GCC/GAS specific options under ACTIVE_CC == "gcc".
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.53 2014/08/08 16:56:31 joerg Exp $
d103 1
a103 1
	${LD} -s -N -T ${.CURDIR}/../fixcoff/elf32_powerpc_merge.x -e _entry \
@


1.54.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.55 2014/12/24 00:36:09 matt Exp $
d103 1
a103 1
	${LD} -N -T ${.CURDIR}/../fixcoff/elf32_powerpc_merge.x -e _entry \
@


1.54.4.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.54.4.1 2015/04/06 15:17:59 skrll Exp $
d7 1
a7 1
SRCS=		Locore.c boot.c ofdev.c hfs.c net.c netif_of.c alloc.c
a11 1
CFLAGS+=	${CFLAGS_UNWIND.${ACTIVE_CC}}
d51 1
a51 2
CLEANFILES+=	${PROG}.elf ${PROG}.el1 ${PROG}.mrg ${PROG}.xcf
CLEANFILES+=	${XCOFFXTRAOBJ}
d57 1
a57 2
LINKFLAGS=	-N -Ttext ${RELOC} -Bstatic
LINKFLAGS+=	${LINKFLAGS_UNWIND}
d80 4
a83 1
.include "${S}/conf/newvers_stand.mk"
d89 1
a89 1
	${LD} -s -o ${PROG}.el1 ${LINKFLAGS} \
d98 1
a98 1
	${LD} -s -o ${PROG}.elf ${LINKFLAGS} \
d103 2
a104 3
	${LD} -o ${PROG}.mrg ${LINKFLAGS} \
	    -T ${.CURDIR}/../fixcoff/elf32_powerpc_merge.x \
	    -e _entry ${XCOFFXTRAOBJ} \
@


1.53
log
@Don't set -mmultiple or -mno-string for PowerPC, the difference is too
small to really matter and it sometimes even increases the size.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.52 2014/01/12 15:26:30 tsutsui Exp $
d10 2
a11 1
CFLAGS+=	-msoft-float -ffreestanding
@


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

XXX: probabry we should have bsd.saprog.mk or something.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.51 2011/01/22 19:19:19 joerg Exp $
d10 1
a10 1
CFLAGS+=	-msoft-float -mmultiple -ffreestanding
@


1.52.2.1
log
@Rebase.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.53 2014/08/08 16:56:31 joerg Exp $
d10 1
a10 1
CFLAGS+=	-msoft-float -ffreestanding
@


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

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
@
text
@d1 1
a1 1
#	$NetBSD: src/sys/arch/macppc/stand/ofwboot/Makefile,v 1.50 2010-05-27 06:58:14 dholland Exp $
d18 1
@


1.51.14.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
d10 1
a10 2
CFLAGS+=	-ffreestanding
CFLAGS+=	${${ACTIVE_CC} == "gcc":? -msoft-float :}
a17 1
LIBCRTI=	# nothing
@


1.51.14.2
log
@update from HEAD
@
text
@d7 1
a7 1
SRCS=		Locore.c boot.c ofdev.c hfs.c net.c netif_of.c alloc.c
a11 1
CFLAGS+=	${CFLAGS_UNWIND.${ACTIVE_CC}}
d51 1
a51 2
CLEANFILES+=	${PROG}.elf ${PROG}.el1 ${PROG}.mrg ${PROG}.xcf
CLEANFILES+=	${XCOFFXTRAOBJ}
d57 1
a57 2
LINKFLAGS=	-N -Ttext ${RELOC} -Bstatic
LINKFLAGS+=	${LINKFLAGS_UNWIND}
d80 4
a83 1
.include "${S}/conf/newvers_stand.mk"
d89 1
a89 1
	${LD} -s -o ${PROG}.el1 ${LINKFLAGS} \
d98 1
a98 1
	${LD} -s -o ${PROG}.elf ${LINKFLAGS} \
d103 2
a104 3
	${LD} -o ${PROG}.mrg ${LINKFLAGS} \
	    -T ${.CURDIR}/../fixcoff/elf32_powerpc_merge.x \
	    -e _entry ${XCOFFXTRAOBJ} \
@


1.51.4.1
log
@sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.51 2011/01/22 19:19:19 joerg Exp $
a17 1
LIBCRTI=	# nothing
@


1.51.18.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.51 2011/01/22 19:19:19 joerg Exp $
a17 1
LIBCRTI=	# nothing
@


1.50
log
@Introduce .WAIT into the cleandir rule for blasting the libsa/libkern/etc.
trees, because it can race with the libsa/libkern/etc. makefiles' own
cleandir rules. I think I've found all of the uses of the offending idiom...
Closes PR 43360.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.49 2009/04/03 10:38:13 tsutsui Exp $
a31 1
.if !defined(FIXCOFF)
d34 1
d80 2
a81 1
	${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/version "macppc" ${NEWVERSWHAT}
@


1.50.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.51 2011/01/22 19:19:19 joerg Exp $
d32 1
a34 1
.if !defined(FIXCOFF)
d80 1
a80 2
	${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \
	    ${.CURDIR}/version "macppc" ${NEWVERSWHAT}
@


1.50.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.51 2011/01/22 19:19:19 joerg Exp $
d32 1
a34 1
.if !defined(FIXCOFF)
d80 1
a80 2
	${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \
	    ${.CURDIR}/version "macppc" ${NEWVERSWHAT}
@


1.49
log
@Remove obsolete LIBSA_USE_MEMCPY and LIBSA_USE_MEMSET.
They were removed from <lib/libsa/stand.h> on December 2007.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.48 2009/03/15 14:54:24 tsutsui Exp $
d73 1
a73 1
cleandir distclean: cleanlibdir
@


1.49.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD$
d73 1
a73 1
cleandir distclean: .WAIT cleanlibdir
@


1.49.4.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.49 2009/04/03 10:38:13 tsutsui Exp $
d73 1
a73 1
cleandir distclean: .WAIT cleanlibdir
@


1.49.4.2
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD$
d32 1
a34 1
.if !defined(FIXCOFF)
d80 1
a80 2
	${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \
	    ${.CURDIR}/version "macppc" ${NEWVERSWHAT}
@


1.48
log
@Use <bsd.klinks.mk> to create MD include dir symlinks.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.47 2009/01/12 07:05:22 tsutsui Exp $
a14 1
CPPFLAGS+=	-DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET
@


1.47
log
@WARNSfy
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.46 2008/05/22 19:49:43 hauke Exp $
a50 1
CLEANFILES+=	machine powerpc
a57 8
.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
	@@[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine
	@@[ -h powerpc ] || ln -s ${S}/arch/powerpc/include powerpc
.NOPATH: machine powerpc
.endif
CLEANFILES+= machine powerpc

d91 1
@


1.47.2.1
log
@Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.49 2009/04/03 10:38:13 tsutsui Exp $
d15 1
d51 1
d59 8
a99 1
.include <bsd.klinks.mk>
@


1.46
log
@Added driver for the Creative Systems Inc. Hurdler CPI parallel printer card.
Timecounter support for the Z8536 counters A + B is not complete, yet.

Reviewed by Martin Husemann.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.45 2005/12/11 12:18:06 christos Exp $
d10 2
a11 1
CFLAGS+=	-Wno-main -msoft-float -mmultiple -ffreestanding
@


1.46.6.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.47 2009/01/12 07:05:22 tsutsui Exp $
d10 1
a10 2
CFLAGS+=	-msoft-float -mmultiple -ffreestanding
CFLAGS+=	-Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
@


1.46.6.2
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.46.6.1 2009/01/19 13:16:26 skrll Exp $
d15 1
d51 1
d59 8
a99 1
.include <bsd.klinks.mk>
@


1.45
log
@merge ktrace-lwp.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.37.2.3 2004/09/21 13:18:30 skrll Exp $
d37 1
a37 1
TOOL_MACPPCFIXCOFF=	${FIXCOFFDIR}/fixcoff
@


1.45.78.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.45 2005/12/11 12:18:06 christos Exp $
d10 1
a10 2
CFLAGS+=	-msoft-float -mmultiple -ffreestanding
CFLAGS+=	-Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
d14 1
d37 1
a37 1
TOOL_MACPPCFIXCOFF=	${TOOL_MACPPCFIXCOFFDIR}/fixcoff
d50 1
d58 8
a98 1
.include <bsd.klinks.mk>
@


1.45.78.2
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.45.78.1 2009/05/04 08:11:30 yamt Exp $
d73 1
a73 1
cleandir distclean: .WAIT cleanlibdir
@


1.45.80.1
log
@Sync w/ -current. 34 merge conflicts to follow.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.45 2005/12/11 12:18:06 christos Exp $
d37 1
a37 1
TOOL_MACPPCFIXCOFF=	${TOOL_MACPPCFIXCOFFDIR}/fixcoff
@


1.45.76.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.45 2005/12/11 12:18:06 christos Exp $
d37 1
a37 1
TOOL_MACPPCFIXCOFF=	${TOOL_MACPPCFIXCOFFDIR}/fixcoff
@


1.45.74.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD$
d37 1
a37 1
TOOL_MACPPCFIXCOFF=	${TOOL_MACPPCFIXCOFFDIR}/fixcoff
@


1.45.74.2
log
@Sync with HEAD.
@
text
@d10 1
a10 2
CFLAGS+=	-msoft-float -mmultiple -ffreestanding
CFLAGS+=	-Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
@


1.44
log
@Ignore errors on some rm -rf's for platforms that aren't quite
POSIX compliant
and return errors on r/o source (FreeBSD) for -rf. Fixes PR#25022
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.43 2004/04/09 04:01:42 matt Exp $
@


1.43
log
@When linking, use ${_MKTARGET_LINK} so that MAKEVERBOSE=1 looks right.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.42 2004/03/12 19:13:38 wrstuden Exp $
d85 1
a85 1
	rm -rf lib
@


1.42
log
@Fix ofwboot to deal with larger kernels. Rather than loading at
0x6?0000, load at 0xe00000. This gives us room for around 13 MB of
kernel, as opposed to the current 5 MB (0x600000 - 0x100000).

No changes to load-base or real-base are needed due to this change,
though machines that needed specific OFW settings before (OF 1.x
and 2.x) this change still need those settings.

Partially revert revision 1.25 -> 1.26 of ofwboot/Makefile & friends.
We do not need to distinguish between where ofwboot and ofwboot.{elf,xcf}
load; they are both fine loading somewhere other than load-base.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.41 2003/12/26 20:01:15 aymeric Exp $
d94 1
d102 1
d107 1
@


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


1.41
log
@revert previous. -fwritable-strings is not needed now that the ld script
does TRT.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.40 2003/12/26 13:25:00 aymeric Exp $
d7 1
a7 1
SRCS=		Locore.c ofdev.c hfs.c net.c netif_of.c alloc.c vers.c
d45 1
a45 2
RELOC=		640000
RELOC_FLATFILE=	600000
d56 1
a56 1
CLEANFILES+= ${XCOFFXTRAOBJ} boot.o boot1.o
d93 3
a95 3
${PROG}: ${OBJS} boot1.o ${LIBSA} ${LIBZ} ${LIBKERN} 
	${LD} -s -N -Ttext ${RELOC_FLATFILE} -Bstatic -o ${PROG}.el1 \
	    ${OBJS} boot1.o ${LIBSA} ${LIBZ} ${LIBKERN}
d100 1
a100 1
${PROG}.elf: ${OBJS} boot.o ${LIBSA} ${LIBZ} ${LIBKERN}
d102 1
a102 1
	    ${OBJS} boot.o ${LIBSA} ${LIBZ} ${LIBKERN}
d104 1
a104 1
${PROG}.xcf: ${OBJS} boot.o ${XCOFFXTRAOBJ} ${LIBSA} ${LIBZ} ${LIBKERN}
d107 1
a107 1
	    ${OBJS} boot.o ${LIBSA} ${LIBZ} ${LIBKERN}
@


1.40
log
@add -fwritable-strings to DBG, so that gcc doesn't generate a ".rodata" section.
I believe this fixes PR port-macppc/23206 and the "ofwboot.xcf issues" reported
on the lists since november.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.39 2003/12/11 00:27:42 matt Exp $
d15 1
a15 1
DBG=		-Os -fwritable-strings
@


1.39
log
@Convert fixcoff into a true host tool by making it under tools.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.38 2003/10/26 07:25:36 lukem Exp $
d15 1
a15 1
DBG=		-Os
@


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

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.37 2003/02/28 05:24:57 matt Exp $
d35 4
a38 9
FIXCOFFDIR!=	cd ${.CURDIR}/../fixcoff && ${PRINTOBJDIR}
FIXCOFF=	${FIXCOFFDIR}/fixcoff
FIXCOFFTARG=	${FIXCOFF}

${FIXCOFF}:
	(cd ${.CURDIR}/../fixcoff; ${MAKE})

.else
FIXCOFFTARG=
d105 1
a105 1
${PROG}.xcf: ${OBJS} boot.o ${XCOFFXTRAOBJ} ${LIBSA} ${LIBZ} ${LIBKERN} ${FIXCOFFTARG}
d111 1
a111 1
	${FIXCOFF} ${PROG}.xcf
@


1.37
log
@Make this play with gcc 3.3.  Add -ffreestanding.  Cleanup bootxx.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.36 2002/12/09 16:30:40 thorpej Exp $
d95 1
a95 1
	sh ${S}/conf/newvers_stand.sh ${.CURDIR}/version "macppc" ${NEWVERSWHAT}
@


1.37.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.44 2004/06/21 18:20:09 jmc Exp $
d7 1
a7 1
SRCS=		Locore.c boot.c ofdev.c hfs.c net.c netif_of.c alloc.c vers.c
d35 9
a43 4
.if !defined(TOOL_MACPPCFIXCOFF)
TOOL_MACPPCFIXCOFFDIR!=	cd ${.CURDIR}/../fixcoff && ${PRINTOBJDIR}
TOOL_MACPPCFIXCOFF=	${FIXCOFFDIR}/fixcoff
.endif
d50 2
a51 1
RELOC=		E00000
d62 1
a62 1
CLEANFILES+= ${XCOFFXTRAOBJ}
d91 1
a91 1
	-rm -rf lib
d95 1
a95 1
	${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/version "macppc" ${NEWVERSWHAT}
d99 3
a101 4
${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} 
	${_MKTARGET_LINK}
	${LD} -s -N -Ttext ${RELOC} -Bstatic -o ${PROG}.el1 \
	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
d106 1
a106 2
${PROG}.elf: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${_MKTARGET_LINK}
d108 1
a108 1
	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
d110 1
a110 2
${PROG}.xcf: ${OBJS} ${XCOFFXTRAOBJ} ${LIBSA} ${LIBZ} ${LIBKERN}
	${_MKTARGET_LINK}
d113 1
a113 1
	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
d116 1
a116 1
	${TOOL_MACPPCFIXCOFF} ${PROG}.xcf
@


1.37.2.2
log
@Sync with HEAD.
@
text
@@


1.37.2.3
log
@Fix the sync with head I botched.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.37.2.1 2004/08/03 10:37:31 skrll Exp $
@


1.36
log
@No need to depend on userland libraries here.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35 2002/09/20 03:20:24 wrstuden Exp $
d10 1
a10 1
CFLAGS+=	-Wno-main -msoft-float -mmultiple
@


1.35
log
@Re-add own alloc(). Recent issues with kernels randomly dying on boot
are related to using libsa's alloc(). Problems go away with this alloc().

The problem is that the libsa alloc() assumes we can grab memory off
the end of the program. That assumption doesn't work for us. It's
much better to use the alloc() we were using as it calls OF_claim()
to get memory.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.34 2002/06/18 00:37:25 itojun Exp $
d16 5
@


1.34
log
@avoid hardcoding MBR_MAGICOFF and MBR_MAGIC.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 2002/04/13 13:35:23 tsutsui Exp $
d7 1
a7 1
SRCS=		Locore.c ofdev.c hfs.c net.c netif_of.c vers.c
@


1.33
log
@Add "cleanlibdir" target.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.32 2002/04/13 13:31:40 tsutsui Exp $
d19 3
@


1.33.4.1
log
@Pull up revision 1.35 (requested by wrstuden in ticket #866):
Re-add own alloc(). Recent issues with kernels randomly dying on boot
are related to using libsa's alloc(). Problems go away with this alloc().
The problem is that the libsa alloc() assumes we can grab memory off
the end of the program. That assumption doesn't work for us. It's
much better to use the alloc() we were using as it calls OF_claim()
to get memory.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 2002/04/13 13:35:23 tsutsui Exp $
d7 1
a7 1
SRCS=		Locore.c ofdev.c hfs.c net.c netif_of.c alloc.c vers.c
@


1.33.2.1
log
@catch up with -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.34 2002/06/18 00:37:25 itojun Exp $
a18 3

.PATH:		${S}/lib/libsa
SRCS+=		byteorder.c
@


1.32
log
@Set USE_LIBSA_MEMCPY and USE_LIBSA_MEMSET to save a few bytes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31 2002/03/30 07:17:09 tsutsui Exp $
d79 5
@


1.31
log
@Enable SUPPORT_USTARFS and HAVE_CHANGEDISK_HOOK in CPPFLAGS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.30 2002/03/29 20:26:06 tsutsui Exp $
d14 1
@


1.30
log
@Add back -I. to CPPFLAGS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 2002/03/29 18:21:38 tsutsui Exp $
d13 1
@


1.29
log
@Cleanup some flags.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 2002/03/02 06:32:28 jmc Exp $
d48 1
a48 1
CPPFLAGS+=	-I${.CURDIR} -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
@


1.28
log
@Wrap the generation of machine and powerpc links so they don't happen during
make obj, clean or cleandir as the proper objdir may not be around yet.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 2002/02/13 17:52:08 wrstuden Exp $
d10 4
a13 4
CFLAGS+=	-msoft-float -Wno-main
#CFLAGS+=	-DDEBUG -DNETIF_DEBUG
CPPFLAGS+=	-D_STANDALONE -DSUPPORT_DHCP -I${.CURDIR}
DBG=		-Os -mmultiple
d48 1
a48 1
CPPFLAGS+=	-I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
@


1.27
log
@Make this work with the dependall target.

Pointed out by Christian Groessle on port-macppc, and patch suggested bu
Izumi Tsutsui.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2002/02/01 18:45:29 wrstuden Exp $
d54 1
d59 1
@


1.26
log
@Check in machinery to make ofwboot load at 600000, while ofwboot.elf
and ofwboot.xcf will load at 640000. The idea is that we can now
leave load-base at 600000, and it will work right for all three methods.

The problem is that the file loader and the net loader use load-base
as a scratch area, so if the executable really wants to load there,
the load fails.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2002/01/07 23:09:53 matt Exp $
d80 1
a80 1
all: ${PROG} ${PROG}.xcf ${PROG}.elf
@


1.25
log
@Remove machine/powerpc links on clean as well.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 2001/12/12 01:49:45 tv Exp $
d7 1
a7 1
SRCS=		Locore.c boot.c ofdev.c hfs.c net.c netif_of.c vers.c
d40 2
a41 1
RELOC=		600000
d45 2
a46 1
CLEANFILES+=	vers.c ${PROG}.elf ${PROG}.mrg ${PROG}.xcf machine powerpc
d49 1
a49 1
CPPFLAGS+=	-DRELOC=0x${RELOC}
d52 1
a52 1
CLEANFILES+= ${XCOFFXTRAOBJ}
d80 10
a89 1
${PROG}: ${OBJS} ${XCOFFXTRAOBJ} ${LIBSA} ${LIBZ} ${LIBKERN} ${FIXCOFFTARG}
d91 3
a93 2
	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${OBJCOPY} -O binary ${PROG}.elf ${PROG}
d96 1
a96 1
	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
a99 2

.include <bsd.prog.mk>
@


1.24
log
@MKfoo=no -> NOfoo
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 2001/11/14 00:58:50 tv Exp $
d44 1
a44 1
CLEANFILES+=	vers.c ${PROG}.elf ${PROG}.mrg ${PROG}.xcf
@


1.23
log
@${MAKE} print-objdir -> ${PRINTOBJDIR}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2001/09/22 03:34:19 tv Exp $
d18 1
a18 1
MKMAN=		no
@


1.22
log
@objcopy -> ${OBJCOPY}; remove redundant definitions of OBJCOPY?= (it is
now in bsd.own.mk).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2001/07/18 05:37:55 matt Exp $
d23 3
a25 2
.ifnmake(print-objdir)
FIXCOFFDIR!=	cd ${.CURDIR}/../fixcoff; ${MAKE} print-objdir
a31 1
.endif
@


1.22.4.1
log
@file Makefile was added on branch nathanw_sa on 2002-01-08 00:26:15 +0000
@
text
@d1 89
@


1.22.4.2
log
@Catch up to -current.
@
text
@a0 89
#	$NetBSD: Makefile,v 1.22.4.1 2002/01/08 00:26:15 nathanw Exp $

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

PROG=		ofwboot
FILES=		${PROG}.elf ${PROG}.xcf
SRCS=		Locore.c boot.c ofdev.c hfs.c net.c netif_of.c vers.c
XCOFFXTRA=	Xcoffxtra.c
XCOFFXTRAOBJ=	Xcoffxtra.o
CFLAGS+=	-msoft-float -Wno-main
#CFLAGS+=	-DDEBUG -DNETIF_DEBUG
CPPFLAGS+=	-D_STANDALONE -DSUPPORT_DHCP -I${.CURDIR}
DBG=		-Os -mmultiple

.PATH:		${S}/arch/powerpc/powerpc
SRCS+=		ofwmagic.S

NOMAN=		# defined
STRIPFLAG=
BINMODE=	444

.if !defined(FIXCOFF)
.include <bsd.own.mk>

FIXCOFFDIR!=	cd ${.CURDIR}/../fixcoff && ${PRINTOBJDIR}
FIXCOFF=	${FIXCOFFDIR}/fixcoff
FIXCOFFTARG=	${FIXCOFF}

${FIXCOFF}:
	(cd ${.CURDIR}/../fixcoff; ${MAKE})

.else
FIXCOFFTARG=
.endif

NEWVERSWHAT=	"OpenFirmware Boot"

# For now...
#RELOC=		20000
RELOC=		600000

ENTRY=		_start

CLEANFILES+=	vers.c ${PROG}.elf ${PROG}.mrg ${PROG}.xcf

CPPFLAGS+=	-I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
CPPFLAGS+=	-DRELOC=0x${RELOC}
#CPPFLAGS+=	-DXCOFF_GLUE		# for booting PCI Powermacs

CLEANFILES+= ${XCOFFXTRAOBJ}

.BEGIN:
	@@[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine
	@@[ -h powerpc ] || ln -s ${S}/arch/powerpc/include powerpc
.NOPATH: machine powerpc
CLEANFILES+= machine powerpc

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

### find out what to use for libz
Z_AS=		library
.include "${S}/lib/libz/Makefile.inc"
LIBZ=		${ZLIB}

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

.PHONY: vers.c
vers.c: version
	sh ${S}/conf/newvers_stand.sh ${.CURDIR}/version "macppc" ${NEWVERSWHAT}

${PROG}: ${OBJS} ${XCOFFXTRAOBJ} ${LIBSA} ${LIBZ} ${LIBKERN} ${FIXCOFFTARG}
	${LD} -s -N -Ttext ${RELOC} -Bstatic -o ${PROG}.elf \
	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${OBJCOPY} -O binary ${PROG}.elf ${PROG}
	${LD} -s -N -T ${.CURDIR}/../fixcoff/elf32_powerpc_merge.x -e _entry \
	    -Ttext ${RELOC} -Bstatic -o ${PROG}.mrg  ${XCOFFXTRAOBJ} \
	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${OBJCOPY} -O aixcoff-rs6000 -R .comment -R .note \
	    ${PROG}.mrg ${PROG}.xcf
	${FIXCOFF} ${PROG}.xcf

.include <bsd.prog.mk>
@


1.22.4.3
log
@More catchup.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22.4.2 2002/01/11 23:38:38 nathanw Exp $
d44 1
a44 1
CLEANFILES+=	vers.c ${PROG}.elf ${PROG}.mrg ${PROG}.xcf machine powerpc
@


1.22.4.4
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22.4.3 2002/02/28 04:10:41 nathanw Exp $
d7 1
a7 1
SRCS=		Locore.c ofdev.c hfs.c net.c netif_of.c vers.c
d40 1
a40 2
RELOC=		640000
RELOC_FLATFILE=	600000
d44 1
a44 2
CLEANFILES+=	vers.c ${PROG}.elf ${PROG}.el1 ${PROG}.mrg ${PROG}.xcf
CLEANFILES+=	machine powerpc
d47 1
a47 1
CPPFLAGS+=	-DRELOC=0x${RELOC} -DRELOC_FLATFILE=0x${RELOC_FLATFILE}
d50 1
a50 1
CLEANFILES+= ${XCOFFXTRAOBJ} boot.o boot1.o
d78 1
a78 10
all realall: ${PROG} ${PROG}.xcf ${PROG}.elf

${PROG}: ${OBJS} boot1.o ${LIBSA} ${LIBZ} ${LIBKERN} 
	${LD} -s -N -Ttext ${RELOC_FLATFILE} -Bstatic -o ${PROG}.el1 \
	    ${OBJS} boot1.o ${LIBSA} ${LIBZ} ${LIBKERN}
	${OBJCOPY} -O binary ${PROG}.el1 ${PROG}

.include <bsd.prog.mk>

${PROG}.elf: ${OBJS} boot.o ${LIBSA} ${LIBZ} ${LIBKERN}
d80 2
a81 3
	    ${OBJS} boot.o ${LIBSA} ${LIBZ} ${LIBKERN}

${PROG}.xcf: ${OBJS} boot.o ${XCOFFXTRAOBJ} ${LIBSA} ${LIBZ} ${LIBKERN} ${FIXCOFFTARG}
d84 1
a84 1
	    ${OBJS} boot.o ${LIBSA} ${LIBZ} ${LIBKERN}
d88 2
@


1.22.4.5
log
@Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22.4.4 2002/04/01 07:40:56 nathanw Exp $
a53 1
.if !make(obj) && !make(clean) && !make(cleandir)
a57 1
.endif
@


1.22.4.6
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22.4.5 2002/04/17 00:03:44 nathanw Exp $
d10 4
a13 6
CFLAGS+=	-Wno-main -msoft-float -mmultiple
#CPPFLAGS+=	-DDEBUG -DNETIF_DEBUG
CPPFLAGS+=	-D_STANDALONE -DSUPPORT_DHCP
CPPFLAGS+=	-DSUPPORT_USTARFS -DHAVE_CHANGEDISK_HOOK
CPPFLAGS+=	-DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET
DBG=		-Os
d48 1
a48 1
CPPFLAGS+=	-I. -I${.CURDIR} -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
a77 5
cleandir distclean: cleanlibdir

cleanlibdir:
	rm -rf lib

@


1.22.4.7
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22.4.6 2002/06/20 03:39:42 nathanw Exp $
a19 3
.PATH:		${S}/lib/libsa
SRCS+=		byteorder.c

@


1.22.4.8
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22.4.7 2002/10/18 02:38:41 nathanw Exp $
d7 1
a7 1
SRCS=		Locore.c ofdev.c hfs.c net.c netif_of.c alloc.c vers.c
@


1.22.4.9
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22.4.8 2002/12/11 06:10:54 thorpej Exp $
a16 5
LIBCRT0=	# nothing
LIBCRTBEGIN=	# nothing
LIBCRTEND=	# nothing
LIBC=		# nothing

@


1.21
log
@Add -Wno-main since this is a standalone program.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2000/11/16 07:36:04 matt Exp $
a20 1
OBJCOPY?=	objcopy
@


1.21.2.1
log
@Catch up with -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2001/09/22 03:34:19 tv Exp $
d21 1
@


1.20
log
@It's hfs.c, not hfs.  Add -I${.CURDIR} for objdirs.   XXX hfs.c should
be integrated into libsa.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2000/11/14 11:25:34 tsubai Exp $
d10 1
a10 1
CFLAGS+=	-msoft-float
@


1.20.4.1
log
@update to -current
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2001/07/18 05:37:55 matt Exp $
d10 1
a10 1
CFLAGS+=	-msoft-float -Wno-main
@


1.20.4.2
log
@Sync kqueue branch with -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20.4.1 2001/08/03 04:11:57 lukem Exp $
d18 1
a18 1
NOMAN=		# defined
d21 1
d24 2
a25 3
.include <bsd.own.mk>

FIXCOFFDIR!=	cd ${.CURDIR}/../fixcoff && ${PRINTOBJDIR}
d32 1
d45 1
a45 1
CLEANFILES+=	vers.c ${PROG}.elf ${PROG}.mrg ${PROG}.xcf machine powerpc
@


1.20.4.3
log
@Sync w/ -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20.4.2 2002/01/10 19:45:55 thorpej Exp $
d7 1
a7 1
SRCS=		Locore.c ofdev.c hfs.c net.c netif_of.c vers.c
d40 1
a40 2
RELOC=		640000
RELOC_FLATFILE=	600000
d44 1
a44 2
CLEANFILES+=	vers.c ${PROG}.elf ${PROG}.el1 ${PROG}.mrg ${PROG}.xcf
CLEANFILES+=	machine powerpc
d47 1
a47 1
CPPFLAGS+=	-DRELOC=0x${RELOC} -DRELOC_FLATFILE=0x${RELOC_FLATFILE}
d50 1
a50 1
CLEANFILES+= ${XCOFFXTRAOBJ} boot.o boot1.o
d78 1
a78 10
all: ${PROG} ${PROG}.xcf ${PROG}.elf

${PROG}: ${OBJS} boot1.o ${LIBSA} ${LIBZ} ${LIBKERN} 
	${LD} -s -N -Ttext ${RELOC_FLATFILE} -Bstatic -o ${PROG}.el1 \
	    ${OBJS} boot1.o ${LIBSA} ${LIBZ} ${LIBKERN}
	${OBJCOPY} -O binary ${PROG}.el1 ${PROG}

.include <bsd.prog.mk>

${PROG}.elf: ${OBJS} boot.o ${LIBSA} ${LIBZ} ${LIBKERN}
d80 2
a81 3
	    ${OBJS} boot.o ${LIBSA} ${LIBZ} ${LIBKERN}

${PROG}.xcf: ${OBJS} boot.o ${XCOFFXTRAOBJ} ${LIBSA} ${LIBZ} ${LIBKERN} ${FIXCOFFTARG}
d84 1
a84 1
	    ${OBJS} boot.o ${LIBSA} ${LIBZ} ${LIBKERN}
d88 2
@


1.20.4.4
log
@Catch up with -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20.4.3 2002/02/11 20:08:34 jdolecek Exp $
a53 1
.if !make(obj) && !make(clean) && !make(cleandir)
a57 1
.endif
d80 1
a80 1
all realall: ${PROG} ${PROG}.xcf ${PROG}.elf
@


1.20.4.5
log
@catch up with -current on kqueue branch
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20.4.4 2002/03/16 15:58:33 jdolecek Exp $
d10 4
a13 6
CFLAGS+=	-Wno-main -msoft-float -mmultiple
#CPPFLAGS+=	-DDEBUG -DNETIF_DEBUG
CPPFLAGS+=	-D_STANDALONE -DSUPPORT_DHCP
CPPFLAGS+=	-DSUPPORT_USTARFS -DHAVE_CHANGEDISK_HOOK
CPPFLAGS+=	-DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET
DBG=		-Os
d48 1
a48 1
CPPFLAGS+=	-I. -I${.CURDIR} -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
a76 5

cleandir distclean: cleanlibdir

cleanlibdir:
	rm -rf lib
@


1.20.4.6
log
@sync kqueue branch with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20.4.5 2002/06/23 17:37:58 jdolecek Exp $
a18 3

.PATH:		${S}/lib/libsa
SRCS+=		byteorder.c
@


1.20.4.7
log
@sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20.4.6 2002/09/06 08:37:17 jdolecek Exp $
d7 1
a7 1
SRCS=		Locore.c ofdev.c hfs.c net.c netif_of.c alloc.c vers.c
@


1.19
log
@Add hfs support.  Currently this layer simply throw the request to the OF
(and the OF recognizes HFS).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2000/10/28 15:41:25 garbled Exp $
d7 1
a7 1
SRCS=		Locore.c boot.c ofdev.c hfs net.c netif_of.c vers.c
d12 1
a12 1
CPPFLAGS+=	-D_STANDALONE -DSUPPORT_DHCP
@


1.18
log
@make -> ${MAKE}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2000/10/13 00:19:30 wrstuden Exp $
d7 1
a7 1
SRCS=		Locore.c boot.c ofdev.c net.c netif_of.c vers.c
@


1.17
log
@Move ofwboot to 600000 hex. Should make loading better (less likely to
run into OF internals).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2000/07/25 06:26:18 tsubai Exp $
d30 1
a30 1
	(cd ${.CURDIR}/../fixcoff; make)
@


1.16
log
@Use libsa alloc().
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2000/07/25 06:22:05 tsubai Exp $
d41 1
a41 1
RELOC=		6c0000
@


1.15
log
@Add ofwboot.{mrg,xcf} to CLEANFILES.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2000/07/25 06:18:23 tsubai Exp $
d7 1
a7 1
SRCS=		Locore.c boot.c ofdev.c net.c netif_of.c alloc.c vers.c
@


1.14
log
@Make this compile again.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2000/07/21 21:42:25 jdolecek Exp $
d45 1
a45 1
CLEANFILES+=	vers.c ${PROG}.elf
@


1.13
log
@switch to sys/conf/newvers_stand.sh for generation of version file
slighly adjust the Makefile WRT vers.c and SRCS & CLEANFILES
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2000/07/06 19:42:55 dmcmahill Exp $
d13 1
a41 1
COPTS=		-Os
d81 1
a81 1
	    ${OBJS} vers.o ${LIBSA} ${LIBZ} ${LIBKERN}
d85 1
a85 1
	    ${OBJS} vers.o ${LIBSA} ${LIBZ} ${LIBKERN}
@


1.12
log
@make sure ofwboot.xcf gets installed
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2000/06/08 17:35:48 matt Exp $
d7 1
a7 1
SRCS=		Locore.c boot.c ofdev.c net.c netif_of.c alloc.c
d45 1
a45 1
CLEANFILES+=	vers.c vers.o ${PROG}.elf
d75 4
a79 2
	sh ${.CURDIR}/../newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
	${COMPILE.c} vers.c
@


1.11
log
@Squeeze a few more bytes so the INSTALL kernel will fit on a floppy.
Use tlp instead of de.  Add in gm[ac].  Remove slip and Gallant 22x12 font.
Compile ofwboot.elf -Os.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2000/04/29 22:18:31 mycroft Exp $
d6 1
a6 1
FILES=		${PROG}.elf
@


1.11.2.1
log
@Pull up revision 1.12 (requested by dmcmahill, approved by thorpej):
  Add ofwboot.xcf to the list of files to be installed.
  Fixes PR10418.
@
text
@d1 1
a1 1
#	$NetBSD$
d6 1
a6 1
FILES=		${PROG}.elf ${PROG}.xcf
@


1.11.2.2
log
@Pullup 1.17 [wrstuden]:
Move ofwboot to 600000 hex. Should make loading better (less likely to
run into OF internals).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11.2.1 2000/08/03 14:49:19 dmcmahill Exp $
d40 1
a40 1
RELOC=		600000
@


1.11.2.3
log
@Pullup patch [matt]:
Add -mmultiple to COPTS as it is in DBG on the trunk; shrinks ofwboot by 4K.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11.2.2 2000/10/17 13:27:19 tv Exp $
d41 1
a41 1
COPTS=		-Os -mmultiple
@


1.11.2.4
log
@Pull up revisions 1.19-1.20 (via patch, requested by tsubai):
  Add HFS support to the boot loader.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11.2.3 2000/11/09 23:12:06 tv Exp $
d7 1
a7 1
SRCS=		Locore.c boot.c ofdev.c hfs.c net.c netif_of.c alloc.c
d12 1
a12 1
CPPFLAGS+=	-D_STANDALONE -DSUPPORT_DHCP -I${.CURDIR}
@


1.11.2.5
log
@Pull up revisions 1.14-1.15,1.25 (via patch, requested by wrstuden):
  Make it so that we can use load-base 600000 for ofwboot, ofwboot.elf,
  and ofwboot.xcf.  The fundamental problem is that for ofwboot,
  load-base needs to be the load point, while for ofwboot.xcf and
  ofwboot.elf, it needs to not be the load point, but rather a
  scratch buffer used for loading.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11.2.4 2001/04/24 22:57:25 he Exp $
d7 1
a7 1
SRCS=		Locore.c ofdev.c hfs.c net.c netif_of.c alloc.c vers.c
d40 1
a40 2
RELOC=		640000
RELOC_FLATFILE=	600000
d45 1
a45 2
CLEANFILES+=	vers.c vers.o ${PROG}.elf ${PROG}.el1 ${PROG}.mrg ${PROG}.xcf
CLEANFILES+=	machine powerpc
d48 1
a48 1
CPPFLAGS+=	-DRELOC=0x${RELOC} -DRELOC_FLATFILE=0x${RELOC_FLATFILE}
d51 1
a51 1
CLEANFILES+= ${XCOFFXTRAOBJ} boot.o boot1.o
d75 1
a75 2
.PHONY: vers.c
vers.c: version
d77 1
a77 11

all: ${PROG} ${PROG}.xcf ${PROG}.elf

${PROG}: ${OBJS} boot1.o ${LIBSA} ${LIBZ} ${LIBKERN} 
	${LD} -s -N -Ttext ${RELOC_FLATFILE} -Bstatic -o ${PROG}.el1 \
	    ${OBJS} boot1.o ${LIBSA} ${LIBZ} ${LIBKERN}
	${OBJCOPY} -O binary ${PROG}.el1 ${PROG}

.include <bsd.prog.mk>

${PROG}.elf: ${OBJS} boot.o ${LIBSA} ${LIBZ} ${LIBKERN}
d79 2
a80 3
	    ${OBJS} boot.o ${LIBSA} ${LIBZ} ${LIBKERN}

${PROG}.xcf: ${OBJS} boot.o ${XCOFFXTRAOBJ} ${LIBSA} ${LIBZ} ${LIBKERN} ${FIXCOFFTARG}
d83 1
a83 1
	    ${OBJS} boot.o ${LIBSA} ${LIBZ} ${LIBKERN}
d87 2
@


1.11.2.6
log
@Pull up revision 1.27 (requested by wrstuden):
  Make this work with the dependall target.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11.2.5 2002/02/13 23:12:10 he Exp $
d81 1
a81 1
all realall: ${PROG} ${PROG}.xcf ${PROG}.elf
@


1.10
log
@Use DHCP, not BOOTP.  At least with dhcpd, the root path gets dropped due to
lack of space in the reply when using BOOTP.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2000/02/07 16:27:00 tsubai Exp $
d41 1
@


1.10.2.1
log
@Sync w/ netbsd-1-5-base.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2000/06/08 17:35:48 matt Exp $
a40 1
COPTS=		-Os
@


1.9
log
@Move CFLAGS and CPPFLAGS to {bootxx,ofwboot}/Makefile to compile installboot
without -D_STANDALONE.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2000/01/23 17:04:05 mycroft Exp $
d12 1
a12 1
CPPFLAGS+=	-D_STANDALONE
@


1.8
log
@Clean up the machine symlink stuff ever so slightly.  Needs to be
standardized between files.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 1999/11/23 01:35:37 wrstuden Exp $
d10 4
d16 1
a16 1
#CFLAGS+=	-DDEBUG -DNETIF_DEBUG
@


1.7
log
@Now make an ofwboot.xcf, and XCOFF version of ofwboot. Uses the new
fix-coff program.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 1999/06/21 21:02:49 wrstuden Exp $
d46 1
a46 1
CLEANFILES+= ${.OBJDIR}/machine ${.OBJDIR}/powerpc ${XCOFFXTRAOBJ}
d51 2
@


1.6
log
@Install ofwboot.elf in addition to ofwboot. Thanks to Chris for info on how
to do this!
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 1999/04/29 03:16:20 tsubai Exp $
d8 2
d18 14
d46 1
a46 1
CLEANFILES+= ${.OBJDIR}/machine ${.OBJDIR}/powerpc
d68 1
a68 1
${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
d71 1
a71 1
	${LD} -s -N -Ttext ${RELOC} -Bstatic -o ${PROG} \
a72 1
	mv ${PROG} ${PROG}.elf
d74 6
a79 2
#	${OBJCOPY} --input-target=elf32-powerpc \
#	    --output-target=xcoff-powermac ${PROG}.elf ${PROG}.xcf
@


1.6.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,v 1.17 2000/10/13 00:19:30 wrstuden Exp $
d6 2
a7 9
FILES=		${PROG}.elf ${PROG}.xcf
SRCS=		Locore.c boot.c ofdev.c net.c netif_of.c vers.c
XCOFFXTRA=	Xcoffxtra.c
XCOFFXTRAOBJ=	Xcoffxtra.o
CFLAGS+=	-msoft-float
#CFLAGS+=	-DDEBUG -DNETIF_DEBUG
CPPFLAGS+=	-D_STANDALONE -DSUPPORT_DHCP
DBG=		-Os -mmultiple

d10 1
a10 1

a15 14
.if !defined(FIXCOFF)
.ifnmake(print-objdir)
FIXCOFFDIR!=	cd ${.CURDIR}/../fixcoff; ${MAKE} print-objdir
FIXCOFF=	${FIXCOFFDIR}/fixcoff
FIXCOFFTARG=	${FIXCOFF}

${FIXCOFF}:
	(cd ${.CURDIR}/../fixcoff; make)

.endif
.else
FIXCOFFTARG=
.endif

d20 1
a20 1
RELOC=		600000
d24 1
a24 1
CLEANFILES+=	vers.c ${PROG}.elf ${PROG}.mrg ${PROG}.xcf
d30 1
a30 1
CLEANFILES+= ${XCOFFXTRAOBJ}
a34 2
.NOPATH: machine powerpc
CLEANFILES+= machine powerpc
d52 6
a57 7
.PHONY: vers.c
vers.c: version
	sh ${S}/conf/newvers_stand.sh ${.CURDIR}/version "macppc" ${NEWVERSWHAT}

${PROG}: ${OBJS} ${XCOFFXTRAOBJ} ${LIBSA} ${LIBZ} ${LIBKERN} ${FIXCOFFTARG}
	${LD} -s -N -Ttext ${RELOC} -Bstatic -o ${PROG}.elf \
	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
d59 2
a60 6
	${LD} -s -N -T ${.CURDIR}/../fixcoff/elf32_powerpc_merge.x -e _entry \
	    -Ttext ${RELOC} -Bstatic -o ${PROG}.mrg  ${XCOFFXTRAOBJ} \
	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${OBJCOPY} -O aixcoff-rs6000 -R .comment -R .note \
	    ${PROG}.mrg ${PROG}.xcf
	${FIXCOFF} ${PROG}.xcf
@


1.6.2.2
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD$
d7 1
a7 1
SRCS=		Locore.c boot.c ofdev.c hfs.c net.c netif_of.c vers.c
d12 1
a12 1
CPPFLAGS+=	-D_STANDALONE -DSUPPORT_DHCP -I${.CURDIR}
d30 1
a30 1
	(cd ${.CURDIR}/../fixcoff; ${MAKE})
@


1.6.8.1
log
@Pull up to last week's -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 1999/11/23 01:35:37 wrstuden Exp $
a7 2
XCOFFXTRA=	Xcoffxtra.c
XCOFFXTRAOBJ=	Xcoffxtra.o
a15 14
.if !defined(FIXCOFF)
.ifnmake(print-objdir)
FIXCOFFDIR!=	cd ${.CURDIR}/../fixcoff; ${MAKE} print-objdir
FIXCOFF=	${FIXCOFFDIR}/fixcoff
FIXCOFFTARG=	${FIXCOFF}

${FIXCOFF}:
	(cd ${.CURDIR}/../fixcoff; make)

.endif
.else
FIXCOFFTARG=
.endif

d30 1
a30 1
CLEANFILES+= ${.OBJDIR}/machine ${.OBJDIR}/powerpc ${XCOFFXTRAOBJ}
d52 1
a52 1
${PROG}: ${OBJS} ${XCOFFXTRAOBJ} ${LIBSA} ${LIBZ} ${LIBKERN} ${FIXCOFFTARG}
d55 1
a55 1
	${LD} -s -N -Ttext ${RELOC} -Bstatic -o ${PROG}.elf \
d57 1
d59 2
a60 6
	${LD} -s -N -T ${.CURDIR}/../fixcoff/elf32_powerpc_merge.x -e _entry \
	    -Ttext ${RELOC} -Bstatic -o ${PROG}.mrg  ${XCOFFXTRAOBJ} \
	    ${OBJS} vers.o ${LIBSA} ${LIBZ} ${LIBKERN}
	${OBJCOPY} -O aixcoff-rs6000 -R .comment -R .note \
	    ${PROG}.mrg ${PROG}.xcf
	${FIXCOFF} ${PROG}.xcf
@


1.5
log
@Use MI loadfile().
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 1999/02/13 02:54:47 lukem Exp $
d6 1
@


1.4
log
@convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 1998/06/26 12:29:29 tsubai Exp $
d25 1
a25 1
CPPFLAGS+=	-I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
a26 2
CPPFLAGS+=	-DPOWERPC_BOOT_AOUT
CPPFLAGS+=	-DPOWERPC_BOOT_ELF
d29 6
d47 1
a47 1
SAMISCMAKEFLAGS= SA_USE_CREAD=yes
d57 1
a57 1
	tail -c +117 ${PROG}.elf > ${PROG}
@


1.4.2.1
log
@Apply patch (requested by he):
  Enhance the ``make release'' process:
   o Build and install the distrib and boot bits
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 1999/02/13 02:54:47 lukem Exp $
a56 8
.if !defined(RELEASEDIR)
release:
	@@echo setenv RELEASEDIR before doing that!
	@@false
.else
release: ${PROG}.elf
	${INSTALL} -c ${PROG}.elf ${RELEASEDIR}/binary/kernel/${PROG}.elf
.endif
@


1.4.4.1
log
@Sync w/ -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 1999/04/29 03:16:20 tsubai Exp $
d25 1
a25 1
CPPFLAGS+=	-I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
d27 2
a30 6
CLEANFILES+= ${.OBJDIR}/machine ${.OBJDIR}/powerpc

.BEGIN:
	@@[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine
	@@[ -h powerpc ] || ln -s ${S}/arch/powerpc/include powerpc

d43 1
a43 1
SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
d53 1
a53 1
	${OBJCOPY} -O binary ${PROG}.elf ${PROG}
@


1.4.4.2
log
@Sync w/ -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4.4.1 1999/06/21 00:51:42 thorpej Exp $
a5 1
FILES=		${PROG}.elf
@


1.3
log
@Change load address of ofwboot for large (md root) kernel.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 1998/06/12 21:07:24 tsubai Exp $
d10 1
a10 1
NOMAN=
@


1.2
log
@Add primary boot (bootxx) and installboot command.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 1997/04/17 07:46:24 thorpej Exp $
d19 1
a19 1
RELOC=		3e0000
a26 1
CPPFLAGS+=	-DFIRMWORKSBUGS
@


1.1
log
@Initial import of macppc port.
@
text
@d51 1
a51 1
	${LD} -N -Ttext ${RELOC} -Bstatic -o ${PROG} \
d54 1
a54 1
	../elfextract/elfextract ${PROG}.elf ${PROG}
@
