Skip to content

Commit dad2d1b

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

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
@@ -1716,7 +1716,7 @@ def manage_repo():
17161716
templates_dir = cur_dir / "templates"
17171717
mcu_family_dir = ""
17181718
filtered_family = ""
1719-
filtered_mcu_file = ""
1719+
# filtered_mcu_file = ""
17201720
periph_c_filename = "PeripheralPins.c"
17211721
pinvar_h_filename = "PinNamesVar.h"
17221722
config_filename = Path("variant_config.json")
@@ -1778,18 +1778,18 @@ def manage_repo():
17781778
help="list available xml files description in database",
17791779
action="store_true",
17801780
)
1781-
group.add_argument(
1782-
"-m",
1783-
"--mcu",
1784-
metavar="xml",
1785-
help=textwrap.dedent(
1786-
"""\
1787-
Generate all files for specified mcu xml file description in database.
1788-
This xml file can contain non alpha characters in its name,
1789-
you should call it with double quotes.
1790-
"""
1791-
),
1792-
)
1781+
# group.add_argument(
1782+
# "-m",
1783+
# "--mcu",
1784+
# metavar="xml",
1785+
# help=textwrap.dedent(
1786+
# """\
1787+
# Generate all files for specified mcu xml file description in database.
1788+
# This xml file can contain non alpha characters in its name,
1789+
# you should call it with double quotes.
1790+
# """
1791+
# ),
1792+
# )
17931793

17941794
group.add_argument(
17951795
"-f",
@@ -1854,16 +1854,16 @@ def manage_repo():
18541854
db_release = release_match.group(1)
18551855
print("CubeMX DB release {}\n".format(db_release))
18561856

1857-
if args.mcu:
1858-
# Check input file exists
1859-
if not ((dirMCU / args.mcu).is_file()):
1860-
print("\n" + args.mcu + " file not found")
1861-
print("\nCheck in " + dirMCU + " the correct name of this file")
1862-
print("\nYou may use double quotes for file containing special characters")
1863-
quit()
1864-
# Get the family of the desired mcu file
1865-
filtered_mcu_file = dirMCU / args.mcu
1866-
filtered_family = get_mcu_family(filtered_mcu_file)
1857+
# if args.mcu:
1858+
# # Check input file exists
1859+
# if not ((dirMCU / args.mcu).is_file()):
1860+
# print("\n" + args.mcu + " file not found")
1861+
# print("\nCheck in " + dirMCU + " the correct name of this file")
1862+
# print("\nYou may use double quotes for file containing special characters")
1863+
# quit()
1864+
# # Get the family of the desired mcu file
1865+
# filtered_mcu_file = dirMCU / args.mcu
1866+
# filtered_family = get_mcu_family(filtered_mcu_file)
18671867
if args.family:
18681868
filtered_family = args.family.upper()
18691869
# Get all xml files
@@ -1951,7 +1951,7 @@ def manage_repo():
19511951
xml_mcu.unlink()
19521952
xml_gpio.unlink()
19531953

1954-
# Aggregating all genertaed files
1954+
# Aggregating all generated files
19551955
print("Aggregating all generated files...")
19561956
periperalpins_regex = re.compile(r"\S+\.xml")
19571957
variant_regex = re.compile(r"defined\(ARDUINO_GENERIC_[^\s&|]*\)")

0 commit comments

Comments
 (0)