This module implements the language-specific toolchain rule.
load("@rules_devicetree//devicetree:toolchain.bzl", "devicetree_toolchain")
devicetree_toolchain(name, default_dtcopts, dtc, fdtoverlay, preprocess)
Defines a devicetree toolchain.
For usage see https://docs.bazel.build/versions/main/toolchains.html#defining-toolchains.
ATTRIBUTES
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this target. | Name | required | |
| default_dtcopts | Default list of flags to dtc | List of strings | optional | [] |
| dtc | devicetree compiler | Label | optional | None |
| fdtoverlay | executable to apply overlays | Label | optional | None |
| preprocess | Whether source files are preprocessed. If true, allow preprocessing directives in source files ( *.dts, *.dtso). The CC toolchain must be available.If false, preprocessing directives are not allowed. |
Boolean | required |