Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | BBCLASSEXTEND = "nativesdk" |
| 2 | |
| 3 | require qemu.inc |
| 4 | |
| 5 | DEPENDS = "glib-2.0 zlib pixman bison-native ninja-native meson-native" |
| 6 | |
| 7 | DEPENDS:append:libc-musl = " libucontext" |
| 8 | |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 9 | CFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '-DEGL_NO_X11=1', d)}" |
| 10 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 11 | RDEPENDS:${PN}:class-target += "bash" |
| 12 | |
| 13 | EXTRA_OECONF:append:class-target = " --target-list=${@get_qemu_target_list(d)}" |
| 14 | EXTRA_OECONF:append:class-target:mipsarcho32 = "${@bb.utils.contains('BBEXTENDCURR', 'multilib', ' --disable-capstone', '', d)}" |
| 15 | EXTRA_OECONF:append:class-nativesdk = " --target-list=${@get_qemu_target_list(d)}" |
| 16 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 17 | PACKAGECONFIG ??= " \ |
| 18 | fdt sdl kvm pie \ |
| 19 | ${@bb.utils.filter('DISTRO_FEATURES', 'alsa xen', d)} \ |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 20 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer epoxy', '', d)} \ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 21 | ${@bb.utils.filter('DISTRO_FEATURES', 'seccomp', d)} \ |
| 22 | " |
| 23 | PACKAGECONFIG:class-nativesdk ??= "fdt sdl kvm pie \ |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 24 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer epoxy', '', d)} \ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 25 | " |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 26 | # ppc32 hosts are no longer supported in qemu |
| 27 | COMPATIBLE_HOST:powerpc = "null" |