From d1702760f5c4bca1a390e5ffafd3d0e393f5b92e Mon Sep 17 00:00:00 2001 From: marcusz <65075766+WMCB-Tech@users.noreply.github.com> Date: Tue, 10 Aug 2021 17:46:02 +0800 Subject: [PATCH] qemu: Include ppc targets (#7294) --- packages/qemu-system-x86-64-headless/build.sh | 6 +++++- .../qemu-system-ppc-headless.subpackage.sh | 8 ++++++++ .../qemu-system-ppc64-headless.subpackage.sh | 8 ++++++++ .../qemu-user-ppc.subpackage.sh | 4 ++++ .../qemu-user-ppc64.subpackage.sh | 4 ++++ 5 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 packages/qemu-system-x86-64-headless/qemu-system-ppc-headless.subpackage.sh create mode 100644 packages/qemu-system-x86-64-headless/qemu-system-ppc64-headless.subpackage.sh create mode 100644 packages/qemu-system-x86-64-headless/qemu-user-ppc.subpackage.sh create mode 100644 packages/qemu-system-x86-64-headless/qemu-user-ppc64.subpackage.sh diff --git a/packages/qemu-system-x86-64-headless/build.sh b/packages/qemu-system-x86-64-headless/build.sh index 54a92ef8c..ef1eb48a1 100644 --- a/packages/qemu-system-x86-64-headless/build.sh +++ b/packages/qemu-system-x86-64-headless/build.sh @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="A generic and open source machine emulator and virtualiz TERMUX_PKG_LICENSE="LGPL-2.1" TERMUX_PKG_MAINTAINER="Leonid Pliushch " TERMUX_PKG_VERSION=1:5.2.0 -TERMUX_PKG_REVISION=7 +TERMUX_PKG_REVISION=8 TERMUX_PKG_SRCURL=https://download.qemu.org/qemu-${TERMUX_PKG_VERSION:2}.tar.xz TERMUX_PKG_SHA256="cb18d889b628fbe637672b0326789d9b0e3b8027e0445b936537c78549df17bc" TERMUX_PKG_DEPENDS="attr, glib, libbz2, libc++, libcap-ng, libcurl, libgcrypt, libiconv, libjpeg-turbo, liblzo, libnfs, libpixman, libpng, libssh, ncurses, qemu-common, resolv-conf, zlib, libspice-server, libusbredir" @@ -25,6 +25,8 @@ termux_step_configure() { QEMU_TARGETS+="aarch64-softmmu," QEMU_TARGETS+="arm-softmmu," QEMU_TARGETS+="i386-softmmu," + QEMU_TARGETS+="ppc64-softmmu," + QEMU_TARGETS+="ppc-softmmu," QEMU_TARGETS+="riscv32-softmmu," QEMU_TARGETS+="riscv64-softmmu," QEMU_TARGETS+="x86_64-softmmu," @@ -33,6 +35,8 @@ termux_step_configure() { QEMU_TARGETS+="aarch64-linux-user," QEMU_TARGETS+="arm-linux-user," QEMU_TARGETS+="i386-linux-user," + QEMU_TARGETS+="ppc64-linux-user," + QEMU_TARGETS+="ppc-linux-user," QEMU_TARGETS+="riscv32-linux-user," QEMU_TARGETS+="riscv64-linux-user," QEMU_TARGETS+="x86_64-linux-user" diff --git a/packages/qemu-system-x86-64-headless/qemu-system-ppc-headless.subpackage.sh b/packages/qemu-system-x86-64-headless/qemu-system-ppc-headless.subpackage.sh new file mode 100644 index 000000000..df6f01995 --- /dev/null +++ b/packages/qemu-system-x86-64-headless/qemu-system-ppc-headless.subpackage.sh @@ -0,0 +1,8 @@ +TERMUX_SUBPKG_DESCRIPTION="A generic and open source machine emulator and virtualizer (headless)" +TERMUX_SUBPKG_DEPENDS="attr, glib, libbz2, libc++, libcap-ng, libcurl, libgcrypt, libiconv, libjpeg-turbo, liblzo, libnfs, libpixman, libpng, libssh, ncurses, qemu-common, resolv-conf, zlib, libspice-server, libusbredir" +TERMUX_SUBPKG_DEPEND_ON_PARENT=no + +TERMUX_SUBPKG_INCLUDE=" +bin/qemu-system-ppc +share/man/man1/qemu-system-ppc.1.gz +" diff --git a/packages/qemu-system-x86-64-headless/qemu-system-ppc64-headless.subpackage.sh b/packages/qemu-system-x86-64-headless/qemu-system-ppc64-headless.subpackage.sh new file mode 100644 index 000000000..d7cc3a878 --- /dev/null +++ b/packages/qemu-system-x86-64-headless/qemu-system-ppc64-headless.subpackage.sh @@ -0,0 +1,8 @@ +TERMUX_SUBPKG_DESCRIPTION="A generic and open source machine emulator and virtualizer (headless)" +TERMUX_SUBPKG_DEPENDS="attr, glib, libbz2, libc++, libcap-ng, libcurl, libgcrypt, libiconv, libjpeg-turbo, liblzo, libnfs, libpixman, libpng, libssh, ncurses, qemu-common, resolv-conf, zlib, libspice-server, libusbredir" +TERMUX_SUBPKG_DEPEND_ON_PARENT=no + +TERMUX_SUBPKG_INCLUDE=" +bin/qemu-system-ppc64 +share/man/man1/qemu-system-ppc64.1.gz +" diff --git a/packages/qemu-system-x86-64-headless/qemu-user-ppc.subpackage.sh b/packages/qemu-system-x86-64-headless/qemu-user-ppc.subpackage.sh new file mode 100644 index 000000000..5d72203a6 --- /dev/null +++ b/packages/qemu-system-x86-64-headless/qemu-user-ppc.subpackage.sh @@ -0,0 +1,4 @@ +TERMUX_SUBPKG_DESCRIPTION="QEMU Linux user mode emulator" +TERMUX_SUBPKG_DEPENDS="glib, libandroid-shmem, libc++, libgcrypt, zlib" +TERMUX_SUBPKG_DEPEND_ON_PARENT=no +TERMUX_SUBPKG_INCLUDE="bin/qemu-ppc" diff --git a/packages/qemu-system-x86-64-headless/qemu-user-ppc64.subpackage.sh b/packages/qemu-system-x86-64-headless/qemu-user-ppc64.subpackage.sh new file mode 100644 index 000000000..b3e9bb1a1 --- /dev/null +++ b/packages/qemu-system-x86-64-headless/qemu-user-ppc64.subpackage.sh @@ -0,0 +1,4 @@ +TERMUX_SUBPKG_DESCRIPTION="QEMU Linux user mode emulator" +TERMUX_SUBPKG_DEPENDS="glib, libandroid-shmem, libc++, libgcrypt, zlib" +TERMUX_SUBPKG_DEPEND_ON_PARENT=no +TERMUX_SUBPKG_INCLUDE="bin/qemu-ppc64"