head	1.10;
access;
symbols
	netbsd-11-0-RC4:1.10
	netbsd-11-0-RC3:1.10
	netbsd-11-0-RC2:1.10
	netbsd-11-0-RC1:1.10
	perseant-exfatfs-base-20250801:1.10
	netbsd-11:1.10.0.4
	netbsd-11-base:1.10
	netbsd-10-1-RELEASE:1.9
	perseant-exfatfs-base-20240630:1.10
	perseant-exfatfs:1.10.0.2
	perseant-exfatfs-base:1.10
	netbsd-8-3-RELEASE:1.3
	netbsd-9-4-RELEASE:1.5
	netbsd-10-0-RELEASE:1.9
	netbsd-10-0-RC6:1.9
	netbsd-10-0-RC5:1.9
	netbsd-10-0-RC4:1.9
	netbsd-10-0-RC3:1.9
	netbsd-10-0-RC2:1.9
	netbsd-10-0-RC1:1.9
	netbsd-10:1.9.0.2
	netbsd-10-base:1.9
	netbsd-9-3-RELEASE:1.5
	cjep_sun2x-base1:1.8
	cjep_sun2x:1.8.0.4
	cjep_sun2x-base:1.8
	cjep_staticlib_x-base1:1.8
	netbsd-9-2-RELEASE:1.5
	cjep_staticlib_x:1.8.0.2
	cjep_staticlib_x-base:1.8
	netbsd-9-1-RELEASE:1.5
	phil-wifi-20200421:1.7
	phil-wifi-20200411:1.7
	is-mlppp:1.7.0.2
	is-mlppp-base:1.7
	phil-wifi-20200406:1.7
	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.7
	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.30.1
	pgoyette-compat-20190127:1.5
	pgoyette-compat-20190118:1.5
	pgoyette-compat-1226:1.5
	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.3
	pgoyette-compat-0728:1.3
	netbsd-8-0-RELEASE:1.3
	phil-wifi:1.3.0.32
	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.3
	pgoyette-compat:1.3.0.30
	pgoyette-compat-base:1.3
	netbsd-7-1-1-RELEASE:1.3
	matt-nb8-mediatek:1.3.0.28
	matt-nb8-mediatek-base:1.3
	perseant-stdc-iso10646:1.3.0.26
	perseant-stdc-iso10646-base:1.3
	netbsd-8:1.3.0.24
	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.22
	prg-localcount2-base:1.3
	pgoyette-localcount-20170426:1.3
	bouyer-socketcan-base1:1.3
	pgoyette-localcount-20170320:1.3
	netbsd-7-1:1.3.0.20
	netbsd-7-1-RELEASE:1.3
	netbsd-7-1-RC2:1.3
	netbsd-7-nhusb-base-20170116:1.3
	bouyer-socketcan:1.3.0.18
	bouyer-socketcan-base:1.3
	pgoyette-localcount-20170107:1.3
	netbsd-7-1-RC1:1.3
	pgoyette-localcount-20161104:1.3
	netbsd-7-0-2-RELEASE:1.3
	localcount-20160914:1.3
	netbsd-7-nhusb:1.3.0.16
	netbsd-7-nhusb-base:1.3
	pgoyette-localcount-20160806:1.3
	pgoyette-localcount-20160726:1.3
	pgoyette-localcount:1.3.0.14
	pgoyette-localcount-base:1.3
	netbsd-7-0-1-RELEASE:1.3
	netbsd-7-0:1.3.0.12
	netbsd-7-0-RELEASE:1.3
	netbsd-7-0-RC3:1.3
	netbsd-7-0-RC2:1.3
	netbsd-7-0-RC1:1.3
	netbsd-6-0-6-RELEASE:1.1.2.1
	netbsd-6-1-5-RELEASE:1.1.2.1
	netbsd-7:1.3.0.10
	netbsd-7-base:1.3
	yamt-pagecache-base9:1.3
	yamt-pagecache-tag8:1.1.4.4
	netbsd-6-1-4-RELEASE:1.1.2.1
	netbsd-6-0-5-RELEASE:1.1.2.1
	tls-earlyentropy:1.3.0.8
	tls-earlyentropy-base:1.3
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.3
	riastradh-drm2-base3:1.3
	netbsd-6-1-3-RELEASE:1.1.2.1
	netbsd-6-0-4-RELEASE:1.1.2.1
	netbsd-6-1-2-RELEASE:1.1.2.1
	netbsd-6-0-3-RELEASE:1.1.2.1
	netbsd-6-1-1-RELEASE:1.1.2.1
	riastradh-drm2-base2:1.3
	riastradh-drm2-base1:1.3
	riastradh-drm2:1.3.0.2
	riastradh-drm2-base:1.3
	netbsd-6-1:1.1.2.1.0.6
	netbsd-6-0-2-RELEASE:1.1.2.1
	netbsd-6-1-RELEASE:1.1.2.1
	khorben-n900:1.3.0.6
	netbsd-6-1-RC4:1.1.2.1
	netbsd-6-1-RC3:1.1.2.1
	agc-symver:1.3.0.4
	agc-symver-base:1.3
	netbsd-6-1-RC2:1.1.2.1
	netbsd-6-1-RC1:1.1.2.1
	yamt-pagecache-base8:1.3
	netbsd-6-0-1-RELEASE:1.1.2.1
	yamt-pagecache-base7:1.3
	matt-nb6-plus-nbase:1.1.2.1
	yamt-pagecache-base6:1.2
	netbsd-6-0:1.1.2.1.0.4
	netbsd-6-0-RELEASE:1.1.2.1
	netbsd-6-0-RC2:1.1.2.1
	tls-maxphys:1.2.0.2
	tls-maxphys-base:1.3
	matt-nb6-plus:1.1.2.1.0.2
	matt-nb6-plus-base:1.1.2.1
	netbsd-6-0-RC1:1.1.2.1
	yamt-pagecache-base5:1.1
	yamt-pagecache:1.1.0.4
	yamt-pagecache-base4:1.1
	netbsd-6:1.1.0.2
	netbsd-6-base:1.1;
