Fix Angstrom OVERRIDES settings
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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
@@ -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
@@ -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
@@ -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
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.
Signed-off-by Chase Maupin <[email protected]>
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@@ -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@@ -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@@ -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
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.
Signed-off-by Chase Maupin <[email protected]>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
Re: [PATCH 2/2] Fix class OVERRIDES order
In reply to Chase MaupinQuoted 5 lines · Chase Maupin
* Changed the OVERRIDES settings in the classes to use the new ordering.
Signed-off-by Chase Maupin <[email protected]>
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
Quoted 11 lines · Chase Maupin
* Use the new
MACHINE_OVERRIDESvariable in angstrom.inc to set theFEED_ARCHandSOC_FAMILYOVERRIDES
* NOTE: These were left in their orignal order which will result in theSOC_FAMILYbeing more specific than theFEED_ARCH. This was done on purpose as theSOC_FAMILYshould 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
Signed-off-by Chase Maupin <[email protected]>
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
Quoted 11 lines · Chase Maupin
* Use the new
MACHINE_OVERRIDESvariable in angstrom.inc to set theFEED_ARCHandSOC_FAMILYOVERRIDES
* NOTE: These were left in their orignal order which will result in theSOC_FAMILYbeing more specific than theFEED_ARCH. This was done on purpose as theSOC_FAMILYshould 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
Signed-off-by Chase Maupin <[email protected]>
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@@ -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@@ -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@@ -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@@ -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@@ -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@@ -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