-
Notifications
You must be signed in to change notification settings - Fork 3k
Remove Cellular dependency in netsocket #13809
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
Conversation
@jeromecoutant, thank you for your changes. |
Thanks @jeromecoutant I don't think you need the The PR is a good starting point but I believe more work is required to pass it through. If cellular is not present then |
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.
This shall work also with CMake (although we will need to remove linking netsockets to cellular as it was dependent before this patch).
It should be other way around, if cellular is selected, netsockets would get in as well.
Thanks @jeromecoutant I don't think you need the .mbedignore file if you don't add cellular to the require clause in mbed_app.json .
I assume this is for not using baremetal, but Mbed OS with ignoring some parts - an example: using networking via wire but not cellular.
Set as needs: work, to verify the files mentioned above. |
I think there is no risk to accept this PR as it is. Thx |
@jeromecoutant This PR doesn't work with ARMC6:
|
Can you explicit your use case ?
|
@jeromecoutant Here are the steps to reproduce it:
|
2d32406
to
5b3ec2c
Compare
OK, patch improved, please start CI |
Patch needed for #13598 workaround |
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.
Do we need that many if PRESENT in NEtworkInterfaceDefaults? I wonder if we can gather methods together and have just one (so it is not spreaded all over the file ) ?
This should help also CMake as well as it uses the same _PRESENT for components (backward compatibility),
#include "CellularDevice.h" | ||
#endif // MBED_CONF_CELLULAR_PRESENT |
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.
the comment states something different, is this app baudrate rather than cellular present?
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.
Just added the same ifdef as it is already done bellow in this file
Let's start CI ? |
ping |
CI started I requested connectivity team to review |
Tip: Create a .mbedignore file with connectivity/cellular* connectivity/drivers/cellular*
08dd6ff
to
8e58d64
Compare
Done |
CI started |
Jenkins CI Test : ❌ FAILEDBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
@jeromecoutant unittests require update. see the failures in the logs
|
Pull request has been modified.
Done, Thx @0xc0170 |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 3 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
Proposition is to be able to remove Cellular code in mbed-os
How to reproduce:
Create a .mbedignore file with
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers