head	1.12;
access;
symbols
	netbsd-11-0-RC3:1.12
	netbsd-11-0-RC2:1.12
	netbsd-11-0-RC1:1.12
	perseant-exfatfs-base-20250801:1.12
	netbsd-11:1.12.0.32
	netbsd-11-base:1.12
	netbsd-10-1-RELEASE:1.12
	perseant-exfatfs-base-20240630:1.12
	perseant-exfatfs:1.12.0.30
	perseant-exfatfs-base:1.12
	netbsd-8-3-RELEASE:1.9.10.1
	netbsd-9-4-RELEASE:1.9.22.1
	netbsd-10-0-RELEASE:1.12
	netbsd-10-0-RC6:1.12
	netbsd-10-0-RC5:1.12
	netbsd-10-0-RC4:1.12
	netbsd-10-0-RC3:1.12
	netbsd-10-0-RC2:1.12
	thorpej-ifq:1.12.0.28
	thorpej-ifq-base:1.12
	thorpej-altq-separation:1.12.0.26
	thorpej-altq-separation-base:1.12
	netbsd-10-0-RC1:1.12
	netbsd-10:1.12.0.24
	netbsd-10-base:1.12
	bouyer-sunxi-drm:1.12.0.22
	bouyer-sunxi-drm-base:1.12
	netbsd-9-3-RELEASE:1.9.22.1
	thorpej-i2c-spi-conf2:1.12.0.20
	thorpej-i2c-spi-conf2-base:1.12
	thorpej-futex2:1.12.0.18
	thorpej-futex2-base:1.12
	thorpej-cfargs2:1.12.0.16
	thorpej-cfargs2-base:1.12
	cjep_sun2x-base1:1.12
	cjep_sun2x:1.12.0.14
	cjep_sun2x-base:1.12
	cjep_staticlib_x-base1:1.12
	netbsd-9-2-RELEASE:1.9.22.1
	cjep_staticlib_x:1.12.0.12
	cjep_staticlib_x-base:1.12
	thorpej-i2c-spi-conf:1.12.0.10
	thorpej-i2c-spi-conf-base:1.12
	thorpej-cfargs:1.12.0.8
	thorpej-cfargs-base:1.12
	thorpej-futex:1.12.0.6
	thorpej-futex-base:1.12
	netbsd-9-1-RELEASE:1.9.22.1
	bouyer-xenpvh-base2:1.12
	phil-wifi-20200421:1.12
	bouyer-xenpvh-base1:1.12
	phil-wifi-20200411:1.12
	bouyer-xenpvh:1.12.0.4
	bouyer-xenpvh-base:1.12
	is-mlppp:1.12.0.2
	is-mlppp-base:1.12
	phil-wifi-20200406:1.12
	netbsd-8-2-RELEASE:1.9.10.1
	ad-namecache-base3:1.12
	netbsd-9-0-RELEASE:1.9.22.1
	netbsd-9-0-RC2:1.9.22.1
	ad-namecache-base2:1.12
	ad-namecache-base1:1.12
	ad-namecache:1.11.0.2
	ad-namecache-base:1.11
	netbsd-9-0-RC1:1.9.22.1
	phil-wifi-20191119:1.10
	netbsd-9:1.9.0.22
	netbsd-9-base:1.9
	phil-wifi-20190609:1.9
	netbsd-8-1-RELEASE:1.9
	netbsd-8-1-RC1:1.9
	isaki-audio2:1.9.0.20
	isaki-audio2-base:1.9
	pgoyette-compat-merge-20190127:1.9
	pgoyette-compat-20190127:1.9
	pgoyette-compat-20190118:1.9
	pgoyette-compat-1226:1.9
	pgoyette-compat-1126:1.9
	pgoyette-compat-1020:1.9
	pgoyette-compat-0930:1.9
	pgoyette-compat-0906:1.9
	netbsd-7-2-RELEASE:1.5
	pgoyette-compat-0728:1.9
	netbsd-8-0-RELEASE:1.9
	phil-wifi:1.9.0.18
	phil-wifi-base:1.9
	pgoyette-compat-0625:1.9
	netbsd-8-0-RC2:1.9
	pgoyette-compat-0521:1.9
	pgoyette-compat-0502:1.9
	pgoyette-compat-0422:1.9
	netbsd-8-0-RC1:1.9
	pgoyette-compat-0415:1.9
	pgoyette-compat-0407:1.9
	pgoyette-compat-0330:1.9
	pgoyette-compat-0322:1.9
	pgoyette-compat-0315:1.9
	netbsd-7-1-2-RELEASE:1.5
	pgoyette-compat:1.9.0.16
	pgoyette-compat-base:1.9
	netbsd-7-1-1-RELEASE:1.5
	tls-maxphys-base-20171202:1.9
	matt-nb8-mediatek:1.9.0.14
	matt-nb8-mediatek-base:1.9
	nick-nhusb-base-20170825:1.9
	perseant-stdc-iso10646:1.9.0.12
	perseant-stdc-iso10646-base:1.9
	netbsd-8:1.9.0.10
	netbsd-8-base:1.9
	prg-localcount2-base3:1.9
	prg-localcount2-base2:1.9
	prg-localcount2-base1:1.9
	prg-localcount2:1.9.0.8
	prg-localcount2-base:1.9
	pgoyette-localcount-20170426:1.9
	bouyer-socketcan-base1:1.9
	jdolecek-ncq:1.9.0.6
	jdolecek-ncq-base:1.9
	pgoyette-localcount-20170320:1.9
	netbsd-7-1:1.5.0.10
	netbsd-7-1-RELEASE:1.5
	netbsd-7-1-RC2:1.5
	nick-nhusb-base-20170204:1.9
	netbsd-7-nhusb-base-20170116:1.5
	bouyer-socketcan:1.9.0.4
	bouyer-socketcan-base:1.9
	pgoyette-localcount-20170107:1.9
	netbsd-7-1-RC1:1.5
	nick-nhusb-base-20161204:1.9
	pgoyette-localcount-20161104:1.9
	netbsd-7-0-2-RELEASE:1.5
	nick-nhusb-base-20161004:1.9
	localcount-20160914:1.9
	netbsd-7-nhusb:1.5.0.8
	netbsd-7-nhusb-base:1.5
	pgoyette-localcount-20160806:1.9
	pgoyette-localcount-20160726:1.9
	pgoyette-localcount:1.9.0.2
	pgoyette-localcount-base:1.9
	nick-nhusb-base-20160907:1.9
	nick-nhusb-base-20160529:1.9
	netbsd-7-0-1-RELEASE:1.5
	nick-nhusb-base-20160422:1.9
	nick-nhusb-base-20160319:1.9
	nick-nhusb-base-20151226:1.9
	netbsd-7-0:1.5.0.6
	netbsd-7-0-RELEASE:1.5
	nick-nhusb-base-20150921:1.9
	netbsd-7-0-RC3:1.5
	netbsd-7-0-RC2:1.5
	netbsd-7-0-RC1:1.5
	nick-nhusb-base-20150606:1.6
	nick-nhusb-base-20150406:1.6
	nick-nhusb:1.6.0.2
	nick-nhusb-base:1.6
	netbsd-5-2-3-RELEASE:1.2
	netbsd-5-1-5-RELEASE:1.2
	netbsd-6-0-6-RELEASE:1.4
	netbsd-6-1-5-RELEASE:1.4
	netbsd-7:1.5.0.4
	netbsd-7-base:1.5
	yamt-pagecache-base9:1.5
	yamt-pagecache-tag8:1.3.4.1
	netbsd-6-1-4-RELEASE:1.4
	netbsd-6-0-5-RELEASE:1.4
	tls-earlyentropy:1.5.0.2
	tls-earlyentropy-base:1.5
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.5
	riastradh-drm2-base3:1.5
	netbsd-6-1-3-RELEASE:1.4
	netbsd-6-0-4-RELEASE:1.4
	netbsd-5-2-2-RELEASE:1.2
	netbsd-5-1-4-RELEASE:1.2
	netbsd-6-1-2-RELEASE:1.4
	netbsd-6-0-3-RELEASE:1.4
	netbsd-5-2-1-RELEASE:1.2
	netbsd-5-1-3-RELEASE:1.2
	rmind-smpnet-nbase:1.5
	netbsd-6-1-1-RELEASE:1.4
	riastradh-drm2-base2:1.4
	riastradh-drm2-base1:1.4
	riastradh-drm2:1.4.0.18
	riastradh-drm2-base:1.4
	rmind-smpnet:1.4.0.10
	rmind-smpnet-base:1.5
	netbsd-6-1:1.4.0.16
	netbsd-6-0-2-RELEASE:1.4
	netbsd-6-1-RELEASE:1.4
	khorben-n900:1.4.0.14
	netbsd-6-1-RC4:1.4
	netbsd-6-1-RC3:1.4
	agc-symver:1.4.0.12
	agc-symver-base:1.4
	netbsd-6-1-RC2:1.4
	netbsd-6-1-RC1:1.4
	yamt-pagecache-base8:1.4
	netbsd-5-2:1.2.0.86
	netbsd-6-0-1-RELEASE:1.4
	yamt-pagecache-base7:1.4
	netbsd-5-2-RELEASE:1.2
	netbsd-5-2-RC1:1.2
	matt-nb6-plus-nbase:1.4
	yamt-pagecache-base6:1.4
	netbsd-6-0:1.4.0.8
	netbsd-6-0-RELEASE:1.4
	netbsd-6-0-RC2:1.4
	tls-maxphys:1.4.0.6
	tls-maxphys-base:1.5
	matt-nb6-plus:1.4.0.4
	matt-nb6-plus-base:1.4
	netbsd-6-0-RC1:1.4
	jmcneill-usbmp-base10:1.4
	yamt-pagecache-base5:1.4
	jmcneill-usbmp-base9:1.4
	yamt-pagecache-base4:1.4
	jmcneill-usbmp-base8:1.4
	jmcneill-usbmp-base7:1.4
	jmcneill-usbmp-base6:1.4
	jmcneill-usbmp-base5:1.4
	jmcneill-usbmp-base4:1.4
	jmcneill-usbmp-base3:1.4
	jmcneill-usbmp-pre-base2:1.3
	jmcneill-usbmp-base2:1.4
	netbsd-6:1.4.0.2
	netbsd-6-base:1.4
	netbsd-5-1-2-RELEASE:1.2
	netbsd-5-1-1-RELEASE:1.2
	jmcneill-usbmp:1.3.0.8
	jmcneill-usbmp-base:1.3
	jmcneill-audiomp3:1.3.0.6
	jmcneill-audiomp3-base:1.3
	yamt-pagecache-base3:1.3
	yamt-pagecache-base2:1.3
	yamt-pagecache:1.3.0.4
	yamt-pagecache-base:1.3
	rmind-uvmplock-nbase:1.3
	cherry-xenmp:1.3.0.2
	cherry-xenmp-base:1.3
	uebayasi-xip-base7:1.2
	bouyer-quota2-nbase:1.2
	bouyer-quota2:1.2.0.84
	bouyer-quota2-base:1.2
	jruoho-x86intr:1.2.0.82
	jruoho-x86intr-base:1.2
	matt-mips64-premerge-20101231:1.2
	matt-nb5-mips64-premerge-20101231:1.2
	matt-nb5-pq3:1.2.0.80
	matt-nb5-pq3-base:1.2
	netbsd-5-1:1.2.0.78
	uebayasi-xip-base6:1.2
	uebayasi-xip-base5:1.2
	netbsd-5-1-RELEASE:1.2
	uebayasi-xip-base4:1.2
	uebayasi-xip-base3:1.2
	yamt-nfs-mp-base11:1.2
	netbsd-5-1-RC4:1.2
	matt-nb5-mips64-k15:1.2
	uebayasi-xip-base2:1.2
	yamt-nfs-mp-base10:1.2
	netbsd-5-1-RC3:1.2
	netbsd-5-1-RC2:1.2
	uebayasi-xip-base1:1.2
	netbsd-5-1-RC1:1.2
	rmind-uvmplock:1.2.0.76
	rmind-uvmplock-base:1.3
	yamt-nfs-mp-base9:1.2
	uebayasi-xip:1.2.0.74
	uebayasi-xip-base:1.2
	netbsd-5-0-2-RELEASE:1.2
	matt-nb5-mips64-premerge-20091211:1.2
	matt-premerge-20091211:1.2
	yamt-nfs-mp-base8:1.2
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.2
	matt-nb4-mips64-k7-u2a-k9b:1.2
	matt-nb5-mips64-u1-k1-k5:1.2
	yamt-nfs-mp-base7:1.2
	matt-nb5-mips64:1.2.0.72
	netbsd-5-0-1-RELEASE:1.2
	jymxensuspend-base:1.2
	yamt-nfs-mp-base6:1.2
	yamt-nfs-mp-base5:1.2
	yamt-nfs-mp-base4:1.2
	jym-xensuspend-nbase:1.2
	yamt-nfs-mp-base3:1.2
	nick-hppapmap-base4:1.2
	nick-hppapmap-base3:1.2
	netbsd-5-0:1.2.0.70
	netbsd-5-0-RELEASE:1.2
	netbsd-5-0-RC4:1.2
	netbsd-5-0-RC3:1.2
	nick-hppapmap-base2:1.2
	netbsd-5-0-RC2:1.2
	jym-xensuspend:1.2.0.68
	jym-xensuspend-base:1.2
	netbsd-5-0-RC1:1.2
	haad-dm-base2:1.2
	haad-nbase2:1.2
	ad-audiomp2:1.2.0.66
	ad-audiomp2-base:1.2
	netbsd-5:1.2.0.64
	netbsd-5-base:1.2
	nick-hppapmap:1.2.0.62
	nick-hppapmap-base:1.2
	matt-mips64-base2:1.2
	haad-dm-base1:1.2
	wrstuden-revivesa-base-4:1.2
	wrstuden-revivesa-base-3:1.2
	wrstuden-revivesa-base-2:1.2
	nick-csl-alignment-base5:1.2
	haad-dm:1.2.0.60
	haad-dm-base:1.2
	wrstuden-revivesa-base-1:1.2
	simonb-wapbl-nbase:1.2
	yamt-pf42-base4:1.2
	simonb-wapbl:1.2.0.58
	simonb-wapbl-base:1.2
	yamt-pf42-base3:1.2
	hpcarm-cleanup-nbase:1.2
	yamt-pf42-baseX:1.2
	yamt-pf42-base2:1.2
	yamt-nfs-mp-base2:1.2
	wrstuden-revivesa:1.2.0.56
	wrstuden-revivesa-base:1.2
	yamt-nfs-mp:1.2.0.54
	yamt-nfs-mp-base:1.2
	yamt-pf42:1.2.0.52
	yamt-pf42-base:1.2
	ad-socklock-base1:1.2
	yamt-lazymbuf-base15:1.2
	yamt-lazymbuf-base14:1.2
	keiichi-mipv6-nbase:1.2
	mjf-devfs2:1.2.0.50
	mjf-devfs2-base:1.2
	nick-net80211-sync:1.2.0.48
	nick-net80211-sync-base:1.2
	keiichi-mipv6:1.2.0.46
	keiichi-mipv6-base:1.2
	bouyer-xeni386-merge1:1.2
	matt-armv6-prevmlocking:1.2
	vmlocking2-base3:1.2
	bouyer-xeni386-nbase:1.2
	yamt-kmem-base3:1.2
	cube-autoconf:1.2.0.44
	cube-autoconf-base:1.2
	yamt-kmem-base2:1.2
	bouyer-xeni386:1.2.0.42
	bouyer-xeni386-base:1.2
	yamt-kmem:1.2.0.40
	yamt-kmem-base:1.2
	vmlocking2-base2:1.2
	reinoud-bufcleanup-nbase:1.2
	vmlocking2:1.2.0.38
	vmlocking2-base1:1.2
	matt-armv6-nbase:1.2
	jmcneill-base:1.2
	mjf-devfs:1.2.0.36
	mjf-devfs-base:1.2
	bouyer-xenamd64-base2:1.2
	vmlocking-nbase:1.2
	yamt-x86pmap-base4:1.2
	bouyer-xenamd64:1.2.0.34
	bouyer-xenamd64-base:1.2
	yamt-x86pmap-base3:1.2
	yamt-x86pmap-base2:1.2
	yamt-x86pmap:1.2.0.32
	yamt-x86pmap-base:1.2
	matt-armv6:1.2.0.30
	matt-armv6-base:1.2
	jmcneill-pm:1.2.0.28
	jmcneill-pm-base:1.2
	hpcarm-cleanup:1.2.0.26
	hpcarm-cleanup-base:1.2
	nick-csl-alignment:1.2.0.24
	nick-csl-alignment-base:1.2
	matt-mips64:1.2.0.22
	matt-mips64-base:1.2
	yamt-idlelwp-base8:1.2
	ppcoea-renovation:1.2.0.20
	ppcoea-renovation-base:1.2
	thorpej-atomic:1.2.0.18
	thorpej-atomic-base:1.2
	reinoud-bufcleanup:1.2.0.16
	reinoud-bufcleanup-base:1.2
	mjf-ufs-trans:1.2.0.14
	mjf-ufs-trans-base:1.2
	vmlocking:1.2.0.12
	vmlocking-base:1.2
	ad-audiomp:1.2.0.10
	ad-audiomp-base:1.2
	yamt-idlelwp:1.2.0.8
	post-newlock2-merge:1.2
	newlock2-nbase:1.2
	newlock2-base:1.2
	newlock2:1.2.0.6
	yamt-lazymbuf:1.2.0.4
	yamt-splraiseipl-base5:1.2
	yamt-splraiseipl:1.2.0.2
	yamt-splraiseipl-base4:1.2;
