Skip to content

Commit 09d0eb1

Browse files
committed
[stm32variant] Comment option to generate from one mcu file
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 1426a7b commit 09d0eb1

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

CI/utils/stm32variant.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,7 @@ def manage_repo():
17241724
templates_dir = cur_dir / "templates"
17251725
mcu_family_dir = ""
17261726
filtered_family = ""
1727-
filtered_mcu_file = ""
1727+
# filtered_mcu_file = ""
17281728
periph_c_filename = "PeripheralPins.c"
17291729
pinvar_h_filename = "PinNamesVar.h"
17301730
config_filename = Path("variant_config.json")
@@ -1786,18 +1786,18 @@ def manage_repo():
17861786
help="list available xml files description in database",
17871787
action="store_true",
17881788
)
1789-
group.add_argument(
1790-
"-m",
1791-
"--mcu",
1792-
metavar="xml",
1793-
help=textwrap.dedent(
1794-
"""\
1795-
Generate all files for specified mcu xml file description in database.
1796-
This xml file can contain non alpha characters in its name,
1797-
you should call it with double quotes.
1798-
"""
1799-
),
1800-
)
1789+
# group.add_argument(
1790+
# "-m",
1791+
# "--mcu",
1792+
# metavar="xml",
1793+
# help=textwrap.dedent(
1794+
# """\
1795+
# Generate all files for specified mcu xml file description in database.
1796+
# This xml file can contain non alpha characters in its name,
1797+
# you should call it with double quotes.
1798+
# """
1799+
# ),
1800+
# )
18011801

18021802
group.add_argument(
18031803
"-f",
@@ -1862,16 +1862,16 @@ def manage_repo():
18621862
db_release = release_match.group(1)
18631863
print("CubeMX DB release {}\n".format(db_release))
18641864

1865-
if args.mcu:
1866-
# Check input file exists
1867-
if not ((dirMCU / args.mcu).is_file()):
1868-
print("\n" + args.mcu + " file not found")
1869-
print("\nCheck in " + dirMCU + " the correct name of this file")
1870-
print("\nYou may use double quotes for file containing special characters")
1871-
quit()
1872-
# Get the family of the desired mcu file
1873-
filtered_mcu_file = dirMCU / args.mcu
1874-
filtered_family = get_mcu_family(filtered_mcu_file)
1865+
# if args.mcu:
1866+
# # Check input file exists
1867+
# if not ((dirMCU / args.mcu).is_file()):
1868+
# print("\n" + args.mcu + " file not found")
1869+
# print("\nCheck in " + dirMCU + " the correct name of this file")
1870+
# print("\nYou may use double quotes for file containing special characters")
1871+
# quit()
1872+
# # Get the family of the desired mcu file
1873+
# filtered_mcu_file = dirMCU / args.mcu
1874+
# filtered_family = get_mcu_family(filtered_mcu_file)
18751875
if args.family:
18761876
filtered_family = args.family.upper()
18771877
# Get all xml files
@@ -1961,7 +1961,7 @@ def manage_repo():
19611961
xml_mcu.unlink()
19621962
xml_gpio.unlink()
19631963

1964-
# Aggregating all genertaed files
1964+
# Aggregating all generated files
19651965
print("Aggregating all generated files...")
19661966
periperalpins_regex = re.compile(r"\S+\.xml")
19671967
variant_regex = re.compile(r"defined\(ARDUINO_GENERIC_[^\s&|]*\)")

0 commit comments

Comments
 (0)