File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -1696,6 +1696,13 @@ def manage_repo():
1696
1696
),
1697
1697
)
1698
1698
1699
+ group .add_argument (
1700
+ "-f" ,
1701
+ "--family" ,
1702
+ metavar = "name" ,
1703
+ help = "Generate all files for specified mcu family." ,
1704
+ )
1705
+
1699
1706
parser .add_argument (
1700
1707
"-c" ,
1701
1708
"--cube" ,
@@ -1775,11 +1782,15 @@ def manage_repo():
1775
1782
)
1776
1783
1777
1784
for mcu_file in mcu_list :
1778
- print ("Generating files for '{}'..." .format (mcu_file .name ))
1779
-
1780
1785
# Open input file
1781
1786
xml_mcu = parse (str (mcu_file ))
1782
1787
parse_mcu_file ()
1788
+ # Generate only for one family
1789
+ if args .family and args .family .upper () not in mcu_family :
1790
+ xml_mcu .unlink ()
1791
+ continue
1792
+
1793
+ print ("Generating files for '{}'..." .format (mcu_file .name ))
1783
1794
if not gpiofile :
1784
1795
print ("Could not find GPIO file" )
1785
1796
quit ()
You can’t perform that action at this time.
0 commit comments