2001-11-14 03:41:52 +03:00
|
|
|
# $NetBSD: Makefile,v 1.6 2001/11/14 00:48:38 tv Exp $
|
2000-06-12 16:39:20 +04:00
|
|
|
|
|
|
|
.include "../Makefile.inc"
|
|
|
|
|
|
|
|
.include <bsd.obj.mk>
|
|
|
|
.include <bsd.kernobj.mk>
|
1999-09-16 16:13:17 +04:00
|
|
|
|
|
|
|
SUBDIR=
|
|
|
|
|
2000-06-12 16:39:20 +04:00
|
|
|
ITARGET= ${RELEASEDIR}/installation
|
|
|
|
IINST= ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} \
|
|
|
|
-o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE}
|
|
|
|
|
|
|
|
PBSDBOOTDIR = ${KERNSRCDIR}/arch/${MACHINE}/stand/pbsdboot
|
|
|
|
PBSDBOOT = ${PBSDBOOTDIR}/pbsdboot.exe
|
|
|
|
PBSDBOOT1 = ${PBSDBOOTDIR}/pbsdboot1.exe
|
2001-10-22 03:23:19 +04:00
|
|
|
MDSETIMAGE?= mdsetimage
|
2000-06-12 16:39:20 +04:00
|
|
|
|
2001-04-22 06:04:22 +04:00
|
|
|
INSTKERNELS = TX3912 TX3922
|
|
|
|
|
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 .
|
|
|
|
mdsetimage netbsd ${MINIROOTOBJ}/miniroot.fs
|
|
|
|
gzip -9 netbsd
|
|
|
|
${IINST} netbsd.gz ${ITARGET}/netbsd.${instkern}.gz
|
|
|
|
.endfor
|
|
|
|
cd ${KERNSRCDIR}/arch/${MACHINE}/stand/pbsdboot; make
|
2000-06-12 16:39:20 +04:00
|
|
|
${IINST} ${PBSDBOOT} ${ITARGET}/.
|
|
|
|
${IINST} ${PBSDBOOT1} ${ITARGET}/.
|
|
|
|
${.CURDIR}/../sets/makesums -t ${ITARGET} '*.gz' '*.exe'
|
|
|
|
.endif
|
|
|
|
|
1999-09-16 16:13:17 +04:00
|
|
|
.include <bsd.subdir.mk>
|