Makefile revision 1.5 1 # $NetBSD: Makefile,v 1.5 2020/06/02 10:41:30 jmcneill Exp $
2
3 .include <bsd.own.mk>
4
5 INSTIMGBASE= NetBSD-${DISTRIBVER}-${MACHINE_ARCH}-install # gives ${IMGBASE}.img
6
7 .if ${MKDEBUG:Uno} != "no"
8 INSTIMAGEMB?= 2000 # for all installation binaries w/ debug
9 .else
10 INSTIMAGEMB?= 1550 # for all installation binaries
11 .endif
12
13 .if ${MACHINE_ARCH} == "aarch64"
14 EFIBOOT= ${WORKDIR}/usr/mdec/bootaa64.efi
15 KERN_SET= kern-GENERIC64
16 .elif ${MACHINE_ARCH} == "earmv7hf"
17 EFIBOOT+= ${WORKDIR}/usr/mdec/bootarm.efi
18 KERN_SET= kern-GENERIC
19 .endif
20
21 USE_GPT= yes
22
23 DISTRIBDIR!= cd ${.CURDIR}/../.. ; pwd
24 SYSINSTDIR!= cd ${.CURDIR}/../../../usr.sbin/sysinst/arch/${MACHINE} && ${PRINTOBJDIR}
25
26 SPEC_EXTRA= ${.CURDIR}/spec.inst
27 IMGFILE_EXTRA= \
28 ${.CURDIR}/etc.ttys etc/ttys \
29 ${.CURDIR}/etc.rc etc/rc \
30 ${.CURDIR}/install.sh . \
31 ${SYSINSTDIR}/sysinstmsgs.de . \
32 ${SYSINSTDIR}/sysinstmsgs.es . \
33 ${SYSINSTDIR}/sysinstmsgs.fr . \
34 ${SYSINSTDIR}/sysinstmsgs.pl . \
35 ${SYSINSTDIR}/sysinst .
36
37 MD_IMGDIR_EXCLUDE= -s ',./binary/gzimg.*,,gp'
38 MD_IMGDIR_EXCLUDE+= -s ',./installation/instkernel.*,,gp'
39 MD_IMGDIR_EXCLUDE+= -s ',./installation/ramdisk.*,,gp'
40
41 .include "${NETBSDSRCDIR}/distrib/common/bootimage/Makefile.installimage"
42