1 # $NetBSD: Makefile,v 1.33 2019/12/16 11:00:30 skrll Exp $ 2 3 .include <bsd.own.mk> 4 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" 5 6 RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} 7 RAMDISK= ${RAMDISKDIR}/ramdisk.fs 8 SSHRAMDISKDIR!= cd ${.CURDIR}/../sshramdisk && ${PRINTOBJDIR} 9 SSHRAMDISK= ${SSHRAMDISKDIR}/sshramdisk.fs 10 11 .include "${NETBSDSRCDIR}/etc/etc.evbarm/Makefile.inc" 12 13 MDSETTARGETS= 14 .for i in ${BUILD_KERNELS:M*_INSTALL} 15 .if ${i} == "RPI_INSTALL" 16 MDSETTARGETS+= ${i} ${SSHRAMDISK} netbsd-${i} 17 MDSET_SUFFIXES.netbsd-${i}= img create-img 18 .else 19 MDSETTARGETS+= ${i} ${RAMDISK} - 20 .endif 21 .endfor 22 23 MDSET_RELEASEDIR= installation/instkernel 24 25 MDSET_SUFFIXES.-= srec create-srec img create-img 26 create-srec= ${OBJCOPY} -O srec ${.TARGET:R} ${.TARGET} 27 create-img= ${OBJCOPY} -O binary ${.TARGET:R} ${.TARGET} 28 29 .include "${DISTRIBDIR}/common/Makefile.mdset" 30 31 .include <bsd.prog.mk> 32