11.7Sskrll#	$NetBSD: Makefile,v 1.7 2025/10/09 06:15:17 skrll Exp $
21.1Sjmcneill
31.1SjmcneillDTSARCH=	arm
41.1SjmcneillDTSGNUARCH=	arm
51.1Sjmcneill
61.1SjmcneillARCHDTSDIR=	$S/external/gpl2/dts/dist/arch/arm/boot/dts
71.1Sjmcneill
81.1Sjmcneill.if !empty(MACHINE_ARCH:Mearmv6*)
91.1SjmcneillDTSMAKEVARS=	CONFIG_ARCH_BCM2835=y
101.1Sjmcneill.elif !empty(MACHINE_ARCH:Mearmv7*)
111.1SjmcneillDTSMAKEVARS=	CONFIG_SOC_AM33XX=y		\
121.1Sjmcneill		CONFIG_ARCH_BCM2835=y		\
131.1Sjmcneill		CONFIG_ARCH_EXYNOS5=y		\
141.2Sskrll		CONFIG_SOC_IMX6Q=y		\
151.6Sbouyer		CONFIG_SOC_IMX6SX=y		\
161.3Sjmcneill		CONFIG_SOC_IMX7D=y		\
171.1Sjmcneill		CONFIG_MACH_MESON8=y		\
181.1Sjmcneill		CONFIG_ARCH_OMAP3=y		\
191.4Sjmcneill		CONFIG_ARCH_INTEL_SOCFPGA=y	\
201.5Sjmcneill		CONFIG_ARCH_ROCKCHIP=y		\
211.1Sjmcneill		CONFIG_MACH_SUN4I=y		\
221.1Sjmcneill		CONFIG_MACH_SUN5I=y		\
231.1Sjmcneill		CONFIG_MACH_SUN6I=y		\
241.1Sjmcneill		CONFIG_MACH_SUN7I=y		\
251.1Sjmcneill		CONFIG_MACH_SUN8I=y		\
261.1Sjmcneill		CONFIG_MACH_SUN9I=y		\
271.1Sjmcneill		CONFIG_ARCH_TEGRA_124_SOC=y	\
281.1Sjmcneill		CONFIG_ARCH_VEXPRESS=y		\
291.1Sjmcneill		CONFIG_ARCH_ZYNQ=y
301.1Sjmcneill.endif
311.1Sjmcneill
321.1SjmcneillDTSFILESCMD=	${MAKE} -C ${ARCHDTSDIR} ${DTSMAKEVARS} -v dtb-y
331.1SjmcneillDTS=		${DTSFILESCMD:sh}
341.1Sjmcneill
351.1Sjmcneill
361.1Sjmcneill# Extra .dts files from arch/arm/dts
371.1Sjmcneill.if !empty(MACHINE_ARCH:Mearmv7*)
381.1SjmcneillDTS+=		sun5i-r8-pocketchip.dts
391.1SjmcneillDTS+=		sun7i-a20-olinuxino-lime2-emmc-spi.dts
401.1SjmcneillDTS+=		sun8i-h2-plus-bananapi-p2-zero.dts
411.1SjmcneillDTS+=		sun8i-h3-nanopi-r1.dts
421.7Sskrll.elif !empty(MACHINE_ARCH:Mearmv5*)
431.7SskrllDTS+=		imx23-olinuxino.dts
441.1Sjmcneill.endif
451.1Sjmcneill
461.1Sjmcneill.include <bsd.dtb.mk>
47