Skip to contentSkip to conversation

allarch: Remove MACHINEOVERRIDES

PATCH In review Douglas 3 participants 4 messages Oct 9, 2020 – Oct 11, 2020

lore
Share & tools
lore

Douglas

author
#0 lore raw

PATCH 1/1 allarch: Remove MACHINEOVERRIDES

Avoid machine-specific settings sneaking into allarch tasks.

---
 meta/classes/allarch.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/allarch.bbclass +1 -0
index 5bd5c44a27..2365691fae 100644
@@ -42,6 +42,7 @@ python () {
         d.setVar("TARGET_CXXFLAGS", "none")
         d.setVar("TARGET_LDFLAGS", "none")
         d.setVar("POPULATESYSROOTDEPS", "")
+        d.setVar("MACHINEOVERRIDES", "allarch")
 
         # Avoid this being unnecessarily different due to nuances of
         # the target machine that aren't important for "all" arch
Signature · 1 line
2.17.1
#1 lore raw

Wait, I thought this specifically sets MACHINEOVERRIDES to a static value, replacing the target specific one.

Alex

Quoted 26 lines · Douglas via lists.openembedded.org

Avoid machine-specific settings sneaking into allarch tasks.

---
 meta/classes/allarch.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/allarch.bbclass +1 -1
index 5bd5c44a27..2365691fae 100644
@@ -42,6 +42,7 @@ python () {
         d.setVar("TARGET_CXXFLAGS", "none")
         d.setVar("TARGET_LDFLAGS", "none")
         d.setVar("POPULATESYSROOTDEPS", "")
+        d.setVar("MACHINEOVERRIDES", "allarch")
 
         # Avoid this being unnecessarily different due to nuances of
         # the target machine that aren't important for "all" arch
--

2.17.1

#2 lore raw
In reply to Douglas
Quoted 13 lines · Douglas via lists.openembedded.org

Avoid machine-specific settings sneaking into allarch tasks.

---
 meta/classes/allarch.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/allarch.bbclass +0 -0
index 5bd5c44a27..2365691fae 100644

meta/classes/allarch.bbclass python () { · line 45

Quoted 4 lines
meta/classes/allarch.bbclass +1 -0
@@ -42,6 +42,7 @@ python () {
         d.setVar("TARGET_CXXFLAGS", "none")
         d.setVar("TARGET_LDFLAGS", "none")
         d.setVar("POPULATESYSROOTDEPS", "")
+        d.setVar("MACHINEOVERRIDES", "allarch")

Why would a recipe which is using allarch be using machine specific overrides?

Cheers,

Richard

author
#3 lore raw
Quoted 9 lines · Richard Purdie
Quoted 7 lines · Douglas via lists.openembedded.org

Avoid machine-specific settings sneaking into allarch tasks.

---
  meta/classes/allarch.bbclass | 1 +
  1 file changed, 1 insertion(+)
Quoted 12 lines

meta/classes/allarch.bbclass python () { · line 45

Quoted 10 lines
meta/classes/allarch.bbclass +1 -0
index 5bd5c44a27..2365691fae 100644
@@ -42,6 +42,7 @@ python () {
          d.setVar("TARGET_CXXFLAGS", "none")
          d.setVar("TARGET_LDFLAGS", "none")
          d.setVar("POPULATESYSROOTDEPS", "")
+        d.setVar("MACHINEOVERRIDES", "allarch")

Why would a recipe which is using allarch be using machine specific overrides?

Um, yes, I have to admit that we had an in-house defect over this one, now separately fixed.

It seems wrong to have machine-specific overrides in the list at all for allarch recipes, so this is just a suggested tidy-up.