Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.97 KB

File metadata and controls

37 lines (24 loc) · 1.97 KB

Builds device tree blob overlays.

dtbo

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

dtbo(name, deps, srcs, out, dtcopts)

Build a base devicetree blob overlay (DTBO).

Example:

dtbo(
    name = "baz",
    srcs = ["baz.dtso"],
)

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 .dtso 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 .dtbo.

Default is name + ".dtbo", if name does not end with .dtbo; otherwise name.
String optional ""
dtcopts List of flags to dtc. List of strings optional []