locks; strict;
comment	@# @;


1.12
date	2020.01.12.06.41.02;	author tsutsui;	state Exp;
branches;
next	1.11;
commitid	PynvguW3jkclPmSB;

1.11
date	2020.01.03.10.01.07;	author martin;	state Exp;
branches
	1.11.2.1;
next	1.10;
commitid	2l6NQCjeDrIufeRB;

1.10
date	2019.10.26.09.49.13;	author tsutsui;	state Exp;
branches;
next	1.9;
commitid	u4AXqYjPc1okpmIB;

1.9
date	2015.08.25.02.38.15;	author uebayasi;	state Exp;
branches
	1.9.10.1
	1.9.18.1
	1.9.22.1;
next	1.8;
commitid	fQGLacHhdI3FYAyy;

1.8
date	2015.08.24.14.04.25;	author uebayasi;	state Exp;
branches;
next	1.7;
commitid	JQO3eAMUebR2Owyy;

1.7
date	2015.08.19.04.33.00;	author uebayasi;	state Exp;
branches;
next	1.6;
commitid	fKntDF6ybmDZNPxy;

1.6
date	2014.11.15.13.34.30;	author uebayasi;	state Exp;
branches
	1.6.2.1;
next	1.5;
commitid	0QAnXRbc3eDMHhYx;

