1#	$NetBSD: Makefile,v 1.1 2020/03/21 14:24:12 tsutsui Exp $
2
3LIVEIMGBASE=	NetBSD-${DISTRIBVER}-zaurus-live	# gives ${IMGBASE}.img
4
5.include <bsd.own.mk>
6
7LIVEIMAGEMB?=	900		# for "1GB" SD due to Zaurus Linux restriction
8SWAPMB?=	64
9FATMB?=		32
10
11USE_MBR=	yes
12MBRFAT=		6		# 16-bit FAT, more than 32M
13
14# Omit comp etc. due to size restriction
15KERN_SET=	kern-GENERIC
16SETS=		base modules etc misc rescue text xbase xetc xfont xserver
17
18# prepare SL-C700 kernel as an independent name
19prepare_md_post:
20	echo Extracting kern-C700.${TAR_SUFF} ...
21	${TOOL_PAX} ${PAX_TIMESTAMP} -rn				\
22	    --use-compress-program=${COMPRESS_PROGRAM:Q}		\
23	    -f ${SETS_DIR}/kern-C700.${TAR_SUFF} .
24	mv netbsd netbsd.c700
25
26CLEANFILES+=	netbsd.c700
27
28IMGFILE_EXTRA=								\
29		${.OBJDIR}/netbsd.c700		.
30
31DISKPROTO_IN=	${.CURDIR}/../../common/bootimage/diskproto.mbrfat.in
32FSTAB_IN=	${.CURDIR}/fstab.in
33SPEC_EXTRA=	${.CURDIR}/spec.in
34
35FATFILES=	${WORKDIR}/usr/mdec/zbsdmod.o ${WORKDIR}/usr/mdec/zboot
36FATFILES+=	${WORKDIR}/netbsd
37FATFILES+=	${WORKDIR}/netbsd.c700
38
39.include "${.CURDIR}/../../common/bootimage/Makefile.liveimage"
40