Builds device tree blobs.
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 |