head	1.5;
access;
symbols
	netbsd-11-0-RC4:1.5
	netbsd-11-0-RC3:1.5
	netbsd-11-0-RC2:1.5
	netbsd-11-0-RC1:1.5
	perseant-exfatfs-base-20250801:1.5
	netbsd-11:1.5.0.54
	netbsd-11-base:1.5
	netbsd-10-1-RELEASE:1.5
	perseant-exfatfs-base-20240630:1.5
	perseant-exfatfs:1.5.0.52
	perseant-exfatfs-base:1.5
	netbsd-8-3-RELEASE:1.5
	netbsd-9-4-RELEASE:1.5
	netbsd-10-0-RELEASE:1.5
	netbsd-10-0-RC6:1.5
	netbsd-10-0-RC5:1.5
	netbsd-10-0-RC4:1.5
	netbsd-10-0-RC3:1.5
	netbsd-10-0-RC2:1.5
	thorpej-ifq:1.5.0.50
	thorpej-ifq-base:1.5
	thorpej-altq-separation:1.5.0.48
	thorpej-altq-separation-base:1.5
	netbsd-10-0-RC1:1.5
	netbsd-10:1.5.0.46
	netbsd-10-base:1.5
	bouyer-sunxi-drm:1.5.0.44
	bouyer-sunxi-drm-base:1.5
	netbsd-9-3-RELEASE:1.5
	thorpej-i2c-spi-conf2:1.5.0.42
	thorpej-i2c-spi-conf2-base:1.5
	thorpej-futex2:1.5.0.40
	thorpej-futex2-base:1.5
	thorpej-cfargs2:1.5.0.38
	thorpej-cfargs2-base:1.5
	cjep_sun2x-base1:1.5
	cjep_sun2x:1.5.0.36
	cjep_sun2x-base:1.5
	cjep_staticlib_x-base1:1.5
	netbsd-9-2-RELEASE:1.5
	cjep_staticlib_x:1.5.0.34
	cjep_staticlib_x-base:1.5
	thorpej-i2c-spi-conf:1.5.0.32
	thorpej-i2c-spi-conf-base:1.5
	thorpej-cfargs:1.5.0.30
	thorpej-cfargs-base:1.5
	thorpej-futex:1.5.0.28
	thorpej-futex-base:1.5
	netbsd-9-1-RELEASE:1.5
	bouyer-xenpvh-base2:1.5
	phil-wifi-20200421:1.5
	bouyer-xenpvh-base1:1.5
	phil-wifi-20200411:1.5
	bouyer-xenpvh:1.5.0.26
	bouyer-xenpvh-base:1.5
	is-mlppp:1.5.0.24
	is-mlppp-base:1.5
	phil-wifi-20200406:1.5
	netbsd-8-2-RELEASE:1.5
	ad-namecache-base3:1.5
	netbsd-9-0-RELEASE:1.5
	netbsd-9-0-RC2:1.5
	ad-namecache-base2:1.5
	ad-namecache-base1:1.5
	ad-namecache:1.5.0.22
	ad-namecache-base:1.5
	netbsd-9-0-RC1:1.5
	phil-wifi-20191119:1.5
	netbsd-9:1.5.0.20
	netbsd-9-base:1.5
	phil-wifi-20190609:1.5
	netbsd-8-1-RELEASE:1.5
	netbsd-8-1-RC1:1.5
	isaki-audio2:1.5.0.18
	isaki-audio2-base:1.5
	pgoyette-compat-merge-20190127:1.5
	pgoyette-compat-20190127:1.5
	pgoyette-compat-20190118:1.5
	pgoyette-compat-1226:1.5
	pgoyette-compat-1126:1.5
	pgoyette-compat-1020:1.5
	pgoyette-compat-0930:1.5
	pgoyette-compat-0906:1.5
	netbsd-7-2-RELEASE:1.4
	pgoyette-compat-0728:1.5
	netbsd-8-0-RELEASE:1.5
	phil-wifi:1.5.0.16
	phil-wifi-base:1.5
	pgoyette-compat-0625:1.5
	netbsd-8-0-RC2:1.5
	pgoyette-compat-0521:1.5
	pgoyette-compat-0502:1.5
	pgoyette-compat-0422:1.5
	netbsd-8-0-RC1:1.5
	pgoyette-compat-0415:1.5
	pgoyette-compat-0407:1.5
	pgoyette-compat-0330:1.5
	pgoyette-compat-0322:1.5
	pgoyette-compat-0315:1.5
	netbsd-7-1-2-RELEASE:1.4
	pgoyette-compat:1.5.0.14
	pgoyette-compat-base:1.5
	netbsd-7-1-1-RELEASE:1.4
	tls-maxphys-base-20171202:1.5
	matt-nb8-mediatek:1.5.0.12
	matt-nb8-mediatek-base:1.5
	nick-nhusb-base-20170825:1.5
	perseant-stdc-iso10646:1.5.0.10
	perseant-stdc-iso10646-base:1.5
	netbsd-8:1.5.0.8
	netbsd-8-base:1.5
	prg-localcount2-base3:1.5
	prg-localcount2-base2:1.5
	prg-localcount2-base1:1.5
	prg-localcount2:1.5.0.6
	prg-localcount2-base:1.5
	pgoyette-localcount-20170426:1.5
	bouyer-socketcan-base1:1.5
	jdolecek-ncq:1.5.0.4
	jdolecek-ncq-base:1.5
	pgoyette-localcount-20170320:1.5
	netbsd-7-1:1.4.0.14
	netbsd-7-1-RELEASE:1.4
	netbsd-7-1-RC2:1.4
	nick-nhusb-base-20170204:1.5
	netbsd-7-nhusb-base-20170116:1.4
	bouyer-socketcan:1.5.0.2
	bouyer-socketcan-base:1.5
	pgoyette-localcount-20170107:1.5
	netbsd-7-1-RC1:1.4
	nick-nhusb-base-20161204:1.5
	pgoyette-localcount-20161104:1.5
	netbsd-7-0-2-RELEASE:1.4
	nick-nhusb-base-20161004:1.5
	localcount-20160914:1.4
	netbsd-7-nhusb:1.4.0.12
	netbsd-7-nhusb-base:1.4
	pgoyette-localcount-20160806:1.4
	pgoyette-localcount-20160726:1.4
	pgoyette-localcount:1.4.0.10
	pgoyette-localcount-base:1.4
	nick-nhusb-base-20160907:1.4
	nick-nhusb-base-20160529:1.4
	netbsd-7-0-1-RELEASE:1.4
	nick-nhusb-base-20160422:1.4
	nick-nhusb-base-20160319:1.4
	nick-nhusb-base-20151226:1.4
	netbsd-7-0:1.4.0.8
	netbsd-7-0-RELEASE:1.4
	nick-nhusb-base-20150921:1.4
	netbsd-7-0-RC3:1.4
	netbsd-7-0-RC2:1.4
	netbsd-7-0-RC1:1.4
	nick-nhusb-base-20150606:1.4
	nick-nhusb-base-20150406:1.4
	nick-nhusb:1.4.0.6
	nick-nhusb-base:1.4
	netbsd-5-2-3-RELEASE:1.1.4.2
	netbsd-5-1-5-RELEASE:1.1.4.2
	netbsd-6-0-6-RELEASE:1.3
	netbsd-6-1-5-RELEASE:1.3
	netbsd-7:1.4.0.4
	netbsd-7-base:1.4
	yamt-pagecache-base9:1.4
	yamt-pagecache-tag8:1.2.14.1
	netbsd-6-1-4-RELEASE:1.3
	netbsd-6-0-5-RELEASE:1.3
	tls-earlyentropy:1.4.0.2
	tls-earlyentropy-base:1.4
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.4
	riastradh-drm2-base3:1.4
	netbsd-6-1-3-RELEASE:1.3
	netbsd-6-0-4-RELEASE:1.3
	netbsd-5-2-2-RELEASE:1.1.4.2
	netbsd-5-1-4-RELEASE:1.1.4.2
	netbsd-6-1-2-RELEASE:1.3
	netbsd-6-0-3-RELEASE:1.3
	netbsd-5-2-1-RELEASE:1.1.4.2
	netbsd-5-1-3-RELEASE:1.1.4.2
	rmind-smpnet-nbase:1.4
	netbsd-6-1-1-RELEASE:1.3
	riastradh-drm2-base2:1.3
	riastradh-drm2-base1:1.3
	riastradh-drm2:1.3.0.18
	riastradh-drm2-base:1.3
	rmind-smpnet:1.3.0.10
	rmind-smpnet-base:1.4
	netbsd-6-1:1.3.0.16
	netbsd-6-0-2-RELEASE:1.3
	netbsd-6-1-RELEASE:1.3
	khorben-n900:1.3.0.14
	netbsd-6-1-RC4:1.3
	netbsd-6-1-RC3:1.3
	agc-symver:1.3.0.12
	agc-symver-base:1.3
	netbsd-6-1-RC2:1.3
	netbsd-6-1-RC1:1.3
	yamt-pagecache-base8:1.3
	netbsd-5-2:1.1.4.2.0.10
	netbsd-6-0-1-RELEASE:1.3
	yamt-pagecache-base7:1.3
	netbsd-5-2-RELEASE:1.1.4.2
	netbsd-5-2-RC1:1.1.4.2
	matt-nb6-plus-nbase:1.3
	yamt-pagecache-base6:1.3
	netbsd-6-0:1.3.0.8
	netbsd-6-0-RELEASE:1.3
	netbsd-6-0-RC2:1.3
	tls-maxphys:1.3.0.6
	tls-maxphys-base:1.4
	matt-nb6-plus:1.3.0.4
	matt-nb6-plus-base:1.3
	netbsd-6-0-RC1:1.3
	jmcneill-usbmp-base10:1.3
	yamt-pagecache-base5:1.3
	jmcneill-usbmp-base9:1.3
	yamt-pagecache-base4:1.3
	jmcneill-usbmp-base8:1.3
	jmcneill-usbmp-base7:1.3
	jmcneill-usbmp-base6:1.3
	jmcneill-usbmp-base5:1.3
	jmcneill-usbmp-base4:1.3
	jmcneill-usbmp-base3:1.3
	jmcneill-usbmp-pre-base2:1.2
	jmcneill-usbmp-base2:1.3
	netbsd-6:1.3.0.2
	netbsd-6-base:1.3
	netbsd-5-1-2-RELEASE:1.1.4.2
	netbsd-5-1-1-RELEASE:1.1.4.2
	jmcneill-usbmp:1.2.0.18
	jmcneill-usbmp-base:1.2
	jmcneill-audiomp3:1.2.0.16
	jmcneill-audiomp3-base:1.2
	yamt-pagecache-base3:1.2
	yamt-pagecache-base2:1.2
	yamt-pagecache:1.2.0.14
	yamt-pagecache-base:1.2
	rmind-uvmplock-nbase:1.2
	cherry-xenmp:1.2.0.12
	cherry-xenmp-base:1.2
	jym-xensuspend-nbase:1.2
	uebayasi-xip-base7:1.2
	bouyer-quota2-nbase:1.2
	bouyer-quota2:1.2.0.10
	bouyer-quota2-base:1.2
	jruoho-x86intr:1.2.0.8
	jruoho-x86intr-base:1.2
	matt-mips64-premerge-20101231:1.2
	matt-nb5-mips64-premerge-20101231:1.1.4.2
	matt-nb5-pq3:1.1.4.2.0.8
	matt-nb5-pq3-base:1.1.4.2
	netbsd-5-1:1.1.4.2.0.6
	uebayasi-xip-base6:1.2
	uebayasi-xip-base5:1.2
	netbsd-5-1-RELEASE:1.1.4.2
	uebayasi-xip-base4:1.2
	uebayasi-xip-base3:1.2
	yamt-nfs-mp-base11:1.2
	netbsd-5-1-RC4:1.1.4.2
	matt-nb5-mips64-k15:1.1.4.2
	uebayasi-xip-base2:1.2
	yamt-nfs-mp-base10:1.2
	netbsd-5-1-RC3:1.1.4.2
	netbsd-5-1-RC2:1.1.4.2
	uebayasi-xip-base1:1.2
	netbsd-5-1-RC1:1.1.4.2
	rmind-uvmplock:1.2.0.6
	rmind-uvmplock-base:1.2
	yamt-nfs-mp-base9:1.2
	uebayasi-xip:1.2.0.4
	uebayasi-xip-base:1.2
	netbsd-5-0-2-RELEASE:1.1.4.2
	matt-nb5-mips64-premerge-20091211:1.1.4.2
	matt-premerge-20091211:1.2
	yamt-nfs-mp-base8:1.2
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.1.4.2
	matt-nb4-mips64-k7-u2a-k9b:1.1.4.2
	matt-nb5-mips64-u1-k1-k5:1.1.4.2
	yamt-nfs-mp-base7:1.2
	matt-nb5-mips64:1.1.4.2.0.4
	netbsd-5-0-1-RELEASE:1.1.4.2
	jymxensuspend-base:1.2
	yamt-nfs-mp-base6:1.2
	yamt-nfs-mp-base5:1.2
	yamt-nfs-mp-base4:1.2
	yamt-nfs-mp:1.2.0.2
	yamt-nfs-mp-base3:1.2
	nick-hppapmap-base4:1.2
	nick-hppapmap-base3:1.2
	netbsd-5-0:1.1.4.2.0.2
	netbsd-5-0-RELEASE:1.1.4.2
	netbsd-5-0-RC4:1.1.4.2
	netbsd-5-0-RC3:1.1.4.2
	nick-hppapmap-base2:1.1
	netbsd-5-0-RC2:1.1.4.2
	jym-xensuspend:1.1.0.10
	jym-xensuspend-base:1.2
	netbsd-5-0-RC1:1.1.4.2
	nick-hppapmap-base:1.2
	nick-hppapmap:1.1.0.8
	mjf-devfs2-base:1.1
	mjf-devfs2:1.1.0.6
	netbsd-5:1.1.0.4
	netbsd-4:1.1.0.2;
