blob: 64bade86aad1ce095361cda0b2456dd3ae6b91d1 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Fast open source processor emulator"
Brad Bishopf3f93bb2019-10-16 14:33:32 -04002DESCRIPTION = "QEMU is a hosted virtual machine monitor: it emulates the \
3machine's processor through dynamic binary translation and provides a set \
4of different hardware and device models for the machine, enabling it to run \
5a variety of guest operating systems"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006HOMEPAGE = "http://qemu.org"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00007LICENSE = "GPL-2.0-only & LGPL-2.1-only"
Brad Bishop19323692019-04-05 15:28:33 -04008
Patrick Williams213cb262021-08-07 19:21:33 -05009RDEPENDS:${PN}-ptest = "bash"
Brad Bishop19323692019-04-05 15:28:33 -040010
Brad Bishop15ae2502019-06-18 21:44:24 -040011require qemu-targets.inc
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050012inherit pkgconfig ptest update-rc.d systemd
Brad Bishop15ae2502019-06-18 21:44:24 -040013
Brad Bishop19323692019-04-05 15:28:33 -040014LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \
Brad Bishopc342db32019-05-15 21:57:59 -040015 file://COPYING.LIB;endline=24;md5=8c5efda6cf1e1b03dcfd0e6c0d271c7f"
Brad Bishop19323692019-04-05 15:28:33 -040016
17SRC_URI = "https://download.qemu.org/${BPN}-${PV}.tar.xz \
18 file://powerpc_rom.bin \
Brad Bishop19323692019-04-05 15:28:33 -040019 file://run-ptest \
Andrew Geisslerd5838332022-05-27 11:33:10 -050020 file://0001-qemu-Add-addition-environment-space-to-boot-loader-q.patch \
Andrew Geisslerd5838332022-05-27 11:33:10 -050021 file://0003-apic-fixup-fallthrough-to-PIC.patch \
22 file://0004-configure-Add-pkg-config-handling-for-libgcrypt.patch \
23 file://0005-qemu-Do-not-include-file-if-not-exists.patch \
24 file://0006-qemu-Add-some-user-space-mmap-tweaks-to-address-musl.patch \
25 file://0007-qemu-Determinism-fixes.patch \
26 file://0008-tests-meson.build-use-relative-path-to-refer-to-file.patch \
27 file://0009-Define-MAP_SYNC-and-MAP_SHARED_VALIDATE-on-needed-li.patch \
28 file://0010-hw-pvrdma-Protect-against-buggy-or-malicious-guest-d.patch \
Andrew Geissler517393d2023-01-13 08:55:19 -060029 file://0002-linux-user-Replace-use-of-lfs64-related-functions-an.patch \
Patrick Williams8e7b46e2023-05-01 14:19:06 -050030 file://0001-tracetool-use-relative-paths-for-line-preprocessor-d.patch \
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050031 file://qemu-guest-agent.init \
32 file://qemu-guest-agent.udev \
Andrew Geisslerc9f78652020-09-18 14:11:35 -050033 "
Brad Bishop19323692019-04-05 15:28:33 -040034UPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+(\.\d+)+)\.tar"
35
Andrew Geissler8f840682023-07-21 09:09:43 -050036SRC_URI[sha256sum] = "ecf4d32cbef9d397bfc8cc50e4d1e92a1b30253bf32e8ee73c7a8dcf9a232b09"
Andrew Geisslerd1e89492021-02-12 15:35:20 -060037
Patrick Williams213cb262021-08-07 19:21:33 -050038SRC_URI:append:class-target = " file://cross.patch"
39SRC_URI:append:class-nativesdk = " file://cross.patch"
Brad Bishop19323692019-04-05 15:28:33 -040040
Andrew Geissler8f840682023-07-21 09:09:43 -050041CVE_STATUS[CVE-2017-5957] = "cpe-incorrect: Applies against virglrender < 0.6.0 and not qemu itself"
William A. Kennington IIIac69b482021-06-02 12:28:27 -070042
Andrew Geissler8f840682023-07-21 09:09:43 -050043CVE_STATUS[CVE-2007-0998] = "not-applicable-config: The VNC server can expose host files uder some circumstances. We don't enable it by default."
William A. Kennington IIIac69b482021-06-02 12:28:27 -070044
William A. Kennington IIIac69b482021-06-02 12:28:27 -070045# https://bugzilla.redhat.com/show_bug.cgi?id=1609015#c11
Andrew Geissler8f840682023-07-21 09:09:43 -050046CVE_STATUS[CVE-2018-18438] = "disputed: The issues identified by this CVE were determined to not constitute a vulnerability."
William A. Kennington IIIac69b482021-06-02 12:28:27 -070047
Andrew Geissler028142b2023-05-05 11:29:21 -050048# As per https://nvd.nist.gov/vuln/detail/CVE-2023-0664
49# https://bugzilla.redhat.com/show_bug.cgi?id=2167423
Andrew Geissler8f840682023-07-21 09:09:43 -050050CVE_STATUS[CVE-2023-0664] = "not-applicable-platform: Issue only applies on Windows"
Andrew Geissler028142b2023-05-05 11:29:21 -050051
Patrick Williams213cb262021-08-07 19:21:33 -050052COMPATIBLE_HOST:mipsarchn32 = "null"
53COMPATIBLE_HOST:mipsarchn64 = "null"
Andrew Geissler595f6302022-01-24 19:11:47 +000054COMPATIBLE_HOST:riscv32 = "null"
Brad Bishop19323692019-04-05 15:28:33 -040055
Andrew Geisslerc9f78652020-09-18 14:11:35 -050056# Per https://lists.nongnu.org/archive/html/qemu-devel/2020-09/msg03873.html
57# upstream states qemu doesn't work without optimization
58DEBUG_BUILD = "0"
59
Patrick Williams213cb262021-08-07 19:21:33 -050060do_install:append() {
Brad Bishop19323692019-04-05 15:28:33 -040061 # Prevent QA warnings about installed ${localstatedir}/run
62 if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi
63}
64
Brad Bishop19323692019-04-05 15:28:33 -040065do_install_ptest() {
66 cp -rL ${B}/tests ${D}${PTEST_PATH}
Andrew Geisslerd1e89492021-02-12 15:35:20 -060067 find ${D}${PTEST_PATH}/tests -type f -name "*.[Sshcodp]" | xargs -i rm -rf {}
Brad Bishop19323692019-04-05 15:28:33 -040068
Brad Bishop19323692019-04-05 15:28:33 -040069 # Don't check the file genreated by configure
Andrew Geissler635e0e42020-08-21 15:58:33 -050070 sed -i -e "1s,#!/usr/bin/bash,#!${base_bindir}/bash," ${D}${PTEST_PATH}/tests/data/acpi/disassemle-aml.sh
Andrew Geissler90fd73c2021-03-05 15:25:55 -060071
72 # Strip the paths from the QEMU variable, we can use PATH
Andrew Geissler517393d2023-01-13 08:55:19 -060073 makfiles=$(find ${D}${PTEST_PATH} -name "*.mak")
74 sed -i -e "s#^QEMU=.*/qemu-#QEMU=qemu-#g" $makfiles
Andrew Geisslereff27472021-10-29 15:35:00 -050075
Andrew Geissler87f5cff2022-09-30 13:13:31 -050076 # Strip compiler flags as they break reproducibility
77 sed -i -e "s,^CC=.*,CC=gcc," \
78 -e "s,^CCAS=.*,CCAS=gcc," \
Andrew Geissler517393d2023-01-13 08:55:19 -060079 -e "s,^LD=.*,LD=ld," $makfiles
Andrew Geissler87f5cff2022-09-30 13:13:31 -050080
81 # Update SRC_PATH variable to the right place on target
Andrew Geissler517393d2023-01-13 08:55:19 -060082 sed -i -e "s#^SRC_PATH=.*#SRC_PATH=${PTEST_PATH}#g" $makfiles
Andrew Geissler87f5cff2022-09-30 13:13:31 -050083
Andrew Geissler517393d2023-01-13 08:55:19 -060084 # https://gitlab.com/qemu-project/qemu/-/issues/1403
85 rm ${D}${PTEST_PATH}/tests/unit/test-io-channel-command
Brad Bishop19323692019-04-05 15:28:33 -040086}
87
Patrick Williamsc124f4f2015-09-15 14:41:29 -050088# QEMU_TARGETS is overridable variable
Patrick Williams864cc432023-02-09 14:54:44 -060089QEMU_TARGETS ?= "arm aarch64 i386 loongarch64 mips mipsel mips64 mips64el ppc ppc64 ppc64le riscv32 riscv64 sh4 x86_64"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050090
Brad Bishop6e60e8b2018-02-01 10:27:11 -050091EXTRA_OECONF = " \
92 --prefix=${prefix} \
93 --bindir=${bindir} \
94 --includedir=${includedir} \
95 --libdir=${libdir} \
96 --mandir=${mandir} \
97 --datadir=${datadir} \
98 --docdir=${docdir}/${BPN} \
99 --sysconfdir=${sysconfdir} \
100 --libexecdir=${libexecdir} \
101 --localstatedir=${localstatedir} \
Andrew Geisslerd1e89492021-02-12 15:35:20 -0600102 --with-suffix=${BPN} \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500103 --disable-strip \
104 --disable-werror \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500105 --extra-cflags='${CFLAGS}' \
Andrew Geisslerd25ed322020-06-27 00:28:28 -0500106 --extra-ldflags='${LDFLAGS}' \
Andrew Geissler82c905d2020-04-13 13:39:40 -0500107 --with-git=/bin/false \
William A. Kennington IIIac69b482021-06-02 12:28:27 -0700108 --with-git-submodules=ignore \
Andrew Geisslerd1e89492021-02-12 15:35:20 -0600109 --meson=meson \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800110 ${PACKAGECONFIG_CONFARGS} \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500111 "
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600112
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800113B = "${WORKDIR}/build"
114
Patrick Williams0ca19cc2021-08-16 14:03:13 -0500115#EXTRA_OECONF:append = " --python=${HOSTTOOLS_DIR}/python3"
Brad Bishop96ff1982019-08-19 13:50:42 -0400116
Patrick Williams213cb262021-08-07 19:21:33 -0500117do_configure:prepend:class-native() {
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500118 # Append build host pkg-config paths for native target since the host may provide sdl
119 BHOST_PKGCONFIG_PATH=$(PATH=/usr/bin:/bin pkg-config --variable pc_path pkg-config || echo "")
120 if [ ! -z "$BHOST_PKGCONFIG_PATH" ]; then
121 export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$BHOST_PKGCONFIG_PATH
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500122 fi
123}
124
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500125do_configure() {
Andrew Geissler78b72792022-06-14 06:47:25 -0500126 ${S}/configure ${EXTRA_OECONF}
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500127}
Brad Bishop64c979e2019-11-04 13:55:29 -0500128do_configure[cleandirs] += "${B}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500129
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500130do_install () {
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800131 export STRIP=""
132 oe_runmake 'DESTDIR=${D}' install
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500133
134 # If we built the guest agent, also install startup/udev rules
135 if [ -e "${D}${bindir}/qemu-ga" ]; then
136 install -d ${D}${sysconfdir}/init.d/
137 install -m 0755 ${WORKDIR}/qemu-guest-agent.init ${D}${sysconfdir}/init.d/qemu-guest-agent
138 sed -i 's:@bindir@:${bindir}:' ${D}${sysconfdir}/init.d/qemu-guest-agent
139
140 install -d ${D}${sysconfdir}/udev/rules.d/
141 install -m 0644 ${WORKDIR}/qemu-guest-agent.udev ${D}${sysconfdir}/udev/rules.d/60-qemu-guest-agent.rules
142
143 install -d ${D}${systemd_unitdir}/system/
144 install -m 0644 ${S}/contrib/systemd/qemu-guest-agent.service ${D}${systemd_unitdir}/system
145 sed -i -e 's,-/usr/bin/,-${bindir}/,g' ${D}${systemd_unitdir}/system/qemu-guest-agent.service
146 fi
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500147}
148
149# The following fragment will create a wrapper for qemu-mips user emulation
150# binary in order to work around a segmentation fault issue. Basically, by
151# default, the reserved virtual address space for 32-on-64 bit is set to 4GB.
152# This will trigger a MMU access fault in the virtual CPU. With this change,
153# the qemu-mips works fine.
154# IMPORTANT: This piece needs to be removed once the root cause is fixed!
Patrick Williams213cb262021-08-07 19:21:33 -0500155do_install:append() {
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500156 if [ -e "${D}/${bindir}/qemu-mips" ]; then
157 create_wrapper ${D}/${bindir}/qemu-mips \
158 QEMU_RESERVED_VA=0x0
159 fi
160}
161# END of qemu-mips workaround
162
Brad Bishop19323692019-04-05 15:28:33 -0400163# Disable kvm/virgl/mesa on targets that do not support it
Andrew Geissler9aee5002022-03-30 16:27:02 +0000164PACKAGECONFIG:remove:darwin = "kvm virglrenderer epoxy gtk+"
165PACKAGECONFIG:remove:mingw32 = "kvm virglrenderer epoxy gtk+"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600166
Brad Bishopc342db32019-05-15 21:57:59 -0400167PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl2"
Andrew Geissler517393d2023-01-13 08:55:19 -0600168PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng"
Andrew Geisslerb7d28612020-07-24 16:15:54 -0500169PACKAGECONFIG[virtfs] = "--enable-virtfs --enable-attr --enable-cap-ng,--disable-virtfs,libcap-ng attr,"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500170PACKAGECONFIG[aio] = "--enable-linux-aio,--disable-linux-aio,libaio,"
Patrick Williamsdb4c27e2022-08-05 08:10:29 -0500171PACKAGECONFIG[uring] = "--enable-linux-io-uring,--disable-linux-io-uring,liburing"
Andrew Geissler82c905d2020-04-13 13:39:40 -0500172PACKAGECONFIG[xen] = "--enable-xen,--disable-xen,xen-tools,xen-tools-libxenstore xen-tools-libxenctrl xen-tools-libxenguest"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500173PACKAGECONFIG[vnc-sasl] = "--enable-vnc --enable-vnc-sasl,--disable-vnc-sasl,cyrus-sasl,"
174PACKAGECONFIG[vnc-jpeg] = "--enable-vnc --enable-vnc-jpeg,--disable-vnc-jpeg,jpeg,"
Brad Bishop79641f22019-09-10 07:20:22 -0400175PACKAGECONFIG[libcurl] = "--enable-curl,--disable-curl,curl,"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500176PACKAGECONFIG[nss] = "--enable-smartcard,--disable-smartcard,nss,"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500177PACKAGECONFIG[curses] = "--enable-curses,--disable-curses,ncurses,"
Brad Bishopc342db32019-05-15 21:57:59 -0400178PACKAGECONFIG[gtk+] = "--enable-gtk,--disable-gtk,gtk+3 gettext-native"
179PACKAGECONFIG[vte] = "--enable-vte,--disable-vte,vte gettext-native"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500180PACKAGECONFIG[libcap-ng] = "--enable-cap-ng,--disable-cap-ng,libcap-ng,"
Brad Bishopc68388fc2019-08-26 01:33:31 -0400181PACKAGECONFIG[ssh] = "--enable-libssh,--disable-libssh,libssh,"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500182PACKAGECONFIG[gcrypt] = "--enable-gcrypt,--disable-gcrypt,libgcrypt,"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500183PACKAGECONFIG[nettle] = "--enable-nettle,--disable-nettle,nettle"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500184PACKAGECONFIG[libusb] = "--enable-libusb,--disable-libusb,libusb1"
185PACKAGECONFIG[fdt] = "--enable-fdt,--disable-fdt,dtc"
Andrew Geissler595f6302022-01-24 19:11:47 +0000186PACKAGECONFIG[alsa] = "--audio-drv-list=default,,alsa-lib"
Andrew Geissler9aee5002022-03-30 16:27:02 +0000187PACKAGECONFIG[epoxy] = "--enable-opengl,--disable-opengl,libepoxy"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500188PACKAGECONFIG[lzo] = "--enable-lzo,--disable-lzo,lzo"
189PACKAGECONFIG[numa] = "--enable-numa,--disable-numa,numactl"
190PACKAGECONFIG[gnutls] = "--enable-gnutls,--disable-gnutls,gnutls"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600191PACKAGECONFIG[bzip2] = "--enable-bzip2,--disable-bzip2,bzip2"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500192PACKAGECONFIG[libiscsi] = "--enable-libiscsi,--disable-libiscsi"
193PACKAGECONFIG[kvm] = "--enable-kvm,--disable-kvm"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800194PACKAGECONFIG[virglrenderer] = "--enable-virglrenderer,--disable-virglrenderer,virglrenderer"
195# spice will be in meta-networking layer
196PACKAGECONFIG[spice] = "--enable-spice,--disable-spice,spice"
197# usbredir will be in meta-networking layer
198PACKAGECONFIG[usb-redir] = "--enable-usb-redir,--disable-usb-redir,usbredir"
Brad Bishopc342db32019-05-15 21:57:59 -0400199PACKAGECONFIG[snappy] = "--enable-snappy,--disable-snappy,snappy"
Andrew Geisslerd25ed322020-06-27 00:28:28 -0500200PACKAGECONFIG[glusterfs] = "--enable-glusterfs,--disable-glusterfs,glusterfs"
Andrew Geissler82c905d2020-04-13 13:39:40 -0500201PACKAGECONFIG[xkbcommon] = "--enable-xkbcommon,--disable-xkbcommon,libxkbcommon"
202PACKAGECONFIG[libudev] = "--enable-libudev,--disable-libudev,eudev"
Andrew Geisslerd25ed322020-06-27 00:28:28 -0500203PACKAGECONFIG[attr] = "--enable-attr,--disable-attr,attr,"
204PACKAGECONFIG[rbd] = "--enable-rbd,--disable-rbd,ceph,ceph"
205PACKAGECONFIG[vhost] = "--enable-vhost-net,--disable-vhost-net,,"
Patrick Williams8e7b46e2023-05-01 14:19:06 -0500206PACKAGECONFIG[ust] = "--enable-trace-backends=ust,,lttng-ust,"
Andrew Geisslerd25ed322020-06-27 00:28:28 -0500207PACKAGECONFIG[pie] = "--enable-pie,--disable-pie,,"
Andrew Geisslerd1e89492021-02-12 15:35:20 -0600208PACKAGECONFIG[seccomp] = "--enable-seccomp,--disable-seccomp,libseccomp"
Andrew Geisslereff27472021-10-29 15:35:00 -0500209# libnfs is currently provided by meta-kodi
210PACKAGECONFIG[libnfs] = "--enable-libnfs,--disable-libnfs,libnfs"
211PACKAGECONFIG[pmem] = "--enable-libpmem,--disable-libpmem,pmdk"
Andrew Geissler8f840682023-07-21 09:09:43 -0500212PACKAGECONFIG[pulseaudio] = "--enable-pa,--disable-pa,pulseaudio"
Andrew Geissler595f6302022-01-24 19:11:47 +0000213PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux"
Andrew Geisslerd5838332022-05-27 11:33:10 -0500214PACKAGECONFIG[bpf] = "--enable-bpf,--disable-bpf,libbpf"
Andrew Geissler615f2f12022-07-15 14:00:58 -0500215PACKAGECONFIG[capstone] = "--enable-capstone,--disable-capstone"
216PACKAGECONFIG[rdma] = "--enable-rdma,--disable-rdma"
217PACKAGECONFIG[vde] = "--enable-vde,--disable-vde"
Andrew Geissler517393d2023-01-13 08:55:19 -0600218PACKAGECONFIG[slirp] = "--enable-slirp,--disable-slirp,libslirp"
Andrew Geissler615f2f12022-07-15 14:00:58 -0500219PACKAGECONFIG[brlapi] = "--enable-brlapi,--disable-brlapi"
Patrick Williams2390b1b2022-11-03 13:47:49 -0500220PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack,"
Patrick Williamse760df82023-05-26 11:10:49 -0500221PACKAGECONFIG[debuginfo] = "--enable-libdw,--disable-libdw,elfutils"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500222
Patrick Williams213cb262021-08-07 19:21:33 -0500223INSANE_SKIP:${PN} = "arch"
Brad Bishopc342db32019-05-15 21:57:59 -0400224
Patrick Williams213cb262021-08-07 19:21:33 -0500225FILES:${PN} += "${datadir}/icons"
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500226
Patrick Williams520786c2023-06-25 16:20:36 -0500227# For user who want to install all arch packages
228PACKAGES =+ "${PN}-system-all ${PN}-user-all"
229
230ALLOW_EMPTY:${PN}-system-all = "1"
231ALLOW_EMPTY:${PN}-user-all = "1"
232
Andrew Geissler8f840682023-07-21 09:09:43 -0500233PACKAGES_DYNAMIC += "^${PN}-user-.* ^${PN}-system-.*"
234
Patrick Williams520786c2023-06-25 16:20:36 -0500235PACKAGESPLITFUNCS =+ "split_qemu_packages"
236
237python split_qemu_packages () {
238 archdir = d.expand('${bindir}/')
239 syspackages = do_split_packages(d, archdir, r'^qemu-system-(.*)$', '${PN}-system-%s', 'QEMU full system emulation binaries(%s)' , prepend=True)
240 if syspackages:
241 d.setVar('RDEPENDS:' + d.getVar('PN') + '-system-all', ' '.join(syspackages))
242
243 userpackages = do_split_packages(d, archdir, r'^qemu-((?!system|edid|ga|img|io|nbd|pr-helper|storage-daemon).*)$', '${PN}-user-%s', 'QEMU full user emulation binaries(%s)' , prepend=True)
244 if userpackages:
245 d.setVar('RDEPENDS:' + d.getVar('PN') + '-user-all', ' '.join(userpackages))
246 mipspackage = d.getVar('PN') + "-user-mips"
247 if mipspackage in ' '.join(userpackages):
248 d.appendVar('RDEPENDS:' + mipspackage, ' ' + d.getVar("MLPREFIX") + 'bash')
249}
250
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500251# Put the guest agent in a separate package
252PACKAGES =+ "${PN}-guest-agent"
253SUMMARY:${PN}-guest-agent = "QEMU guest agent"
254FILES:${PN}-guest-agent += " \
255 ${bindir}/qemu-ga \
256 ${sysconfdir}/udev/rules.d/60-qemu-guest-agent.rules \
257 ${sysconfdir}/init.d/qemu-guest-agent \
258 ${systemd_unitdir}/system/qemu-guest-agent.service \
259"
260
261INITSCRIPT_PACKAGES = "${PN}-guest-agent"
262INITSCRIPT_NAME:${PN}-guest-agent = "qemu-guest-agent"
263INITSCRIPT_PARAMS:${PN}-guest-agent = "defaults"
264
265SYSTEMD_PACKAGES = "${PN}-guest-agent"
266SYSTEMD_SERVICE:${PN}-guest-agent = "qemu-guest-agent.service"