1 # $NetBSD: Makefile,v 1.21 2022/01/03 12:10:17 martin Exp $ 2 3 .include <bsd.own.mk> 4 5 INSTIMGBASE= NetBSD-${DISTRIBVER}-amd64-install # gives ${IMGBASE}.img 6 7 INSTIMAGEMB?= 2250 # for all installation binaries 8 9 PRIMARY_BOOT= bootxx_ffsv1 10 SECONDARY_BOOT= boot 11 SECONDARY_BOOT_ARG= # unnecessary 12 EFIBOOT= ${WORKDIR}/usr/mdec/bootx64.efi 13 EFIBOOT+= ${WORKDIR}/usr/mdec/bootia32.efi 14 #EFIBOOT= ${.OBJDIR}/../../../sys/arch/i386/stand/efiboot/bootx64/bootx64.efi 15 #EFIBOOT+= ${.OBJDIR}/../../../sys/arch/i386/stand/efiboot/bootia32/bootia32.efi 16 17 USE_MBR= yes 18 USE_GPT= yes 19 USE_GPTMBR= yes 20 21 CLEANFILES+= boot.cfg 22 23 prepare_md_post: 24 ${TOOL_SED} \ 25 -e "s/@@MACHINE@@/${MACHINE}/" \ 26 -e "s/@@VERSION@@/${DISTRIBVER}/" \ 27 < ${.CURDIR}/boot.cfg.in > boot.cfg 28 29 DISTRIBDIR!= cd ${.CURDIR}/../.. ; pwd 30 31 SPEC_EXTRA= ${.CURDIR}/spec.inst 32 IMGFILE_EXTRA= \ 33 ${.CURDIR}/etc.ttys etc/ttys \ 34 ${.CURDIR}/etc.rc etc/rc \ 35 ${.CURDIR}/install.sh . \ 36 ${.OBJDIR}/boot.cfg . 37 38 .include "${NETBSDSRCDIR}/distrib/common/bootimage//Makefile.installimage" 39