1 # $NetBSD: Makefile.inc,v 1.13 2024/06/08 13:07:48 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 # XXX: files in ${DISTRIB_CDROMDIR} should be moved under distrib/macppc/cdrom? 21 DISTRIB_CDROMDIR= ${NETBSDSRCDIR}/distrib/cdrom 22 23 BOOTHFS= boothfs 24 UUDECODE_FILES= ${BOOTHFS} 25 .SUFFIXES: .uue 26 .PATH.uue: ${DISTRIB_CDROMDIR} 27 28 MKISOFS_FLAGS+= -hide-rr-moved \ 29 -hfs -part -hide-hfs-list ${DISTRIB_CDROMDIR}/hide-hfs.lst \ 30 --macbin -map ${DISTRIB_CDROMDIR}/hfsmap.lst \ 31 -hide-joliet-list ${DISTRIB_CDROMDIR}/hide-jol.lst \ 32 -boot-hfs-file ${.OBJDIR}/${BOOTHFS} 33 # exclude large debug sets to avoid 700MB overflow 34 MKISOFS_FLAGS+= -m debug.tgz -m xdebug.tgz 35 36 MD_DISTRIBDIR= ${NETBSDSRCDIR}/distrib/${MACHINE} 37 CDINSTKERNEL= ${MD_DISTRIBDIR}/floppies/md-kernel 38 _INSTKERNELNOBJDIR!= cd ${CDINSTKERNEL} && ${PRINTOBJDIR} 39 CDKERNELS= netbsd-INSTALL.gz netbsd 40 CDKERNELS+= netbsd-INSTALL_601.gz netbsd.601 41 42 iso-image-md-pre: ${BOOTHFS} 43 .for kernel target in ${CDKERNELS} 44 ${INSTALL} ${COPY} -m 0644 \ 45 ${_INSTKERNELNOBJDIR}/${kernel} ${CDROM.dir}/${target} 46 .endfor 47 ${INSTALL} ${COPY} -m 0644 ${DESTDIR}/usr/mdec/ofwboot ${CDROM.dir} 48 ${INSTALL} ${COPY} -m 0644 ${DESTDIR}/usr/mdec/ofwboot.xcf ${CDROM.dir} 49 50 iso-image: do-iso-image 51 52 iso-image-md-post: 53 ${TOOL_MACPPCINSTALLBOOT} ${CDROM_IMAGE} \ 54 ${DESTDIR}/usr/mdec/bootxx /ofwboot 55