Skip to contentSkip to conversation

Fix Angstrom OVERRIDES settings

PATCH In review Chase Maupin 4 participants 7 messages Oct 15, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Fix Angstrom OVERRIDES settings

* Use the new MACHINE_OVERRIDES variable in angstrom.inc to set the FEED_ARCH and SOC_FAMILY OVERRIDES
* NOTE: These were left in their orignal order which will result in the SOC_FAMILY being more specific than the FEED_ARCH. This was done on purpose as the SOC_FAMILY should be more specific. i.e. for omap3 the omap3 override is more specific than the armv7a override.
* Modified the glibc include files to prepend libc-glibc, etc to the OVERRIDES list.

---
 conf/distro/include/angstrom.inc       |    2 +-
 conf/distro/include/eglibc.inc         |    2 +-
 conf/distro/include/glibc-external.inc |    2 +-
 conf/distro/include/glibc-internal.inc |    2 +-
 conf/distro/include/glibc.inc          |    2 +-
 conf/distro/include/uclibc.inc         |    2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
conf/distro/include/angstrom.inc +1 -1
index 8983c86..4b38cff 100644
@@ -14,7 +14,7 @@ TARGET_VENDOR = "-angstrom"
 SOC_FAMILY ?= "Unknown"
 
 # Add FEED_ARCH and SOC_FAMILY to overrides
-OVERRIDES .= ":${FEED_ARCH}:${SOC_FAMILY}"
+MACHINE_OVERRIDES += "${FEED_ARCH} ${SOC_FAMILY}"
 
 # Put links to sources in deploy/sources to make it easier for people to be GPL compliant
 INHERIT += "src_distribute_local"
conf/distro/include/eglibc.inc +1 -1
index 0443140..5115e7f 100644
@@ -1,5 +1,5 @@
 # Add glibc overrides to the overrides for eglibc.
-OVERRIDES .= ":libc-glibc"
+OVERRIDES =. "libc-glibc:"
 
 # The things eglibc can provide.  We default to wanting eglibc to provide them.
 PREFERRED_PROVIDER_virtual/libiconv ?= "eglibc"
conf/distro/include/glibc-external.inc +1 -1
index b84d237..fd72ee8 100644
@@ -1,5 +1,5 @@
 # Add glibc to the overrides.
-OVERRIDES .= ":libc-glibc"
+OVERRIDES =. "libc-glibc:"
 
 # The things glibc can provide.  We default to wanting glibc to provide them.
 PREFERRED_PROVIDER_virtual/libiconv ?= "external-toolchain-${TOOLCHAIN_BRAND}"
conf/distro/include/glibc-internal.inc +1 -1
index e06b9b0..6f84f5e 100644
@@ -1,5 +1,5 @@
 # Add glibc to the overrides.
-OVERRIDES .= ":libc-glibc"
+OVERRIDES =. "libc-glibc:"
 
 # The things glibc can provide.  We default to wanting glibc to provide them.
 PREFERRED_PROVIDER_virtual/libiconv ?= "glibc"
conf/distro/include/glibc.inc +1 -1
index f1c80dc..5a6e3eb 100644
@@ -1,5 +1,5 @@
 # Add glibc to the overrides.
-OVERRIDES .= ":libc-glibc"
+OVERRIDES =. "libc-glibc:"
 
 # The things glibc can provide.  We default to wanting glibc to provide them.
 PREFERRED_PROVIDER_virtual/libiconv ?= "glibc"
conf/distro/include/uclibc.inc +1 -1
index b40fbf5..dd00647 100644
@@ -1,5 +1,5 @@
 # Add uclibc overrides to the overrides.
-OVERRIDES .= ":libc-uclibc"
+OVERRIDES =. "libc-uclibc:"
 
 # The things uclibc can provide.  We default to wanting uclibc to provide them.
 PREFERRED_PROVIDER_virtual/libiconv ?= "libiconv"
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 2/2 Fix class OVERRIDES order

* Changed the OVERRIDES settings in the classes to use the new ordering.

---
 classes/native.bbclass    |    2 +-
 classes/nativesdk.bbclass |    2 +-
 classes/sdk.bbclass       |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
classes/native.bbclass +1 -1
index dcedff2..2e52bfc 100644
@@ -94,7 +94,7 @@ DEPENDS_virtclass-native ?= "${ORIG_DEPENDS}"
 
 def native_virtclass_add_override(d):
     if "native" in (bb.data.getVar('BBCLASSEXTEND', d, True) or ""):
