Skip to content

Conversation

jserv
Copy link
Contributor

@jserv jserv commented Oct 14, 2025

Only build DTB when ENABLE_SYSTEM=1 and ENABLE_ELF_LOADER=0, resolving DTC syntax errors that occur when building with ELF loader mode enabled, as CFLAGS_dt macros are only defined in kernel emulation mode.

The DTB is only needed for Linux kernel emulation, not for ELF loader mode which loads bare-metal programs directly.


Summary by cubic

Build the DTB only in kernel emulation mode, and skip it in ELF loader builds to prevent DTC syntax errors. DTB is only needed for kernel emulation; ELF loader runs bare-metal programs.

  • Bug Fixes
    • Compute DTB_DEPS only when ENABLE_SYSTEM=1 and ENABLE_ELF_LOADER=0, and use it in the all target.
    • Skip DTB generation for ELF loader builds to avoid missing CFLAGS_dt macros.

Only build DTB when ENABLE_SYSTEM=1 and ENABLE_ELF_LOADER=0, resolving
DTC syntax errors that occur when building with ELF loader mode enabled,
as CFLAGS_dt macros are only defined in kernel emulation mode.

The DTB is only needed for Linux kernel emulation, not for ELF loader
mode which loads bare-metal programs directly.
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@jserv jserv merged commit a657a17 into master Oct 14, 2025
21 of 25 checks passed
@jserv jserv deleted the fix-dtb branch October 14, 2025 18:45
@jserv jserv added this to the release-2025.2 milestone Oct 16, 2025
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