Home | History | Annotate | Line # | Download | only in etc.macppc
      1 #	$NetBSD: Makefile.inc,v 1.14 2024/09/15 03:56:57 tsutsui Exp $
      2 #
      3 #	etc.macppc/Makefile.inc -- macppc-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} != "powerpc64"
     10 KERNEL_SETS=		GENERIC GENERIC.MP GENERIC_601 POWERMAC_G5 \
     11 			POWERMAC_G5.MP
     12 
     13 BUILD_KERNELS+=		INSTALL INSTALL_601 GENERIC_MD
     14 
     15 INSTALLATION_DIRS+=	installation/floppy
     16 .endif
     17 
     18 # For "make iso-image"
     19 # mkisofs arguments to create a hybrid (HFS/Rockridge) CD-ROM image.
     20 ETCMACHINEDIR=		${.CURDIR}/etc.${MACHINE}
     21 
     22 BOOTHFS=		${DESTDIR}/usr/mdec/boothfs
     23 
     24 MKISOFS_FLAGS+=	-hide-rr-moved \
     25 	-hfs -part -hide-hfs-list ${ETCMACHINEDIR}/hide-hfs.lst \
     26 	--macbin -map ${ETCMACHINEDIR}/hfsmap.lst \
     27 	-hide-joliet-list ${ETCMACHINEDIR}/hide-jol.lst \
     28 	-boot-hfs-file ${BOOTHFS}
     29 # exclude large debug sets to avoid 700MB overflow
     30 MKISOFS_FLAGS+=	-m debug.tgz -m xdebug.tgz
     31 
     32 MD_DISTRIBDIR=	${NETBSDSRCDIR}/distrib/${MACHINE}
     33 CDINSTKERNEL=	${MD_DISTRIBDIR}/floppies/md-kernel
     34 _INSTKERNELNOBJDIR!=	cd ${CDINSTKERNEL} && ${PRINTOBJDIR}
     35 CDKERNELS=	netbsd-INSTALL.gz netbsd
     36 CDKERNELS+=	netbsd-INSTALL_601.gz netbsd.601
     37 
     38 iso-image-md-pre: ${BOOTHFS}
     39 .for kernel target in ${CDKERNELS}
     40 	${INSTALL} ${COPY} -m 0644 \
     41 		${_INSTKERNELNOBJDIR}/${kernel} ${CDROM.dir}/${target}
     42 .endfor
     43 	${INSTALL} ${COPY} -m 0644 ${DESTDIR}/usr/mdec/ofwboot ${CDROM.dir}
     44 	${INSTALL} ${COPY} -m 0644 ${DESTDIR}/usr/mdec/ofwboot.xcf ${CDROM.dir}
     45 
     46 iso-image: do-iso-image
     47 
     48 iso-image-md-post:
     49 	${TOOL_MACPPCINSTALLBOOT} ${CDROM_IMAGE} \
     50 		${DESTDIR}/usr/mdec/bootxx /ofwboot
     51