Module Name:    src
Committed By:   tsutsui
Date:           Sat Mar 21 14:25:49 UTC 2020

Modified Files:
        src/distrib/hpcarm: Makefile
Added Files:
        src/distrib/hpcarm/liveimage: Makefile fstab.in spec.in

Log Message:
Add "build.sh live-image" support for hpcarm.

Tested on WS003SH.
See also PR/55075 for live-image with FAT partition support.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/distrib/hpcarm/Makefile
cvs rdiff -u -r0 -r1.1 src/distrib/hpcarm/liveimage/Makefile \
    src/distrib/hpcarm/liveimage/fstab.in \
    src/distrib/hpcarm/liveimage/spec.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/hpcarm/Makefile
diff -u src/distrib/hpcarm/Makefile:1.6 src/distrib/hpcarm/Makefile:1.7
--- src/distrib/hpcarm/Makefile:1.6	Fri Sep 19 17:38:43 2008
+++ src/distrib/hpcarm/Makefile	Sat Mar 21 14:25:49 2020
@@ -1,12 +1,16 @@
-#	$NetBSD: Makefile,v 1.6 2008/09/19 17:38:43 tsutsui Exp $
+#	$NetBSD: Makefile,v 1.7 2020/03/21 14:25:49 tsutsui Exp $
 
 .include <bsd.own.mk>
 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
 
 SUBDIR=		instkernel stand cdroms
+SUBDIR+=	liveimage
 TARGETS+=	release
 
 iso_image:
 	${MAKEDIRTARGET} cdroms iso_image
 
+live_image:
+	${MAKEDIRTARGET} liveimage live_image
+
 .include <bsd.subdir.mk>

Added files:

Index: src/distrib/hpcarm/liveimage/Makefile
diff -u /dev/null src/distrib/hpcarm/liveimage/Makefile:1.1
--- /dev/null	Sat Mar 21 14:25:50 2020
+++ src/distrib/hpcarm/liveimage/Makefile	Sat Mar 21 14:25:49 2020
@@ -0,0 +1,39 @@
+#	$NetBSD: Makefile,v 1.1 2020/03/21 14:25:49 tsutsui Exp $
+
+LIVEIMGBASE=	NetBSD-${DISTRIBVER}-${MACHINE}-live	# gives ${IMGBASE}.img
+
+.include <bsd.own.mk>
+
+LIVEIMAGEMB?=	1920		# for 2GB SD due to Windows Mobile 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-WZERO3
+#SETS=		base modules etc misc rescue text xbase xetc xfont xserver
+
+# prepare JORNADA720 kernel as an independent name
+prepare_md_post:
+	echo Extracting kern-JORNADA720.${TAR_SUFF} ...
+	${TOOL_PAX} ${PAX_TIMESTAMP} -rn				\
+	    --use-compress-program=${COMPRESS_PROGRAM:Q}		\
+	    -f ${SETS_DIR}/kern-JORNADA720.${TAR_SUFF} .
+	mv netbsd netbsd.JORNADA720
+
+CLEANFILES+=	netbsd.JORNADA720
+
+IMGFILE_EXTRA=								\
+		${.OBJDIR}/netbsd.JORNADA720	.
+
+DISKPROTO_IN=	${.CURDIR}/../../common/bootimage/diskproto.mbrfat.in
+FSTAB_IN=	${.CURDIR}/fstab.in
+SPEC_EXTRA=	${.CURDIR}/spec.in
+
+FATFILES=	${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/hpcboot.exe
+FATFILES+=	${WORKDIR}/netbsd
+FATFILES+=	${WORKDIR}/netbsd.JORNADA720
+
+.include "${.CURDIR}/../../common/bootimage/Makefile.liveimage"
Index: src/distrib/hpcarm/liveimage/fstab.in
diff -u /dev/null src/distrib/hpcarm/liveimage/fstab.in:1.1
--- /dev/null	Sat Mar 21 14:25:50 2020
+++ src/distrib/hpcarm/liveimage/fstab.in	Sat Mar 21 14:25:49 2020
@@ -0,0 +1,7 @@
+ROOT.a		/		ffs	rw		1 1
+ROOT.b		none		none	sw		0 0
+ROOT.e		/dos		msdos	rw		0 0
+ptyfs		/dev/pts	ptyfs	rw		0 0
+kernfs		/kern		kernfs	rw,noauto	0 0
+procfs		/proc		procfs	rw,noauto	0 0
+tmpfs		/var/shm	tmpfs	rw,-m1777,-sram%25 0 0
Index: src/distrib/hpcarm/liveimage/spec.in
diff -u /dev/null src/distrib/hpcarm/liveimage/spec.in:1.1
--- /dev/null	Sat Mar 21 14:25:50 2020
+++ src/distrib/hpcarm/liveimage/spec.in	Sat Mar 21 14:25:49 2020
@@ -0,0 +1,3 @@
+# $NetBSD: spec.in,v 1.1 2020/03/21 14:25:49 tsutsui Exp $
+./netbsd.JORNADA720	type=file mode=0755 uname=root gname=wheel
+./dos		type=dir mode=0755 uname=root gname=wheel

Reply via email to