Skip to content

Conversation

@kv2019i
Copy link
Collaborator

@kv2019i kv2019i commented Mar 27, 2025

Last set of Zephyr cmake changes. This has all the commits from #9918. The gdb rule change is not included as @lyakh has those in #9907 .

UPDATE: #9918 and #9907 merged, so dependencies are all in main

@kv2019i
Copy link
Collaborator Author

kv2019i commented Mar 27, 2025

zephyr/CMakeLists.txt is under 550 lines with this patch, versus 1213 lines in v2.12 release. There's still more cleanup that can be done, but the major software components are now moved.

@kv2019i
Copy link
Collaborator Author

kv2019i commented Mar 27, 2025

Ok, multiple fails on IDC patch:

/zep_workspace/sof/src/ipc/ipc-common.c:74: undefined reference to idc_send_msg' /zep_workspace/sof/src/ipc/ipc-common.c:74:(.text.ipc_process_on_core+0xc8): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol idc_send_msg'

Will fallback to more conservative approach and not try to unify XTOS/Zephyr rules (for idc), but instead forklift them as they are for this PR.

kv2019i added 6 commits April 2, 2025 12:39
Adding all source files in a single, giant zephyr/CMakeLists.txt is
inconvenient and does not scale.

Modify Zephyr rules to use definitions in src/lib/ instead.

Link: thesofproject#8260
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Adding all source files in a single, giant zephyr/CMakeLists.txt is
inconvenient and does not scale.

Modify Zephyr rules to use definitions in src/library_manager/ instead.

Link: thesofproject#8260
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Adding all source files in a single, giant zephyr/CMakeLists.txt is
inconvenient and does not scale.

Modify Zephyr rules to use definitions in src/trace/ instead.

Link: thesofproject#8260
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Adding all source files in a single, giant zephyr/CMakeLists.txt is
inconvenient and does not scale.

Modify Zephyr rules to use definitions in src/logging/ instead.

Link: thesofproject#8260
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Adding all source files in a single, giant zephyr/CMakeLists.txt is
inconvenient and does not scale.

Modify Zephyr rules to use definitions in src/samples/ instead.

Link: thesofproject#8260
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Adding all source files in a single, giant zephyr/CMakeLists.txt is
inconvenient and does not scale.

Modify Zephyr rules to use definitions in src/probe/ instead.

Link: thesofproject#8260
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
@kv2019i kv2019i force-pushed the 202403-cmake-lib-probe-and-misc branch from 7a02e76 to 940e1c3 Compare April 2, 2025 10:03
@kv2019i kv2019i changed the title cmake/zephyr: unify cmake rules for lib, probes and... (on top of PR9918) cmake/zephyr: unify cmake rules for lib, probes and... Apr 2, 2025
@kv2019i
Copy link
Collaborator Author

kv2019i commented Apr 2, 2025

New version pushed:

@kv2019i kv2019i marked this pull request as ready for review April 2, 2025 10:13
@kv2019i kv2019i merged commit b94ee8f into thesofproject:main Apr 3, 2025
43 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants