Skip to content

build: support macOS host builds - #80

Open
sangam14 wants to merge 1 commit into
pithings:mainfrom
sangam14:macos-build-support
Open

sangam14 wants to merge 1 commit into
pithings:mainfrom
sangam14:macos-build-support

Conversation

@sangam14

Copy link
Copy Markdown

Summary

  • Add Darwin-aware host tool detection, GNU Make selection, CPU counting, timestamp handling, and Binaryen archive selection.
  • Replace GNU-only filesystem, archive, and image-size operations in the guest build workflow.
  • Build erofs utilities natively on macOS while preserving static Linux builds; use llvm-nm for guest ELF objects.
  • Document macOS prerequisites and add the Darwin LLVM patch.

Validation

  • Shell syntax checks and whitespace checks passed (the new LLVM patch retains the standard git-format-patch signature).
  • UP/SMP kernel, base initramfs, Vulkan guest, VA, and Alpine ext4/erofs builds passed during this work.

Make setup and build scripts handle Darwin's native tools and utilities
while preserving the existing Linux build paths.

- Detect Mach-O host tools, CPU counts, GNU Make, and portable timestamps.
- Select and verify Binaryen archives for the host OS and architecture.
- Replace GNU-only filesystem, archive, and size operations in guest builds.
- Build erofs tools natively on macOS while retaining static Linux binaries.
- Inspect guest ELF symbols with llvm-nm and refresh incomplete toolchains.
- Document macOS build prerequisites.

Validated shell syntax and whitespace checks; UP/SMP kernel, guest image,
Vulkan, VA, and Alpine ext4/erofs builds were also validated during this work.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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