Skip to contentSkip to conversation

qemu: force target build type to production

PATCH Superseded Joe Slater 2 participants 3 messages May 29, 2020 – May 31, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Joe Slater

author
#0 lore raw

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

qemu will not build for -Og optimization because macros in lockable.h do not work as expected. Override DEBUG_BUILD.

---
 meta/recipes-devtools/qemu/qemu_4.2.0.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-devtools/qemu/qemu_4.2.0.bb +4 -0
index a4018cc448..90b230d62f 100644
@@ -10,6 +10,10 @@ DEPENDS = "glib-2.0 zlib pixman bison-native"
 
 RDEPENDS_${PN}_class-target += "bash"
 
+# Does not compile for -Og
+#
+DEBUG_BUILD_class-target = "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
#1 lore raw
Quoted 13 lines · Joe Slater

qemu will not build for -Og optimization because macros in lockable.h do not work as expected. Override DEBUG_BUILD.

---
 meta/recipes-devtools/qemu/qemu_4.2.0.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-devtools/qemu/qemu_4.2.0.bb +0 -0
index a4018cc448..90b230d62f 100644

meta/recipes-devtools/qemu/qemu_4.2.0.bb DEPENDS = "glib-2.0 zlib pixman bison-native" · line 15

Quoted 6 lines
meta/recipes-devtools/qemu/qemu_4.2.0.bb +3 -0
@@ -10,6 +10,10 @@ DEPENDS = "glib-2.0 zlib pixman bison-native"
 
 RDEPENDS_${PN}_class-target += "bash"
 
+# Does not compile for -Og
+#
+DEBUG_BUILD_class-target = "0"

Would native and nativesdk builds not have the same issue?

Cheers,

Richard

author
#2 lore raw

Qemu-native, no, but nativesdk-qemu, yes. Joe

-----Original Message-----
From: Richard Purdie <[email protected]>
Sent: Sunday, May 31, 2020 2:39 AM
To: Slater, Joseph <[email protected]>; [email protected]
Cc: MacLeod, Randy <[email protected]>
Subject: Re: [oe-core][PATCH 1/1] qemu: force target build type to production

Quoted 14 lines · Joe Slater

qemu will not build for -Og optimization because macros in lockable.h do not work as expected. Override DEBUG_BUILD.

---
 meta/recipes-devtools/qemu/qemu_4.2.0.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-devtools/qemu/qemu_4.2.0.bb +0 -0
index a4018cc448..90b230d62f 100644

meta/recipes-devtools/qemu/qemu_4.2.0.bb DEPENDS = "glib-2.0 zlib pixman bison-native" · line 15

Quoted 6 lines
meta/recipes-devtools/qemu/qemu_4.2.0.bb +3 -0
@@ -10,6 +10,10 @@ DEPENDS = "glib-2.0 zlib pixman bison-native"
 
 RDEPENDS_${PN}_class-target += "bash"
 
+# Does not compile for -Og
+#
+DEBUG_BUILD_class-target = "0"

Would native and nativesdk builds not have the same issue?

Cheers,

Richard