base.bbclass: revert removal of base_set_filespath until the refs can be removed.
authorChris Larson <clarson@kergoth.com>
Sun, 22 Mar 2009 04:34:03 +0000 (21:34 -0700)
committerChris Larson <clarson@kergoth.com>
Sun, 22 Mar 2009 04:34:03 +0000 (21:34 -0700)
Also added a deprecation message to it.

Signed-off-by: Chris Larson <clarson@kergoth.com>
classes/base.bbclass

index 9bcd2ab..952952b 100644 (file)
@@ -209,6 +209,17 @@ def base_package_name(d):
 
   return pn
 
+def base_set_filespath(path, d):
+       import os, bb
+       bb.note("base_set_filespath usage is deprecated, %s should be fixed" % d.getar("P", 1))
+       filespath = []
+       # The ":" ensures we have an 'empty' override
+       overrides = (bb.data.getVar("OVERRIDES", d, 1) or "") + ":"
+       for p in path:
+               for o in overrides.split(":"):
+                       filespath.append(os.path.join(p, o))
+       return ":".join(filespath)
+
 def oe_filter(f, str, d):
        from re import match
        return " ".join(filter(lambda x: match(f, x, 0), str.split()))