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