Skip to contentSkip to conversation

qemu: force build type to production

PATCH New Joe Slater 1 participant 1 message Jun 1, 2020

lore
Share & tools
lore

Joe Slater

author
#0 lore raw

PATCH v2 1/1 qemu: force build type to production

qemu will not build for -Og optimization because macros in lockable.h expect dead-code elimination. Override DEBUG_BUILD.

---
 meta/recipes-devtools/qemu/qemu_4.2.0.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta/recipes-devtools/qemu/qemu_4.2.0.bb +5 -0
index a4018cc448..9b09490269 100644
@@ -10,6 +10,11 @@ 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)}"
Signature · 1 line
2.17.1