-
Notifications
You must be signed in to change notification settings - Fork 308
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
ipc: simplify CMakeLists.txt by using a suffix variable #9180
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.
Change looks good, but I think you hid an easter egg in the commit...
zephyr/CMakeLists.txt
Outdated
${PROJECT_BINARY_DIR}/src_llext) | ||
add_dependencies(app src) | ||
elseif(CONFIG_COMP_SRC) | ||
zephyr_library_sources( |
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 adding an unrelated change related to llext...
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.
@kv2019i oh, just a tiny small one, wouldn't hurt! ;-) No, thanks for catching, indeed!
Everywhere, where IPC3 and IPC4 are distinguished in CMakeLists.txt the only difference is the use of x_ipc3.c vs. x_ipc4.c. Instead of duplicating all build instructions for IPC3 and IPC4 just define and use a suffix variable. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
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.
Nice! I remember trying to stem that copy/paste/diverge tide when it was happening but I wasn't successful.
One concern though: is there still some Zephyr+IPC3 platform that is actually running this? Some old IMX config maybe?
SOFCI TEST |
1 similar comment
SOFCI TEST |
@marc-hb I don't know but why is this a concern? Would this patch break such cases? |
Yes of course: if it's not tested then it does not work. |
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.
More deletion than additions are good here !
Build test only. |
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
I haven't tested on target, but from code review and the SOF components we are using with i.MX the changes are ok. |
CI failures:
In general, this is a build enhancement, so it is unexpected to introduce subtle run-time failures. |
@marc-hb sorry, not sure I'm getting your answer. My question was, whether this PR was breaking it, not whether it works. |
This PR changes "if (IPC3/IPC4)" code in I'm not 100% sure but I think @iuliana-prodan said there is such an active configuration right now. |
Yes, there is. Now, all i.MX is compiled with Zephyr + IPC3. |
Everywhere, where IPC3 and IPC4 are distinguished in CMakeLists.txt the only difference is the use of x_ipc3.c vs. x_ipc4.c. Instead of duplicating all build instructions for IPC3 and IPC4 just define and use a suffix variable.