locks; strict;
comment	@# @;


1.10
date	2024.04.16.16.13.44;	author maya;	state Exp;
branches;
next	1.9;
commitid	8IJJt2mC9agKZn6F;

1.9
date	2021.07.24.16.13.44;	author jmcneill;	state Exp;
branches;
next	1.8;
commitid	36XpynWpd3BF3g2D;

1.8
date	2020.08.05.01.35.18;	author jmcneill;	state Exp;
branches;
next	1.7;
commitid	bDwoU6fcD68PxOiC;

1.7
date	2019.08.11.11.00.30;	author gson;	state Exp;
branches;
next	1.6;
commitid	oz1x9Ot3r6VEeByB;

1.6
date	2019.08.07.07.59.35;	author gson;	state Exp;
branches;
next	1.5;
commitid	1OuzPjJoqAEsm4yB;

1.5
date	2018.12.16.08.58.21;	author gson;	state Exp;
branches;
next	1.4;
commitid	ri3OE0P0BQnrd04B;

1.4
date	2018.12.15.18.03.17;	author gson;	state Exp;
branches;
next	1.3;
commitid	VnJTdkyNfhz4gV3B;

1.3
date	2012.11.03.14.25.32;	author tsutsui;	state Exp;
branches
	1.3.30.1
	1.3.32.1;
next	1.2;

1.2
date	2012.08.17.16.56.35;	author riz;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	2012.01.22.03.53.29;	author tsutsui;	state Exp;
branches
	1.1.2.1
	1.1.4.1;
next	;

1.3.30.1
date	2018.12.26.14.01.10;	author pgoyette;	state Exp;
branches;
next	;
commitid	xUhK8IAeBM1azj5B;

1.3.32.1
date	2019.06.10.21.42.17;	author christos;	state Exp;
branches;
next	1.3.32.2;
commitid	jtc8rnCzWiEEHGqB;

1.3.32.2
date	2020.04.13.07.45.23;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.2.2.1
date	2012.11.20.02.57.41;	author tls;	state Exp;
branches;
next	;

1.1.2.1
date	2012.08.17.20.50.50;	author martin;	state Exp;
branches;
next	;

1.1.4.1
date	2012.01.22.03.53.29;	author yamt;	state dead;
branches;
next	1.1.4.2;

1.1.4.2
date	2012.04.17.00.02.32;	author yamt;	state Exp;
branches;
next	1.1.4.3;

1.1.4.3
date	2012.10.30.18.48.28;	author yamt;	state Exp;
branches;
next	1.1.4.4;

1.1.4.4
date	2013.01.16.05.26.00;	author yamt;	state Exp;
branches;
next	;


desc
@@


1.10
log
@restore amd64 live image support for resize root after combined mbr/gpt commit

we need to resize_gpt now, as it takes precedence over mbr/disklabel
this change brings us to behave like the evbarm images.