locks; strict;
comment	@# @;


1.5
date	2016.09.17.18.09.24;	author christos;	state Exp;
branches;
next	1.4;
commitid	m20ByhkAjdEQCFmz;

1.4
date	2013.08.12.16.34.05;	author joerg;	state Exp;
branches
	1.4.6.1
	1.4.10.1;
next	1.3;
commitid	0lF17wwiaZaNtb1x;

1.3
date	2011.12.18.04.51.12;	author tsutsui;	state Exp;
branches
	1.3.6.1
	1.3.10.1;
next	1.2;

1.2
date	2009.03.15.11.45.30;	author tsutsui;	state Exp;
branches
	1.2.2.1
	1.2.14.1
	1.2.18.1;
next	1.1;

1.1
date	2009.01.06.13.35.30;	author tsutsui;	state Exp;
branches
	1.1.2.1
	1.1.4.1
	1.1.6.1
	1.1.8.1
	1.1.10.1;
next	;

1.4.6.1
date	2016.10.05.20.55.25;	author skrll;	state Exp;
branches;
next	;
commitid	uuAdz3JYHQmaWZoz;

1.4.10.1
date	2016.11.04.14.48.59;	author pgoyette;	state Exp;
branches;
next	;
commitid	2m1JRwYmpwPkOOsz;