-        bb.data.setVar("OVERRIDES", bb.data.getVar("OVERRIDES", d, False) + ":virtclass-native", d)
+        bb.data.setVar("OVERRIDES", "virtclass-native:" + bb.data.getVar("OVERRIDES", d, False), d)
 
 OVERRIDES .= "${@native_virtclass_add_override(d)}"
 
classes/nativesdk.bbclass +1 -1
index f3f9930..6f21534 100644
@@ -52,7 +52,7 @@ export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
 ORIG_DEPENDS := "${DEPENDS}"
 DEPENDS_virtclass-nativesdk ?= "${ORIG_DEPENDS}"
 
-OVERRIDES .= ":virtclass-nativesdk"
+OVERRIDES =. "virtclass-nativesdk:"
 
 python __anonymous () {
     pn = bb.data.getVar("PN", d, True)
classes/sdk.bbclass +1 -1
index c8fa076..1ad8951 100644
@@ -67,4 +67,4 @@ FILES_${PN}-dbg += "${prefix}/.debug \
 
 export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
 
-OVERRIDES .= ":virtclass-sdk"
+OVERRIDES =. "virtclass-sdk:"
Signature · 1 line
1.7.0.4
#2 lore raw

Re: [PATCH 2/2] Fix class OVERRIDES order

Quoted 9 lines

-----Original Message-----
From: Chase Maupin [mailto:[email protected]]
Sent: Friday, October 15, 2010 3:32 PM
To: [email protected]
Cc: Maupin, Chase
Subject: [PATCH 2/2] Fix class OVERRIDES order

Quoted 4 lines

* Changed the OVERRIDES settings in the classes to use the new ordering.

I was a little unsure of these which is why I put them in a separate patch. Should the virtclass overrides be high or low priority? Please feel free to correct me, but I wanted to make sure that we didn't override "local"

Quoted 46 lines
---
 classes/native.bbclass    |    2 +-
 classes/nativesdk.bbclass |    2 +-
 classes/sdk.bbclass       |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
classes/native.bbclass +2 -1
index dcedff2..2e52bfc 100644
@@ -94,7 +94,7 @@ DEPENDS_virtclass-native ?= "${ORIG_DEPENDS}"
 
 def native_virtclass_add_override(d):
     if "native" in (bb.data.getVar('BBCLASSEXTEND', d, True) or ""):
-        bb.data.setVar("OVERRIDES", bb.data.getVar("OVERRIDES", d, False)
+ ":virtclass-native", d)
+        bb.data.setVar("OVERRIDES", "virtclass-native:" +
 bb.data.getVar("OVERRIDES", d, False), d)
 
 OVERRIDES .= "${@native_virtclass_add_override(d)}"
classes/nativesdk.bbclass +1 -1
index f3f9930..6f21534 100644
@@ -52,7 +52,7 @@ export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
 ORIG_DEPENDS := "${DEPENDS}"
 DEPENDS_virtclass-nativesdk ?= "${ORIG_DEPENDS}"
 
-OVERRIDES .= ":virtclass-nativesdk"
+OVERRIDES =. "virtclass-nativesdk:"
 
 python __anonymous () {
     pn = bb.data.getVar("PN", d, True)
classes/sdk.bbclass +1 -2
index c8fa076..1ad8951 100644
@@ -67,4 +67,4 @@ FILES_${PN}-dbg += "${prefix}/.debug \
 
 export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
 
-OVERRIDES .= ":virtclass-sdk"
+OVERRIDES =. "virtclass-sdk:"
--

1.7.0.4

#3 lore raw

Re: [PATCH 2/2] Fix class OVERRIDES order

Quoted 7 lines · Chase
Quoted 7 lines

-----Original Message-----
From: Chase Maupin [mailto:[email protected]]
Sent: Friday, October 15, 2010 3:32 PM
To: [email protected]
Cc: Maupin, Chase
Subject: [PATCH 2/2] Fix class OVERRIDES order

Quoted 8 lines
Quoted 4 lines

* Changed the OVERRIDES settings in the classes to use the new ordering.

I was a little unsure of these which is why I put them in a separate patch.
Should the virtclass overrides be high or low priority? Please feel free
to correct me, but I wanted to make sure that we didn't override "local"

I personally think low is best, otherwise virtclass-native would override, say, something specific to a certain architecture -- but architecture specifics still apply to a native recipe, as we are still building for that architecture. Others may disagree, though, and I'm certainly open to alternative views on the subject.

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
Acked-by on v1 1/2
#5 lore raw
In reply to Chase Maupin
Quoted 11 lines · Chase Maupin

* Use the new MACHINE_OVERRIDES variable in angstrom.inc to set the FEED_ARCH and SOC_FAMILY OVERRIDES
* NOTE: These were left in their orignal order which will result in the SOC_FAMILY being more specific than the FEED_ARCH. This was done on purpose as the SOC_FAMILY should be more specific. i.e. for omap3 the omap3 override is more specific than the armv7a override.
* Modified the glibc include files to prepend libc-glibc, etc to the OVERRIDES list.

Quoted 2 lines
Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
Acked-by on v1 1/2
#6 lore raw
In reply to Chase Maupin
Quoted 11 lines · Chase Maupin

* Use the new MACHINE_OVERRIDES variable in angstrom.inc to set the FEED_ARCH and SOC_FAMILY OVERRIDES
* NOTE: These were left in their orignal order which will result in the SOC_FAMILY being more specific than the FEED_ARCH. This was done on purpose as the SOC_FAMILY should be more specific. i.e. for omap3 the omap3 override is more specific than the armv7a override.
* Modified the glibc include files to prepend libc-glibc, etc to the OVERRIDES list.

Quoted 1 line
Quoted 85 lines
---
 conf/distro/include/angstrom.inc       |    2 +-
 conf/distro/include/eglibc.inc         |    2 +-
 conf/distro/include/glibc-external.inc |    2 +-
 conf/distro/include/glibc-internal.inc |    2 +-
 conf/distro/include/glibc.inc          |    2 +-
 conf/distro/include/uclibc.inc         |    2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
conf/distro/include/angstrom.inc +1 -1
index 8983c86..4b38cff 100644
@@ -14,7 +14,7 @@ TARGET_VENDOR = "-angstrom"
 SOC_FAMILY ?= "Unknown"
 
 # Add FEED_ARCH and SOC_FAMILY to overrides
-OVERRIDES .= ":${FEED_ARCH}:${SOC_FAMILY}"
+MACHINE_OVERRIDES += "${FEED_ARCH} ${SOC_FAMILY}"
 
 # Put links to sources in deploy/sources to make it easier for people to be GPL compliant
 INHERIT += "src_distribute_local"
conf/distro/include/eglibc.inc +1 -1
index 0443140..5115e7f 100644
@@ -1,5 +1,5 @@
 # Add glibc overrides to the overrides for eglibc.
-OVERRIDES .= ":libc-glibc"
+OVERRIDES =. "libc-glibc:"
 
 # The things eglibc can provide.  We default to wanting eglibc to provide them.
 PREFERRED_PROVIDER_virtual/libiconv ?= "eglibc"
conf/distro/include/glibc-external.inc +1 -1
index b84d237..fd72ee8 100644
@@ -1,5 +1,5 @@
 # Add glibc to the overrides.
-OVERRIDES .= ":libc-glibc"
+OVERRIDES =. "libc-glibc:"
 
 # The things glibc can provide.  We default to wanting glibc to provide them.
 PREFERRED_PROVIDER_virtual/libiconv ?= "external-toolchain-${TOOLCHAIN_BRAND}"
conf/distro/include/glibc-internal.inc +1 -1
index e06b9b0..6f84f5e 100644
@@ -1,5 +1,5 @@
 # Add glibc to the overrides.
-OVERRIDES .= ":libc-glibc"
+OVERRIDES =. "libc-glibc:"
 
 # The things glibc can provide.  We default to wanting glibc to provide them.
 PREFERRED_PROVIDER_virtual/libiconv ?= "glibc"
conf/distro/include/glibc.inc +1 -1
index f1c80dc..5a6e3eb 100644
@@ -1,5 +1,5 @@
 # Add glibc to the overrides.
-OVERRIDES .= ":libc-glibc"
+OVERRIDES =. "libc-glibc:"
 
 # The things glibc can provide.  We default to wanting glibc to provide them.
 PREFERRED_PROVIDER_virtual/libiconv ?= "glibc"
conf/distro/include/uclibc.inc +1 -1
index b40fbf5..dd00647 100644
@@ -1,5 +1,5 @@
 # Add uclibc overrides to the overrides.
-OVERRIDES .= ":libc-uclibc"
+OVERRIDES =. "libc-uclibc:"
 
 # The things uclibc can provide.  We default to wanting uclibc to provide them.
 PREFERRED_PROVIDER_virtual/libiconv ?= "libiconv"
Signature · 7 lines
1.7.0.4


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel