scripts: fully redesign STM32Cube update scripts
Define class Stm32SerieUpdate
Use Pathlib instead of os.path
Add CLI option to provide directory path where to clone
STM32Cube repo (-r <repo_path>)
Reformat README.rst
Add *.pyc to .gitignore
Refactor variable naming (mainly paths),
* to be fully compilant with PEP8
* to be more understandable
* to simplify maintenance
Usage changed. Basic usage:
* update a single serie:
'python3 update_stm32_package.py -s <stm32_serie>'
* update all serie at once:
'python3 update_stm32_package.py
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
4 files changed