Skip to content

Commit ff37353

Browse files
Zhiqiang-Hoummahadevan108
authored andcommitted
scripts: pinctrl: update gen_soc_headers.py
For the i.MX91, the signal_configuration.xml was put under 'i_mx_2_0' instead of 'ksdk2_0', so add another search pattern for it. Signed-off-by: Hou Zhiqiang <[email protected]>
1 parent 0b86efa commit ff37353

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

mcux/scripts/pinctrl/gen_soc_headers.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22
#
3-
# Copyright 2023,2024 NXP
3+
# Copyright 2023-2025 NXP
44
#
55
# SPDX-License-Identifier: Apache-2.0
66

@@ -130,8 +130,11 @@ def main():
130130
# Pathlib glob returns an iteration, so use sum to count the length
131131
package_count = sum(1 for _ in proc_root.glob(search_pattern))
132132
if package_count == 0:
133-
print("No signal configuration files were found in this data pack")
134-
sys.exit(255)
133+
search_pattern = "*/i_mx_2_0/*/signal_configuration.xml"
134+
package_count = sum(1 for _ in proc_root.glob(search_pattern))
135+
if package_count == 0:
136+
print("No signal configuration files were found in this data pack")
137+
sys.exit(255)
135138
if args.copyright:
136139
# Add default copyright
137140
nxp_copyright = (f"Copyright {datetime.datetime.today().year}, NXP\n"

0 commit comments

Comments
 (0)