mirror of
https://git.yoctoproject.org/poky
synced 2026-03-10 17:29:40 +01:00
Add a PACKAGECONFIG option for slirp, defaulting to internal. This avoids the presence of libslirp on the host causing qemu to link against that instead breaking reproducibility and usability of the binary on hosts where the library isn't present. We need to add it to PACKAGECONFIG by default since users do expect slirp to be enabled in the wider community. (From OE-Core rev: 9637a46258a596ccb0a7ddc350b33a5fc6c7872e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 5a9a64132bf5ecac9d611d29751226a466c4a2c1) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
28 lines
1.0 KiB
BlitzBasic
28 lines
1.0 KiB
BlitzBasic
BBCLASSEXTEND = "nativesdk"
|
|
|
|
require qemu.inc
|
|
|
|
DEPENDS = "glib-2.0 zlib pixman bison-native ninja-native meson-native"
|
|
|
|
DEPENDS:append:libc-musl = " libucontext"
|
|
|
|
CFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '-DEGL_NO_X11=1', d)}"
|
|
|
|
RDEPENDS:${PN}:class-target += "bash"
|
|
|
|
EXTRA_OECONF:append:class-target = " --target-list=${@get_qemu_target_list(d)}"
|
|
EXTRA_OECONF:append:class-target:mipsarcho32 = "${@bb.utils.contains('BBEXTENDCURR', 'multilib', ' --disable-capstone', '', d)}"
|
|
EXTRA_OECONF:append:class-nativesdk = " --target-list=${@get_qemu_target_list(d)}"
|
|
|
|
PACKAGECONFIG ??= " \
|
|
fdt sdl kvm pie slirp \
|
|
${@bb.utils.filter('DISTRO_FEATURES', 'alsa xen', d)} \
|
|
${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer epoxy', '', d)} \
|
|
${@bb.utils.filter('DISTRO_FEATURES', 'seccomp', d)} \
|
|
"
|
|
PACKAGECONFIG:class-nativesdk ??= "fdt sdl kvm pie slirp \
|
|
${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer epoxy', '', d)} \
|
|
"
|
|
# ppc32 hosts are no longer supported in qemu
|
|
COMPATIBLE_HOST:powerpc = "null"
|