1.3.6.1
date	2014.08.20.00.02.48;	author tls;	state Exp;
branches;
next	1.3.6.2;
commitid	jTnpym9Qu0o4R1Nx;

1.3.6.2
date	2017.12.03.11.35.58;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.3.10.1
date	2013.08.28.23.59.12;	author rmind;	state Exp;
branches;
next	;
commitid	cbp9Ov2uYijlqh3x;

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

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

1.2.14.1
date	2012.04.17.00.06.09;	author yamt;	state Exp;
branches;
next	1.2.14.2;

1.2.14.2
date	2014.05.22.11.39.35;	author yamt;	state Exp;
branches;
next	;
commitid	VUUXuyNWnt3AKwBx;

1.2.18.1
date	2012.02.18.07.31.39;	author mrg;	state Exp;
branches;
next	;

1.1.2.1
date	2009.01.06.13.35.30;	author bouyer;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2009.01.15.23.20.03;	author bouyer;	state Exp;
branches;
next	;

1.1.4.1
date	2009.01.06.13.35.30;	author bouyer;	state dead;
branches;
next	1.1.4.2;

1.1.4.2
date	2009.01.16.22.57.33;	author bouyer;	state Exp;
branches;
next	;

1.1.6.1
date	2009.01.06.13.35.30;	author mjf;	state dead;
branches;
next	1.1.6.2;

