head	1.7;
access;
symbols
	netbsd-11-0-RC4:1.7
	netbsd-11-0-RC3:1.7
	netbsd-11-0-RC2:1.7
	netbsd-11-0-RC1:1.7
	perseant-exfatfs-base-20250801:1.7
	netbsd-11:1.7.0.2
	netbsd-11-base:1.7
	netbsd-10-1-RELEASE:1.6
	perseant-exfatfs-base-20240630:1.6
	perseant-exfatfs:1.6.0.10
	perseant-exfatfs-base:1.6
	netbsd-8-3-RELEASE:1.3
	netbsd-9-4-RELEASE:1.5
	netbsd-10-0-RELEASE:1.6
	netbsd-10-0-RC6:1.6
	netbsd-10-0-RC5:1.6
	netbsd-10-0-RC4:1.6
	netbsd-10-0-RC3:1.6
	netbsd-10-0-RC2:1.6
	netbsd-10-0-RC1:1.6
	netbsd-10:1.6.0.8
	netbsd-10-base:1.6
	netbsd-9-3-RELEASE:1.5
	cjep_sun2x-base1:1.6
	cjep_sun2x:1.6.0.6
	cjep_sun2x-base:1.6
	cjep_staticlib_x-base1:1.6
	netbsd-9-2-RELEASE:1.5
	cjep_staticlib_x:1.6.0.4
	cjep_staticlib_x-base:1.6
	netbsd-9-1-RELEASE:1.5
	phil-wifi-20200421:1.6
	phil-wifi-20200411:1.6
	is-mlppp:1.6.0.2
	is-mlppp-base:1.6
	phil-wifi-20200406:1.6
	netbsd-8-2-RELEASE:1.3
	netbsd-9-0-RELEASE:1.5
	netbsd-9-0-RC2:1.5
	netbsd-9-0-RC1:1.5
	phil-wifi-20191119:1.5
	netbsd-9:1.5.0.2
	netbsd-9-base:1.5
	phil-wifi-20190609:1.5
	netbsd-8-1-RELEASE:1.3
	netbsd-8-1-RC1:1.3
	pgoyette-compat-merge-20190127:1.3
	pgoyette-compat-20190127:1.3
	pgoyette-compat-20190118:1.3
	pgoyette-compat-1226:1.3
	pgoyette-compat-1126:1.3
	pgoyette-compat-1020:1.3
	pgoyette-compat-0930:1.3
	pgoyette-compat-0906:1.3
	netbsd-7-2-RELEASE:1.2
	pgoyette-compat-0728:1.3
	netbsd-8-0-RELEASE:1.3
	phil-wifi:1.3.0.12
	phil-wifi-base:1.3
	pgoyette-compat-0625:1.3
	netbsd-8-0-RC2:1.3
	pgoyette-compat-0521:1.3
	pgoyette-compat-0502:1.3
	pgoyette-compat-0422:1.3
	netbsd-8-0-RC1:1.3
	pgoyette-compat-0415:1.3
	pgoyette-compat-0407:1.3
	pgoyette-compat-0330:1.3
	pgoyette-compat-0322:1.3
	pgoyette-compat-0315:1.3
	netbsd-7-1-2-RELEASE:1.2
	pgoyette-compat:1.3.0.10
	pgoyette-compat-base:1.3
	netbsd-7-1-1-RELEASE:1.2
	matt-nb8-mediatek:1.3.0.8
	matt-nb8-mediatek-base:1.3
	perseant-stdc-iso10646:1.3.0.6
	perseant-stdc-iso10646-base:1.3
	netbsd-8:1.3.0.4
	netbsd-8-base:1.3
	prg-localcount2-base3:1.3
	prg-localcount2-base2:1.3
	prg-localcount2-base1:1.3
	prg-localcount2:1.3.0.2
	prg-localcount2-base:1.3
	pgoyette-localcount-20170426:1.3
	bouyer-socketcan-base1:1.3
	pgoyette-localcount-20170320:1.3
	netbsd-7-1:1.2.0.22
	netbsd-7-1-RELEASE:1.2
	netbsd-7-1-RC2:1.2
	netbsd-7-nhusb-base-20170116:1.2
	bouyer-socketcan:1.2.0.20
	bouyer-socketcan-base:1.2
	pgoyette-localcount-20170107:1.2
	netbsd-7-1-RC1:1.2
	pgoyette-localcount-20161104:1.2
	netbsd-7-0-2-RELEASE:1.2
	localcount-20160914:1.2
	netbsd-7-nhusb:1.2.0.18
	netbsd-7-nhusb-base:1.2
	pgoyette-localcount-20160806:1.2
	pgoyette-localcount-20160726:1.2
	pgoyette-localcount:1.2.0.16
	pgoyette-localcount-base:1.2
	netbsd-7-0-1-RELEASE:1.2
	netbsd-7-0:1.2.0.14
	netbsd-7-0-RELEASE:1.2
	netbsd-7-0-RC3:1.2
	netbsd-7-0-RC2:1.2
	netbsd-7-0-RC1:1.2
	netbsd-6-0-6-RELEASE:1.1.8.1
	netbsd-6-1-5-RELEASE:1.1.8.1
	netbsd-7:1.2.0.12
	netbsd-7-base:1.2
	yamt-pagecache-base9:1.2
	yamt-pagecache-tag8:1.1.6.1
	netbsd-6-1-4-RELEASE:1.1.8.1
	netbsd-6-0-5-RELEASE:1.1.8.1
	tls-earlyentropy:1.2.0.10
	tls-earlyentropy-base:1.2
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2
	riastradh-drm2-base3:1.2
	netbsd-6-1-3-RELEASE:1.1.8.1
	netbsd-6-0-4-RELEASE:1.1.8.1
	netbsd-6-1-2-RELEASE:1.1.8.1
	netbsd-6-0-3-RELEASE:1.1.8.1
	netbsd-6-1-1-RELEASE:1.1.8.1
	riastradh-drm2-base2:1.2
	riastradh-drm2-base1:1.2
	riastradh-drm2:1.2.0.4
	riastradh-drm2-base:1.2
	netbsd-6-1:1.1.8.1.0.6
	netbsd-6-0-2-RELEASE:1.1.8.1
	netbsd-6-1-RELEASE:1.1.8.1
	khorben-n900:1.2.0.8
	netbsd-6-1-RC4:1.1.8.1
	netbsd-6-1-RC3:1.1.8.1
	agc-symver:1.2.0.6
	agc-symver-base:1.2
	netbsd-6-1-RC2:1.1.8.1
	netbsd-6-1-RC1:1.1.8.1
	yamt-pagecache-base8:1.2
	netbsd-6-0-1-RELEASE:1.1.8.1
	yamt-pagecache-base7:1.2
	matt-nb6-plus-nbase:1.1.8.1
	yamt-pagecache-base6:1.2
	netbsd-6-0:1.1.8.1.0.4
	netbsd-6-0-RELEASE:1.1.8.1
	netbsd-6-0-RC2:1.1.8.1
	tls-maxphys:1.2.0.2
	tls-maxphys-base:1.2
	matt-nb6-plus:1.1.8.1.0.2
	matt-nb6-plus-base:1.1.8.1
	netbsd-6-0-RC1:1.1.8.1
	yamt-pagecache-base5:1.1
	yamt-pagecache-base4:1.1
	netbsd-6:1.1.0.8
	netbsd-6-base:1.1
	yamt-pagecache-base3:1.1
	yamt-pagecache-base2:1.1
	yamt-pagecache:1.1.0.6
	yamt-pagecache-base:1.1
	cherry-xenmp:1.1.0.4
	cherry-xenmp-base:1.1
	bouyer-quota2:1.1.0.2
	bouyer-quota2-base:1.1
	bouyer-quota2-nbase:1.1;
