summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-12-02 13:12:53 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-12-02 13:12:53 +0000
commit82fd3bda3469980e257a25fcf7c16bf924441047 (patch)
tree6094d0c1544a78c0d94ee16455cd60fc8835d71b /meta
parent7bb37ffb35d9786b8da2aa9c6cd98e15cb8ba785 (diff)
downloadopenembedded-core-82fd3bda3469980e257a25fcf7c16bf924441047.tar.gz
openembedded-core-82fd3bda3469980e257a25fcf7c16bf924441047.tar.bz2
openembedded-core-82fd3bda3469980e257a25fcf7c16bf924441047.tar.xz
openembedded-core-82fd3bda3469980e257a25fcf7c16bf924441047.zip
nativesdk.bbclass: Fix DEPENDS handling
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/nativesdk.bbclass10
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass
index 080adc5d7..86d40ce07 100644
--- a/meta/classes/nativesdk.bbclass
+++ b/meta/classes/nativesdk.bbclass
@@ -51,9 +51,13 @@ FILES_${PN}-dbg += "${prefix}/.debug \
export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${libdir}/pkgconfig"
export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
+ORIG_DEPENDS := "${DEPENDS}"
+DEPENDS_virtclass-nativesdk ?= "${ORIG_DEPENDS}"
+
python __anonymous () {
pn = bb.data.getVar("PN", d, True)
- depends = bb.data.getVar("DEPENDS", d, True)
+ depends = bb.data.getVar("DEPENDS_virtclass-nativesdk", d, True)
+ bb.note(depends)
deps = bb.utils.explode_deps(depends)
newdeps = []
for dep in deps:
@@ -65,7 +69,8 @@ python __anonymous () {
newdeps.append(dep + "-nativesdk")
else:
newdeps.append(dep)
- bb.data.setVar("DEPENDS", " ".join(newdeps), d)
+ bb.note(" ".join(newdeps))
+ bb.data.setVar("DEPENDS_virtclass-nativesdk", " ".join(newdeps), d)
provides = bb.data.getVar("PROVIDES", d, True)
for prov in provides.split():
if prov.find(pn) != -1:
@@ -73,6 +78,7 @@ python __anonymous () {
if not prov.endswith("-nativesdk"):
provides = provides.replace(prov, prov + "-nativesdk")
bb.data.setVar("PROVIDES", provides, d)
+ bb.data.setVar("OVERRIDES", bb.data.getVar("OVERRIDES", d, False) + ":virtclass-nativesdk", d)
}