1.1.6.2
date	2009.01.17.13.27.55;	author mjf;	state Exp;
branches;
next	;

1.1.8.1
date	2009.01.06.13.35.30;	author skrll;	state dead;
branches;
next	1.1.8.2;

1.1.8.2
date	2009.01.19.13.16.01;	author skrll;	state Exp;
branches;
next	1.1.8.3;

1.1.8.3
date	2009.04.28.07.33.52;	author skrll;	state Exp;
branches;
next	;

1.1.10.1
date	2009.05.13.17.16.31;	author jym;	state Exp;
branches;
next	;


desc
@@


1.5
log
@kill PIE/SSP
@
text
@# $NetBSD: Makefile.booters,v 1.4 2013/08/12 16:34:05 joerg Exp $

NOPIE=	# defined
NOSSP=	# defined
BINDIR=		/usr/mdec/${BTYPE:tl}

DBG=
COPTS=		-Os -fomit-frame-pointer -fno-function-cse -fstrength-reduce -fno-unwind-tables

CPPFLAGS+=	-D_STANDALONE -DHEAP_VARIABLE
CPPFLAGS+=	 -D__daddr_t=int32_t

CFLAGS+=	-ffreestanding
CFLAGS+=	-Wall
CFLAGS+=	-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
CFLAGS+=	-m68020-60

