1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 06:28:13 +00:00

Toolchain+Ports: Consolidate version information for QEMU

This consolidates version information, archive's download location,
filename and SHA256 checksum into version.sh. This file is then sourced
from the port script and toolchain build script.

The version.sh script contains the following variables:
- QEMU_VERSION           - Version number
- QEMU_ARCHIVE           - Filename
- QEMU_ARCHIVE_URL       - Full url to download location
- QEMU_ARCHIVE_SHA256SUM - The SHA256 checksum
This commit is contained in:
Kenneth Myhra 2023-04-15 23:14:11 +02:00 committed by Andreas Kling
parent 54e01824c7
commit 1cc095c5ab
3 changed files with 21 additions and 16 deletions

View file

@ -1,6 +1,9 @@
#!/usr/bin/env -S bash ../.port_include.sh
source version.sh
port='qemu'
version='7.2.0'
version="${QEMU_VERSION}"
useconfigure='true'
configopts=(
'--target-list=aarch64-softmmu,i386-softmmu,x86_64-softmmu'
@ -20,8 +23,8 @@ depends=(
'pixman'
'SDL2'
)
files="https://download.qemu.org/qemu-${version}.tar.xz qemu-${version}.tar.xz 5b49ce2687744dad494ae90a898c52204a3406e84d072482a1e1be854eeb2157"
auth_type='sha256'
files="${QEMU_ARCHIVE_URL} ${QEMU_ARCHIVE} ${QEMU_ARCHIVE_SHA256SUM}"
pre_patch() {
# Disable tests (those need way more stuff than QEMU itself) by clearing the respective meson file.

4
Ports/qemu/version.sh Normal file
View file

@ -0,0 +1,4 @@
QEMU_VERSION="7.2.0"
QEMU_ARCHIVE="qemu-${QEMU_VERSION}.tar.xz"
QEMU_ARCHIVE_URL="https://download.qemu.org/${QEMU_ARCHIVE}"
QEMU_ARCHIVE_SHA256SUM="5b49ce2687744dad494ae90a898c52204a3406e84d072482a1e1be854eeb2157"