Skip to content

Conversation

@quic-aditrath
Copy link
Contributor

No description provided.

Resolve build issue where AMDB autogen files were missing module
configurations in Zephyr compilation. The problem occurred because
the spf_libs_config_parser script executed before module JSON files
were generated during the CMake configuration phase.

Move the spf_libs_config_parser execution after add_subdirectory()
calls for fwk and modules directories. This ensures module AMDB
configuration JSON files are created before the autogen script
processes them, allowing proper inclusion of module configurations
in the generated AMDB files.

The timing issue is specific to the CMake configuration stage where
execute_process() and add_subdirectory() both run, but in the wrong
order for this dependency chain.

Signed-off-by: Aditya Rathi <[email protected]>
Replace file(GLOB_RECURSE) with explicit listing of autogen source files
to ensure they are properly included in the AMDB library build.

Due to the reordering of spf_libs_config_parser script execution in the
root CMakeLists.txt, AMDB autogen files are now generated later in the
CMake configuration phase. The GLOB_RECURSE operation executes before
file generation, resulting in an empty file list and subsequent linker
errors for missing symbols when autogen files are not linked to the
AMDB library.

Explicitly list the four required autogen source files:
- spf_static_build_config.c
- spf_shared_build_config.c
- spf_static_build_config_private.c
- spf_shared_build_config_private.c

Signed-off-by: Aditya Rathi <[email protected]>
@quic-aditrath quic-aditrath requested review from a team January 27, 2026 04:37
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.

1 participant