Makefile revision 1.21
1#	$NetBSD: Makefile,v 1.21 2022/01/03 12:10:17 martin Exp $
2
3.include <bsd.own.mk>
4
5INSTIMGBASE=	NetBSD-${DISTRIBVER}-amd64-install	# gives ${IMGBASE}.img
6
7INSTIMAGEMB?=	2250			# for all installation binaries
8
9PRIMARY_BOOT=		bootxx_ffsv1
10SECONDARY_BOOT=		boot
11SECONDARY_BOOT_ARG=	# unnecessary
12EFIBOOT=		${WORKDIR}/usr/mdec/bootx64.efi
13EFIBOOT+=		${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
17USE_MBR=		yes
18USE_GPT=		yes
19USE_GPTMBR=		yes
20
21CLEANFILES+=	boot.cfg
22
23prepare_md_post:
24	${TOOL_SED}							\
25	    -e "s/@@MACHINE@@/${MACHINE}/"				\
26	    -e "s/@@VERSION@@/${DISTRIBVER}/"				\
27	    < ${.CURDIR}/boot.cfg.in > boot.cfg
28
29DISTRIBDIR!= cd ${.CURDIR}/../.. ; pwd
30
31SPEC_EXTRA=		${.CURDIR}/spec.inst
32IMGFILE_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