Skip to content

arm64, rust: build integration/aurora without ARM64_APPLE_X86_FP or OF_DYNAMIC - #934

Merged
DjDeveloperr merged 2 commits into
integration/aurorafrom
j716c/build-fixes
Nov 5, 2026
Merged

DjDeveloperr merged 2 commits into
integration/aurorafrom
j716c/build-fixes

Conversation

@erikwb

@erikwb erikwb commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

integration/aurora doesn't build with a minimal Apple config: signal.c calls apple_afp_enabled(), which only exists with CONFIG_ARM64_APPLE_X86_FP, and the Rust OF users fail without CONFIG_OF_DYNAMIC because of_node_put() is then a static inline that bindgen can't see.

  • Report AFP as disabled when it isn't built.
  • Wrap of_node_put() in a Rust helper when it's inline.

Checks: the J716c config builds on this base with both fixes and fails without them.

Created with Claude Opus 5.5 in Claude Code.

signal.c calls apple_afp_enabled() while sizing the signal frame, behind
a runtime check, but the function is only declared with
CONFIG_ARM64_APPLE_X86_FP, so a kernel built without it fails to
compile. Report AFP as disabled when it is not built.

Developed with Claude Code.

Signed-off-by: Erik Bourget <[email protected]>
Without CONFIG_OF_DYNAMIC, of_node_put() is a static inline no-op, so
bindgen emits no binding for it and Rust users such as the AOP driver
fail to build. Wrap it in a helper in that case.

Developed with Claude Code.

Signed-off-by: Erik Bourget <[email protected]>

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@DjDeveloperr
DjDeveloperr merged commit 1d76233 into integration/aurora Nov 5, 2026
@RyanTheTide
RyanTheTide deleted the j716c/build-fixes branch November 7, 2026 12:07
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.

2 participants