diff options
author | Chris Larson <clarson@kergoth.com> | 2009-03-21 21:34:03 -0700 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2009-03-21 21:34:03 -0700 |
commit | f3a6785d8a91e1f1763f48a5981f7e2a8d37f151 (patch) | |
tree | d45084ca112ccf5c7d96de6c051ff77adcb21493 | |
parent | 2652dfa9fb6da4423f9d556aaa289ac6fc198fe5 (diff) |
base.bbclass: revert removal of base_set_filespath until the refs can be removed.
Also added a deprecation message to it.
Signed-off-by: Chris Larson <clarson@kergoth.com>
-rw-r--r-- | classes/base.bbclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass index 9bcd2abb3c..952952b7fe 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -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())) |