11.1Schristos# $NetBSD: Makefile.cdrom,v 1.1 2024/05/15 16:29:53 christos Exp $
21.1Schristos
31.1Schristos.include <bsd.own.mk>
41.1Schristos
51.1SchristosCDRELEASE=	true			# include $RELEASEDIR/$RELEASEMACHINEDIR
61.1SchristosCDKERNELS=	${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/netbsd-GENERIC.gz	netbsd
71.1SchristosCD_SETS=	base etc
81.1Schristos.if ${MKKMOD} != "no"
91.1SchristosCD_SETS+=	modules
101.1Schristos.endif
111.1Schristos.if ${MKMAN} != "no"
121.1SchristosCD_SETS+=	man
131.1Schristos.endif
141.1Schristos
151.1SchristosSYSINSTDIR!= cd ${.CURDIR}/../../../../usr.sbin/sysinst/arch/${MACHINE} && ${PRINTOBJDIR}
161.1Schristos
171.1SchristosCDRELEASE_NOISOS=	true
181.1SchristosCDBOOTIMAGEDIR!= cd ${NETBSDSRCDIR}/distrib/sparc64/bootfs && ${PRINTOBJDIR}
191.1SchristosCDBOOTIMAGE=    ${CDBOOTIMAGEDIR}/boot.fs
201.1SchristosSUN_BOOT_ARGS:=  - - - - ${CDBOOTIMAGE}
211.1Schristos
221.1SchristosSPEC_EXTRA:=${.PARSEDIR}/spec.in
231.1Schristos
241.1Schristosimage_md_pre:
251.1Schristos	${RM} -f cdrom/etc/gettytab cdrom/etc/ttys cdrom/etc/rc
261.1Schristos	${HOST_LN} -fs /tmp/gettytab cdrom/etc/gettytab
271.1Schristos	${INSTALL} ${COPY} ${.CURDIR}/../installcd/etc.ttys cdrom/etc/ttys
281.1Schristos	${INSTALL} ${COPY} ${.CURDIR}/../installcd/etc.rc cdrom/etc/rc
291.1Schristos	${INSTALL} ${COPY} -m 0555 ${.CURDIR}/../installcd/install.sh cdrom/install.sh
301.1Schristos	${MKDIR} ${MKDIRPERM} cdrom/mnt2 cdrom/targetroot
311.1Schristos	${INSTALL} ${COPY} ${SYSINSTDIR}/sysinstmsgs.?? cdrom/usr/share/sysinst/catalog/
321.1Schristos
331.1Schristosimage_md_post:
341.1Schristos	SUNLABEL=${TOOL_SUNLABEL:Q} \
351.1Schristos		${HOST_SH} ${NETBSDSRCDIR}/distrib/common/sunbootcd.sh \
361.1Schristos		${CDIMAGE} ${SUN_BOOT_ARGS}
371.1Schristos
381.1Schristos.include "${.CURDIR}/../../../common/Makefile.bootcd"
391.1Schristos
40