1.5
date	2014.03.02.16.18.41;	author joerg;	state Exp;
branches;
next	1.4;
commitid	Y0tbe6x1RjeeU8rx;

1.4
date	2012.01.20.15.00.27;	author nonaka;	state Exp;
branches
	1.4.6.1
	1.4.10.1;
next	1.3;

1.3
date	2011.05.05.09.07.59;	author nonaka;	state Exp;
branches
	1.3.4.1
	1.3.8.1;
next	1.2;

1.2
date	2006.12.17.16.07.11;	author peter;	state Exp;
branches
	1.2.2.1
	1.2.4.1
	1.2.6.1
	1.2.76.1
	1.2.82.1;
next	1.1;

1.1
date	2006.12.16.05.08.47;	author ober;	state Exp;
branches;
next	;

1.11.2.1
date	2020.01.17.21.47.29;	author ad;	state Exp;
branches;
next	;
commitid	T9pwLWote7xbI5TB;

1.9.10.1
date	2019.11.03.11.38.50;	author martin;	state Exp;
branches;
next	;
commitid	wHHaMDlor0hZKoJB;

1.9.18.1
date	2020.04.13.08.04.13;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.9.22.1
date	2019.11.03.11.36.56;	author martin;	state Exp;
branches;
next	;
commitid	EiCVYgfxs9EkKoJB;

