joeylib2/installer/components/amigaSerial.sh
2026-09-28 21:03:46 -05:00

34 lines
1,018 B
Bash

# Amiga serial.device (37.4, from Workbench 3.1's Devs drawer). Kickstart 3.1
# on the A500 has no serial.device in ROM: AmigaOS loads it from DEVS:, so a
# JoeyLib program that opens the serial port needs it on the boot drive, and
# joey-run and the Amiga serial gate put it there. Cloanto still sells
# Workbench 3.1 (Amiga Forever), so it is never downloaded from a public
# source: it comes from the private bundle or `install.sh import`, which also
# finds it inside a Workbench .adf disk image.
compDescription="Amiga firmware: serial.device from Workbench 3.1 (private: bundle or import)"
compGroups="emulator:amiga"
compRequires=""
compHostDeps=""
compPrivateFile="toolchains/firmware/amiga/Devs/serial.device"
compPin="$(privateSha1For "$compPrivateFile")"
compInstall() {
privateEnsure "$compPrivateFile"
}
compInstalled() {
privatePresent "$compPrivateFile"
}
compVerify() {
privatePresent "$compPrivateFile"
}
compEnv() {
envVar AMIGA_SERIAL_DEVICE "$JOEY_REPO/$compPrivateFile"
}