-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
lib: bsdlib: rename to nrf_modem #3394
Conversation
86dcf91
to
efe43e6
Compare
I am a bit confused about the different naming conventions used for this library: Before with bsdlib: Files: libbsd_nrf9160_xxaa.a, bsd_os.c, bsdlib.c, nrf91_sockets.c Today with modemlib: File libmodem.a (nrfxlib), libmodem.c (nrf), nrf91_sockets.c (nrf), nrf_modem_os.c (nrf) I think it make more sense to call the folder in nrf for nrf_ modem (same as nrfxlib) instead of libmodem? I think it also make more sense to rename libmodem.c to nrf_modem.c, and the CONFIG_LIBMODEM kconfig parameters to CONFIG_NRF_MODEM_LIB_. I am fine with the .a file other that it should probably contain some device information like nrf9160 at least. A common convention is to name the library file (.a) libfoobar.a, but any references to the library is usually "foobar library" or "foobar lib". Of course both conventions can be found, but for me nrf_modem, nrf_modem_lib or nrf_modem_library make more sense for folders, files and kconfig paramters extern to the library it self, and align more with the naming convention used for bsdlib. |
@evenl The point was to create a distinction (or rather maintain one) between the glue and the library. I think there needs to be. Following your suggestion, if I renamed the glue to
So in conclusion it would be hard to make that distinction anymore (including the distinction between library-defined configurations and glue-defined configurations) and we'd have collisions. |
Yes, I understand, but my point is that it is not clear to me that the libmodem prefixed stuff and the nrf_modem stuff belongs together. For bsdlib it was bsd_ for the nrfxlib stuff, and bsdlib_ for the OS integration part, which I think is fairly easy to understand that it belongs together. I think it would have been much more logical with for instance nrf_modem_ for the nrfxlib stuff and nrf_modem_lib_ for the OS integration part. |
I think that Even might have a point here, that |
Yes, I agree that it's a bit long, but same here, I can not come up with any better. |
I see, point taken. I can change to |
efe43e6
to
a1b7c28
Compare
@@ -112,11 +112,11 @@ nRF9160 | |||
* nRF Connect SDK now uses upstream CoAP implementation. The :ref:`mqtt_simple_sample` sample was rewritten to use the upstream library, and the downstream CoAP was removed. | |||
* The :ref:`http_application_update_sample` sample has been updated to use the :ref:`lib_fota_download` library. | |||
|
|||
Modem library | |||
BSD library | |||
------------- |
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.
I suppose these should stop at the same column as BSD library
, check elsewhere too
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.
Fixed these..
e2bc833
to
0587d61
Compare
96e3b10
to
055054c
Compare
4c9ebc8
to
424bd2b
Compare
Rebased again to try and get CI green. |
424bd2b
to
79b5381
Compare
fffcf02
to
5f3a90f
Compare
79fea44
to
4dd0b2c
Compare
Rename bsdlib to nrf_modem (library) and nrf_modem_lib (integration). Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no> Signed-off-by: Uma Praseeda <uma.praseeda@nordicsemi.no>
4dd0b2c
to
4d7fdeb
Compare
Rename
bsdlib
tonrf_modem
(library) andlibmodem
nrf_modem_lib
(glue).reminder! The two commits must be squashed.