summaryrefslogtreecommitdiffstats
path: root/meta/classes/native.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-01-03 11:27:13 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-01-03 16:25:39 +0000
commitee0faf1346cabb0c90f43891ede3f88878f87b8b (patch)
tree7a31547ef9e139377a1aa3f57098183d013a2a7c /meta/classes/native.bbclass
parentade351e2f4c3693d4c2ecf3891899c2dcd082491 (diff)
downloadpoky-ee0faf1346cabb0c90f43891ede3f88878f87b8b.tar.gz
native/sdk.bbclass: Handle DEPENDS and PROVIDES fields magically, remove a number of xorg sdk and native packages replacing with BBCLASSEXTEND
Diffstat (limited to 'meta/classes/native.bbclass')
-rw-r--r--meta/classes/native.bbclass18
1 files changed, 18 insertions, 0 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
index 8f79935040..9f6501f583 100644
--- a/meta/classes/native.bbclass
+++ b/meta/classes/native.bbclass
@@ -95,3 +95,21 @@ do_install () {
95 95
96PKG_CONFIG_PATH .= "${EXTRA_NATIVE_PKGCONFIG_PATH}" 96PKG_CONFIG_PATH .= "${EXTRA_NATIVE_PKGCONFIG_PATH}"
97PKG_CONFIG_SYSROOT_DIR = "" 97PKG_CONFIG_SYSROOT_DIR = ""
98
99python __anonymous () {
100 pn = bb.data.getVar("PN", d, True)
101 depends = bb.data.getVar("DEPENDS", d, True)
102 deps = bb.utils.explode_deps(depends)
103 if "native" in (bb.data.getVar('BBCLASSEXTEND', d, True) or ""):
104 autoextend = True
105 else:
106 autoextend = False
107 for dep in deps:
108 if not dep.endswith("-native"):
109 if autoextend:
110 depends = depends.replace(dep, dep + "-native")
111 else:
112 bb.note("%s has depends %s which doesn't end in -native?" % (pn, dep))
113 bb.data.setVar("DEPENDS", depends, d)
114}
115