summaryrefslogtreecommitdiffstats
path: root/meta/classes/nativesdk.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-12-02 13:12:53 (GMT)
committerRichard Purdie <rpurdie@linux.intel.com>2009-12-02 13:12:53 (GMT)
commit82fd3bda3469980e257a25fcf7c16bf924441047 (patch)
tree6094d0c1544a78c0d94ee16455cd60fc8835d71b /meta/classes/nativesdk.bbclass
parent7bb37ffb35d9786b8da2aa9c6cd98e15cb8ba785 (diff)
downloadpoky-82fd3bda3469980e257a25fcf7c16bf924441047.tar.gz
nativesdk.bbclass: Fix DEPENDS handling
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/nativesdk.bbclass')
-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 080adc5..86d40ce 100644
--- a/meta/classes/nativesdk.bbclass
+++ b/meta/classes/nativesdk.bbclass
@@ -51,9 +51,13 @@ FILES_${PN}-dbg += "${prefix}/.debug \
51export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${libdir}/pkgconfig" 51export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${libdir}/pkgconfig"
52export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}" 52export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
53 53
54ORIG_DEPENDS := "${DEPENDS}"
55DEPENDS_virtclass-nativesdk ?= "${ORIG_DEPENDS}"
56
54python __anonymous () { 57python __anonymous () {
55 pn = bb.data.getVar("PN", d, True) 58 pn = bb.data.getVar("PN", d, True)
56 depends = bb.data.getVar("DEPENDS", d, True) 59 depends = bb.data.getVar("DEPENDS_virtclass-nativesdk", d, True)
60 bb.note(depends)
57 deps = bb.utils.explode_deps(depends) 61 deps = bb.utils.explode_deps(depends)
58 newdeps = [] 62 newdeps = []
59 for dep in deps: 63 for dep in deps:
@@ -65,7 +69,8 @@ python __anonymous () {
65 newdeps.append(dep + "-nativesdk") 69 newdeps.append(dep + "-nativesdk")
66 else: 70 else:
67 newdeps.append(dep) 71 newdeps.append(dep)
68 bb.data.setVar("DEPENDS", " ".join(newdeps), d) 72 bb.note(" ".join(newdeps))
73 bb.data.setVar("DEPENDS_virtclass-nativesdk", " ".join(newdeps), d)
69 provides = bb.data.getVar("PROVIDES", d, True) 74 provides = bb.data.getVar("PROVIDES", d, True)
70 for prov in provides.split(): 75 for prov in provides.split():
71 if prov.find(pn) != -1: 76 if prov.find(pn) != -1:
@@ -73,6 +78,7 @@ python __anonymous () {
73 if not prov.endswith("-nativesdk"): 78 if not prov.endswith("-nativesdk"):
74 provides = provides.replace(prov, prov + "-nativesdk") 79 provides = provides.replace(prov, prov + "-nativesdk")
75 bb.data.setVar("PROVIDES", provides, d) 80 bb.data.setVar("PROVIDES", provides, d)
81 bb.data.setVar("OVERRIDES", bb.data.getVar("OVERRIDES", d, False) + ":virtclass-nativesdk", d)
76} 82}
77 83
78 84