Home | History | Annotate | Line # | Download | only in etc.ofppc
      1 #	$NetBSD: Makefile.inc,v 1.10 2019/11/18 01:11:14 mrg Exp $
      2 #
      3 #	etc.ofppc/Makefile.inc -- ofppc-specific etc Makefile targets
      4 #
      5 
      6 # If you change the list of distributed kernels, don't forget
      7 # to update the release documentation in distrib/notes/common/contents
      8 
      9 .if ${MACHINE_ARCH} == "powerpc"
     10 
     11 KERNEL_SETS=		GENERIC
     12 
     13 BUILD_KERNELS+=		INSTALL
     14 
     15 .else
     16 
     17 KERNEL_SETS=		GENERIC64
     18 
     19 .endif
     20 
     21 MD_INSTALLATION_DIRS=	installation/netboot
     22 
     23 INSTALLATION_DIRS+=	${MD_INSTALLATION_DIRS}
     24 
     25 INSTALLATION_SYMLINKS=	\
     26 	netboot/netbsd-INSTALL.gz	../../binary/kernel/netbsd-INSTALL.gz \
     27 	netboot/netbsd-GENERIC.gz	../../binary/kernel/netbsd-GENERIC.gz
     28 
     29 snap_md_post:
     30 	# install ofwboot in netboot directory
     31 	${HOST_INSTALL_FILE} -m ${NONBINMODE} ${DESTDIR}/usr/mdec/ofwboot \
     32 		${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/netboot
     33 
     34 	# install links to boot and installation utilities for various media
     35 .for linkdst linksrc in ${INSTALLATION_SYMLINKS}
     36 	rm -f ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/${linkdst}
     37 	ln -s ${linksrc} ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/${linkdst}
     38 .endfor
     39 
     40 	# compute checksums
     41 .for dir in ${MD_INSTALLATION_DIRS}
     42 	${MAKESUMS} -t ${RELEASEDIR}/${RELEASEMACHINEDIR}/${dir} '*'
     43 .endfor
     44