1.6.2.1
date	2015.09.22.12.05.54;	author skrll;	state Exp;
branches;
next	;
commitid	CpNWKp3ozVNTafCy;

1.4.6.1
date	2014.08.20.00.03.30;	author tls;	state Exp;
branches;
next	1.4.6.2;
commitid	jTnpym9Qu0o4R1Nx;

1.4.6.2
date	2017.12.03.11.36.52;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.4.10.1
date	2014.05.18.17.45.31;	author rmind;	state Exp;
branches;
next	;
commitid	mL5ZYSzpqK6QS2Bx;

1.3.4.1
date	2012.04.17.00.07.12;	author yamt;	state Exp;
branches;
next	1.3.4.2;

1.3.4.2
date	2014.05.22.11.40.14;	author yamt;	state Exp;
branches;
next	;
commitid	VUUXuyNWnt3AKwBx;

1.3.8.1
date	2012.02.18.07.33.48;	author mrg;	state Exp;
branches;
next	;

1.2.2.1
date	2006.12.17.16.07.11;	author yamt;	state dead;
branches;
next	1.2.2.2;

1.2.2.2
date	2006.12.18.11.42.09;	author yamt;	state Exp;
branches;
next	;

1.2.4.1
date	2006.12.17.16.07.11;	author yamt;	state dead;
branches;
next	1.2.4.2;

