Home | History | Annotate | Line # | Download | only in dtb
      1 #	$NetBSD: Makefile,v 1.10 2026/03/31 20:24:19 yurix Exp $
      2 
      3 TARGETS+=	dtblist
      4 
      5 .include <bsd.own.mk>
      6 
      7 .if !empty(MACHINE_ARCH:Mearmv[567]*)
      8 SUBDIR+=	arm
      9 .endif
     10 
     11 .if !empty(MACHINE_ARCH:Maarch64*)
     12 SUBDIR+=	arm64
     13 .endif
     14 
     15 .if !empty(MACHINE_ARCH:Mriscv*)
     16 SUBDIR+=	riscv
     17 .endif
     18 
     19 .include <bsd.subdir.mk>
     20 
     21 # Regenerate MD set lists in distrib/sets/lists/dtb. Run this whenever
     22 # new dts files are imported. You might want to invoke this with the make from
     23 # your TOOLDIR: '/path/to/tooldir/bin/nbmake USETOOLS=no update-sets
     24 
     25 TARGET_ARCH_LIST=	earmv5 earmv5hf
     26 TARGET_ARCH_LIST+=	earmv6 earmv6hf earmv6eb earmv6hfeb
     27 TARGET_ARCH_LIST+=	earmv7 earmv7hf earmv7hf earmv7hfeb
     28 TARGET_ARCH_LIST+=	aarch64 aarch64eb
     29 TARGET_ARCH_LIST+=	riscv32 riscv64
     30 
     31 update-sets:
     32 .for _arch in ${TARGET_ARCH_LIST}
     33 	(echo '# $$''NetBSD''$$'; \
     34 	 echo '#'; \
     35 	 echo '# DO NOT EDIT THIS FILE MANUALLY'; \
     36 	 echo '# Generated by "make update-sets" in sys/dtb'; \
     37 	 echo '#'; \
     38 	 ${MAKE} MACHINE_ARCH=${_arch} dtblist | grep '^[\.#]' | column -t | \
     39 	    sort -u) > ${.CURDIR}/../../distrib/sets/lists/dtb/ad.${_arch}
     40 .endfor
     41