-
Notifications
You must be signed in to change notification settings - Fork 3k
Relocated libraries in features/frameworks #13430
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
@LDong-Arm, thank you for your changes. |
@0xc0170 Spell checks failed for |
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.
LGTM
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
I've merged couple of Prs, they caused a conflict here. |
bf64c15
to
e05f2b2
Compare
Rebased |
Now Travis spell check passes |
Travis Pytest failed with
|
@0xc0170 Any idea what is the issue here? Re-start CI? |
Why is the cli client deprecated and removed? If goal is to migrate away from the monolithic codebase I am okay with the removal BUT only if there is an useable NPM like package lookup and import tool in the works. |
I agree that the deprecation and removal of |
e06298f
to
95071e5
Compare
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
95071e5
to
b6810af
Compare
PR is ready for CI |
CI started |
Jenkins CI Test : ❌ FAILEDBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
* Move mbed-client-randlib/ headers into include/ (Note: we don't rename it to "randlib" because this library is mirrored to https://github.com/ARMmbed/mbed-client-randlib, and "mbed-client-randlib" may be reference by some projects) * Move the standalone local unit test into tests/unit
The library "drivers" is a core one available to bare metal. It should not depend on mbed-trace which is an optional library.
b6810af
to
183ca77
Compare
#if (DEVICE_SPI || DEVICE_QSPI) | ||
|
||
#include "features/frameworks/mbed-trace/mbed-trace/mbed_trace.h" | ||
#if MBED_CONF_MBED_TRACE_ENABLE | ||
#include "mbed-trace/mbed_trace.h" | ||
#define TRACE_GROUP "SFDP" | ||
#else // MBED_CONF_MBED_TRACE_ENABLE | ||
#define tr_info(...) | ||
#define tr_error(...) | ||
#define tr_debug(...) | ||
#endif // MBED_CONF_MBED_TRACE_ENABLE |
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.
@adbridge PR ready for re-run of CI |
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
@artokin can you review this part? where is this one used and how? Just wondering if it fits platform folder? |
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.
What is the purpose of renamed include
directories? Why they need to be changed?
@@ -114,6 +114,7 @@ set(unittest-includes-base | |||
"${PROJECT_SOURCE_DIR}/../features" | |||
"${PROJECT_SOURCE_DIR}/../platform/include" | |||
"${PROJECT_SOURCE_DIR}/../platform/include/platform" | |||
"${PROJECT_SOURCE_DIR}/../platform/mbed-trace/include" |
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.
Why the mbed-trace
directory is renamed as include
? (in mbed-trace
and randlib
)
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.
We still have mbed-trace/mbed_trace.h
inside include/
. The change is to do with include path namespacing in the new build system being developed.
We are implementing a new build system where only For example |
Discussed with @artokin offline: Yes there are projects using the upstream repos mbed-trace and mbed-client-randlib. But at this stage our directory structure changes are non-breaking, because the current build system doesn't distinguish include paths. So alignment with the upstream is unlike to be problematic (or even urgent). Hopefully it's all good? |
Summary of changes
As per the directory restructure plan, we get rid of
features/frameworks
by relocating libraries inside.This PR covers the following:
mbed-trace
->platform/mbed-trace
and refactoredmbed-client-randlib
->platform/randlib
(shortened) and refactored.Note: The include path is still
include/mbed-client-randlib/
because it's mirrored as a standalone repo and we want to avoid breaking changes. Is that still in use? @0xc0170Greentea frameworks libraries will be covered separately.
Impact of changes
None
Migration actions required
None
Documentation
None
Pull request type
Test results
Reviewers
@ARMmbed/mbed-os-core @andypowers @jamesbeyond @rajkan01