Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/hpcarm Add "build.sh live-image" support for hpcarm.
details: https://anonhg.NetBSD.org/src/rev/35423e27c69f
branches: trunk
changeset: 1008385:35423e27c69f
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Mar 21 14:25:49 2020 +0000
description:
Add "build.sh live-image" support for hpcarm.
Tested on WS003SH.
See also PR/55075 for live-image with FAT partition support.
diffstat:
distrib/hpcarm/Makefile | 6 +++++-
distrib/hpcarm/liveimage/Makefile | 39 +++++++++++++++++++++++++++++++++++++++
distrib/hpcarm/liveimage/fstab.in | 7 +++++++
distrib/hpcarm/liveimage/spec.in | 3 +++
4 files changed, 54 insertions(+), 1 deletions(-)
diffs (82 lines):
diff -r 51127397d10e -r 35423e27c69f distrib/hpcarm/Makefile
--- a/distrib/hpcarm/Makefile Sat Mar 21 14:24:12 2020 +0000
+++ b/distrib/hpcarm/Makefile Sat Mar 21 14:25:49 2020 +0000
@@ -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>
diff -r 51127397d10e -r 35423e27c69f distrib/hpcarm/liveimage/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/hpcarm/liveimage/Makefile Sat Mar 21 14:25:49 2020 +0000
@@ -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"
diff -r 51127397d10e -r 35423e27c69f distrib/hpcarm/liveimage/fstab.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/hpcarm/liveimage/fstab.in Sat Mar 21 14:25:49 2020 +0000
@@ -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
diff -r 51127397d10e -r 35423e27c69f distrib/hpcarm/liveimage/spec.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/hpcarm/liveimage/spec.in Sat Mar 21 14:25:49 2020 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index