-
Notifications
You must be signed in to change notification settings - Fork 3k
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
COMPONENT_WHD: make reusable code available for other targets #14471
Conversation
@pennam, thank you for your changes. |
...ifi/COMPONENT_WHD/resources/nvram/TARGET_Cypress/TARGET_CY8CKIT_062_4343W/wifi_nvram_image.h
Outdated
Show resolved
Hide resolved
.../drivers/wifi/COMPONENT_WHD/resources/nvram/TARGET_STM/TARGET_PORTENTA_H7/wifi_nvram_image.h
Outdated
Show resolved
Hide resolved
connectivity/drivers/wifi/COMPONENT_WHD/resources/resource_imp/whd_resources.cpp
Outdated
Show resolved
Hide resolved
Files in targets/TARGET_Cypress/TARGET_PSOC6/COMPONENT_WHD come from releases of https://github.com/cypresssemiconductorco/wifi-host-driver without modification. Any changes made in targets/TARGET_Cypress/TARGET_PSOC6/COMPONENT_WHD will get overridden the next time a wifi-host-driver release is integrated. The following commits are OK because they are making changes outside of TARGET_PSOC6, specifically in connectivity/drivers/emac/COMPONENT_WHD/: The NVRAM change that I originally commented on and the rest of the commits you highlighted are changes in the wifi-host-driver and will not be compatible with future releases. Ian |
@ifyall Thanks for your clarification. What about splitting the the content of This will let use completely reuse the code inside this folder and automatically benefit of the future updates of the WHD leaving the possibility to integrate newer versions of the WHD without changing the code. Doing this all this patches will be moved into our target folder: 54d519b ec277fe 3c8e8a1 a97889f ad81bac 2c438da This will be fixed restoring the original resource content: 30f6f23 One last question about cb2dc79 and f2e2a15 It seems that the content of |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
@ifyall i've reworked the pr. Now the only changes to the source code are the one already approved. See abb6dc2 and 323b3d6. As mentioned in my previous comment i've splitted the To update to a new version of WHD drivers there is no need to apply any patch, only the destination folder is different. I've also moved the |
Thank you for continuing the work. Regarding the changes, you are still breaking apart the COMPONENT_WHD, leaving some pieces of it in one directory and other pieces in another. We can't break that apart, because the directories/files under https://github.com/ARMmbed/mbed-os/tree/master/targets/TARGET_Cypress/TARGET_PSOC6/COMPONENT_WHD come from https://github.com/cypresssemiconductorco/wifi-host-driver/tree/master/WiFi_Host_Driver. Can you just move https://github.com/ARMmbed/mbed-os/tree/master/targets/TARGET_Cypress/TARGET_PSOC6/COMPONENT_WHD to connectivity/drivers/wifi/COMPONENT_WHD/ without modification? Addition of the network contents would be optional, but OK. Ian |
Thanks for the hint @0xc0170 , i wasn't aware of the .codecheckignore file |
This pull request has automatically been marked as stale because it has had no recent activity. @ARMmbed/Team-Cypress, please complete review of the changes to move the PR forward. Thank you for your contributions. |
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.
Now that the COMPONENT_WHD directory is common between master and this PR (with the exception of the network/ directory), I am OK approving this.
This pull request has automatically been marked as stale because it has had no recent activity. , please complete review of the changes to move the PR forward. Thank you for your contributions. |
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
PORTENTA_H7
makes use ofCOMPONENT_WHD
for Wi-Fi implementation, so instead of duplicating the code inside our target we propose to make reusable code available for the other. Big part of the changes are folder movements and CMake paths fix.All commits containing code changes are prefixed with Patch.
Resuming the changes of this pr:
Moved
connectivity/drivers/emac/TARGET_Cypress/COMPONENT_WHD
toconnectivity/drivers/emac/COMPONENT_WHD
Moved
targets/TARGET_Cypress/TARGET_PSOC6/COMPONENT_WHD
toconnectivity/drivers/wifi/COMPONENT_WHD
Moved
targets/TARGET_Cypress/TARGET_PSOC6/common/COMPONENT_WHD
toconnectivity/drivers/wifi/COMPONENT_WHD/common
Split
connectivity/drivers/wifi/COMPONENT_WHD/resources/firmware
andconnectivity/drivers/wifi/COMPONENT_WHD/resources/nvram
forTARGET_Cypress
andTARGET_STM
Add the interface and porting layer for
PORTENTA_H7
intotargets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/COMPONENT_WHD
The code inside
targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/COMPONENT_WHD/interface
is Cypress code without changes, but i didn't find a better place to move it; theoretically it can also be shared and not duplicated./cc @facchinm
Impact of changes
All Cypress targets using
COMPONENT_WHD
andPORTENTA_H7_M7
Migration actions required
Documentation
Pull request type
Test results
Attached test results for
PORTENTA_H7_M7
targetall-test-whd.txt
wifi.txt
CMake build of mbed-os-example-blinky for
PORTENTA_H7_M7
andCY8CPROTO_062_4343W
mbed-os-example-blinky-cmake-portenta.txt
mbed-os-example-blinky-cmake-cy8.txt
Reviewers