Makefile.inc revision 1.31
11.31Sjmmv#	$NetBSD: Makefile.inc,v 1.31 2025/01/11 14:33:31 jmmv 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.29Srin.if !${MACHINE_MIPS64}
121.29Srin# 32-bit common
131.29SrinKERNEL_SETS=		ALCHEMY DBAU1500 DBAU1550 MALTA MIPSSIM
141.29SrinBUILD_KERNELS=		INSTALL_MALTA
151.12Smatt
161.29Srin. if ${MACHINE_ARCH} == "mipsel"
171.29SrinKERNEL_SETS+=		CI20 CPMBR1400 GDIUM MTX-1 OMSAL400 P4032 P5064 P6032
181.29SrinBUILD_KERNELS+=		INSTALL_CI20 INSTALL_OMSAL400
191.29Srin. else
201.29SrinKERNEL_SETS+=		DB120 RB433UAH
211.29Srin. endif
221.14Smatt
231.29Srin.else
241.29Srin# 64-bit common
251.13SmattKERNEL_SETS=		MALTA32 MALTA64 XLSATX32 XLSATX64
261.12SmattBUILD_KERNELS=		INSTALL_MALTA32 INSTALL_MALTA64
271.13SmattBUILD_KERNELS+=		INSTALL_XLSATX32 INSTALL_XLSATX64
281.27SskrllKERNEL_SETS+=		MIPSSIM64
291.10Sgdamore
301.26Schristos. if !empty(MACHINE_ARCH:Mmips*64el)
311.14SmattKERNEL_SETS+=		P5064-64
321.18SbouyerKERNEL_SETS+=		LOONGSON
331.18SbouyerBUILD_KERNELS+=		INSTALL_LOONGSON
341.17SmattKERNEL_SETS+=		GDIUM64
351.22Smrg. else
361.23SsimonbKERNEL_SETS+=		OCTEON
371.23SsimonbBUILD_KERNELS+=		INSTALL_OCTEON
381.22Smrg. endif
391.8She.endif
401.10Sgdamore
411.22Smrg# SBMIPS has a kernel for all targets
421.26SchristosKERNEL_SETS+=		SBMIPS${MACHINE_ARCH:S/mipsn//:S/mips//:C/e[lb]//}
431.24Sjmcneill
441.24Sjmcneill# Support for mkimage
451.24SjmcneillMKIMAGE= 	${NETBSDSRCDIR}/distrib/utils/embedded/mkimage
461.24SjmcneillIMAGE.rel=      ${RELEASEDIR}/${RELEASEMACHINEDIR}
471.24SjmcneillIMAGE.dir=      ${IMAGE.rel}/binary/gzimg
481.24SjmcneillIMAGE.kern=     ${IMAGE.rel}/binary/kernel
491.24Sjmcneill.if !empty(MACHINE_ARCH:M*eb)
501.24SjmcneillIMAGEENDIAN=	be
511.24Sjmcneill.else
521.24SjmcneillIMAGEENDIAN=	le
531.24Sjmcneill.endif
541.24Sjmcneill
551.24Sjmcneill__mkimage: .USE
561.24Sjmcneill	TOOL_MAKE=${MAKE} \
571.24Sjmcneill	TOOL_MAKEFS=${TOOL_MAKEFS} \
581.24Sjmcneill	TOOL_DISKLABEL=${TOOL_DISKLABEL} \
591.24Sjmcneill	TOOL_FDISK=${TOOL_FDISK} \
601.24Sjmcneill	TOOL_GPT=${TOOL_GPT} \
611.24Sjmcneill	TOOL_GZIP=${TOOL_GZIP} \
621.24Sjmcneill	TOOL_MKNOD=${TOOL_MKNOD} \
631.24Sjmcneill	TOOL_PAX=${TOOL_PAX} \
641.24Sjmcneill	TOOL_MKUBOOTIMAGE=${TOOL_MKUBOOTIMAGE} \
651.24Sjmcneill	TOOL_MTREE=${TOOL_MTREE} \
661.31Sjmmv	TOOL_SED=${TOOL_SED} \
671.31Sjmmv	TOOL_PWD_MKDB=${TOOL_PWD_MKDB} \
681.24Sjmcneill	HOST_SH=${HOST_SH} \
691.24Sjmcneill	KERNOBJDIR=${KERNOBJDIR} \
701.24Sjmcneill	MACHINE=${MACHINE} \
711.24Sjmcneill	MKDTB=${MKDTB} \
721.30Sjmmv	MKPOSTFIX=${MKPOSTFIX} \
731.24Sjmcneill	${HOST_SH} ${MKIMAGE} -h ${.TARGET:S/smp_//} -D ${DESTDIR} \
741.24Sjmcneill            -S ${NETBSDSRCDIR} -B ${IMAGEENDIAN} ${MKI_OPTS.${.TARGET}} \
751.24Sjmcneill            ${IMAGE.dir}/${.TARGET:S/smp_//}.img.gz
761.24Sjmcneill
771.26Schristos.if !empty(MACHINE_ARCH:Mmips*64eb)
781.24Sjmcneillsmp_octeon: __mkimage
791.24SjmcneillMKI_OPTS.smp_octeon=	-K ${IMAGE.kern}
801.24SjmcneillSNAP_MD_POST_DEPS+=	smp_octeon
811.24SjmcneillINSTALLATION_DIRS+=	binary/gzimg
821.24Sjmcneill.endif
831.24Sjmcneill
841.24Sjmcneillsnap_md_post: check_DESTDIR check_RELEASEDIR snap_post .WAIT ${SNAP_MD_POST_DEPS}
85