Commit Graph

5 Commits

Author SHA1 Message Date
Erwan Gouriou 32e61c2ab9 scripts: update_sm32_package: Fix issue with common_ll directory
When running ./update_stm32_package.py, script breaks due to
unexpected presence of common_ll/ under stm32cube/ .
Skip update when this directory is parsed.

Additionally, update README to avoid recurrent issue when using
the script.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-02-18 13:52:00 -06:00
Alexandre Bourdiol 4304374c39 scripts: serie_update.py: add systematic compilation of '_hal_rcc_ex.c'
Add systematic compialtion of '..._hal_rcc_ex.c' in 'CMakeLists.txt'
generation. There is more and more dependence of HAL IP to
'..._hal_rcc_ex.c'

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2020-11-05 22:06:47 -06:00
Alexandre Bourdiol 00ba06a3c7 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>
2020-11-05 22:06:47 -06:00
Erwan Gouriou 49cd8ccc6f Licenses: Add Apache-2.0 SPDX when missing
Some files were missing explicit License information.
Add Apache-2.0 SPDX tag in these few cases.


Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2020-06-25 21:31:01 -05:00
Francois Ramu a9347d32a7 script: build new zephyr module from a new STM32Cube
For stm32 series, get the version tree found on
https://github.com/STMicroelectronics/STM32Cube
and apply patches to update module to the latest version
run with $ python ./scripts/update_stm32_package.py stm32xx

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2020-01-14 14:35:30 +01:00