xref: /netbsd-src/distrib/i386/installimage/Makefile (revision d08ab2c58e05af8ceaee652e3d276e2aafaac880)
1#	$NetBSD: Makefile,v 1.22 2021/12/31 16:43:04 christos Exp $
2
3.include <bsd.own.mk>
4
5INSTIMGBASE=	NetBSD-${DISTRIBVER}-i386-install	# gives ${IMGBASE}.img
6
7INSTIMAGEMB?=	3000			# for all installation binaries
8
9PRIMARY_BOOT=		bootxx_ffsv1
10SECONDARY_BOOT=		boot
11SECONDARY_BOOT_ARG=	# unnecessary
12
13USE_MBR=		yes
14
15CLEANFILES+=	boot.cfg
16
17prepare_md_post:
18	${TOOL_SED}							\
19	    -e "s/@@MACHINE@@/${MACHINE}/"				\
20	    -e "s/@@VERSION@@/${DISTRIBVER}/"				\
21	    < ${.CURDIR}/boot.cfg.in > boot.cfg
22
23DISTRIBDIR!= cd ${.CURDIR}/../.. ; pwd
24SYSINSTDIR!= cd ${.CURDIR}/../../../usr.sbin/sysinst/arch/${MACHINE} && ${PRINTOBJDIR}
25
26SPEC_EXTRA=		${.CURDIR}/spec.inst
27IMGFILE_EXTRA=								\
28	${.CURDIR}/etc.ttys		etc/ttys			\
29	${.CURDIR}/etc.rc		etc/rc				\
30	${.CURDIR}/install.sh		.				\
31	${.OBJDIR}/boot.cfg		.				\
32	${SYSINSTDIR}/sysinstmsgs.de	.				\
33	${SYSINSTDIR}/sysinstmsgs.es	.				\
34	${SYSINSTDIR}/sysinstmsgs.fr	.				\
35	${SYSINSTDIR}/sysinstmsgs.pl	.				\
36	${SYSINSTDIR}/sysinst		.
37
38.include "${DISTRIBDIR}/common/bootimage/Makefile.installimage"
39