Skip to contentSkip to conversation

packagegroup-cross-canadian: repackage when TUNE_ARCH changes

PATCH In review Alexander Kanavin 2 participants 4 messages May 16, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 packagegroup-cross-canadian: repackage when TUNE_ARCH changes

---
 .../packagegroups/packagegroup-cross-canadian.bb            | 6 ++++++
 1 file changed, 6 insertions(+)
meta/recipes-core/packagegroups/packagegroup-cross-canadian.bb +6 -0
index d551147b5a4..3b430c08148 100644
@@ -16,3 +16,9 @@ RDEPENDS_${PN} = "\
     ${@all_multilib_tune_values(d, 'GDB')} \
     meta-environment-${MACHINE} \
     "
+
+# When TUNE_ARCH changes but MACHINE does not (for example when a machine definition is updated), 
+# cross-canadian.bbclass prevents variable dependency propagation to TRANSLATED_TARGET_ARCH
+# This will result in erroneous reuse of previous sstate packages. The following line
+# establishes a direct dependency instead.
+do_package[vardeps] += "TUNE_ARCH"
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/3 qemux86: use a Core 2 Duo CPU instead of the original circa-1993 Pentium

This matches what the qemux86_64 is currently using, and will allow testing the instructions added in the meantime; particularly various SSE extensions are now enabled.

---
 meta/conf/machine/include/qemuboot-x86.inc | 4 ++--
 meta/conf/machine/qemux86.conf             | 3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)
meta/conf/machine/include/qemuboot-x86.inc +2 -2
index 5fdbe4df50e..82ce46d8604 100644
@@ -1,8 +1,8 @@
 # For runqemu
 IMAGE_CLASSES += "qemuboot"
 QB_SYSTEM_NAME_x86 = "qemu-system-i386"
-QB_CPU_x86 = "-cpu pentium2"
-QB_CPU_KVM_x86 = "-cpu pentium2"
+QB_CPU_x86 = "-cpu core2duo"
+QB_CPU_KVM_x86 = "-cpu core2duo"
 
 QB_SYSTEM_NAME_x86-64 = "qemu-system-x86_64"
 QB_CPU_x86-64 = "-cpu core2duo"
meta/conf/machine/qemux86.conf +1 -2
index f2434a4b5f5..272ad1e1870 100644
@@ -8,8 +8,7 @@ PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa"
 PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa"
 
 require conf/machine/include/qemu.inc
-DEFAULTTUNE ?= "i586"
-X86ARCH32 ?= "i586"
+DEFAULTTUNE ?= "core2-32"
 require conf/machine/include/tune-corei7.inc
 require conf/machine/include/qemuboot-x86.inc
 
Signature · 1 line
2.17.1
#2 lore raw

PATCH 3/3 mesa: fix imx gallium driver PACKAGECONFIG option

In reply to Alexander Kanavin

From: Marco Felsch <[email protected]>

Since commit [1] the imx-drm driver is covered by the generic kmsro driver.

[1] https://gitlab.freedesktop.org/mesa/mesa/commit/ \
	41a0acd6a149ec9f47ea527ad08a2b29bf1ee6b2
---
 meta/recipes-graphics/mesa/mesa.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-graphics/mesa/mesa.inc +2 -2
index c52adbbb214..cd3ddfd8223 100644
@@ -89,11 +89,11 @@ PACKAGECONFIG[gles] = "-Dgles1=true -Dgles2=true, -Dgles1=false -Dgles2=false"
 PACKAGECONFIG[egl] = "-Degl=true, -Degl=false"
 
 PACKAGECONFIG[etnaviv] = ""
-PACKAGECONFIG[imx] = ""
+PACKAGECONFIG[kmsro] = ""
 
 GALLIUMDRIVERS = "swrast"
 GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'etnaviv', ',etnaviv', '', d)}"
-GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'imx', ',imx', '', d)}"
+GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'kmsro', ',kmsro', '', d)}"
 
 # radeonsi requires LLVM
 GALLIUMDRIVERS_LLVM33 = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',radeonsi', '', d)}"
Signature · 1 line
2.17.1
#3 lore raw

Re: [PATCH 3/3] mesa: fix imx gallium driver PACKAGECONFIG option

Quoted 4 lines · Alexander Kanavin

From: Marco Felsch <[email protected]>

Since commit [1] the imx-drm driver is covered by the generic kmsro driver.

Can you update the bug:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=13350

- armin

Quoted 28 lines
[1] https://gitlab.freedesktop.org/mesa/mesa/commit/ \
	41a0acd6a149ec9f47ea527ad08a2b29bf1ee6b2
---
 meta/recipes-graphics/mesa/mesa.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-graphics/mesa/mesa.inc +2 -2
index c52adbbb214..cd3ddfd8223 100644
@@ -89,11 +89,11 @@ PACKAGECONFIG[gles] = "-Dgles1=true -Dgles2=true, -Dgles1=false -Dgles2=false"
 PACKAGECONFIG[egl] = "-Degl=true, -Degl=false"
 
 PACKAGECONFIG[etnaviv] = ""
-PACKAGECONFIG[imx] = ""
+PACKAGECONFIG[kmsro] = ""
 
 GALLIUMDRIVERS = "swrast"
 GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'etnaviv', ',etnaviv', '', d)}"
-GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'imx', ',imx', '', d)}"
+GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'kmsro', ',kmsro', '', d)}"
 
 # radeonsi requires LLVM
 GALLIUMDRIVERS_LLVM33 = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',radeonsi', '', d)}"