blob: 9f7fad9886e02d3cf11c889c88537c99fcf4768a [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001BBCLASSEXTEND = "nativesdk"
2
3require qemu.inc
4
5DEPENDS = "glib-2.0 zlib pixman bison-native ninja-native meson-native"
6
7DEPENDS:append:libc-musl = " libucontext"
8
Andrew Geissler9aee5002022-03-30 16:27:02 +00009CFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '-DEGL_NO_X11=1', d)}"
10
Andrew Geissler595f6302022-01-24 19:11:47 +000011RDEPENDS:${PN}:class-target += "bash"
12
13EXTRA_OECONF:append:class-target = " --target-list=${@get_qemu_target_list(d)}"
14EXTRA_OECONF:append:class-target:mipsarcho32 = "${@bb.utils.contains('BBEXTENDCURR', 'multilib', ' --disable-capstone', '', d)}"
15EXTRA_OECONF:append:class-nativesdk = " --target-list=${@get_qemu_target_list(d)}"
16
Andrew Geissler595f6302022-01-24 19:11:47 +000017PACKAGECONFIG ??= " \
18 fdt sdl kvm pie \
19 ${@bb.utils.filter('DISTRO_FEATURES', 'alsa xen', d)} \
Andrew Geissler9aee5002022-03-30 16:27:02 +000020 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer epoxy', '', d)} \
Andrew Geissler595f6302022-01-24 19:11:47 +000021 ${@bb.utils.filter('DISTRO_FEATURES', 'seccomp', d)} \
22"
23PACKAGECONFIG:class-nativesdk ??= "fdt sdl kvm pie \
Andrew Geissler9aee5002022-03-30 16:27:02 +000024 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer epoxy', '', d)} \
Andrew Geissler595f6302022-01-24 19:11:47 +000025"
Andrew Geissler9aee5002022-03-30 16:27:02 +000026# ppc32 hosts are no longer supported in qemu
27COMPATIBLE_HOST:powerpc = "null"