From f89eb14e8e14ca673e8731a8f2c914b8d44f7ab8 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Wed, 5 May 2021 09:10:31 +0200 Subject: [PATCH 1/2] qemu: Remove We now provide qemu in different versions via /pkg. Remove qemu installation from system. --- qemu.be0 | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100755 qemu.be0 diff --git a/qemu.be0 b/qemu.be0 deleted file mode 100755 index 91c877f1e..000000000 --- a/qemu.be0 +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env beesh - -# BEE_VERSION qemu-3.1.0-0 - -SRCURL[0]="http://wiki.qemu.org/download/qemu-${PKGVERSION}.tar.bz2" - -PATCHURL[0]="" - -# BEE_CONFIGURE=compat - -BEE_BUILDTYPE='autotools' - -# EXCLUDE="" - -AUDIODRIVERS=${AUDIODRIVERS:-pa,alsa,oss} - -targets="--target-list=i386-softmmu,x86_64-softmmu,i386-linux-user,x86_64-linux-user,arm-softmmu,arm-linux-user,armeb-linux-user,ppc-softmmu,ppc64-softmmu,ppc-linux-user,ppc64-linux-user" -# alt: targets="", to enable all targets - -#mee_extract() { -# bee_extract ${@} -#} - -#mee_patch() { -# bee_patch ${@} -#} - -mee_configure() { - start_cmd ${S}/configure --prefix=${PREFIX} \ - $targets \ - --enable-system \ - --enable-jemalloc \ - --enable-virtfs \ - --audio-drv-list=${AUDIODRIVERS} -} - -#mee_build() { -# bee_build -#} - -#mee_install() { -# bee_install -#} - -mee_install_post() { - #remove empty /var - rm -rf ${D}/var/run -} From 93a761b0918766202f51fcc0e49eed1b1ad22033 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Wed, 5 May 2021 09:18:49 +0200 Subject: [PATCH 2/2] qemu-wrapper: Install version 1.0 Install wrapper for qemu commands. --- qemu-wrapper.be0 | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 qemu-wrapper.be0 diff --git a/qemu-wrapper.be0 b/qemu-wrapper.be0 new file mode 100755 index 000000000..3f737e340 --- /dev/null +++ b/qemu-wrapper.be0 @@ -0,0 +1,47 @@ +#!/usr/bin/env beesh + +# BEE_VERSION qemu-wrapper-1.0-0 + +# more info: https://foo.bar.com + +SRCURL[0]="" + +# PATCHURL+=() + +# build_in_sourcedir + +# sourcesubdir_append src + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure +#} + +mee_build() { + echo -e '#! /bin/bash\nprun qemu $(basename "$0") "$@"' >wrapper + chmod +x wrapper +} + +mee_install() { + mkdir -p "$D$BINDIR" + + # list generated by + # (cd /pkg/qemu-5.1.0-0/bin;ls) | fmt -w 80 | sed 's/.*/ & \\/' + # + for cmd in \ + elf2dmp ivshmem-client ivshmem-server qemu-aarch64 qemu-arm qemu-armeb \ + qemu-edid qemu-ga qemu-i386 qemu-img qemu-io qemu-keymap qemu-nbd qemu-ppc \ + qemu-ppc64 qemu-storage-daemon qemu-system-aarch64 qemu-system-arm \ + qemu-system-i386 qemu-system-ppc qemu-system-ppc64 qemu-system-x86_64 \ + qemu-x86_64 \ + ; do + ln "$B/wrapper" "$D$BINDIR/$cmd" + done +}