head	1.1;
access;
symbols
	netbsd-11-0-RC4:1.1
	netbsd-11-0-RC3:1.1
	netbsd-11-0-RC2:1.1
	netbsd-11-0-RC1:1.1
	perseant-exfatfs-base-20250801:1.1
	netbsd-11:1.1.0.14
	netbsd-11-base:1.1
	netbsd-10-1-RELEASE:1.1
	perseant-exfatfs-base-20240630:1.1
	perseant-exfatfs:1.1.0.12
	perseant-exfatfs-base:1.1
	netbsd-9-4-RELEASE:1.1.4.2
	netbsd-10-0-RELEASE:1.1
	netbsd-10-0-RC6:1.1
	netbsd-10-0-RC5:1.1
	netbsd-10-0-RC4:1.1
	netbsd-10-0-RC3:1.1
	netbsd-10-0-RC2:1.1
	netbsd-10-0-RC1:1.1
	netbsd-10:1.1.0.10
	netbsd-10-base:1.1
	netbsd-9-3-RELEASE:1.1.4.2
	cjep_sun2x-base1:1.1
	cjep_sun2x:1.1.0.8
	cjep_sun2x-base:1.1
	cjep_staticlib_x-base1:1.1
	netbsd-9-2-RELEASE:1.1.4.2
	cjep_staticlib_x:1.1.0.6
	cjep_staticlib_x-base:1.1
	netbsd-9-1-RELEASE:1.1.4.2
	netbsd-9:1.1.0.4
	phil-wifi-20200421:1.1
	phil-wifi:1.1.0.2
	phil-wifi-20200411:1.1
	phil-wifi-20200406:1.1;
locks; strict;
comment	@# @;


1.1
date	2020.03.21.14.24.12;	author tsutsui;	state Exp;
branches
	1.1.2.1
	1.1.4.1;
next	;
commitid	YcSBaecyC2tHch1C;

1.1.2.1
date	2020.03.21.14.24.12;	author martin;	state dead;
branches;
next	1.1.2.2;
commitid	X01YhRUPVUDaec4C;

1.1.2.2
date	2020.04.13.07.45.37;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.1.4.1
date	2020.03.21.14.24.12;	author martin;	state dead;
branches;
next	1.1.4.2;
commitid	2GTF2Je9FYVb5F5C;

1.1.4.2
date	2020.04.24.17.19.49;	author martin;	state Exp;
branches;
next	;
commitid	2GTF2Je9FYVb5F5C;


desc
@@


1.1
log
@Add "build.sh live-image" support for zaurus.

Tested on SL-C3000 and SL-C700.
See also PR/55075 for live-image with FAT partition support.
@
text
@#	$NetBSD$

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

.include <bsd.own.mk>

LIVEIMAGEMB?=	900		# for "1GB" SD due to Zaurus Linux restriction
SWAPMB?=	64
FATMB?=		32

USE_MBR=	yes
MBRFAT=		6		# 16-bit FAT, more than 32M

# Omit comp etc. due to size restriction
KERN_SET=	kern-GENERIC
SETS=		base modules etc misc rescue text xbase xetc xfont xserver

# prepare SL-C700 kernel as an independent name
prepare_md_post:
	echo Extracting kern-C700.${TAR_SUFF} ...
	${TOOL_PAX} ${PAX_TIMESTAMP} -rn				\
	    --use-compress-program=${COMPRESS_PROGRAM:Q}		\
	    -f ${SETS_DIR}/kern-C700.${TAR_SUFF} .
	mv netbsd netbsd.c700

CLEANFILES+=	netbsd.c700

IMGFILE_EXTRA=								\
		${.OBJDIR}/netbsd.c700		.

DISKPROTO_IN=	${.CURDIR}/../../common/bootimage/diskproto.mbrfat.in
FSTAB_IN=	${.CURDIR}/fstab.in
SPEC_EXTRA=	${.CURDIR}/spec.in

FATFILES=	${WORKDIR}/usr/mdec/zbsdmod.o ${WORKDIR}/usr/mdec/zboot
FATFILES+=	${WORKDIR}/netbsd
FATFILES+=	${WORKDIR}/netbsd.c700

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


1.1.4.1
log
@file Makefile was added on branch netbsd-9 on 2020-04-24 17:19:49 +0000
@
text
@d1 39
@


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

	distrib/hpcarm/Makefile: revision 1.7
	distrib/amd64/uefi-installimage/Makefile: revision 1.7
	distrib/common/bootimage/Makefile.installimage: revision 1.6
	distrib/hpcarm/liveimage/spec.in: revision 1.1
	distrib/common/bootimage/Makefile.bootimage: revision 1.23
	distrib/common/bootimage/Makefile.bootimage: revision 1.24
	distrib/zaurus/liveimage/Makefile: revision 1.1
	distrib/amd64/uefi-installimage/Makefile.installimage: revision 1.3
	distrib/zaurus/Makefile: revision 1.3
	distrib/hpcarm/liveimage/Makefile: revision 1.1
	distrib/zaurus/liveimage/spec.in: revision 1.1
	distrib/common/bootimage/diskproto.mbrfat.in: revision 1.1
	distrib/amd64/uefi-installimage/Makefile.bootimage: revision 1.13
	distrib/hpcarm/liveimage/fstab.in: revision 1.1
	distrib/zaurus/liveimage/fstab.in: revision 1.1

Merge amd64's UEFI logic back into the generic bootimage handling.

Add "live-image with a FAT partition for bootstrap files" support.
See PR/55075 for more details.

Add "build.sh live-image" support for zaurus.
Tested on SL-C3000 and SL-C700.
See also PR/55075 for live-image with FAT partition support.

Add "build.sh live-image" support for hpcarm.
Tested on WS003SH.
See also PR/55075 for live-image with FAT partition support.
@
text
@a0 39
#	$NetBSD: Makefile,v 1.1 2020/03/21 14:24:12 tsutsui Exp $

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

.include <bsd.own.mk>

LIVEIMAGEMB?=	900		# for "1GB" SD due to Zaurus Linux restriction
SWAPMB?=	64
FATMB?=		32

USE_MBR=	yes
MBRFAT=		6		# 16-bit FAT, more than 32M

# Omit comp etc. due to size restriction
KERN_SET=	kern-GENERIC
SETS=		base modules etc misc rescue text xbase xetc xfont xserver

# prepare SL-C700 kernel as an independent name
prepare_md_post:
	echo Extracting kern-C700.${TAR_SUFF} ...
	${TOOL_PAX} ${PAX_TIMESTAMP} -rn				\
	    --use-compress-program=${COMPRESS_PROGRAM:Q}		\
	    -f ${SETS_DIR}/kern-C700.${TAR_SUFF} .
	mv netbsd netbsd.c700

CLEANFILES+=	netbsd.c700

IMGFILE_EXTRA=								\
		${.OBJDIR}/netbsd.c700		.

DISKPROTO_IN=	${.CURDIR}/../../common/bootimage/diskproto.mbrfat.in
FSTAB_IN=	${.CURDIR}/fstab.in
SPEC_EXTRA=	${.CURDIR}/spec.in

FATFILES=	${WORKDIR}/usr/mdec/zbsdmod.o ${WORKDIR}/usr/mdec/zboot
FATFILES+=	${WORKDIR}/netbsd
FATFILES+=	${WORKDIR}/netbsd.c700

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


1.1.2.1
log
@file Makefile was added on branch phil-wifi on 2020-04-13 07:45:37 +0000
@
text
@d1 39
@


1.1.2.2
log
@Mostly merge changes from HEAD upto 20200411
@
text
@a0 39
#	$NetBSD: Makefile,v 1.1 2020/03/21 14:24:12 tsutsui Exp $

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

.include <bsd.own.mk>

LIVEIMAGEMB?=	900		# for "1GB" SD due to Zaurus Linux restriction
SWAPMB?=	64
FATMB?=		32

USE_MBR=	yes
MBRFAT=		6		# 16-bit FAT, more than 32M

# Omit comp etc. due to size restriction
KERN_SET=	kern-GENERIC
SETS=		base modules etc misc rescue text xbase xetc xfont xserver

# prepare SL-C700 kernel as an independent name
prepare_md_post:
	echo Extracting kern-C700.${TAR_SUFF} ...
	${TOOL_PAX} ${PAX_TIMESTAMP} -rn				\
	    --use-compress-program=${COMPRESS_PROGRAM:Q}		\
	    -f ${SETS_DIR}/kern-C700.${TAR_SUFF} .
	mv netbsd netbsd.c700

CLEANFILES+=	netbsd.c700

IMGFILE_EXTRA=								\
		${.OBJDIR}/netbsd.c700		.

DISKPROTO_IN=	${.CURDIR}/../../common/bootimage/diskproto.mbrfat.in
FSTAB_IN=	${.CURDIR}/fstab.in
SPEC_EXTRA=	${.CURDIR}/spec.in

FATFILES=	${WORKDIR}/usr/mdec/zbsdmod.o ${WORKDIR}/usr/mdec/zboot
FATFILES+=	${WORKDIR}/netbsd
FATFILES+=	${WORKDIR}/netbsd.c700

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


