joeylib2/installer/components/amigaSerial.sh
2026-10-13 14:01:46 -05:00

38 lines
1.1 KiB
Bash

# Part of JoeyLib, Copyright (c) 2026 Scott Duensing, under the MIT License.
# See LICENSE.md for license information.
# SPDX-License-Identifier: MIT
#
# 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"
}