Skip to content

Commit 4893191

Browse files
Fin MaaßChromeos LUCI
authored andcommitted
scripts: Fix bindings style migration script
the script is in the utils subdir, which it didn't knew. (cherry picked from commit 0d8f41b) Original-Signed-off-by: Fin Maaß <[email protected]> GitOrigin-RevId: 0d8f41b Cr-Build-Id: 8711682253588645601 Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8711682253588645601 Copybot-Job-Name: zephyr-main-copybot-downstream Change-Id: I014f9bf27ad02a901f8bc8b42993ef731a508b61 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/6655867 Tested-by: ChromeOS Copybot <[email protected]> Tested-by: Yuval Peress <[email protected]> Commit-Queue: Keith Short <[email protected]> Reviewed-by: Yuval Peress <[email protected]> Reviewed-by: Keith Short <[email protected]> Tested-by: Keith Short <[email protected]>
1 parent a7e1690 commit 4893191

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/releases/migration-guide-4.2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Devicetree
102102

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

107107

108108
DAI

scripts/utils/migrate_bindings_style.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# bindings base
1818
BINDINGS_PATH = [Path("dts/bindings/")]
1919
BINDINGS_PROPERTIES_AL = None
20-
with open(Path(__file__).parent / 'bindings_properties_allowlist.yaml') as f:
20+
with open(Path(__file__).parents[1] / 'bindings_properties_allowlist.yaml') as f:
2121
allowlist = yaml.safe_load(f.read())
2222
if allowlist is not None:
2323
BINDINGS_PROPERTIES_AL = set(allowlist)

0 commit comments

Comments
 (0)