40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
# Part of JoeyLib, Copyright (c) 2026 Scott Duensing, under the MIT License.
|
|
# See LICENSE.md for license information.
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
# X68000 C toolchain: yunkya2's elf2x68k (m68k-xelf gcc 13.4.0, binutils
|
|
# 2.44, newlib 4.5.0), prebuilt for Linux x86-64. m68k-xelf-gcc emits ELF;
|
|
# its linker script runs elf2x68k.py (python3) to produce Human68k .X files.
|
|
|
|
compDescription="X68000 compiler: elf2x68k 20260602 (m68k-xelf gcc 13.4.0)"
|
|
compGroups="toolchain:x68000"
|
|
compRequires="host"
|
|
compHostDeps="bzip2 python3 gconv-cp932"
|
|
compUrl="https://github.com/yunkya2/elf2x68k/releases/download/20260602/elf2x68k-Linux-20260602.tar.bz2"
|
|
compSha256="625968297d140b5b5a47edbc67d69a0b505b0891adb152b45adeee5329fd9832"
|
|
compPin="$compSha256"
|
|
|
|
|
|
compInstall() {
|
|
local archive
|
|
archive="$(fetchFile "$compUrl" "$compSha256")"
|
|
rm -rf "$compDir"
|
|
extractArchive "$archive" "$compDir" 1
|
|
}
|
|
|
|
|
|
compInstalled() {
|
|
[ -x "$compDir/bin/m68k-xelf-gcc" ]
|
|
}
|
|
|
|
|
|
compVerify() {
|
|
verifyLinked "$compDir/bin" "$compDir/m68k-elf/bin" "$compDir"/libexec/gcc/*/*
|
|
verifyCompiles "$compDir/bin/m68k-xelf-gcc" -m68000 -O2
|
|
}
|
|
|
|
|
|
compEnv() {
|
|
envVar X68K_ROOT "$compDir"
|
|
envPath "$compDir/bin"
|
|
}
|