Home | History | Annotate | Line # | Download | only in bootfs
Makefile revision 1.1.14.1
      1       1.1  tsutsui #	$NetBSD: Makefile,v 1.1.14.1 2014/08/19 23:45:42 tls Exp $
      2       1.1  tsutsui 
      3       1.1  tsutsui .include <bsd.own.mk>
      4       1.1  tsutsui .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
      5       1.1  tsutsui 
      6       1.1  tsutsui IMAGE=		boot.fs
      7       1.1  tsutsui 
      8       1.1  tsutsui MDEC=		${DESTDIR}/usr/mdec
      9       1.1  tsutsui BOOTLOADER=	${MDEC}/boot
     10       1.1  tsutsui 
     11       1.1  tsutsui KERNDIR!=	cd ${.CURDIR}/../instkernel && ${PRINTOBJDIR}
     12       1.1  tsutsui KERNEL=		${KERNDIR}/netbsd-INSTALL.gz
     13       1.1  tsutsui 
     14       1.1  tsutsui TMPKERNEL=	${.OBJDIR}/netbsd
     15       1.1  tsutsui 
     16       1.1  tsutsui BOOT_RELEASEDIR=	installation/bootfs
     17       1.1  tsutsui 
     18       1.1  tsutsui ${IMAGE}.gz:	${KERNEL} ${BOOTLOADER}
     19  1.1.14.1      tls 	${TOOL_GZIP_N} -cd ${KERNEL} > ${TMPKERNEL}
     20       1.1  tsutsui 	${TOOL_POWERPCMKBOOTIMAGE} -m ${MACHINE} \
     21       1.1  tsutsui 	    -b ${BOOTLOADER} -k ${TMPKERNEL} ${IMAGE}
     22  1.1.14.1      tls 	${TOOL_GZIP_N} -9c ${IMAGE} > ${IMAGE}.tmp
     23       1.1  tsutsui 	mv ${IMAGE}.tmp ${.TARGET}
     24       1.1  tsutsui 
     25       1.1  tsutsui CLEANFILES+=	${IMAGE} ${IMAGE}.tmp ${IMAGE}.gz
     26       1.1  tsutsui 
     27       1.1  tsutsui all realall:	${IMAGE}.gz
     28       1.1  tsutsui 
     29       1.1  tsutsui release::	check_RELEASEDIR .WAIT ${IMAGE}.gz
     30       1.1  tsutsui 	${RELEASE_INSTALL} ${IMAGE}.gz \
     31       1.1  tsutsui 	    ${RELEASEDIR}/${RELEASEMACHINEDIR}/${BOOT_RELEASEDIR}
     32       1.1  tsutsui 
     33       1.1  tsutsui .include <bsd.prog.mk>
     34