2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="qemu"
|
2023-11-13 22:18:49 +00:00
|
|
|
PKG_VERSION="7.2.6"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="GPL"
|
2022-02-27 23:34:12 +00:00
|
|
|
PKG_SITE="https://www.qemu.org"
|
|
|
|
PKG_URL="https://download.qemu.org/qemu-${PKG_VERSION}.tar.xz"
|
|
|
|
PKG_DEPENDS_HOST="toolchain:host glib:host pixman:host Python3:host zlib:host"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LONGDESC="QEMU is a generic and open source machine emulator and virtualizer."
|
2022-02-27 23:34:12 +00:00
|
|
|
PKG_TOOLCHAIN="configure"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
pre_configure_host() {
|
2022-02-27 23:34:12 +00:00
|
|
|
HOST_CONFIGURE_OPTS="\
|
|
|
|
--bindir=${TOOLCHAIN}/bin \
|
|
|
|
--extra-cflags=-I${TOOLCHAIN}/include \
|
|
|
|
--extra-ldflags=-L${TOOLCHAIN}/lib \
|
|
|
|
--libexecdir=${TOOLCHAIN}/lib \
|
|
|
|
--localstatedir=${TOOLCHAIN}/var \
|
|
|
|
--prefix=${TOOLCHAIN} \
|
|
|
|
--sbindir=${TOOLCHAIN}/sbin \
|
|
|
|
--sysconfdir=${TOOLCHAIN}/etc \
|
|
|
|
--enable-tools \
|
|
|
|
--enable-malloc=system \
|
|
|
|
--disable-attr \
|
|
|
|
--disable-auth-pam \
|
|
|
|
--disable-blobs \
|
|
|
|
--disable-capstone \
|
|
|
|
--disable-curl \
|
|
|
|
--disable-debug-info \
|
|
|
|
--disable-debug-mutex \
|
|
|
|
--disable-debug-tcg \
|
|
|
|
--disable-docs \
|
|
|
|
--disable-gcrypt \
|
|
|
|
--disable-gnutls \
|
|
|
|
--disable-system \
|
|
|
|
--disable-vnc \
|
|
|
|
--disable-werror \
|
|
|
|
--disable-xkbcommon \
|
|
|
|
--disable-zstd \
|
2022-12-03 21:27:15 +00:00
|
|
|
--target-list=${TARGET_ARCH}-linux-user"
|
2022-02-27 23:34:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_host() {
|
2022-12-03 21:27:15 +00:00
|
|
|
mkdir -p ${TOOLCHAIN}/bin
|
2022-02-27 23:34:12 +00:00
|
|
|
cp ${PKG_BUILD}/.${HOST_NAME}/qemu-img ${TOOLCHAIN}/bin
|
|
|
|
cp ${PKG_BUILD}/.${HOST_NAME}/qemu-${TARGET_ARCH} ${TOOLCHAIN}/bin
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|