mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
qemu will not build for -Og optimization because macros in lockable.h expect dead-code elimination. Override DEBUG_BUILD. (From OE-Core rev: dce2315ea2e0f14854fa43994eede04848cd624c) Signed-off-by: Joe Slater <joe.slater@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit ad404b2e51223625bd95f9a7da4c7a690c37bdfb) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
31 lines
970 B
BlitzBasic
31 lines
970 B
BlitzBasic
BBCLASSEXTEND = "nativesdk"
|
|
|
|
require qemu.inc
|
|
|
|
# error: a parameter list without types is only allowed in a function definition
|
|
# void (*_function)(sigval_t);
|
|
COMPATIBLE_HOST_libc-musl = 'null'
|
|
|
|
DEPENDS = "glib-2.0 zlib pixman bison-native"
|
|
|
|
RDEPENDS_${PN}_class-target += "bash"
|
|
|
|
# Does not compile for -Og because that level does not clean up dead-code.
|
|
# See lockable.h.
|
|
#
|
|
DEBUG_BUILD = "0"
|
|
|
|
EXTRA_OECONF_append_class-target = " --target-list=${@get_qemu_target_list(d)}"
|
|
EXTRA_OECONF_append_class-target_mipsarcho32 = "${@bb.utils.contains('BBEXTENDCURR', 'multilib', ' --disable-capstone', '', d)}"
|
|
EXTRA_OECONF_append_class-nativesdk = " --target-list=${@get_qemu_target_list(d)}"
|
|
|
|
do_install_append_class-nativesdk() {
|
|
${@bb.utils.contains('PACKAGECONFIG', 'gtk+', 'make_qemu_wrapper', '', d)}
|
|
}
|
|
|
|
PACKAGECONFIG ??= " \
|
|
fdt sdl kvm \
|
|
${@bb.utils.filter('DISTRO_FEATURES', 'alsa xen', d)} \
|
|
"
|
|
PACKAGECONFIG_class-nativesdk ??= "fdt sdl kvm"
|