-
Notifications
You must be signed in to change notification settings - Fork 15
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
Move openamp demos #44
Conversation
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 think this is a step in the right direction to move forward.
Just a request: please split the commit to make it simpler to compare with the original code.
i will try to rebuild and run application to test it
examples/legacy_apps/system/generic/machine/zynqmp_r5/linker_remote.ld
Outdated
Show resolved
Hide resolved
16531f5
to
e042794
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.
I tested on my Linux PC using west and cmake. Few comments and suggestions
e042794
to
dcc9284
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.
Few new comments.
After addressing them LGTM
dcc9284
to
ca00345
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.
This PR looks good but why do we call the folder legacy_apps
?
When I read legacy app, I'm thinking of something old that might not even work - but maybe is just me :)
Can we call the folder generic_samples
, or just generic
(since it's already in examples).
Also, not very clear for me how these samples work?
Do we have a Linux-Zephyr communication?
Can we add, for each sample a README - like we have now here, for each app.
I see the comment from the start of each sample (like here) but IMO is not enough.
#define SHUTDOWN_MSG 0xEF56A55A | ||
|
||
#define LPRINTF(format, ...) printf(format, ##__VA_ARGS__) | ||
//#define LPRINTF(format, ...) |
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.
remove commented code
Some background on this: Ideally, we want a framework that is easily portable to any platform and any OS. This framework isn't available yet. Many demos under "legacy_apps" are hardcoded to run only on AMD-Xilinx platforms. Eventually they will be deprecated. Hence the name "legacy_apps" makes sense. We don't want to call it "generic" for the same reason, as not all demos are easily portable. Instead, we can introduce new demos under ${REPO}/examples/{OS}/ directory that is portable on all the platforms.
Some demos are using AMD-Xilinx BSP, and so they provide Linux-Baremetal, and Linux-FreeRTOS communication. Some demos provides Linux-Linux communication.
Yes, we should add it, but it can be part of new PR and as enhancement. This PR only moves demos as it is, and makes sure they can be compiled. So, modifying cmake build infra as needed. |
Apps directory was tightly coupled with open_amp library source code. Instead host demo applications in openamp-system-reference repository. This patch copies over source code of apps as it is so build with only this commit is expected to fail. Next commit will introduce changes required to build demos and link open_amp library.
ca00345
to
3685755
Compare
- Remove version control information - Add cmake infra to find open_amp library - fix open_amp and libmetal library linking Signed-off-by: Tanmay Shah <[email protected]>
Use west to fetch open-amp and libmetal library source code. Signed-off-by: Tanmay Shah <[email protected]>
Add instructions to fetch libraries and build legacy apps and tests. Signed-off-by: Tanmay Shah <[email protected]>
3685755
to
fe571b8
Compare
@iuliana-prodan Thanks for reviews. Fixed comments. |
Move apps directory from open-amp library repo to openamp-system-reference repo and modify cmake build infra structure as needed to build these apps.