.include <bsd.klinks.mk>
@


1.4
log
@Build boot loaders without unwind tables.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.3 2011/12/18 04:51:12 tsutsui Exp $
d3 2
@


1.4.10.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.5 2016/09/17 18:09:24 christos Exp $
a2 2
NOPIE=	# defined
NOSSP=	# defined
@


1.4.6.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.5 2016/09/17 18:09:24 christos Exp $
a2 2
NOPIE=	# defined
NOSSP=	# defined
@


1.3
log
@Explicitly specify -m68020-60 to avoid possible 060SP instructions,
especially 64 bit integer mul/div ops in standalone bootloaders. From x68k.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.2 2009/03/15 11:45:30 tsutsui Exp $
d6 1
a6 1
COPTS=		-Os -fomit-frame-pointer -fno-function-cse -fstrength-reduce
@


1.3.6.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
# $NetBSD$
d6 1
a6 1
COPTS=		-Os -fomit-frame-pointer -fno-function-cse -fstrength-reduce -fno-unwind-tables
@


1.3.6.2
log
@update from HEAD
@
text
@a2 2
NOPIE=	# defined
NOSSP=	# defined
@


1.3.10.1
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD$
d6 1
a6 1
COPTS=		-Os -fomit-frame-pointer -fno-function-cse -fstrength-reduce -fno-unwind-tables
@


1.2
log
@Use <bsd.klinks.mk> to create MD include dir symlinks.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.1 2009/01/06 13:35:30 tsutsui Exp $
d14 1
@


1.2.14.1
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.2 2009/03/15 11:45:30 tsutsui Exp $
a13 1
CFLAGS+=	-m68020-60
@


1.2.14.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.booters,v 1.2.14.1 2012/04/17 00:06:09 yamt Exp $
d6 1
a6 1
COPTS=		-Os -fomit-frame-pointer -fno-function-cse -fstrength-reduce -fno-unwind-tables
@


1.2.18.1
log
@merge to -current.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.3 2011/12/18 04:51:12 tsutsui Exp $
a13 1
CFLAGS+=	-m68020-60
@


1.2.2.1
log
@file Makefile.booters was added on branch yamt-nfs-mp on 2009-05-04 08:10:48 +0000
@
text
@d1 15
@


