Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 1 | BBCLASSEXTEND = "nativesdk" |
| 2 | |
| 3 | require qemu.inc |
| 4 | |
Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 5 | # error: a parameter list without types is only allowed in a function definition |
| 6 | # void (*_function)(sigval_t); |
| 7 | COMPATIBLE_HOST_libc-musl = 'null' |
| 8 | |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 9 | DEPENDS = "glib-2.0 zlib pixman bison-native ninja-native meson-native" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 10 | |
| 11 | RDEPENDS_${PN}_class-target += "bash" |
| 12 | |
| 13 | EXTRA_OECONF_append_class-target = " --target-list=${@get_qemu_target_list(d)}" |
Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 14 | EXTRA_OECONF_append_class-target_mipsarcho32 = "${@bb.utils.contains('BBEXTENDCURR', 'multilib', ' --disable-capstone', '', d)}" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 15 | EXTRA_OECONF_append_class-nativesdk = " --target-list=${@get_qemu_target_list(d)}" |
| 16 | |
| 17 | do_install_append_class-nativesdk() { |
| 18 | ${@bb.utils.contains('PACKAGECONFIG', 'gtk+', 'make_qemu_wrapper', '', d)} |
| 19 | } |
| 20 | |
| 21 | PACKAGECONFIG ??= " \ |
| 22 | fdt sdl kvm \ |
| 23 | ${@bb.utils.filter('DISTRO_FEATURES', 'alsa xen', d)} \ |
Andrew Geissler | c3d88e4 | 2020-10-02 09:45:00 -0500 | [diff] [blame] | 24 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer glx', '', d)} \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 25 | " |
Andrew Geissler | 1e34c2d | 2020-05-29 16:02:59 -0500 | [diff] [blame] | 26 | PACKAGECONFIG_class-nativesdk ??= "fdt sdl kvm \ |
Andrew Geissler | c3d88e4 | 2020-10-02 09:45:00 -0500 | [diff] [blame] | 27 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer glx', '', d)} \ |
Andrew Geissler | 1e34c2d | 2020-05-29 16:02:59 -0500 | [diff] [blame] | 28 | " |