locks; strict;
comment	@# @;


1.7
date	2025.03.11.15.06.13;	author martin;	state Exp;
branches;
next	1.6;
commitid	S3Km9oPb4bqT3FMF;

1.6
date	2019.12.29.18.26.17;	author christos;	state Exp;
branches
	1.6.10.1;
next	1.5;
commitid	QaphWvAMkPXycDQB;

1.5
date	2019.03.31.16.09.14;	author christos;	state Exp;
branches;
next	1.4;
commitid	LB1D28mkpdtcexhB;

1.4
date	2019.03.29.16.03.20;	author christos;	state Exp;
branches;
next	1.3;
commitid	KZMvJa4V4lU8ghhB;

1.3
date	2017.01.24.18.04.01;	author christos;	state Exp;
branches
	1.3.12.1;
next	1.2;
commitid	kdLAgdCEWzeUrfDz;

1.2
date	2012.08.14.07.24.40;	author martin;	state Exp;
branches
	1.2.16.1
	1.2.20.1;
next	1.1;

1.1
date	2011.01.26.01.18.44;	author pooka;	state Exp;
branches
	1.1.2.1
	1.1.6.1
	1.1.8.1;
next	;

1.6.10.1
date	2025.08.02.05.20.20;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;

1.3.12.1
date	2019.06.10.21.42.20;	author christos;	state Exp;
branches;
next	1.3.12.2;
commitid	jtc8rnCzWiEEHGqB;

