head	1.12;
access;
symbols
	netbsd-11-0-RC4:1.12
	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.12
	netbsd-11-base:1.12
	netbsd-10-1-RELEASE:1.12
	perseant-exfatfs-base-20240630:1.12
	perseant-exfatfs:1.12.0.10
	perseant-exfatfs-base:1.12
	netbsd-8-3-RELEASE:1.11
	netbsd-9-4-RELEASE:1.11
	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
	netbsd-10-0-RC1:1.12
	netbsd-10:1.12.0.8
	netbsd-10-base:1.12
	netbsd-9-3-RELEASE:1.11
	cjep_sun2x-base1:1.12
	cjep_sun2x:1.12.0.6
	cjep_sun2x-base:1.12
	cjep_staticlib_x-base1:1.12
	netbsd-9-2-RELEASE:1.11
	cjep_staticlib_x:1.12.0.4
	cjep_staticlib_x-base:1.12
	netbsd-9-1-RELEASE:1.11
	phil-wifi-20200421:1.12
	phil-wifi-20200411:1.12
	is-mlppp:1.12.0.2
	is-mlppp-base:1.12
	phil-wifi-20200406:1.12
	netbsd-8-2-RELEASE:1.11
	netbsd-9-0-RELEASE:1.11
	netbsd-9-0-RC2:1.11
	netbsd-9-0-RC1:1.11
	phil-wifi-20191119:1.11
	netbsd-9:1.11.0.14
	netbsd-9-base:1.11
	phil-wifi-20190609:1.11
	netbsd-8-1-RELEASE:1.11
	netbsd-8-1-RC1:1.11
	pgoyette-compat-merge-20190127:1.11
	pgoyette-compat-20190127:1.11
	pgoyette-compat-20190118:1.11
	pgoyette-compat-1226:1.11
	pgoyette-compat-1126:1.11
	pgoyette-compat-1020:1.11
	pgoyette-compat-0930:1.11
	pgoyette-compat-0906:1.11
	netbsd-7-2-RELEASE:1.10
	pgoyette-compat-0728:1.11
	netbsd-8-0-RELEASE:1.11
	phil-wifi:1.11.0.12
	phil-wifi-base:1.11
	pgoyette-compat-0625:1.11
	netbsd-8-0-RC2:1.11
	pgoyette-compat-0521:1.11
	pgoyette-compat-0502:1.11
	pgoyette-compat-0422:1.11
	netbsd-8-0-RC1:1.11
	pgoyette-compat-0415:1.11
	pgoyette-compat-0407:1.11
	pgoyette-compat-0330:1.11
	pgoyette-compat-0322:1.11
	pgoyette-compat-0315:1.11
	netbsd-7-1-2-RELEASE:1.10
	pgoyette-compat:1.11.0.10
	pgoyette-compat-base:1.11
	netbsd-7-1-1-RELEASE:1.10
	matt-nb8-mediatek:1.11.0.8
	matt-nb8-mediatek-base:1.11
	perseant-stdc-iso10646:1.11.0.6
	perseant-stdc-iso10646-base:1.11
	netbsd-8:1.11.0.4
	netbsd-8-base:1.11
	prg-localcount2-base3:1.11
	prg-localcount2-base2:1.11
	prg-localcount2-base1:1.11
	prg-localcount2:1.11.0.2
	prg-localcount2-base:1.11
	pgoyette-localcount-20170426:1.11
	bouyer-socketcan-base1:1.11
	pgoyette-localcount-20170320:1.11
	netbsd-7-1:1.10.0.36
	netbsd-7-1-RELEASE:1.10
	netbsd-7-1-RC2:1.10
	netbsd-7-nhusb-base-20170116:1.10
	bouyer-socketcan:1.10.0.34
	bouyer-socketcan-base:1.10
	pgoyette-localcount-20170107:1.10
	netbsd-7-1-RC1:1.10
	pgoyette-localcount-20161104:1.10
	netbsd-7-0-2-RELEASE:1.10
	localcount-20160914:1.10
	netbsd-7-nhusb:1.10.0.32
	netbsd-7-nhusb-base:1.10
	pgoyette-localcount-20160806:1.10
	pgoyette-localcount-20160726:1.10
	pgoyette-localcount:1.10.0.30
	pgoyette-localcount-base:1.10
	netbsd-7-0-1-RELEASE:1.10
	netbsd-7-0:1.10.0.28
	netbsd-7-0-RELEASE:1.10
	netbsd-7-0-RC3:1.10
	netbsd-7-0-RC2:1.10
	netbsd-7-0-RC1:1.10
	netbsd-5-2-3-RELEASE:1.1
	netbsd-5-1-5-RELEASE:1.1
	netbsd-6-0-6-RELEASE:1.10
	netbsd-6-1-5-RELEASE:1.10
	netbsd-7:1.10.0.26
	netbsd-7-base:1.10
	yamt-pagecache-base9:1.10
	yamt-pagecache-tag8:1.10
	netbsd-6-1-4-RELEASE:1.10
	netbsd-6-0-5-RELEASE:1.10
	tls-earlyentropy:1.10.0.24
	tls-earlyentropy-base:1.10
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.10
	riastradh-drm2-base3:1.10
	netbsd-6-1-3-RELEASE:1.10
	netbsd-6-0-4-RELEASE:1.10
	netbsd-5-2-2-RELEASE:1.1
	netbsd-5-1-4-RELEASE:1.1
	netbsd-6-1-2-RELEASE:1.10
	netbsd-6-0-3-RELEASE:1.10
	netbsd-5-2-1-RELEASE:1.1
	netbsd-5-1-3-RELEASE:1.1
	netbsd-6-1-1-RELEASE:1.10
	riastradh-drm2-base2:1.10
	riastradh-drm2-base1:1.10
	riastradh-drm2:1.10.0.16
	riastradh-drm2-base:1.10
	netbsd-6-1:1.10.0.22
	netbsd-6-0-2-RELEASE:1.10
	netbsd-6-1-RELEASE:1.10
	khorben-n900:1.10.0.20
	netbsd-6-1-RC4:1.10
	netbsd-6-1-RC3:1.10
	agc-symver:1.10.0.18
	agc-symver-base:1.10
	netbsd-6-1-RC2:1.10
	netbsd-6-1-RC1:1.10
	yamt-pagecache-base8:1.10
	netbsd-5-2:1.1.0.18
	netbsd-6-0-1-RELEASE:1.10
	yamt-pagecache-base7:1.10
	netbsd-5-2-RELEASE:1.1
	netbsd-5-2-RC1:1.1
	matt-nb6-plus-nbase:1.10
	yamt-pagecache-base6:1.10
	netbsd-6-0:1.10.0.14
	netbsd-6-0-RELEASE:1.10
	netbsd-6-0-RC2:1.10
	tls-maxphys:1.10.0.12
	tls-maxphys-base:1.10
	matt-nb6-plus:1.10.0.10
	matt-nb6-plus-base:1.10
	netbsd-6-0-RC1:1.10
	yamt-pagecache-base5:1.10
	yamt-pagecache-base4:1.10
	netbsd-6:1.10.0.8
	netbsd-6-base:1.10
	netbsd-5-1-2-RELEASE:1.1
	netbsd-5-1-1-RELEASE:1.1
	yamt-pagecache-base3:1.10
	yamt-pagecache-base2:1.10
	yamt-pagecache:1.10.0.6
	yamt-pagecache-base:1.10
	cherry-xenmp:1.10.0.4
	cherry-xenmp-base:1.10
	bouyer-quota2-nbase:1.10
	bouyer-quota2:1.10.0.2
	bouyer-quota2-base:1.10
	matt-mips64-premerge-20101231:1.10
	matt-nb5-mips64-premerge-20101231:1.1
	matt-nb5-pq3:1.1.0.16
	matt-nb5-pq3-base:1.1
	netbsd-5-1:1.1.0.14
	netbsd-5-1-RELEASE:1.1
	netbsd-5-1-RC4:1.1
	matt-nb5-mips64-k15:1.1
	netbsd-5-1-RC3:1.1
	netbsd-5-1-RC2:1.1
	netbsd-5-1-RC1:1.1
	netbsd-5-0-2-RELEASE:1.1
	matt-nb5-mips64-premerge-20091211:1.1
	matt-premerge-20091211:1.8
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.1
	matt-nb4-mips64-k7-u2a-k9b:1.1
	matt-nb5-mips64-u1-k1-k5:1.1
	matt-nb5-mips64:1.1.0.12
	netbsd-5-0-1-RELEASE:1.1
	jym-xensuspend-nbase:1.4
	netbsd-5-0:1.1.0.10
	netbsd-5-0-RELEASE:1.1
	netbsd-5-0-RC4:1.1
	netbsd-5-0-RC3:1.1
	netbsd-5-0-RC2:1.1
	jym-xensuspend:1.2.0.2
	jym-xensuspend-base:1.4
	netbsd-5-0-RC1:1.1
	netbsd-5:1.1.0.8
	netbsd-5-base:1.1
	matt-mips64-base2:1.1
	wrstuden-revivesa-base-3:1.1
	wrstuden-revivesa-base-2:1.1
	wrstuden-revivesa-base-1:1.1
	yamt-pf42-base4:1.1
	yamt-pf42-base3:1.1
	mjf-devfs2-base:1.1
	mjf-devfs2:1.1.0.6
	hpcarm-cleanup-nbase:1.1
	yamt-pf42-baseX:1.1
	yamt-pf42-base2:1.1
	wrstuden-revivesa:1.1.0.4
	wrstuden-revivesa-base:1.1
	yamt-pf42:1.1.0.2
	yamt-pf42-base:1.1;
