blob: 84ee0bcc4922801d3e76cfc1f532eb3d4dce5ae7 [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 Geissler5082cc72023-09-11 08:41:39 -040011RDEPENDS:${PN}-common:class-target += "bash"
Andrew Geissler595f6302022-01-24 19:11:47 +000012
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 ??= " \
Andrew Geissler615f2f12022-07-15 14:00:58 -050018 fdt sdl kvm pie slirp \
Andrew Geissler5082cc72023-09-11 08:41:39 -040019 ${@bb.utils.filter('DISTRO_FEATURES', 'alsa pulseaudio 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"
Andrew Geissler615f2f12022-07-15 14:00:58 -050023PACKAGECONFIG:class-nativesdk ??= "fdt sdl kvm pie slirp \
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"