summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-12-21 13:53:11 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-02 05:52:05 -0700
commit58a8a38aa294edb74dde70d70a7e5faf49444b78 (patch)
treec86d8133fb889e751733b58a31de8bfad168d6a7 /meta/lib
parent9ba1e33e2d14362971d6441ee6142bcb0857df1a (diff)
downloadpoky-58a8a38aa294edb74dde70d70a7e5faf49444b78.tar.gz
nativesdk: Convert to use classextend.py
This patch converts the nativesdk class itself from operating as a suffix to a prefix (see the proceeding patch for the related changes outside this class). The big benefit here is that we can reuse the generic class extension code. (From OE-Core rev: f01f0b8aed25af889f48fe1afff96feb3d9ed120) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/classextend.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oe/classextend.py b/meta/lib/oe/classextend.py
index fb0d967372..86b1e8a554 100644
--- a/meta/lib/oe/classextend.py
+++ b/meta/lib/oe/classextend.py
@@ -7,6 +7,10 @@ class ClassExtender(object):
7 def extend_name(self, name): 7 def extend_name(self, name):
8 if name.startswith("kernel-module"): 8 if name.startswith("kernel-module"):
9 return name 9 return name
10 if name.startswith("rtld"):
11 return name
12 if name.endswith("-" + self.extname):
13 name = name.replace("-" + self.extname, "")
10 if name.startswith("virtual/"): 14 if name.startswith("virtual/"):
11 subs = name.split("/", 1)[1] 15 subs = name.split("/", 1)[1]
12 if not subs.startswith(self.extname): 16 if not subs.startswith(self.extname):