Makefile.inc revision 1.24
11.24Sjmcneill#	$NetBSD: Makefile.inc,v 1.24 2020/07/17 15:16:34 jmcneill Exp $
21.4Slukem#
31.4Slukem#	etc.evbmips/Makefile.inc -- evbmips-specific etc Makefile targets
41.4Slukem#
51.1Ssimonb
61.11Spavel# If you change the list of distributed kernels, don't forget
71.11Spavel# to update the release documentation in distrib/notes/common/contents
81.11Spavel
91.21SskrllKERNEL_SUFFIXES=	srec ub elf32
101.8She
111.8She.if ${MACHINE_ARCH} == "mipsel"
121.19SjoergKERNEL_SETS=		ALCHEMY CI20 CPMBR1400 DBAU1500 DBAU1550 GDIUM
131.16SmattKERNEL_SETS+=		MALTA MTX-1 OMSAL400
141.19SjoergBUILD_KERNELS=		INSTALL_CI20 INSTALL_OMSAL400 INSTALL_MALTA
151.12Smatt
161.15SmattKERNEL_SETS+=		P4032 P5064 P6032
171.14Smatt
181.22Smrg. elif ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el"
191.13SmattKERNEL_SETS=		MALTA32 MALTA64 XLSATX32 XLSATX64
201.12SmattBUILD_KERNELS=		INSTALL_MALTA32 INSTALL_MALTA64
211.13SmattBUILD_KERNELS+=		INSTALL_XLSATX32 INSTALL_XLSATX64
221.10Sgdamore
231.22Smrg. if ${MACHINE_ARCH} == "mips64el"
241.14SmattKERNEL_SETS+=		P5064-64
251.18SbouyerKERNEL_SETS+=		LOONGSON
261.18SbouyerBUILD_KERNELS+=		INSTALL_LOONGSON
271.17SmattKERNEL_SETS+=		GDIUM64
281.22Smrg. else
291.23SsimonbKERNEL_SETS+=		OCTEON
301.23SsimonbBUILD_KERNELS+=		INSTALL_OCTEON
311.22Smrg. endif
321.10Sgdamore.else
331.14SmattKERNEL_SETS=		ALCHEMY DB120 DBAU1500 DBAU1550 MALTA RB433UAH
341.14SmattBUILD_KERNELS=		INSTALL_MALTA
351.10Sgdamore
361.8She.endif
371.10Sgdamore
381.22Smrg# SBMIPS has a kernel for all targets
391.22SmrgKERNEL_SETS+=		SBMIPS${MACHINE_ARCH:S/mips//:C/e[lb]//}
401.24Sjmcneill
411.24Sjmcneill# Support for mkimage
421.24SjmcneillMKIMAGE= 	${NETBSDSRCDIR}/distrib/utils/embedded/mkimage
431.24SjmcneillIMAGE.rel=      ${RELEASEDIR}/${RELEASEMACHINEDIR}
441.24SjmcneillIMAGE.dir=      ${IMAGE.rel}/binary/gzimg
451.24SjmcneillIMAGE.kern=     ${IMAGE.rel}/binary/kernel
461.24Sjmcneill.if !empty(MACHINE_ARCH:M*eb)
471.24SjmcneillIMAGEENDIAN=	be
481.24Sjmcneill.else
491.24SjmcneillIMAGEENDIAN=	le
501.24Sjmcneill.endif
511.24Sjmcneill
521.24Sjmcneill__mkimage: .USE
531.24Sjmcneill	TOOL_MAKE=${MAKE} \
541.24Sjmcneill	TOOL_MAKEFS=${TOOL_MAKEFS} \
551.24Sjmcneill	TOOL_DISKLABEL=${TOOL_DISKLABEL} \
561.24Sjmcneill	TOOL_FDISK=${TOOL_FDISK} \
571.24Sjmcneill	TOOL_GPT=${TOOL_GPT} \
581.24Sjmcneill	TOOL_GZIP=${TOOL_GZIP} \
591.24Sjmcneill	TOOL_MKNOD=${TOOL_MKNOD} \
601.24Sjmcneill	TOOL_PAX=${TOOL_PAX} \
611.24Sjmcneill	TOOL_MKUBOOTIMAGE=${TOOL_MKUBOOTIMAGE} \
621.24Sjmcneill	TOOL_MTREE=${TOOL_MTREE} \
631.24Sjmcneill	HOST_SH=${HOST_SH} \
641.24Sjmcneill	KERNOBJDIR=${KERNOBJDIR} \
651.24Sjmcneill	MACHINE=${MACHINE} \
661.24Sjmcneill	MKDTB=${MKDTB} \
671.24Sjmcneill	${HOST_SH} ${MKIMAGE} -h ${.TARGET:S/smp_//} -D ${DESTDIR} \
681.24Sjmcneill            -S ${NETBSDSRCDIR} -B ${IMAGEENDIAN} ${MKI_OPTS.${.TARGET}} \
691.24Sjmcneill            ${IMAGE.dir}/${.TARGET:S/smp_//}.img.gz
701.24Sjmcneill
711.24Sjmcneill.if ${MACHINE_ARCH} == "mips64eb"
721.24Sjmcneillsmp_octeon: __mkimage
731.24SjmcneillMKI_OPTS.smp_octeon=	-K ${IMAGE.kern}
741.24SjmcneillSNAP_MD_POST_DEPS+=	smp_octeon
751.24SjmcneillINSTALLATION_DIRS+=	binary/gzimg
761.24Sjmcneill.endif
771.24Sjmcneill
781.24Sjmcneillsnap_md_post: check_DESTDIR check_RELEASEDIR snap_post .WAIT ${SNAP_MD_POST_DEPS}
79