You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
extmod/zephyr_kernel: Relocate generated headers to build directory.
Modified zephyr_kernel.mk to generate Zephyr headers in the board-specific
build directory instead of source tree, addressing build hygiene issue where
artifacts were created throughout the repository.
Changes:
- ZEPHYR_GEN now points to $(BUILD)/zephyr_gen instead of source tree
- Generated headers (version.h, offsets.h, log_msg.h) output to
$(BUILD)/zephyr_gen_root/zephyr/ to mirror Zephyr's layout
- Include paths updated to prefer build-generated headers over static stubs
- Added mkdir -p to generation rules to ensure directory creation
- Removed build artifact version.h from source tree
Build artifacts now isolated in board build folder (e.g.,
build-NUCLEO_F429ZI/zephyr_gen_root/) instead of scattered through
extmod/zephyr_kernel/generated/, ports/extmod/, ports/lib/, and
lib/zephyr/include/.
Static stub files in extmod/zephyr_kernel/generated/ remain in source tree
as they are hand-written compatibility shims, not auto-generated artifacts.
Signed-off-by: Andrew Leech <[email protected]>
0 commit comments