XXX: we don't seem to touch disklabel and MBR, but they exist. Not sure whether
that has any negative repercussions, maybe another system might regard MBR as the
sole source of truth when GPT also exists.
@
text
@#	$NetBSD: Makefile,v 1.9 2021/07/24 16:13:44 jmcneill Exp $

LIVEIMGBASE=	NetBSD-${DISTRIBVER}-amd64-live	# gives ${IMGBASE}.img

EMUIMAGEMB?=	1907            	# 2GB USB flash memories aren't 2GiB
LIVEIMAGEMB=	${EMUIMAGEMB}
SWAPMB=		0			# No swap
IMAGEHOSTNAME=	netbsd

FILESDIR!=	cd ${.CURDIR}/../../../utils/embedded/files ; pwd

SPEC_EXTRA=	${.CURDIR}/spec.emuimage
RC_CONF_EXTRA=	${.CURDIR}/rc.conf.emuimage
IMGFILE_EXTRA=								\
	${FILESDIR}/ec2_init		etc/rc.d/ec2_init		\
	${FILESDIR}/resize_gpt		etc/rc.d/resize_gpt

.include "${.CURDIR}/../Makefile.liveimage"
@


1.9
log
@amd64: liveimage: use RC_CONF_EXTRA instead of rc.conf.d
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2020/08/05 01:35:18 jmcneill Exp $
d16 1
a16 1
	${FILESDIR}/resize_disklabel	etc/rc.d/resize_disklabel
@


1.8
log
@Add support for EC2 and resize root to AMD64 live images.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2019/08/11 11:00:30 gson Exp $
d13 1
d16 1
a16 6
	${FILESDIR}/resize_disklabel	etc/rc.d/resize_disklabel	\
	${.CURDIR}/dhcpcd		etc/rc.conf.d/dhcpcd		\
	${.CURDIR}/ec2_init		etc/rc.conf.d/ec2_init		\
	${.CURDIR}/resize_disklabel	etc/rc.conf.d/resize_disklabel	\
	${.CURDIR}/resize_root		etc/rc.conf.d/resize_root	\
	${.CURDIR}/sshd			etc/rc.conf.d/sshd
@


1.7
log
@Live images built with MKDEBUG=yes fit in 2 GB since installing _pic.a
libraries was disabled in src/share/mk/bsd.own.mk 1.1150.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2019/08/07 07:59:35 gson Exp $
d7 14
@


1.6
log
@The amd64 live image no longer fits in 2 GB when built with with
MKDEBUG, as releases are.  Bump the size to just under 4 GB (as in
4*10^9, not 4*2^30), the next larger common USB thumb drive size.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2018/12/16 08:58:21 gson Exp $
d5 1
a5 1
EMUIMAGEMB?=	3725            	# 4GB USB flash memories aren't 4GiB
@


1.5
log
@Fix previous: set EMUIMAGEMB, not USBIMAGEMB.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2018/12/15 18:03:17 gson Exp $
d5 1
a5 1
EMUIMAGEMB?=	1536            	# 2GB USB flash memories aren't 2GiB
@


1.4
log
@Use the special device name "ROOT." in /etc/fstab not just on the arm
images, but also on the bootable disk images of other ports, so that
they can be booted from differently named devices.  Merge the i386 and
amd64 -live-sd0root and -live-wd0root images into a single live image
per port, bootable both from usb media and in qemu.  Drop the -xx0root
suffixes from image names as they are no longer meaningful.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2012/11/03 14:25:32 tsutsui Exp $
d5 1
a5 1
USBIMAGEMB?=	1536            	# 2GB USB flash memories aren't 2GiB
@


1.3
log
@Allow overriding live-image and install-image sizes by
INSTIMAGEMB (for install-images), USBIMAGEMB (for x86 sd0root liveimages),
and EMUIMAGEMB (for other liveimages) variables.
Per discussion on current-users@@:
http://mail-index.NetBSD.org/current-users/2012/10/29/msg021368.html
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2012/08/17 16:56:35 riz Exp $
d3 1
a3 1
LIVEIMGBASE=	NetBSD-${DISTRIBVER}-amd64-live-wd0root	# gives ${IMGBASE}.img
d5 1
a5 2
BOOTDISK=	wd0			# for QEMU etc.
.if defined(EMUIMAGEMB)
a6 1
.endif
@


1.3.32.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2018/12/16 08:58:21 gson Exp $
d3 1
a3 1
LIVEIMGBASE=	NetBSD-${DISTRIBVER}-amd64-live	# gives ${IMGBASE}.img
d5 2
a6 1
EMUIMAGEMB?=	1536            	# 2GB USB flash memories aren't 2GiB
d8 1
@


1.3.32.2
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d1 1
a1 1
#	$NetBSD$
d5 1
a5 1
EMUIMAGEMB?=	1907            	# 2GB USB flash memories aren't 2GiB
@


1.3.30.1
log
@Sync with HEAD, resolve a few conflicts
@
text
@d1 1
a1 1
#	$NetBSD$
d3 1
a3 1
LIVEIMGBASE=	NetBSD-${DISTRIBVER}-amd64-live	# gives ${IMGBASE}.img
d5 2
a6 1
EMUIMAGEMB?=	1536            	# 2GB USB flash memories aren't 2GiB
d8 1
@


1.2
log
@Change the naming scheme of "live" images and usb install images
to incorporate the OS name and version.

XXX should also not hardcode ${BOOTDISK} in the name, but that would
require reordering stuff and more testing than I have time for right now.
Another day.

As discussed on current-users@@ back in March, with some adjustments.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2012/01/22 03:53:29 tsutsui Exp $
d6 3
@


1.2.2.1
log
@Resync to 2012-11-19 00:00:00 UTC
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2012/11/03 14:25:32 tsutsui Exp $
a5 3
.if defined(EMUIMAGEMB)
LIVEIMAGEMB=	${EMUIMAGEMB}
.endif
@


1.1
log
@Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
 msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@@, riz@@ and christos@@.

Closes PR toolchain/45153 and PR misc/45155.
@
text
@d1 1
a1 1
#	$NetBSD$
d3 1
a3 1
LIVEIMGBASE=	amd64emu		# gives ${IMGBASE}.img
@


1.1.2.1
log
@Pull up following revision(s) (requested by riz in ticket #506):
	distrib/amd64/liveimage/emuimage/Makefile: revision 1.2
	distrib/amd64/liveimage/usbimage/Makefile: revision 1.2
	distrib/sun2/liveimage/emuimage/Makefile: revision 1.2
	distrib/amd64/installimage/Makefile: revision 1.2
	distrib/sun3/liveimage/emuimage/Makefile: revision 1.2
	distrib/pmax/liveimage/emuimage/Makefile: revision 1.2
	distrib/vax/liveimage/emuimage/Makefile: revision 1.2
	distrib/sparc64/liveimage/emuimage/Makefile: revision 1.2
	distrib/common/Makefile.bootcd: revision 1.20
	distrib/i386/liveimage/emuimage/Makefile: revision 1.2
	distrib/sparc/liveimage/emuimage/Makefile: revision 1.2
	distrib/i386/installimage/Makefile: revision 1.2
	distrib/i386/liveimage/usbimage/Makefile: revision 1.2
	etc/Makefile: revision 1.398
Change the naming scheme of "live" images and usb install images
to incorporate the OS name and version.
XXX should also not hardcode ${BOOTDISK} in the name, but that would
require reordering stuff and more testing than I have time for right now.
Another day.
As discussed on current-users@@ back in March, with some adjustments.
Install fully-populated .iso images in ${RELEASEDIR}/images instead
of ${RELEASEDIR}/iso, since we'll be putting non-iso images in there too.
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.
@
text
@d3 1
a3 1
LIVEIMGBASE=	NetBSD-${DISTRIBVER}-amd64-live-wd0root	# gives ${IMGBASE}.img
@


1.1.4.1
log
@file Makefile was added on branch yamt-pagecache on 2012-04-17 00:02:32 +0000
@
text
@d1 7
@


1.1.4.2
log
@sync with head
@
text
@a0 7
#	$NetBSD$

LIVEIMGBASE=	amd64emu		# gives ${IMGBASE}.img

BOOTDISK=	wd0			# for QEMU etc.

.include "${.CURDIR}/../Makefile.liveimage"
@


1.1.4.3
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.4.2 2012/04/17 00:02:32 yamt Exp $
d3 1
a3 1
LIVEIMGBASE=	NetBSD-${DISTRIBVER}-amd64-live-wd0root	# gives ${IMGBASE}.img
@


1.1.4.4
log
@sync with (a bit old) head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.4.3 2012/10/30 18:48:28 yamt Exp $
a5 3
.if defined(EMUIMAGEMB)
LIVEIMAGEMB=	${EMUIMAGEMB}
.endif
@


