Bootstrap::EfiAppBuilder
Inherits Bootstrap::CLI < Reference < Object
Build EFI .efi applications from Crystal sources via cross-compilation.
Crystal does not currently expose an *-unknown-efi target triple, so this
command intentionally compiles to a Windows COFF object and then links it as
an EFI application. This follows the PE/COFF image format used by UEFI.
References:
- UEFI Specification 2.10, chapter 2 (PE/COFF image requirements).
- LLVM lld-link docs for
/subsystem:efi_application.
Class methods
crystal_build_argv(crystal_exe : String, arch : Arch, input : String, object_path : String) : Array(String)
Build the Crystal compiler command line used for cross-compilation.
Return the Windows triple Crystal can emit COFF objects for.
linker_build_argv(linker_exe : String, object_path : String, output : String, entrypoint : String) : Array(String)
Build the linker command line used to emit the final EFI image.
Return the intermediate object path for the requested output image.
Dispatch command execution for the busybox-style CLI.