-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
west.yml: Add hal gigadevice #38658
west.yml: Add hal gigadevice #38658
Conversation
The following west manifest projects have been modified in this Pull Request:
Note: This message is automatically posted and updated by the Manifest GitHub Action. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this effort, overall LGTM. I think that HAL should be compiled in a more efficient manner, as it is done, e.g. by STM32:
# create a library and include sources as needed, e.g.
zephyr_sources(standard_peripheral/Source/gd32e10x_adc.c)
# should become
zephyr_library_sources_ifdef(CONFIG_USE_GD32_HAL_ADC standard_peripheral/Source/gd32e10x_adc.c)
dfef522
to
27858b6
Compare
27858b6
to
e759c67
Compare
f1f1db3
to
703f6ed
Compare
703f6ed
to
93be130
Compare
rebase |
fac351c
to
3ef908e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor nits observed that you can address if you like.
Also please reply to this:
#38658 (comment)
Could you update the commit message, currently it states:
west.yml: Add gigadevice hal
This add modules/hal/gigadevice with three firmware libraries:
- GD32E10X ARM (Cortex-M4F)
- GD32F403 ARM (Cortex-M4F)
- GD32VF103 RISC-V (Nucleisys Bumblebee core)
but with your latest push, this commit does a lot more than just updating west.yml
3ef908e
to
6559679
Compare
Hi @tejlmand , Thank you for your comments.
You are right, I split commit to distinguish both details. Since review started a lot of changes were made, including move rules from module to zephyr. If it is required, I can move rules commit to #38661. |
Yes, this is common to happen as PR evolves. Having two commits is fine as long as the code is still bisectable, which seems to be the case in this PR, as the manifest commit is first commit.
No need, I think it is fine as it is. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I was wrong on this, the PR is not bisectable.
If trying to bisect, the first commit fails as the glue code is not present with the new Zephyr module, so please squash the commits into a single commit..
Error seen:
Parsing /projects/github/ncs/zephyr/Kconfig
/projects/github/ncs/zephyr/scripts/kconfig/kconfig.py: build/Kconfig/Kconfig.modules:8: Could not open '/projects/github/ncs/zephyr/' (in 'osource "$(ZEPHYR_HAL_GIGADEVICE_KCONFIG)"') (EISDIR: Is a directory)
CMake Error at /projects/github/ncs/zephyr/cmake/kconfig.cmake:269 (message):
command failed with return code: 1
Call Stack (most recent call first):
/projects/github/ncs/zephyr/cmake/app/boilerplate.cmake:542 (include)
/projects/github/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
/projects/github/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:60 (include_boilerplate)
CMakeLists.txt:5 (find_package)
-- Configuring incomplete, errors occurred!
6559679
to
4a5369a
Compare
Done! Below didn't pass CI because CONFIG_SOC_SERIES_GD32F403 is not yet defined.
I initially added only the test condition for |
That doesn't sound right, cause in CMake Something else must have been causing the error. |
I probably express myself wrongly, The error was just a compliance check, it not occurred at buildkite. When I told CI, I mean not 100% green on all checks. |
4a5369a
to
0d5ad8f
Compare
Hi @tejlmand , It seems everything is green again. I checked that library is Ok with current configs. |
yep, I see the error in the compliance check. In that case, I would actually recommend that this PR becomes part of #38661 |
After a lot of changes a more robust rules for this SoC were achieved. I afraid that if we join both PRs we may loose test conditions. For instance, The Fatal condition has been checked with/without CONFIG_SOC_SERIES_GD32xxx and passes on both cases. Since we are testing this PR and #38661 we cover both situations. |
This add access to modules/hal/gigadevice with three firmware libraries by updating west.yaml file: - GD32E10X ARM (Cortex-M4F) - GD32F403 ARM (Cortex-M4F) - GD32VF103 RISC-V (Nucleisys Bumblebee core) It introduce module/hal_gigadevice, which contains all Cmake and Kconfig rules to build GigaDevice SoCs into zephyr main tree. Signed-off-by: Gerson Fernando Budke <gerson.budke@atl-electronics.com>
0d5ad8f
to
43ce67b
Compare
This add modules/hal/gigadevice with three firmware libraries:
Signed-off-by: Gerson Fernando Budke gerson.budke@atl-electronics.com