1.2.4.2
date	2006.12.30.20.47.28;	author yamt;	state Exp;
branches;
next	;

1.2.6.1
date	2006.12.17.16.07.11;	author ad;	state dead;
branches;
next	1.2.6.2;

1.2.6.2
date	2007.01.12.01.01.03;	author ad;	state Exp;
branches;
next	;

1.2.76.1
date	2011.05.31.03.04.25;	author rmind;	state Exp;
branches;
next	;

1.2.82.1
date	2011.06.06.09.07.13;	author jruoho;	state Exp;
branches;
next	;


desc
@@


1.12
log
@Revert "Compile with -O2 by default" change in previous rev 1.11.

COPTS is defined properly after sys/arch/arm/conf/Makefile.arm rev 1.53.
See discussion in source-changes-d@@ for details:
 https://mail-index.netbsd.org/source-changes-d/2020/01/thread1.html#011984
@
text
@#	$NetBSD: Makefile.zaurus.inc,v 1.11 2020/01/03 10:01:07 martin Exp $

MACHINE_ARCH?=		arm
CPPFLAGS+=		-D${MACHINE}

SYSTEM_FIRST_OBJ=	zaurus_start.o
SYSTEM_FIRST_SFILE=	${THISARM}/zaurus/zaurus_start.S

