Lines Matching +full:bindings +full:- +full:dirs
3 # Copyright (c) 2019 - 2020 Nordic Semiconductor ASA
6 # SPDX-License-Identifier: Apache-2.0
12 # Bindings are files that describe devicetree nodes. Devicetree nodes are
13 # usually mapped to bindings via their 'compatible = "..."' property.
17 # Note: Do not access private (_-prefixed) identifiers from edtlib here (and
28 sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'python-devicetree',
48 "-Wno-simple_bus_reg" not in args.dtc_flags,
57 with open(args.dts_out, "w", encoding="utf-8") as f:
63 def parse_args() -> argparse.Namespace:
64 # Returns parsed command-line arguments
67 parser.add_argument("--dts", required=True, help="DTS file")
68 parser.add_argument("--dtc-flags",
71 parser.add_argument("--bindings-dirs", nargs='+', required=True,
72 help="directory with bindings in YAML format, "
74 parser.add_argument("--dts-out", required=True,
77 parser.add_argument("--edt-pickle-out",
79 parser.add_argument("--vendor-prefixes", action='append', default=[],
80 help="vendor-prefixes.txt path; used for validation; "
82 parser.add_argument("--edtlib-Werror", action="store_true",
83 help="if set, edtlib-specific warnings become errors. "
90 def write_pickled_edt(edt: edtlib.EDT, out_file: str) -> None:
105 def err(s: str) -> NoReturn: