# Part of JoeyLib, Copyright (c) 2026 Scott Duensing, under the MIT License. # See LICENSE.md for license information. # SPDX-License-Identifier: MIT # # The Haiku x86 (gcc2h, 32-bit) virtual machine the haiku32 port's programs # run in under QEMU (joey-run --port haiku32, and the gates): the R1/beta6 # anyboot image, made to boot straight to the desktop and run the job runner # (installer/lib/haiku.sh), which runs what a gate or joey-run hands it on a # second disk. Into toolchains/opt/haikuVm32/haiku.img; runs never write to # it (QEMU's snapshot mode). compDescription="emulator: Haiku R1/beta6 x86 gcc2h VM image (haiku32)" compGroups="emulator:haiku32" compRequires="qemu haikuTools" compHostDeps="python3" haikuArch="x86_gcc2" # shellcheck source=installer/lib/haiku.sh source "$JOEY_INSTALLER/lib/haiku.sh" compPin="$(haikuVmPin "$haikuArch")" compInstall() { mkdir -p "$compDir" haikuVmPrepare "$haikuArch" "$compDir/haiku.img" } compInstalled() { [ -s "$compDir/haiku.img" ] } compVerify() { haikuVmVerify "$compDir/haiku.img" } compEnv() { envVar HAIKU32_VM_IMAGE "$compDir/haiku.img" }