1 # $NetBSD: Makefile,v 1.4 2014/07/26 19:34:08 dholland Exp $ 2 3 .include <bsd.own.mk> 4 5 INSTIMGBASE= NetBSD-${DISTRIBVER}-i386-install # gives ${IMGBASE}.img 6 7 BOOTDISK= sd0 # for USB flash etc. 8 INSTIMAGEMB?= 512 # for all installation binaries 9 10 PRIMARY_BOOT= bootxx_ffsv1 11 SECONDARY_BOOT= boot 12 SECONDARY_BOOT_ARG= # unnecessary 13 14 USE_MBR= yes 15 16 CLEANFILES+= boot.cfg 17 18 prepare_md_post: 19 ${TOOL_SED} \ 20 -e "s/@@MACHINE@@/${MACHINE}/" \ 21 -e "s/@@VERSION@@/${DISTRIBVER}/" \ 22 < ${.CURDIR}/boot.cfg.in > boot.cfg 23 24 DISTRIBDIR!= cd ${.CURDIR}/../.. ; pwd 25 SYSINSTDIR!= cd ${.CURDIR}/../../../usr.sbin/sysinst/arch/${MACHINE} && ${PRINTOBJDIR} 26 27 SPEC_EXTRA= ${.CURDIR}/spec.inst 28 IMGFILE_EXTRA= \ 29 ${DISTRIBDIR}/common/10-resolv.conf libexec/dhcpcd-hooks \ 30 ${DISTRIBDIR}/common/99-print-sysinst libexec/dhcpcd-hooks \ 31 ${.CURDIR}/etc.ttys etc/ttys \ 32 ${.CURDIR}/etc.rc etc/rc \ 33 ${.CURDIR}/install.sh . \ 34 ${.OBJDIR}/boot.cfg . \ 35 ${SYSINSTDIR}/sysinstmsgs.de . \ 36 ${SYSINSTDIR}/sysinstmsgs.es . \ 37 ${SYSINSTDIR}/sysinstmsgs.fr . \ 38 ${SYSINSTDIR}/sysinstmsgs.pl . \ 39 ${SYSINSTDIR}/sysinst . 40 41 .include "${DISTRIBDIR}/common/bootimage/Makefile.installimage" 42