Skip to content

Allow building for non-uefi - #12

Merged
JohnAZoidberg merged 1 commit into
mainfrom
native-build
Nov 23, 2026
Merged

JohnAZoidberg merged 1 commit into
mainfrom
native-build

Conversation

@JohnAZoidberg

Copy link
Copy Markdown
Member

Prepare for fuzzing

cargo build now works, previously it didn't.

Prepare for fuzzing

`cargo build` now works, previously it didn't.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
@github-actions

Copy link
Copy Markdown

📦 Binary Size Comparison (Nix Build)

Metric Base PR Difference
Size 783.50 KiB 783.50 KiB ✅ ±0 bytes (0%)
SHA256 86a02efc1161e8e0... 86a02efc1161e8e0... ✅ Identical
Full hashes
  • Base: 86a02efc1161e8e012fd4705dc2506fb55750b45d874b4ddae35445093ac756a
  • PR: 86a02efc1161e8e012fd4705dc2506fb55750b45d874b4ddae35445093ac756a

@JohnAZoidberg
JohnAZoidberg requested a balanced review from Copilot November 23, 2026 09:05
@JohnAZoidberg
JohnAZoidberg merged commit 973e583 into main Nov 23, 2026
9 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Native builds still fail because the unconditional UEFI entry point leaves no native main symbol for the system linker.

1 open issue
What changed in this PR

This PR prepares the UEFI application for native builds and future fuzzing by making firmware-specific dependency features target-dependent.

Changes:

  • Keeps only UEFI allocation support enabled for all targets.
  • Enables the UEFI allocator, logger, panic handler, and framework_lib UEFI support only for UEFI targets.
File Description
Cargo.toml Separates shared dependency features from UEFI-only features.

Review effort: Balanced

Comment thread Cargo.toml
getargs = { version = "0.5.0", default-features = false }
log = "0.4.27"
uefi = { version = "0.41", features = ["alloc", "global_allocator", "logger", "panic_handler"] }
uefi = { version = "0.41", features = ["alloc"] }
@JohnAZoidberg
JohnAZoidberg deleted the native-build branch November 23, 2026 09:08
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