locks; strict;
comment	@# @;


1.12
date	2019.12.29.18.26.17;	author christos;	state Exp;
branches;
next	1.11;
commitid	QaphWvAMkPXycDQB;

1.11
date	2017.01.24.18.04.03;	author christos;	state Exp;
branches
	1.11.12.1;
next	1.10;
commitid	kdLAgdCEWzeUrfDz;

1.10
date	2010.02.11.09.06.49;	author roy;	state Exp;
branches
	1.10.30.1
	1.10.34.1;
next	1.9;

1.9
date	2010.02.05.10.01.19;	author roy;	state Exp;
branches;
next	1.8;

1.8
date	2009.09.20.23.19.53;	author abs;	state Exp;
branches;
next	1.7;

1.7
date	2009.09.20.22.46.12;	author abs;	state Exp;
branches;
next	1.6;

1.6
date	2009.09.20.19.49.08;	author abs;	state Exp;
branches;
next	1.5;

1.5
date	2009.09.20.19.29.25;	author abs;	state Exp;
branches;
next	1.4;

1.4
date	2009.04.25.18.39.47;	author tsutsui;	state Exp;
branches;
next	1.3;

1.3
date	2009.04.07.11.49.17;	author joerg;	state Exp;
branches;
next	1.2;

1.2
date	2009.01.25.22.08.38;	author abs;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	2008.04.14.17.24.56;	author skrll;	state Exp;
branches
	1.1.6.1;
