NetBSD/sys/dtb/Makefile

34 lines
841 B
Makefile

# $NetBSD: Makefile,v 1.4 2020/05/23 02:11:24 rin Exp $
TARGETS+= dtblist
.include <bsd.own.mk>
.if !empty(MACHINE_ARCH:Mearmv[67]*)
SUBDIR+= arm
.endif
.if !empty(MACHINE_ARCH:Maarch64*)
SUBDIR+= arm64
.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
update-sets:
.for _arch in ${TARGET_ARCH_LIST}
(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 | \
sort) > ${.CURDIR}/../../distrib/sets/lists/dtb/ad.${_arch}
.endfor