Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 2.18 KB

File metadata and controls

38 lines (25 loc) · 2.18 KB

Builds device tree blobs.

dtb

load("@rules_devicetree//devicetree:dtb.bzl", "dtb")

dtb(name, deps, srcs, out, dtcopts, generate_symbols)

Build a base devicetree blob (DTB).

Example:

dtb(
    name = "foo",
    srcs = ["foo.dts"],
)

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
deps List of devicetree_library() targets for .dtsi and .h inclusion.

Order matters. See devicetree_library(includes=) for details about ordering of include directories.
List of labels optional []
srcs List of sources.

There must be exactly one .dts file.

.dtsi and .h files in the same directory or subdirectories may also be specified if you do not need extra search directories (-i option to dtc). If you do need to pair search directories with .dtsi and .h files, use devicetree_library() and add them to deps.
List of labels optional []
out Output file name. This should end with .dtb.

Default is name + ".dtb", if name does not end with .dtb; otherwise name.
String optional ""
dtcopts List of flags to dtc. List of strings optional []
generate_symbols Enable generation of symbols (-@).

This is necessary if you are applying overlays on top of it.
Boolean optional False