blob: 9b09490269328abcc3b6fb1c23c23bf2fcd6681d [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001BBCLASSEXTEND = "nativesdk"
2
3require qemu.inc
4
Brad Bishop79641f22019-09-10 07:20:22 -04005# error: a parameter list without types is only allowed in a function definition
6# void (*_function)(sigval_t);
7COMPATIBLE_HOST_libc-musl = 'null'
8
Brad Bishop15ae2502019-06-18 21:44:24 -04009DEPENDS = "glib-2.0 zlib pixman bison-native"
Brad Bishopc342db32019-05-15 21:57:59 -040010
11RDEPENDS_${PN}_class-target += "bash"
12
Andrew Geissler5a43b432020-06-13 10:46:56 -050013# Does not compile for -Og because that level does not clean up dead-code.
14# See lockable.h.
15#
16DEBUG_BUILD = "0"
17
Brad Bishopc342db32019-05-15 21:57:59 -040018EXTRA_OECONF_append_class-target = " --target-list=${@get_qemu_target_list(d)}"
Brad Bishopf3fd2882019-06-21 08:06:37 -040019EXTRA_OECONF_append_class-target_mipsarcho32 = "${@bb.utils.contains('BBEXTENDCURR', 'multilib', ' --disable-capstone', '', d)}"
Brad Bishopc342db32019-05-15 21:57:59 -040020EXTRA_OECONF_append_class-nativesdk = " --target-list=${@get_qemu_target_list(d)}"
21
22do_install_append_class-nativesdk() {
23 ${@bb.utils.contains('PACKAGECONFIG', 'gtk+', 'make_qemu_wrapper', '', d)}
24}
25
26PACKAGECONFIG ??= " \
27 fdt sdl kvm \
28 ${@bb.utils.filter('DISTRO_FEATURES', 'alsa xen', d)} \
Andrew Geissler1e34c2d2020-05-29 16:02:59 -050029 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer glx', '' ,d)} \
Brad Bishopc342db32019-05-15 21:57:59 -040030"
Andrew Geissler1e34c2d2020-05-29 16:02:59 -050031PACKAGECONFIG_class-nativesdk ??= "fdt sdl kvm \
32 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer glx', '' ,d)} \
33"