1.3.12.2
date	2020.04.08.14.03.44;	author martin;	state Exp;
branches;
next	;
commitid	Qli2aW9E74UFuA3C;

1.2.16.1
date	2017.03.20.06.52.04;	author pgoyette;	state Exp;
branches;
next	;
commitid	jjw7cAwgyKq7RfKz;

1.2.20.1
date	2017.04.21.16.51.09;	author bouyer;	state Exp;
branches;
next	;
commitid	dUG7nkTKALCadqOz;

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

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

1.1.6.1
date	2012.10.30.18.48.30;	author yamt;	state Exp;
branches;
next	;

1.1.8.1
date	2012.08.15.01.26.19;	author riz;	state Exp;
branches;
next	;


desc
@@


1.7
log
@Bump ramdisk size slightly to fix the build
@
text
@#	$NetBSD: Makefile,v 1.6 2019/12/29 18:26:17 christos Exp $

.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"

IMAGE=		ramdisk.fs
IMAGETAR=	diskimage.tgz
IMAGESIZE=	3900k
MAKEFS_FLAGS+=	-f 15

WARNS=		1
DBG=		-Os -mmemcpy

CRUNCHBIN=	ramdiskbin
LISTS=		${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst
MTREECONF=	${DISTRIBDIR}/common/mtree.common
IMAGEENDIAN=	be
MAKEDEVTARGETS=	minimal ipty ace0 ace1
IMAGEDEPENDS=	${CRUNCHBIN} \
		dot.hdprofile dot.profile \
		${DESTDIR}/usr/mdec/boot.emips ${DESTDIR}/usr/mdec/bootxx_ffs \
		${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \
		${NETBSDSRCDIR}/etc/netconfig \
		${DISTRIBDIR}/common/protocols \
		${DISTRIBDIR}/common/services

IMAGETAR_RELEASEDIR=	installation/netboot

# Use stubs to eliminate some large stuff from libc
HACKSRC=	${DISTRIBDIR}/utils/libhack
.include	"${HACKSRC}/Makefile.inc"
${CRUNCHBIN}:	libhack.o

.include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image"

.include <bsd.prog.mk>
@


1.6
log
@1. Remove all the special handling of variables (-d -p -P -s -S) that
   were dealing with DBG (-d) LDSTATIC/NOPIE (-p), and the rest with
   disabling/enabling sanitizers.
2. Use emalloc/estrdup for all the allocators instead of only some cases.
3. Add -V varspec which passes variables on the command line (as DBG
   and LDSTATIC used to be passed before) instead of appending them
   to the on-the-fly Makefile using -v varspec.
4. Change the distrib and rescue Makefiles to use -V instead of the removed
   flags.

The motivation of this is to make variable handling consistent, less magical,
and remove the need for changing crunchgen each time we want to add disabling
an option by default.

(as proposed in tech-toolchain)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2019/03/31 16:09:14 christos Exp $
d8 1
a8 1
IMAGESIZE=	3800k
@


1.6.10.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2025/03/11 15:06:13 martin Exp $
d8 1
a8 1
IMAGESIZE=	3900k
@


1.5
log
@bump
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2019/03/29 16:03:20 christos Exp $
a14 1
CRUNCHGEN_FLAGS= -d "${DBG}"
@


1.4
log
@bumpity bump bump
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2017/01/24 18:04:01 christos Exp $
d8 1
a8 1
IMAGESIZE=	3600k
@


1.3
log
@+= for MAKEFS_FLAGS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2012/08/14 07:24:40 martin Exp $
d8 1
a8 1
IMAGESIZE=	3500k
@


1.3.12.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2019/03/31 16:09:14 christos Exp $
d8 1
a8 1
IMAGESIZE=	3800k
@


1.3.12.2
log
@Merge changes from current as of 20200406
@
text
@d1 1
a1 1
#	$NetBSD$
d15 1
@


1.2
log
@Change all install media to use ipty instead of pty0
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2011/01/26 01:18:44 pooka Exp $
d9 1
a9 1
MAKEFS_FLAGS=	-f 15
@


1.2.20.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2017/01/24 18:04:01 christos Exp $
d9 1
a9 1
MAKEFS_FLAGS+=	-f 15
@


1.2.16.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2017/01/24 18:04:01 christos Exp $
d9 1
a9 1
MAKEFS_FLAGS+=	-f 15
@


1.1
log
@Add support for the Extensible MIPS ("eMIPS") platform.  The
NetBSD/emips port runs on Xilinx and Beecube FPGA systems and the
Giano system simulator.

eMIPS is a platform developed at Microsoft Research for researching
reconfigurable computing.  eMIPS allows dynamic loading and scheduling
of application-specific circuits for the purpose of accelerating
computations based on the current workload.

NetBSD eMIPS support for NetBSD 4.x was written at Microsoft Research
by Alessandro Forin and Neil Pittman.  Microsoft Corporation has
donated full copyright to The NetBSD Foundation.

Platform support for eMIPS is the first part of Microsoft's
contribution.  The second part includes the hardware accelerator
framework and will be proposed on tech-kern soon.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.36 2006/07/29 19:10:56 ad Exp $
d19 1
a19 1
MAKEDEVTARGETS=	minimal pty0 ace0 ace1
@


1.1.6.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2011/01/26 01:18:44 pooka Exp $
d19 1
a19 1
MAKEDEVTARGETS=	minimal ipty ace0 ace1
@


1.1.8.1
log
@Pull up following revision(s) (requested by martin in ticket #500):
	distrib/evbppc/ramdisk/Makefile: revision 1.16
	distrib/emips/ramdisk/Makefile: revision 1.2
	distrib/sandpoint/ramdisk/Makefile: revision 1.10
	distrib/evbmips/instkernel/ramdisk/Makefile: revision 1.12
	distrib/i386/ramdisks/ramdisk-rescuetiny/Makefile: revision 1.2
	distrib/ibmnws/netboot/ramdisk/Makefile: revision 1.11
	distrib/pmax/ramdisk/Makefile: revision 1.46
	distrib/i386/ramdisks/ramdisk-tiny/Makefile: revision 1.2
just make the installation ptys (ipty); change it to opty if more needed.
Change all install media to use ipty instead of pty0
@
text
@d1 1
a1 1
#	$NetBSD$
d19 1
a19 1
MAKEDEVTARGETS=	minimal ipty ace0 ace1
@


1.1.2.1
log
@file Makefile was added on branch bouyer-quota2 on 2011-03-06 15:07:37 +0000
@
text
@d1 39
@


1.1.2.2
log
@Sync with HEAD
@
text
@a0 39
#	$NetBSD: Makefile,v 1.1 2011/01/26 01:18:44 pooka Exp $

.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"

IMAGE=		ramdisk.fs
IMAGETAR=	diskimage.tgz
IMAGESIZE=	3500k
MAKEFS_FLAGS=	-f 15

WARNS=		1
DBG=		-Os -mmemcpy

CRUNCHBIN=	ramdiskbin
CRUNCHGEN_FLAGS= -d "${DBG}"
LISTS=		${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst
MTREECONF=	${DISTRIBDIR}/common/mtree.common
IMAGEENDIAN=	be
MAKEDEVTARGETS=	minimal pty0 ace0 ace1
IMAGEDEPENDS=	${CRUNCHBIN} \
		dot.hdprofile dot.profile \
		${DESTDIR}/usr/mdec/boot.emips ${DESTDIR}/usr/mdec/bootxx_ffs \
		${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \
		${NETBSDSRCDIR}/etc/netconfig \
		${DISTRIBDIR}/common/protocols \
		${DISTRIBDIR}/common/services

IMAGETAR_RELEASEDIR=	installation/netboot

# Use stubs to eliminate some large stuff from libc
HACKSRC=	${DISTRIBDIR}/utils/libhack
.include	"${HACKSRC}/Makefile.inc"
${CRUNCHBIN}:	libhack.o

.include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image"

.include <bsd.prog.mk>
@


