Skip to contentSkip to conversation

qemu: Avoid potential build configuration contamination

PATCH New Richard Purdie 1 participant 1 message Oct 27, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu: Avoid potential build configuration contamination

Changing the gl options to qemu doesn't result in a correctly rebuilt binary, the GL linkage can persist from a build where it was enabled to one where it was not.

As well as clearly being incorrect and non-reproducible, this caused some mystery failures on the autobuilder.

Cleaning ${B} at do_configure time avoids this. Most recipes (e.g. autotools derived ones) already clean ${B} as appropriate and avoid this issue.

---
 meta/recipes-devtools/qemu/qemu.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/qemu/qemu.inc +1 -0
index bb444b63d97..601fc2286b3 100644
@@ -95,6 +95,7 @@ do_configure_prepend_class-native() {
 do_configure() {
     ${S}/configure ${EXTRA_OECONF}
 }
+do_configure[cleandirs] += "${B}"
 
 do_install () {
 	export STRIP=""
Signature · 1 line
2.20.1