next	;

1.11.12.1
date	2020.04.08.14.03.46;	author martin;	state Exp;
branches;
next	;
commitid	Qli2aW9E74UFuA3C;

1.10.30.1
date	2017.03.20.06.52.06;	author pgoyette;	state Exp;
branches;
next	;
commitid	jjw7cAwgyKq7RfKz;

1.10.34.1
date	2017.04.21.16.51.11;	author bouyer;	state Exp;
branches;
next	;
commitid	dUG7nkTKALCadqOz;

1.2.2.1
date	2009.05.13.19.17.43;	author jym;	state Exp;
branches;
next	;

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

1.1.6.2
date	2008.06.02.13.21.14;	author mjf;	state Exp;
branches;
next	1.1.6.3;

1.1.6.3
date	2008.10.05.20.10.21;	author mjf;	state dead;
branches;
next	;


desc
@@


1.12
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
@#	$NetBSD: Makefile,v 1.11 2017/01/24 18:04:03 christos Exp $

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

IMAGE=		ramdisk.fs
IMAGETAR=	diskimage.tgz
IMAGESIZE=	3m
MAKEFS_FLAGS+=	-f 15 -o density=4k

WARNS=		1
DBG=		-Os

CRUNCHBIN=	ramdiskbin
LISTS=		${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst
MTREECONF=	${DISTRIBDIR}/common/mtree.common
IMAGEENDIAN=	le
IMAGEDEPENDS=	${CRUNCHBIN} \
		dot.profile \
		${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.dhcpcd"
.include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image"

.include <bsd.prog.mk>
@


1.11
log
@+= for MAKEFS_FLAGS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2010/02/11 09:06:49 roy Exp $
a14 1
CRUNCHGEN_FLAGS= -d "${DBG}"
@


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


1.10
log
@Remove terminfo.db as it's now embedded in libterminfo.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2010/02/05 10:01:19 roy Exp $
d9 1
a9 1
MAKEFS_FLAGS=	-f 15 -o density=4k
@


1.10.34.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2017/01/24 18:04:03 christos Exp $
d9 1
a9 1
MAKEFS_FLAGS+=	-f 15 -o density=4k
@


1.10.30.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2017/01/24 18:04:03 christos Exp $
d9 1
a9 1
MAKEFS_FLAGS+=	-f 15 -o density=4k
@


1.9
log
@Use the rescue terminfo.db in our images instead of termcap.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2009/09/20 23:19:53 abs Exp $
d24 1
a24 2
		${DISTRIBDIR}/common/services \
		${DESTDIR}/rescue/terminfo.db
@


1.8
log
@34 different termcap subsets, plus a couple of ports still using
the full termcap distfile. In an attempt to reduce the madness
switch everyone (except the i386 cd install which does its own
thing) to the same (under 8K) termcap subset:

ansi			ansi/pc-term compatible with color
dumb|unknown		80-column dumb tty
hp300h			HP Catseye console
iris-ansi-ap		IRIS ANSI in application-keypad mode
iris-ansi|iris-ansi-net	IRIS emulating 40 line ANSI terminal (almost VT100)
sun|sun1|sun2|sun-il	Sun Microsystems Inc. console with working insert-line
vt100|vt100-am		DEC VT100 (w/advanced video)
vt220-8			DEC VT220 8 bit terminal
vt220|vt200|vt300	DEC VT220 in vt100 emulation mode
wsvt25			NetBSD wscons in 25 line DEC VT220 mode
wsvt25m			NetBSD wscons in 25 line DEC VT220 mode with Meta
x68k|x68k-ite		NetBSD/x68k ITE
xterm|vs100		xterm terminal emulator (X Window System)

Trying to provide similar functionality across all ports? It'll never
catch on...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2009/09/20 22:46:12 abs Exp $
d25 1
a25 1
		${DISTRIBDIR}/common/termcap
@


1.7
log
@Nothing needs disktab anymore, so we'd rather have an inode and
slightly over 1K of space on install media...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2009/09/20 19:49:08 abs Exp $
d25 1
a25 1
		${NETBSDSRCDIR}/distrib/common/termcap.mini
@


1.6
log
@${NETBSDSRCDIR}/distrib/common/protocols => ${DISTRIBDIR}/common/protocols
${NETBSDSRCDIR}/distrib/common/services => ${DISTRIBDIR}/common/services
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2009/09/20 19:29:25 abs Exp $
d20 1
a20 1
		disktab.preinstall dot.profile \
@


1.5
log
@Alas poor dot.hdprofile. I knew him... not at all Horatio. (Remove)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2009/04/25 18:39:47 tsutsui Exp $
d23 2
a24 2
		${NETBSDSRCDIR}/distrib/common/protocols \
		${NETBSDSRCDIR}/distrib/common/services \
@


1.4
log
@Use src/distrib/common/termcap.mini.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2009/04/07 11:49:17 joerg Exp $
d20 1
a20 1
		disktab.preinstall dot.hdprofile dot.profile \
@


1.3
log
@Change ramdisks from dhclient to dhcpcd and add corresponding glue to
sysinst. For amd64, the crunchgen binary shrinks by 150KB uncompresssed,
60KB compressed.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2009/01/25 22:08:38 abs Exp $
d24 2
a25 1
		${NETBSDSRCDIR}/distrib/common/services
@


1.2
log
@Use the cutdown distrib/common/services and distrib/common/protocols
rather than the full fat etc versions
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2008/04/14 17:24:56 skrll Exp $
d34 1
@


1.2.2.1
log
@Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2009/04/25 18:39:47 tsutsui Exp $
d24 1
a24 2
		${NETBSDSRCDIR}/distrib/common/services \
		${NETBSDSRCDIR}/distrib/common/termcap.mini
a33 1
.include "${DISTRIBDIR}/common/Makefile.dhcpcd"
@


1.1
log
@Commit the landisk install stuff I hacked together from hubert's efforts.

Requested by uwe.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2006/01/08 16:05:56 tsutsui Exp $
d22 3
a24 2
		${NETBSDSRCDIR}/etc/netconfig ${NETBSDSRCDIR}/etc/protocols \
		${NETBSDSRCDIR}/etc/services
@


1.1.6.1
log
@file Makefile was added on branch mjf-devfs2 on 2008-06-02 13:21:14 +0000
@
text
@d1 36
@


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

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

IMAGE=		ramdisk.fs
IMAGETAR=	diskimage.tgz
IMAGESIZE=	3m
MAKEFS_FLAGS=	-f 15 -o density=4k

WARNS=		1
DBG=		-Os

CRUNCHBIN=	ramdiskbin
CRUNCHGEN_FLAGS= -d "${DBG}"
LISTS=		${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst
MTREECONF=	${DISTRIBDIR}/common/mtree.common
IMAGEENDIAN=	le
IMAGEDEPENDS=	${CRUNCHBIN} \
		disktab.preinstall dot.hdprofile dot.profile \
		${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \
		${NETBSDSRCDIR}/etc/netconfig ${NETBSDSRCDIR}/etc/protocols \
		${NETBSDSRCDIR}/etc/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.1.6.3
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.6.2 2008/06/02 13:21:14 mjf Exp $
@


