xref: /freebsd/sys/conf/dtb.mk (revision 3cbb4cc200f8a0ad7ed08233425ea54524a21f1c)
1# $FreeBSD$
2#
3# The include file <dtb.mk> handles building and installing dtb files.
4#
5# +++ variables +++
6#
7# DTC		The Device Tree Compiler to use
8#
9# DTS		List of the dts files to build and install.
10#
11# DTSO		List of the dts overlay files to build and install.
12#
13# DTBDIR	Base path for dtb modules [/boot/dtb]
14#
15# DTBOWN	.dtb file owner. [${BINOWN}]
16#
17# DTBGRP	.dtb file group. [${BINGRP}]
18#
19# DTBMODE	Module file mode. [${BINMODE}]
20#
21# DESTDIR	The tree where the module gets installed. [not set]
22#
23# +++ targets +++
24#
25#	install:
26#               install the kernel module; if the Makefile
27#               does not itself define the target install, the targets
28#               beforeinstall and afterinstall may also be used to cause
29#               actions immediately before and after the install target
30#		is executed.
31#
32
33.include "dtb.build.mk"
34
35.if !target(install) && !target(realinstall)
36all: ${DTB} ${DTBO}
37realinstall: _dtbinstall
38.ORDER: beforeinstall _dtbinstall
39
40CLEANFILES+=${DTB} ${DTBO}
41.endif # !target(install) && !target(realinstall)
42
43.include <bsd.dep.mk>
44.include <bsd.obj.mk>
45.include <bsd.links.mk>
46