NetBSD/sys/dtb/Makefile

39 lines
940 B
Makefile
Raw Normal View History

2022-09-11 15:46:41 +03:00
# $NetBSD: Makefile,v 1.7 2022/09/11 12:46:41 christos Exp $
TARGETS+= dtblist
.include <bsd.own.mk>
.if !empty(MACHINE_ARCH:Mearmv[67]*)
SUBDIR+= arm
.endif
.if !empty(MACHINE_ARCH:Maarch64*)
SUBDIR+= arm64
.endif
2021-11-13 13:13:42 +03:00
.if !empty(MACHINE_ARCH:Mriscv*)
SUBDIR+= riscv
.endif
.include <bsd.subdir.mk>
# Regenerate MD set lists in distrib/sets/lists/dtb. Run this whenever
# new dts files are imported.
TARGET_ARCH_LIST= earmv6 earmv6hf earmv6eb earmv6hfeb
TARGET_ARCH_LIST+= earmv7 earmv7hf earmv7hf earmv7hfeb
TARGET_ARCH_LIST+= aarch64 aarch64eb
2021-11-13 13:13:42 +03:00
TARGET_ARCH_LIST+= riscv32 riscv64
update-sets:
.for _arch in ${TARGET_ARCH_LIST}
2020-05-23 05:11:24 +03:00
(echo '# $$''NetBSD''$$'; \
echo '#'; \
echo '# DO NOT EDIT THIS FILE MANUALLY'; \
echo '# Generated by "make update-sets" in sys/dtb'; \
echo '#'; \
${MAKE} MACHINE_ARCH=${_arch} dtblist | grep '^[\.#]' | column -t | \
2022-09-11 15:46:41 +03:00
sort -u) > ${.CURDIR}/../../distrib/sets/lists/dtb/ad.${_arch}
.endfor