dtb.mk 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. .include "dtb.build.mk"
  32. .if !target(install) && !target(realinstall)
  33. all: ${DTB} ${DTBO}
  34. realinstall: _dtbinstall
  35. .ORDER: beforeinstall _dtbinstall
  36. CLEANFILES+=${DTB} ${DTBO}
  37. .endif # !target(install) && !target(realinstall)
  38. .include <bsd.dep.mk>
  39. .include <bsd.obj.mk>
  40. .include <bsd.links.mk>