1.2.2.2
log
@sync with head.
@
text
@a0 15
# $NetBSD$

BINDIR=		/usr/mdec/${BTYPE:tl}

DBG=
COPTS=		-Os -fomit-frame-pointer -fno-function-cse -fstrength-reduce

CPPFLAGS+=	-D_STANDALONE -DHEAP_VARIABLE
CPPFLAGS+=	 -D__daddr_t=int32_t

CFLAGS+=	-ffreestanding
CFLAGS+=	-Wall
CFLAGS+=	-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith

.include <bsd.klinks.mk>
@


1.1
log
@Fix PR port-atari/40315: Bootloader fails on Atari TT030
 Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
 because modern aggressive gcc4 may reorder functions in the same source
 and the first function in a C source won't always appear at the beginning
 in its object.

Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
  explicitly include it from each Makefile because the stand
  directory contains non standalone programs like installboot and
  Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
  all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
  - create machine and m68k symlinks in ${.OBJDIR} in all boot programs
  - set appropriate make environments to suppress errors and warnings
  - <string.h> isn't there in _STANDALONE case
  - put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
    to some files in stand/tostools
  - use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
  and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
  in all boot programs
  (XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
  support 64 bit block numbers

Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.

Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
@
text
@d1 1
a1 1
# $NetBSD$
d15 1
a15 9
.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
	@@([ -h machine ] ||						\
	    ln -s ${S}/arch/${MACHINE}/include machine)
	@@([ -h ${MACHINE_ARCH} ] ||					\
	    ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH})
.NOPATH: machine ${MACHINE_ARCH}
.endif
CLEANFILES+= machine ${MACHINE_ARCH}
@


1.1.10.1
log
@Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.2 2009/03/15 11:45:30 tsutsui Exp $
d15 9
a23 1
.include <bsd.klinks.mk>
@


1.1.8.1
log
@file Makefile.booters was added on branch nick-hppapmap on 2009-01-19 13:16:01 +0000
@
text
@d1 23
@


1.1.8.2
log
@Sync with HEAD.
@
text
@a0 23
# $NetBSD: Makefile.booters,v 1.1 2009/01/06 13:35:30 tsutsui Exp $

BINDIR=		/usr/mdec/${BTYPE:tl}

DBG=
COPTS=		-Os -fomit-frame-pointer -fno-function-cse -fstrength-reduce

CPPFLAGS+=	-D_STANDALONE -DHEAP_VARIABLE
CPPFLAGS+=	 -D__daddr_t=int32_t

CFLAGS+=	-ffreestanding
CFLAGS+=	-Wall
CFLAGS+=	-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith

.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
	@@([ -h machine ] ||						\
	    ln -s ${S}/arch/${MACHINE}/include machine)
	@@([ -h ${MACHINE_ARCH} ] ||					\
	    ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH})
.NOPATH: machine ${MACHINE_ARCH}
.endif
CLEANFILES+= machine ${MACHINE_ARCH}
@


1.1.8.3
log
@Sync with HEAD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.booters,v 1.1.8.2 2009/01/19 13:16:01 skrll Exp $
d15 9
a23 1
.include <bsd.klinks.mk>
@


1.1.6.1
log
@file Makefile.booters was added on branch mjf-devfs2 on 2009-01-17 13:27:55 +0000
@
text
@d1 23
@


1.1.6.2
log
@Sync with HEAD.
@
text
@a0 23
# $NetBSD$

BINDIR=		/usr/mdec/${BTYPE:tl}

DBG=
COPTS=		-Os -fomit-frame-pointer -fno-function-cse -fstrength-reduce

CPPFLAGS+=	-D_STANDALONE -DHEAP_VARIABLE
CPPFLAGS+=	 -D__daddr_t=int32_t

CFLAGS+=	-ffreestanding
CFLAGS+=	-Wall
CFLAGS+=	-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith

.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
	@@([ -h machine ] ||						\
	    ln -s ${S}/arch/${MACHINE}/include machine)
	@@([ -h ${MACHINE_ARCH} ] ||					\
	    ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH})
.NOPATH: machine ${MACHINE_ARCH}
.endif
CLEANFILES+= machine ${MACHINE_ARCH}
@