SYSTEM_LD_TAIL_EXTRA+=; \
	echo "Checking kernel size..."; \
	size=`wc -c "$@@" | ${TOOL_AWK} '{ print $$1 }'`; \
	maxsize=5242880; \
	if [ $$size -gt $$maxsize ]; \
	then \
		echo "Fatal: kernel size must be less than 5MB."; \
		echo "Fatal: kernel size: $$size, max kernel size: $$maxsize"; \
		false; \
	fi

KERNEL_BASE_VIRT=	$(LOADADDRESS)

KERNLDSCRIPT=		ldscript
TEXTADDR=		# defined in ldscript
LINKENTRY=		# defined in ldscript

EXTRA_CLEAN+=		netbsd.map assym.d ldscript tmp

# generate ldscript from common template
ldscript: ${THISARM}/conf/ldscript.zaurus ${THISARM}/conf/Makefile.zaurus.inc Makefile
	${_MKTARGET_CREATE}
	${TOOL_SED} -e 's/@@KERNEL_BASE_PHYS@@/${KERNEL_BASE_PHYS}/' \
	    -e 's/@@KERNEL_BASE_VIRT@@/${KERNEL_BASE_VIRT}/' \
	    ${THISARM}/conf/ldscript.zaurus > tmp && mv tmp $@@
@


1.11
log
@Drop CTF sections from this size restricted kernel (especially as the
size check is on the total size of the binary, not any content/sections -
is this a bug?)
Compile with -O2 by default (to shrink the kernel to a usable size again
and unbreak the build)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zaurus.inc,v 1.10 2019/10/26 09:49:13 tsutsui Exp $
a4 1
COPTS?=			-O2
@


1.11.2.1
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zaurus.inc,v 1.12 2020/01/12 06:41:02 tsutsui Exp $
d5 1
@


1.10
log
@Explicitly set empty LINKENTRY to keep ENTRY address specified in ldscript.

This fixes kernel boot failures of NetBSD/zaurus 8.x and later.
While here, also set empty TEXTADDR also specified in ldscript.

See my post in port-zaurus@@ for details:
 https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zaurus.inc,v 1.9 2015/08/25 02:38:15 uebayasi Exp $
d5 1
@


1.9
log
@Print a message when creating a temporary ldscript.
@
text
@d1 1
a1 1
#	$NetBSD$
d23 2
@


1.9.18.1
log
@Mostly merge changes from HEAD upto 20200411
@
text
@a22 2
TEXTADDR=		# defined in ldscript
LINKENTRY=		# defined in ldscript
@


