2002-04-10 09:00:47 +04:00
|
|
|
# $NetBSD: Makefile,v 1.11 2002/04/10 05:00:47 shin Exp $
|
2000-06-12 16:39:20 +04:00
|
|
|
|
|
|
|
.include "../Makefile.inc"
|
|
|
|
|
|
|
|
.include <bsd.obj.mk>
|
|
|
|
.include <bsd.kernobj.mk>
|
2002-03-06 00:23:28 +03:00
|
|
|
.include <bsd.own.mk>
|
1999-09-16 16:13:17 +04:00
|
|
|
|
|
|
|
SUBDIR=
|
|
|
|
|
2000-06-12 16:39:20 +04:00
|
|
|
ITARGET= ${RELEASEDIR}/installation
|
2002-02-09 16:56:48 +03:00
|
|
|
IINST= ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${NONBINMODE}
|
2000-06-12 16:39:20 +04:00
|
|
|
|
|
|
|
PBSDBOOTDIR = ${KERNSRCDIR}/arch/${MACHINE}/stand/pbsdboot
|
2002-04-10 09:00:47 +04:00
|
|
|
PBSDBOOT = ${PBSDBOOTDIR}/pbsdboot.uu
|
|
|
|
PBSDBOOT1 = ${PBSDBOOTDIR}/pbsdboot1.uu
|
2002-03-23 06:21:23 +03:00
|
|
|
HPCBOOTDIR = ${KERNSRCDIR}/arch/hpc/stand
|
2002-04-10 09:00:47 +04:00
|
|
|
HPCBOOT = ${HPCBOOTDIR}/binary/MIPS/hpcboot.exe.uu
|
2001-10-22 03:23:19 +04:00
|
|
|
MDSETIMAGE?= mdsetimage
|
2000-06-12 16:39:20 +04:00
|
|
|
|
2002-03-23 06:21:23 +03:00
|
|
|
INSTKERNELS = TX3912
|
2001-04-22 06:04:22 +04:00
|
|
|
|
2000-06-12 16:39:20 +04:00
|
|
|
.ifndef RELEASEDIR
|
|
|
|
release:
|
|
|
|
@echo setenv RELEASEDIR first
|
|
|
|
@false
|
|
|
|
.else
|
|
|
|
MINIROOTDIR = ${.CURDIR}/../miniroot
|
2001-11-14 03:41:52 +03:00
|
|
|
MINIROOTOBJ != cd ${MINIROOTDIR} && ${PRINTOBJDIR}
|
2000-06-12 16:39:20 +04:00
|
|
|
|
|
|
|
release:
|
|
|
|
rm -f netbsd netbsd.gz
|
|
|
|
cp ${KERNOBJDIR}/RAMDISK/netbsd .
|
2001-10-22 03:23:19 +04:00
|
|
|
${MDSETIMAGE} netbsd ${MINIROOTOBJ}/miniroot.fs
|
2000-06-12 16:39:20 +04:00
|
|
|
gzip -9 netbsd
|
|
|
|
${IINST} netbsd.gz ${ITARGET}/.
|
2001-04-22 06:04:22 +04:00
|
|
|
.for instkern in ${INSTKERNELS}
|
|
|
|
rm -f netbsd netbsd.gz
|
|
|
|
cp ${KERNOBJDIR}/INSTALL_${instkern}/netbsd .
|
2002-02-18 06:38:01 +03:00
|
|
|
${MDSETIMAGE} netbsd ${MINIROOTOBJ}/miniroot.fs
|
2001-04-22 06:04:22 +04:00
|
|
|
gzip -9 netbsd
|
|
|
|
${IINST} netbsd.gz ${ITARGET}/netbsd.${instkern}.gz
|
|
|
|
.endfor
|
2002-04-10 09:00:47 +04:00
|
|
|
(cd ${ITARGET}; ${UUDECODE} ${PBSDBOOT1}; chmod ${NONBINMODE} pbsdboot1.exe)
|
|
|
|
(cd ${ITARGET}; ${UUDECODE} ${PBSDBOOT}; chmod ${NONBINMODE} pbsdboot.exe)
|
|
|
|
(cd ${ITARGET}; rm -f hpcboot.exe; ${UUDECODE} -p ${HPCBOOT} >hpcboot.exe ; chmod ${NONBINMODE} hpcboot.exe)
|
2000-06-12 16:39:20 +04:00
|
|
|
${.CURDIR}/../sets/makesums -t ${ITARGET} '*.gz' '*.exe'
|
|
|
|
.endif
|
|
|
|
|
1999-09-16 16:13:17 +04:00
|
|
|
.include <bsd.subdir.mk>
|