blob: f8a816b12b67e90c37b016b1aa498864ed79245f [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);
Patrick Williams213cb262021-08-07 19:21:33 -05007COMPATIBLE_HOST:libc-musl = 'null'
Brad Bishop79641f22019-09-10 07:20:22 -04008
Andrew Geisslerd1e89492021-02-12 15:35:20 -06009DEPENDS = "glib-2.0 zlib pixman bison-native ninja-native meson-native"
Brad Bishopc342db32019-05-15 21:57:59 -040010
Patrick Williams213cb262021-08-07 19:21:33 -050011RDEPENDS:${PN}:class-target += "bash"
Brad Bishopc342db32019-05-15 21:57:59 -040012
Patrick Williams213cb262021-08-07 19:21:33 -050013EXTRA_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)}"
Brad Bishopc342db32019-05-15 21:57:59 -040016
Patrick Williams213cb262021-08-07 19:21:33 -050017do_install:append:class-nativesdk() {
Brad Bishopc342db32019-05-15 21:57:59 -040018 ${@bb.utils.contains('PACKAGECONFIG', 'gtk+', 'make_qemu_wrapper', '', d)}
19}
20
21PACKAGECONFIG ??= " \
William A. Kennington IIIac69b482021-06-02 12:28:27 -070022 fdt sdl kvm pie \
Brad Bishopc342db32019-05-15 21:57:59 -040023 ${@bb.utils.filter('DISTRO_FEATURES', 'alsa xen', d)} \
Andrew Geisslerc3d88e42020-10-02 09:45:00 -050024 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer glx', '', d)} \
Andrew Geisslerc926e172021-05-07 16:11:35 -050025 ${@bb.utils.filter('DISTRO_FEATURES', 'seccomp', d)} \
Brad Bishopc342db32019-05-15 21:57:59 -040026"
Patrick Williams213cb262021-08-07 19:21:33 -050027PACKAGECONFIG:class-nativesdk ??= "fdt sdl kvm pie \
Andrew Geisslerc3d88e42020-10-02 09:45:00 -050028 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer glx', '', d)} \
Andrew Geissler1e34c2d2020-05-29 16:02:59 -050029"