1.1.4.1
log
@file Makefile.booters was added on branch netbsd-5 on 2009-01-16 22:57:33 +0000
@
text
@d1 23
@


1.1.4.2
log
@Pull up following revision(s) (requested by tsutsui in ticket #274):
	sys/arch/atari/stand/xxboot/Makefile.xxboot: revision 1.5
	sys/arch/atari/stand/tostools/libtos/libtos.h: revision 1.5
	sys/arch/atari/stand/installboot/disklabel.c: revision 1.3
	sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.4, 1.5
	sys/arch/atari/stand/libsa/Makefile: revision 1.28
	sys/arch/atari/stand/bootxx/start.S: revision 1.1
	distrib/utils/sysinst/arch/atari/md.c: revision 1.23
	sys/arch/atari/stand/bootxx/Makefile.bootxx: revision 1.8
	sys/arch/atari/stand/tostools/libtos/aout.c: revision 1.11
	sys/arch/atari/stand/installboot/installboot.h: revision 1.9
	sys/arch/atari/stand/bootxxx/bootxxx.c: revision 1.4
	sys/arch/atari/stand/Makefile.inc: file removal
	distrib/sets/lists/base/md.atari: revision 1.50
	sys/arch/atari/stand/Makefile.booters: revision 1.1
	sys/arch/atari/stand/bootxx/bootxx.c: revision 1.13
	sys/arch/atari/stand/installboot/installboot.c: revision 1.22
	sys/arch/atari/stand/tostools/libtos/elf.c: revision 1.9
	sys/arch/atari/stand/tostools/libtos/sysinfo.c: revision 1.8
	sys/arch/atari/stand/bootxxx/start.S: revision 1.1
Fix PR port-atari/40315: Bootloader fails on Atari TT030
 Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
 because modern aggressive gcc4 may reorder functions in the same source
 and the first function in a C source won't always appear at the beginning
 in its object.
Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
  explicitly include it from each Makefile because the stand
  directory contains non standalone programs like installboot and
  Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
  all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
  - create machine and m68k symlinks in ${.OBJDIR} in all boot programs
  - set appropriate make environments to suppress errors and warnings
  - <string.h> isn't there in _STANDALONE case
  - put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
    to some files in stand/tostools
  - use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
  and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
  in all boot programs
  (XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
  support 64 bit block numbers
Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.
Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
Don't install built boot.atari loaders into / of DESTDIR because
there are two variants of boot.atari per machine types (std or milan)
and they should be selected and copied from /usr/mdec/{std,milan} dirs
to /targetroot during installation.
Problem on default installation with sysinst was reported by David Ross.
Remove /boot.atari, which is no longer installed during build
and removed from base.tgz.
Note we must not mark this obsolete because this tertiary bootloader
will be copied into / during installation and it shouldn't be removed
by postinstall(8).
Before installboot(8), check running machine types (milan or others)
via sysctl(3) and copy appropriate tertiary boot.atari loader
from /usr/mdec/{std,milan} into targetroot.
Full fresh installations of 5.0_BETA and 4.0_STABLE with the same change
have been tested by David Ross on port-atari.
Fixes the final portion of PR port-atari/40315, and
pullup requests to both netbsd-4 and netbsd-5 will be sent shortly.
@
text
@a0 23
# $NetBSD: Makefile.booters,v 1.1 2009/01/06 13:35:30 tsutsui Exp $

BINDIR=		/usr/mdec/${BTYPE:tl}

DBG=
COPTS=		-Os -fomit-frame-pointer -fno-function-cse -fstrength-reduce

CPPFLAGS+=	-D_STANDALONE -DHEAP_VARIABLE
CPPFLAGS+=	 -D__daddr_t=int32_t

CFLAGS+=	-ffreestanding
CFLAGS+=	-Wall
CFLAGS+=	-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith

.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
	@@([ -h machine ] ||						\
	    ln -s ${S}/arch/${MACHINE}/include machine)
	@@([ -h ${MACHINE_ARCH} ] ||					\
	    ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH})
.NOPATH: machine ${MACHINE_ARCH}
.endif
CLEANFILES+= machine ${MACHINE_ARCH}
@


1.1.2.1
log
@file Makefile.booters was added on branch netbsd-4 on 2009-01-15 23:20:03 +0000
@
text
@d1 23
@


1.1.2.2
log
@Pull up following revision(s) (requested by tsutsui in ticket #1263):
	sys/arch/atari/stand/xxboot/Makefile.xxboot: revision 1.5
	sys/arch/atari/stand/tostools/libtos/libtos.h: revision 1.5
	sys/arch/atari/stand/installboot/disklabel.c: revision 1.3
	sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.4
	sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.5
	sys/arch/atari/stand/libsa/Makefile: revision 1.28
	sys/arch/atari/stand/bootxx/start.S: revision 1.1
	distrib/utils/sysinst/arch/atari/md.c: revision 1.23
	sys/arch/atari/stand/bootxx/Makefile.bootxx: revision 1.8
	sys/arch/atari/stand/tostools/libtos/aout.c: revision 1.11
	sys/arch/atari/stand/installboot/installboot.h: revision 1.9
	sys/arch/atari/stand/bootxxx/bootxxx.c: revision 1.4
	distrib/sets/lists/base/md.atari: revision 1.50
	sys/arch/atari/stand/Makefile.booters: revision 1.1
	sys/arch/atari/stand/bootxx/bootxx.c: revision 1.13
	sys/arch/atari/stand/installboot/installboot.c: revision 1.22
	sys/arch/atari/stand/tostools/libtos/elf.c: revision 1.9
	sys/arch/atari/stand/tostools/libtos/sysinfo.c: revision 1.8
	sys/arch/atari/stand/bootxxx/start.S: revision 1.1
Fix PR port-atari/40315: Bootloader fails on Atari TT030
 Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
 because modern aggressive gcc4 may reorder functions in the same source
 and the first function in a C source won't always appear at the beginning
 in its object.
Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
  explicitly include it from each Makefile because the stand
  directory contains non standalone programs like installboot and
  Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
  all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
  - create machine and m68k symlinks in ${.OBJDIR} in all boot programs
  - set appropriate make environments to suppress errors and warnings
  - <string.h> isn't there in _STANDALONE case
  - put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
    to some files in stand/tostools
  - use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
  and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
  in all boot programs
  (XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
  support 64 bit block numbers
Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.
Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
Don't install built boot.atari loaders into / of DESTDIR because
there are two variants of boot.atari per machine types (std or milan)
and they should be selected and copied from /usr/mdec/{std,milan} dirs
to /targetroot during installation.
Problem on default installation with sysinst was reported by David Ross.
Remove /boot.atari, which is no longer installed during build
and removed from base.tgz.
Note we must not mark this obsolete because this tertiary bootloader
will be copied into / during installation and it shouldn't be removed
by postinstall(8).
Before installboot(8), check running machine types (milan or others)
via sysctl(3) and copy appropriate tertiary boot.atari loader
from /usr/mdec/{std,milan} into targetroot.
Full fresh installations of 5.0_BETA and 4.0_STABLE with the same change
have been tested by David Ross on port-atari.
Fixes the final portion of PR port-atari/40315, and
pullup requests to both netbsd-4 and netbsd-5 will be sent shortly.
@
text
@a0 23
# $NetBSD: Makefile.booters,v 1.1 2009/01/06 13:35:30 tsutsui Exp $

BINDIR=		/usr/mdec/${BTYPE:tl}

DBG=
COPTS=		-Os -fomit-frame-pointer -fno-function-cse -fstrength-reduce

CPPFLAGS+=	-D_STANDALONE -DHEAP_VARIABLE
CPPFLAGS+=	 -D__daddr_t=int32_t

CFLAGS+=	-ffreestanding
CFLAGS+=	-Wall
CFLAGS+=	-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith

.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
	@@([ -h machine ] ||						\
	    ln -s ${S}/arch/${MACHINE}/include machine)
	@@([ -h ${MACHINE_ARCH} ] ||					\
	    ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH})
.NOPATH: machine ${MACHINE_ARCH}
.endif
CLEANFILES+= machine ${MACHINE_ARCH}
@


