xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/qemu/qemu.inc (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Fast open source processor emulator"
2*4882a593SmuzhiyunDESCRIPTION = "QEMU is a hosted virtual machine monitor: it emulates the \
3*4882a593Smuzhiyunmachine's processor through dynamic binary translation and provides a set \
4*4882a593Smuzhiyunof different hardware and device models for the machine, enabling it to run \
5*4882a593Smuzhiyuna variety of guest operating systems"
6*4882a593SmuzhiyunHOMEPAGE = "http://qemu.org"
7*4882a593SmuzhiyunLICENSE = "GPL-2.0-only & LGPL-2.1-only"
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunRDEPENDS:${PN}-ptest = "bash"
10*4882a593Smuzhiyun
11*4882a593Smuzhiyunrequire qemu-targets.inc
12*4882a593Smuzhiyuninherit pkgconfig ptest python3-dir
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \
15*4882a593Smuzhiyun                    file://COPYING.LIB;endline=24;md5=8c5efda6cf1e1b03dcfd0e6c0d271c7f"
16*4882a593SmuzhiyunSRC_URI = "https://download.qemu.org/${BPN}-${PV}.tar.xz \
17*4882a593Smuzhiyun           file://powerpc_rom.bin \
18*4882a593Smuzhiyun           file://run-ptest \
19*4882a593Smuzhiyun           file://0001-qemu-Add-missing-wacom-HID-descriptor.patch \
20*4882a593Smuzhiyun           file://0003-qemu-Add-addition-environment-space-to-boot-loader-q.patch \
21*4882a593Smuzhiyun           file://0006-chardev-connect-socket-to-a-spawned-command.patch \
22*4882a593Smuzhiyun           file://0007-apic-fixup-fallthrough-to-PIC.patch \
23*4882a593Smuzhiyun           file://0010-configure-Add-pkg-config-handling-for-libgcrypt.patch \
24*4882a593Smuzhiyun           file://0001-qemu-Do-not-include-file-if-not-exists.patch \
25*4882a593Smuzhiyun           file://mmap2.patch \
26*4882a593Smuzhiyun           file://determinism.patch \
27*4882a593Smuzhiyun           file://0001-tests-meson.build-use-relative-path-to-refer-to-file.patch \
28*4882a593Smuzhiyun           file://0001-riscv-Set-5.4-as-minimum-kernel-version-for-riscv32.patch \
29*4882a593Smuzhiyun           file://0001-acpi-tpm-Add-missing-device-identification-objects.patch \
30*4882a593Smuzhiyun           file://0001-ppc-Include-asm-ptrace.h-for-pt_regs-struct-definiti.patch \
31*4882a593Smuzhiyun           file://0001-Define-MAP_SYNC-and-MAP_SHARED_VALIDATE-on-needed-li.patch \
32*4882a593Smuzhiyun           file://0001-vhost-vsock-detach-the-virqueue-element-in-case-of-e.patch \
33*4882a593Smuzhiyun           file://0002-virtio-net-fix-map-leaking-on-error-during-receive.patch \
34*4882a593Smuzhiyun           file://pvrdma.patch \
35*4882a593Smuzhiyun           file://CVE-2021-4206.patch \
36*4882a593Smuzhiyun           file://CVE-2021-4207.patch \
37*4882a593Smuzhiyun           file://CVE-2022-35414.patch \
38*4882a593Smuzhiyun           file://CVE-2021-3929.patch \
39*4882a593Smuzhiyun           file://CVE-2021-4158.patch \
40*4882a593Smuzhiyun           file://CVE-2022-0358.patch \
41*4882a593Smuzhiyun           file://CVE-2022-0216_1.patch \
42*4882a593Smuzhiyun           file://CVE-2022-0216_2.patch \
43*4882a593Smuzhiyun           file://CVE-2021-3750-1.patch \
44*4882a593Smuzhiyun           file://CVE-2021-3750-2.patch \
45*4882a593Smuzhiyun           file://CVE-2021-3750-3.patch \
46*4882a593Smuzhiyun           file://0001-use-uint32t-for-reply-queue-head-tail-values.patch \
47*4882a593Smuzhiyun           file://0002_let_dma_memory_valid_function_take_MemTxAttrs_argument.patch \
48*4882a593Smuzhiyun           file://0003_let_dma_memory_set_function_take_MemTxAttrs_argument.patch \
49*4882a593Smuzhiyun           file://0004_let_dma_memory_rw_relaxed_function_take_MemTxAttrs_argument.patch \
50*4882a593Smuzhiyun           file://0005_let_dma_memory_rw_function_take_MemTxAttrs_argument.patch \
51*4882a593Smuzhiyun           file://0006_let_dma_memory_read_write_function_take_MemTxAttrs_argument.patch \
52*4882a593Smuzhiyun           file://0007_let_dma_memory_map_function_take_MemTxAttrs_argument.patch \
53*4882a593Smuzhiyun           file://0008_have_dma_buf_rw_function_take_a_void_pointer.patch \
54*4882a593Smuzhiyun           file://0009_have_dma_buf_read_and_dma_buf_write_functions_take_a_void.patch \
55*4882a593Smuzhiyun           file://0010_let_pci_dma_rw_function_take_MemTxAttrs_argument.patch \
56*4882a593Smuzhiyun           file://0011_let_dma_buf_rw_function_take_MemTxAttrs_argument.patch \
57*4882a593Smuzhiyun           file://0012_let_dma_buf_write_function_take_MemTxAttrs_argument.patch \
58*4882a593Smuzhiyun           file://0013_let_dma_buf_read_function_take_MemTxAttrs_argument.patch \
59*4882a593Smuzhiyun           file://0014_let_dma_buf_rw_function_propagate_MemTxResult.patch \
60*4882a593Smuzhiyun           file://0015_let_st_pointer_dma_function_take_MemTxAttrs_argument.patch \
61*4882a593Smuzhiyun           file://0016_let_ld_pointer_dma_function_take_MemTxAttrs_argument.patch \
62*4882a593Smuzhiyun           file://0017_let_st_pointer_dma_function_propagate_MemTxResult.patch \
63*4882a593Smuzhiyun           file://0018_let_ld_pointer_dma_function_propagate_MemTxResult.patch \
64*4882a593Smuzhiyun           file://0019_let_st_pointer_pci_dma_function_take_MemTxAttrs_argument.patch \
65*4882a593Smuzhiyun           file://0020_let_ld_pointer_pci_dma_function_take_MemTxAttrs_argument.patch \
66*4882a593Smuzhiyun           file://0021_let_st_pointer_pci_dma_function_propagate_MemTxResult.patch \
67*4882a593Smuzhiyun           file://0022_let_ld_pointer_pci_dma_function_propagate_MemTxResult.patch \
68*4882a593Smuzhiyun           file://CVE-2021-3611_1.patch \
69*4882a593Smuzhiyun           file://CVE-2021-3611_2.patch \
70*4882a593Smuzhiyun           file://0001-net-tulip-Restrict-DMA-engine-to-memories.patch \
71*4882a593Smuzhiyun           file://0001-softfloat-Extend-float_exception_flags-to-16-bits.patch \
72*4882a593Smuzhiyun           file://0002-softfloat-Add-flag-specific-to-Inf-Inf.patch \
73*4882a593Smuzhiyun           file://0003-softfloat-Add-flag-specific-to-Inf-0.patch \
74*4882a593Smuzhiyun           file://0004-softfloat-Add-flags-specific-to-Inf-Inf-and-0-0.patch \
75*4882a593Smuzhiyun           file://0005-softfloat-Add-flag-specific-to-signaling-nans.patch \
76*4882a593Smuzhiyun           file://0006-target-ppc-Update-float_invalid_op_addsub-for-new-fl.patch \
77*4882a593Smuzhiyun           file://0007-target-ppc-Update-float_invalid_op_mul-for-new-flags.patch \
78*4882a593Smuzhiyun           file://0008-target-ppc-Update-float_invalid_op_div-for-new-flags.patch \
79*4882a593Smuzhiyun           file://0009-target-ppc-Update-fmadd-for-new-flags.patch \
80*4882a593Smuzhiyun           file://0010-target-ppc-Split-out-do_fmadd.patch \
81*4882a593Smuzhiyun           file://0011-target-ppc-Fix-xs-max-min-cj-dp-to-use-VSX-registers.patch \
82*4882a593Smuzhiyun           file://0012-target-ppc-Move-xs-max-min-cj-dp-to-decodetree.patch \
83*4882a593Smuzhiyun           file://0013-target-ppc-fix-xscvqpdp-register-access.patch \
84*4882a593Smuzhiyun           file://0014-target-ppc-move-xscvqpdp-to-decodetree.patch \
85*4882a593Smuzhiyun           file://0015-target-ppc-ppc_store_fpscr-doesn-t-update-bits-0-to-.patch \
86*4882a593Smuzhiyun           file://0016-target-ppc-Introduce-TRANS-FLAGS-macros.patch \
87*4882a593Smuzhiyun           file://0017-target-ppc-Implement-Vector-Expand-Mask.patch \
88*4882a593Smuzhiyun           file://0018-target-ppc-Implement-Vector-Extract-Mask.patch \
89*4882a593Smuzhiyun           file://0019-target-ppc-Implement-Vector-Mask-Move-insns.patch \
90*4882a593Smuzhiyun           file://0020-target-ppc-move-xs-n-madd-am-ds-p-xs-n-msub-am-ds-p-.patch \
91*4882a593Smuzhiyun           file://0021-target-ppc-implement-xs-n-maddqp-o-xs-n-msubqp-o.patch \
92*4882a593Smuzhiyun           file://CVE-2022-3165.patch \
93*4882a593Smuzhiyun           file://CVE-2022-4144.patch \
94*4882a593Smuzhiyun           file://0001-hw-display-qxl-Have-qxl_log_command-Return-early-if-.patch \
95*4882a593Smuzhiyun           file://0001-hw-display-qxl-Pass-requested-buffer-size-to-qxl_phy.patch \
96*4882a593Smuzhiyun           "
97*4882a593SmuzhiyunUPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+(\.\d+)+)\.tar"
98*4882a593Smuzhiyun
99*4882a593SmuzhiyunSRC_URI[sha256sum] = "68e15d8e45ac56326e0b9a4afa8b49a3dfe8aba3488221d098c84698bca65b45"
100*4882a593Smuzhiyun
101*4882a593SmuzhiyunSRC_URI:append:class-target = " file://cross.patch"
102*4882a593SmuzhiyunSRC_URI:append:class-nativesdk = " file://cross.patch"
103*4882a593Smuzhiyun
104*4882a593Smuzhiyun# Applies against virglrender < 0.6.0 and not qemu itself
105*4882a593SmuzhiyunCVE_CHECK_IGNORE += "CVE-2017-5957"
106*4882a593Smuzhiyun
107*4882a593Smuzhiyun# The VNC server can expose host files uder some circumstances. We don't
108*4882a593Smuzhiyun# enable it by default.
109*4882a593SmuzhiyunCVE_CHECK_IGNORE += "CVE-2007-0998"
110*4882a593Smuzhiyun
111*4882a593Smuzhiyun# 'The issues identified by this CVE were determined to not constitute a vulnerability.'
112*4882a593Smuzhiyun# https://bugzilla.redhat.com/show_bug.cgi?id=1609015#c11
113*4882a593SmuzhiyunCVE_CHECK_IGNORE += "CVE-2018-18438"
114*4882a593Smuzhiyun
115*4882a593SmuzhiyunCOMPATIBLE_HOST:mipsarchn32 = "null"
116*4882a593SmuzhiyunCOMPATIBLE_HOST:mipsarchn64 = "null"
117*4882a593SmuzhiyunCOMPATIBLE_HOST:riscv32 = "null"
118*4882a593Smuzhiyun
119*4882a593Smuzhiyun# Per https://lists.nongnu.org/archive/html/qemu-devel/2020-09/msg03873.html
120*4882a593Smuzhiyun# upstream states qemu doesn't work without optimization
121*4882a593SmuzhiyunDEBUG_BUILD = "0"
122*4882a593Smuzhiyun
123*4882a593Smuzhiyundo_install:append() {
124*4882a593Smuzhiyun    # Prevent QA warnings about installed ${localstatedir}/run
125*4882a593Smuzhiyun    if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi
126*4882a593Smuzhiyun}
127*4882a593Smuzhiyun
128*4882a593Smuzhiyundo_install_ptest() {
129*4882a593Smuzhiyun	cp -rL ${B}/tests ${D}${PTEST_PATH}
130*4882a593Smuzhiyun	find ${D}${PTEST_PATH}/tests -type f -name "*.[Sshcodp]" | xargs -i rm -rf {}
131*4882a593Smuzhiyun
132*4882a593Smuzhiyun	# Don't check the file genreated by configure
133*4882a593Smuzhiyun	sed -i -e "1s,#!/usr/bin/bash,#!${base_bindir}/bash," ${D}${PTEST_PATH}/tests/data/acpi/disassemle-aml.sh
134*4882a593Smuzhiyun
135*4882a593Smuzhiyun	# Strip the paths from the QEMU variable, we can use PATH
136*4882a593Smuzhiyun	sed -i -e "s#^QEMU=.*/qemu-#QEMU=qemu-#g" ${D}${PTEST_PATH}/tests/tcg/*.mak
137*4882a593Smuzhiyun
138*4882a593Smuzhiyun        # Strip compiler flags as they break reproducibility
139*4882a593Smuzhiyun        sed -i -e "s,CROSS_CC_GUEST=.*,CROSS_CC_GUEST=," ${D}${PTEST_PATH}/tests/tcg/*.mak
140*4882a593Smuzhiyun}
141*4882a593Smuzhiyun
142*4882a593Smuzhiyun# QEMU_TARGETS is overridable variable
143*4882a593SmuzhiyunQEMU_TARGETS ?= "arm aarch64 i386 mips mipsel mips64 mips64el ppc ppc64 ppc64le riscv32 riscv64 sh4 x86_64"
144*4882a593Smuzhiyun
145*4882a593SmuzhiyunEXTRA_OECONF = " \
146*4882a593Smuzhiyun    --prefix=${prefix} \
147*4882a593Smuzhiyun    --bindir=${bindir} \
148*4882a593Smuzhiyun    --includedir=${includedir} \
149*4882a593Smuzhiyun    --libdir=${libdir} \
150*4882a593Smuzhiyun    --mandir=${mandir} \
151*4882a593Smuzhiyun    --datadir=${datadir} \
152*4882a593Smuzhiyun    --docdir=${docdir}/${BPN} \
153*4882a593Smuzhiyun    --sysconfdir=${sysconfdir} \
154*4882a593Smuzhiyun    --libexecdir=${libexecdir} \
155*4882a593Smuzhiyun    --localstatedir=${localstatedir} \
156*4882a593Smuzhiyun    --with-suffix=${BPN} \
157*4882a593Smuzhiyun    --disable-strip \
158*4882a593Smuzhiyun    --disable-werror \
159*4882a593Smuzhiyun    --extra-cflags='${CFLAGS}' \
160*4882a593Smuzhiyun    --extra-ldflags='${LDFLAGS}' \
161*4882a593Smuzhiyun    --with-git=/bin/false \
162*4882a593Smuzhiyun    --with-git-submodules=ignore \
163*4882a593Smuzhiyun    --meson=meson \
164*4882a593Smuzhiyun    ${PACKAGECONFIG_CONFARGS} \
165*4882a593Smuzhiyun    "
166*4882a593Smuzhiyun
167*4882a593SmuzhiyunB = "${WORKDIR}/build"
168*4882a593Smuzhiyun
169*4882a593Smuzhiyun#EXTRA_OECONF:append = " --python=${HOSTTOOLS_DIR}/python3"
170*4882a593Smuzhiyun
171*4882a593Smuzhiyundo_configure:prepend:class-native() {
172*4882a593Smuzhiyun	# Append build host pkg-config paths for native target since the host may provide sdl
173*4882a593Smuzhiyun	BHOST_PKGCONFIG_PATH=$(PATH=/usr/bin:/bin pkg-config --variable pc_path pkg-config || echo "")
174*4882a593Smuzhiyun	if [ ! -z "$BHOST_PKGCONFIG_PATH" ]; then
175*4882a593Smuzhiyun		export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$BHOST_PKGCONFIG_PATH
176*4882a593Smuzhiyun	fi
177*4882a593Smuzhiyun}
178*4882a593Smuzhiyun
179*4882a593Smuzhiyundo_configure() {
180*4882a593Smuzhiyun	# This is taken from meson.bbclass to avoid errors when updating to a
181*4882a593Smuzhiyun	# new version of meson.
182*4882a593Smuzhiyun	rmdir ${STAGING_LIBDIR_NATIVE}/${PYTHON_DIR}/site-packages/*.egg-info 2>/dev/null || :
183*4882a593Smuzhiyun
184*4882a593Smuzhiyun	${S}/configure ${EXTRA_OECONF}
185*4882a593Smuzhiyun}
186*4882a593Smuzhiyundo_configure[cleandirs] += "${B}"
187*4882a593Smuzhiyun
188*4882a593Smuzhiyundo_install () {
189*4882a593Smuzhiyun	export STRIP=""
190*4882a593Smuzhiyun	oe_runmake 'DESTDIR=${D}' install
191*4882a593Smuzhiyun}
192*4882a593Smuzhiyun
193*4882a593Smuzhiyun# The following fragment will create a wrapper for qemu-mips user emulation
194*4882a593Smuzhiyun# binary in order to work around a segmentation fault issue. Basically, by
195*4882a593Smuzhiyun# default, the reserved virtual address space for 32-on-64 bit is set to 4GB.
196*4882a593Smuzhiyun# This will trigger a MMU access fault in the virtual CPU. With this change,
197*4882a593Smuzhiyun# the qemu-mips works fine.
198*4882a593Smuzhiyun# IMPORTANT: This piece needs to be removed once the root cause is fixed!
199*4882a593Smuzhiyundo_install:append() {
200*4882a593Smuzhiyun	if [ -e "${D}/${bindir}/qemu-mips" ]; then
201*4882a593Smuzhiyun		create_wrapper ${D}/${bindir}/qemu-mips \
202*4882a593Smuzhiyun			QEMU_RESERVED_VA=0x0
203*4882a593Smuzhiyun	fi
204*4882a593Smuzhiyun}
205*4882a593Smuzhiyun# END of qemu-mips workaround
206*4882a593Smuzhiyun
207*4882a593Smuzhiyun# Disable kvm/virgl/mesa on targets that do not support it
208*4882a593SmuzhiyunPACKAGECONFIG:remove:darwin = "kvm virglrenderer epoxy gtk+"
209*4882a593SmuzhiyunPACKAGECONFIG:remove:mingw32 = "kvm virglrenderer epoxy gtk+"
210*4882a593Smuzhiyun
211*4882a593SmuzhiyunPACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl2"
212*4882a593SmuzhiyunPACKAGECONFIG[virtfs] = "--enable-virtfs --enable-attr --enable-cap-ng,--disable-virtfs,libcap-ng attr,"
213*4882a593SmuzhiyunPACKAGECONFIG[aio] = "--enable-linux-aio,--disable-linux-aio,libaio,"
214*4882a593SmuzhiyunPACKAGECONFIG[uring] = "--enable-linux-io-uring,--disable-linux-io-uring,liburing"
215*4882a593SmuzhiyunPACKAGECONFIG[xfs] = "--enable-xfsctl,--disable-xfsctl,xfsprogs,"
216*4882a593SmuzhiyunPACKAGECONFIG[xen] = "--enable-xen,--disable-xen,xen-tools,xen-tools-libxenstore xen-tools-libxenctrl xen-tools-libxenguest"
217*4882a593SmuzhiyunPACKAGECONFIG[vnc-sasl] = "--enable-vnc --enable-vnc-sasl,--disable-vnc-sasl,cyrus-sasl,"
218*4882a593SmuzhiyunPACKAGECONFIG[vnc-jpeg] = "--enable-vnc --enable-vnc-jpeg,--disable-vnc-jpeg,jpeg,"
219*4882a593SmuzhiyunPACKAGECONFIG[vnc-png] = "--enable-vnc --enable-vnc-png,--disable-vnc-png,libpng,"
220*4882a593SmuzhiyunPACKAGECONFIG[libcurl] = "--enable-curl,--disable-curl,curl,"
221*4882a593SmuzhiyunPACKAGECONFIG[nss] = "--enable-smartcard,--disable-smartcard,nss,"
222*4882a593SmuzhiyunPACKAGECONFIG[curses] = "--enable-curses,--disable-curses,ncurses,"
223*4882a593SmuzhiyunPACKAGECONFIG[gtk+] = "--enable-gtk,--disable-gtk,gtk+3 gettext-native"
224*4882a593SmuzhiyunPACKAGECONFIG[vte] = "--enable-vte,--disable-vte,vte gettext-native"
225*4882a593SmuzhiyunPACKAGECONFIG[libcap-ng] = "--enable-cap-ng,--disable-cap-ng,libcap-ng,"
226*4882a593SmuzhiyunPACKAGECONFIG[ssh] = "--enable-libssh,--disable-libssh,libssh,"
227*4882a593SmuzhiyunPACKAGECONFIG[gcrypt] = "--enable-gcrypt,--disable-gcrypt,libgcrypt,"
228*4882a593SmuzhiyunPACKAGECONFIG[nettle] = "--enable-nettle,--disable-nettle,nettle"
229*4882a593SmuzhiyunPACKAGECONFIG[libusb] = "--enable-libusb,--disable-libusb,libusb1"
230*4882a593SmuzhiyunPACKAGECONFIG[fdt] = "--enable-fdt,--disable-fdt,dtc"
231*4882a593SmuzhiyunPACKAGECONFIG[alsa] = "--audio-drv-list=default,,alsa-lib"
232*4882a593SmuzhiyunPACKAGECONFIG[epoxy] = "--enable-opengl,--disable-opengl,libepoxy"
233*4882a593SmuzhiyunPACKAGECONFIG[lzo] = "--enable-lzo,--disable-lzo,lzo"
234*4882a593SmuzhiyunPACKAGECONFIG[numa] = "--enable-numa,--disable-numa,numactl"
235*4882a593SmuzhiyunPACKAGECONFIG[gnutls] = "--enable-gnutls,--disable-gnutls,gnutls"
236*4882a593SmuzhiyunPACKAGECONFIG[bzip2] = "--enable-bzip2,--disable-bzip2,bzip2"
237*4882a593SmuzhiyunPACKAGECONFIG[libiscsi] = "--enable-libiscsi,--disable-libiscsi"
238*4882a593SmuzhiyunPACKAGECONFIG[kvm] = "--enable-kvm,--disable-kvm"
239*4882a593SmuzhiyunPACKAGECONFIG[virglrenderer] = "--enable-virglrenderer,--disable-virglrenderer,virglrenderer"
240*4882a593Smuzhiyun# spice will be in meta-networking layer
241*4882a593SmuzhiyunPACKAGECONFIG[spice] = "--enable-spice,--disable-spice,spice"
242*4882a593Smuzhiyun# usbredir will be in meta-networking layer
243*4882a593SmuzhiyunPACKAGECONFIG[usb-redir] = "--enable-usb-redir,--disable-usb-redir,usbredir"
244*4882a593SmuzhiyunPACKAGECONFIG[snappy] = "--enable-snappy,--disable-snappy,snappy"
245*4882a593SmuzhiyunPACKAGECONFIG[glusterfs] = "--enable-glusterfs,--disable-glusterfs,glusterfs"
246*4882a593SmuzhiyunPACKAGECONFIG[xkbcommon] = "--enable-xkbcommon,--disable-xkbcommon,libxkbcommon"
247*4882a593SmuzhiyunPACKAGECONFIG[libudev] = "--enable-libudev,--disable-libudev,eudev"
248*4882a593SmuzhiyunPACKAGECONFIG[libxml2] = "--enable-libxml2,--disable-libxml2,libxml2"
249*4882a593SmuzhiyunPACKAGECONFIG[attr] = "--enable-attr,--disable-attr,attr,"
250*4882a593SmuzhiyunPACKAGECONFIG[rbd] = "--enable-rbd,--disable-rbd,ceph,ceph"
251*4882a593SmuzhiyunPACKAGECONFIG[vhost] = "--enable-vhost-net,--disable-vhost-net,,"
252*4882a593SmuzhiyunPACKAGECONFIG[ust] = "--enable-trace-backend=ust,--enable-trace-backend=nop,lttng-ust,"
253*4882a593SmuzhiyunPACKAGECONFIG[pie] = "--enable-pie,--disable-pie,,"
254*4882a593SmuzhiyunPACKAGECONFIG[seccomp] = "--enable-seccomp,--disable-seccomp,libseccomp"
255*4882a593Smuzhiyun# libnfs is currently provided by meta-kodi
256*4882a593SmuzhiyunPACKAGECONFIG[libnfs] = "--enable-libnfs,--disable-libnfs,libnfs"
257*4882a593SmuzhiyunPACKAGECONFIG[pmem] = "--enable-libpmem,--disable-libpmem,pmdk"
258*4882a593SmuzhiyunPACKAGECONFIG[pulsedio] = "--enable-pa,--disable-pa,pulseaudio"
259*4882a593SmuzhiyunPACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux"
260*4882a593SmuzhiyunPACKAGECONFIG[bpf] = "--enable-bpf,--disable-bpf,libbpf"
261*4882a593SmuzhiyunPACKAGECONFIG[capstone] = "--enable-capstone,--disable-capstone"
262*4882a593SmuzhiyunPACKAGECONFIG[rdma] = "--enable-rdma,--disable-rdma"
263*4882a593SmuzhiyunPACKAGECONFIG[vde] = "--enable-vde,--disable-vde"
264*4882a593SmuzhiyunPACKAGECONFIG[slirp] = "--enable-slirp=internal,--disable-slirp"
265*4882a593SmuzhiyunPACKAGECONFIG[brlapi] = "--enable-brlapi,--disable-brlapi"
266*4882a593SmuzhiyunPACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack,"
267*4882a593Smuzhiyun
268*4882a593SmuzhiyunINSANE_SKIP:${PN} = "arch"
269*4882a593Smuzhiyun
270*4882a593SmuzhiyunFILES:${PN} += "${datadir}/icons"
271