Browse Source

scripts: Fix bindings style migration script

the script is in the utils subdir, which it didn't knew.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
pull/91052/head
Fin Maaß 3 weeks ago committed by Anas Nashif
parent
commit
0d8f41b594
  1. 2
      doc/releases/migration-guide-4.2.rst
  2. 2
      scripts/utils/migrate_bindings_style.py

2
doc/releases/migration-guide-4.2.rst

@ -102,7 +102,7 @@ Devicetree @@ -102,7 +102,7 @@ Devicetree
* Property names in devicetree and bindings use hyphens(``-``) as separators, and replacing
all previously used underscores(``_``). For local code, you can migrate property names in
bindings to use hyphens by running the ``scripts/migrate_bindings_style.py`` script.
bindings to use hyphens by running the ``scripts/utils/migrate_bindings_style.py`` script.
DAI

2
scripts/utils/migrate_bindings_style.py

@ -17,7 +17,7 @@ import yaml @@ -17,7 +17,7 @@ import yaml
# bindings base
BINDINGS_PATH = [Path("dts/bindings/")]
BINDINGS_PROPERTIES_AL = None
with open(Path(__file__).parent / 'bindings_properties_allowlist.yaml') as f:
with open(Path(__file__).parents[1] / 'bindings_properties_allowlist.yaml') as f:
allowlist = yaml.safe_load(f.read())
if allowlist is not None:
BINDINGS_PROPERTIES_AL = set(allowlist)

Loading…
Cancel
Save