1.9.10.1
log
@Pull up following revision(s) (requested by tsutsui in ticket #1420):

	sys/arch/zaurus/stand/zbsdmod/Makefile: revision 1.12
	sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.10
	sys/arch/zaurus/conf/Makefile.zaurus.inc: revision 1.10
	sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.11
	sys/arch/zaurus/stand/zbsdmod/compat_linux.h: revision 1.7

Explicitly set empty LINKENTRY to keep ENTRY address specified in ldscript.

This fixes kernel boot failures of NetBSD/zaurus 8.x and later.
While here, also set empty TEXTADDR also specified in ldscript.

See my post in port-zaurus@@ for details:
 https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.

 -

Fix another boot failure issue of NetBSD/zaurus 8.x and later.

It looks some cacheline alignment restriction so that zbsdmod.o in
NetBSD/zaurus 8.x release cannot jump to a loaded kernel properly.

Adding an explicit alingment pseudo op to put all instructions
between I-cache flush and jumping to the loaded kernel into the
same cacheline solves the issue.

See my post in port-zaurus@@ for details:
 https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.

 -

Misc cleanup to avoid future confusion.
- Remove more unnecessary debug sections
- Use DBG instead of COPTS to specify -Os as defined in bsd.prog.mk
- Use CFLAGS and CPPFLAGS correctly
- Explicitly set -ffreestanding

 -

Make sure to clear bss before jumping to a kernel copied from load buffer.
This will fix yet another boot failure issue
"screen white-out after loading a kernel"
 https://mail-index.netbsd.org/port-zaurus/2019/10/26/msg000072.html

Should be pulled up to netbsd-8 and netbsd-9.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zaurus.inc,v 1.9 2015/08/25 02:38:15 uebayasi Exp $
a22 2
TEXTADDR=		# defined in ldscript
LINKENTRY=		# defined in ldscript
@


1.9.22.1
log
@Pull up following revision(s) (requested by tsutsui in ticket #391):

	sys/arch/zaurus/stand/zbsdmod/Makefile: revision 1.12
	sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.10
	sys/arch/zaurus/conf/Makefile.zaurus.inc: revision 1.10
	sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.11
	sys/arch/zaurus/stand/zbsdmod/compat_linux.h: revision 1.7

Explicitly set empty LINKENTRY to keep ENTRY address specified in ldscript.

This fixes kernel boot failures of NetBSD/zaurus 8.x and later.
While here, also set empty TEXTADDR also specified in ldscript.

See my post in port-zaurus@@ for details:
 https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.

 -

Fix another boot failure issue of NetBSD/zaurus 8.x and later.

It looks some cacheline alignment restriction so that zbsdmod.o in
NetBSD/zaurus 8.x release cannot jump to a loaded kernel properly.

Adding an explicit alingment pseudo op to put all instructions
between I-cache flush and jumping to the loaded kernel into the
same cacheline solves the issue.

See my post in port-zaurus@@ for details:
 https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.

 -

Misc cleanup to avoid future confusion.
- Remove more unnecessary debug sections
- Use DBG instead of COPTS to specify -Os as defined in bsd.prog.mk
- Use CFLAGS and CPPFLAGS correctly
- Explicitly set -ffreestanding

 -

Make sure to clear bss before jumping to a kernel copied from load buffer.
This will fix yet another boot failure issue
"screen white-out after loading a kernel"
 https://mail-index.netbsd.org/port-zaurus/2019/10/26/msg000072.html

Should be pulled up to netbsd-8 and netbsd-9.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zaurus.inc,v 1.9 2015/08/25 02:38:15 uebayasi Exp $
a22 2
TEXTADDR=		# defined in ldscript
LINKENTRY=		# defined in ldscript
@


1.8
log
@Define ${LINKSCRIPT} in one place.
@
text
@d28 1
@


1.7
log
@Use ${KERNLDSCRIPT} so it is added to ${SYSTEM_DEP}.
@
text
@a22 1
LINKSCRIPT=		-T ${KERNLDSCRIPT}
@


1.6
log
@Use LINKSCRIPT.
@
text
@d22 2
a23 1
LINKSCRIPT=		-T ldscript
a26 2
netbsd:	ldscript	# XXX

@


1.6.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zaurus.inc,v 1.9 2015/08/25 02:38:15 uebayasi Exp $
d22 1
a22 1
KERNLDSCRIPT=		ldscript
d26 2
a29 1
	${_MKTARGET_CREATE}
@


1.5
log
@Don't overwrite MACHINE_ARCH if it is already set.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zaurus.inc,v 1.4 2012/01/20 15:00:27 nonaka Exp $
d22 1
a22 1
LINKFLAGS=		-T ldscript
@


1.4
log
@Kernel load address can be changed now.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zaurus.inc,v 1.3 2011/05/05 09:07:59 nonaka Exp $
d3 1
a3 1
MACHINE_ARCH=		arm
@


1.4.6.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
d3 1
a3 1
MACHINE_ARCH?=		arm
@


1.4.6.2
log
@update from HEAD
@
text
@d22 1
a22 1
KERNLDSCRIPT=		ldscript
d26 2
a29 1
	${_MKTARGET_CREATE}
@


1.4.10.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zaurus.inc,v 1.4 2012/01/20 15:00:27 nonaka Exp $
d3 1
a3 1
MACHINE_ARCH?=		arm
@


1.3
log
@Reduce kernel size.
Tested on SL-C1000.

Fix PR/44898.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zaurus.inc,v 1.2 2006/12/17 16:07:11 peter Exp $
a8 4
LINKFLAGS=		-T ${THISARM}/conf/ldscript

EXTRA_CLEAN+= netbsd.map assym.d

d19 14
@


1.3.4.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zaurus.inc,v 1.3 2011/05/05 09:07:59 nonaka Exp $
d9 4
a22 14

KERNEL_BASE_VIRT=	$(LOADADDRESS)

LINKFLAGS=		-T ldscript

EXTRA_CLEAN+=		netbsd.map assym.d ldscript tmp

netbsd:	ldscript	# XXX

# generate ldscript from common template
ldscript: ${THISARM}/conf/ldscript.zaurus ${THISARM}/conf/Makefile.zaurus.inc Makefile
	${TOOL_SED} -e 's/@@KERNEL_BASE_PHYS@@/${KERNEL_BASE_PHYS}/' \
	    -e 's/@@KERNEL_BASE_VIRT@@/${KERNEL_BASE_VIRT}/' \
	    ${THISARM}/conf/ldscript.zaurus > tmp && mv tmp $@@
@


1.3.4.2
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.zaurus.inc,v 1.3.4.1 2012/04/17 00:07:12 yamt Exp $
d3 1
a3 1
MACHINE_ARCH?=		arm
@


1.3.8.1
log
@merge to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zaurus.inc,v 1.4 2012/01/20 15:00:27 nonaka Exp $
d9 4
a22 14

KERNEL_BASE_VIRT=	$(LOADADDRESS)

LINKFLAGS=		-T ldscript

EXTRA_CLEAN+=		netbsd.map assym.d ldscript tmp

netbsd:	ldscript	# XXX

# generate ldscript from common template
ldscript: ${THISARM}/conf/ldscript.zaurus ${THISARM}/conf/Makefile.zaurus.inc Makefile
	${TOOL_SED} -e 's/@@KERNEL_BASE_PHYS@@/${KERNEL_BASE_PHYS}/' \
	    -e 's/@@KERNEL_BASE_VIRT@@/${KERNEL_BASE_VIRT}/' \
	    ${THISARM}/conf/ldscript.zaurus > tmp && mv tmp $@@
@


1.2
log
@Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
@
text
@d1 1
a1 1
#	$NetBSD$
d12 11
@


1.2.82.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zaurus.inc,v 1.3 2011/05/05 09:07:59 nonaka Exp $
a11 11

SYSTEM_LD_TAIL_EXTRA+=; \
	echo "Checking kernel size..."; \
	size=`wc -c "$@@" | ${TOOL_AWK} '{ print $$1 }'`; \
	maxsize=5242880; \
	if [ $$size -gt $$maxsize ]; \
	then \
		echo "Fatal: kernel size must be less than 5MB."; \
		echo "Fatal: kernel size: $$size, max kernel size: $$maxsize"; \
		false; \
	fi
@


1.2.76.1
log
@sync with head
@
text
@a11 11

SYSTEM_LD_TAIL_EXTRA+=; \
	echo "Checking kernel size..."; \
	size=`wc -c "$@@" | ${TOOL_AWK} '{ print $$1 }'`; \
	maxsize=5242880; \
	if [ $$size -gt $$maxsize ]; \
	then \
		echo "Fatal: kernel size must be less than 5MB."; \
		echo "Fatal: kernel size: $$size, max kernel size: $$maxsize"; \
		false; \
	fi
@


1.2.6.1
log
@file Makefile.zaurus.inc was added on branch newlock2 on 2007-01-12 01:01:03 +0000
@
text
@d1 11
@


1.2.6.2
log
@Sync with head.
@
text
@a0 11
#	$NetBSD: Makefile.zaurus.inc,v 1.2.6.1 2007/01/12 01:01:03 ad Exp $

MACHINE_ARCH=		arm
CPPFLAGS+=		-D${MACHINE}

SYSTEM_FIRST_OBJ=	zaurus_start.o
SYSTEM_FIRST_SFILE=	${THISARM}/zaurus/zaurus_start.S

LINKFLAGS=		-T ${THISARM}/conf/ldscript

EXTRA_CLEAN+= netbsd.map assym.d
@


1.2.2.1
log
@file Makefile.zaurus.inc was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
@
text
@d1 11
@


1.2.2.2
log
@sync with head.
@
text
@a0 11
#	$NetBSD: Makefile.zaurus.inc,v 1.2.2.1 2006/12/18 11:42:09 yamt Exp $

MACHINE_ARCH=		arm
CPPFLAGS+=		-D${MACHINE}

SYSTEM_FIRST_OBJ=	zaurus_start.o
SYSTEM_FIRST_SFILE=	${THISARM}/zaurus/zaurus_start.S

LINKFLAGS=		-T ${THISARM}/conf/ldscript

EXTRA_CLEAN+= netbsd.map assym.d
@


1.2.4.1
log
@file Makefile.zaurus.inc was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
@
text
@d1 11
@


1.2.4.2
log
@sync with head.
@
text
@a0 11
#	$NetBSD: Makefile.zaurus.inc,v 1.2.4.1 2006/12/30 20:47:28 yamt Exp $

MACHINE_ARCH=		arm
CPPFLAGS+=		-D${MACHINE}

SYSTEM_FIRST_OBJ=	zaurus_start.o
SYSTEM_FIRST_SFILE=	${THISARM}/zaurus/zaurus_start.S

LINKFLAGS=		-T ${THISARM}/conf/ldscript

EXTRA_CLEAN+= netbsd.map assym.d
@


1.1
log
@Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
@
text
@d9 1
a9 2
KERNEL_BASE_PHYS=	0xa0200000
KERNEL_BASE_VIRT=	0xc0200000
d11 1
a11 11
LINKFLAGS=		-T ldscript

netbsd: ldscript             # XXX
EXTRA_CLEAN+= ldscript tmp

# generate ldscript from common template 
ldscript: ${THISARM}/conf/ldscript.zaurus ${THISARM}/conf/Makefile.zaurus.inc
	echo ${KERNELS}
	sed -e 's/@@KERNEL_BASE_PHYS@@/${KERNEL_BASE_PHYS}/' \
	    -e 's/@@KERNEL_BASE_VIRT@@/${KERNEL_BASE_VIRT}/' \
	    ${THISARM}/conf/ldscript.zaurus > tmp && mv tmp $@@
@

