Add "build.sh live-image" support for hpcarm.
Tested on WS003SH. See also PR/55075 for live-image with FAT partition support.
This commit is contained in:
parent
d9d42379c6
commit
608bd4460c
@ -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>
|
||||
|
39
distrib/hpcarm/liveimage/Makefile
Normal file
39
distrib/hpcarm/liveimage/Makefile
Normal file
@ -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"
|
7
distrib/hpcarm/liveimage/fstab.in
Normal file
7
distrib/hpcarm/liveimage/fstab.in
Normal file
@ -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
|
3
distrib/hpcarm/liveimage/spec.in
Normal file
3
distrib/hpcarm/liveimage/spec.in
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user