summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2007-02-25 18:18:55 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2007-02-25 18:18:55 +0000
commit1e8d12394b938796eb1cdcaa8a24694da9662282 (patch)
tree814899e8ba8165ff75a117e148de5f3b6b7742ee /classes
parent2c8702d07b191e33a5dd7214d9e8be0d18652dec (diff)
parentcee1697942ab9b42557056d771ec2cfb7c81b523 (diff)
merge of '0464758766d765866ff65500fed4e9d1669422a1'
and '922cf0f28b50dfb43c18e0654db44c32b7d09bc4'
Diffstat (limited to 'classes')
-rw-r--r--classes/base.bbclass10
1 files changed, 10 insertions, 0 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index 504707e37b..a08ba97fde 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -1,5 +1,15 @@
BB_DEFAULT_TASK = "build"
+# like os.path.join but doesn't treat absolute RHS specially
+def base_path_join(a, *p):
+ path = a
+ for b in p:
+ if path == '' or path.endswith('/'):
+ path += b
+ else:
+ path += '/' + b
+ return path
+
def base_dep_prepend(d):
import bb;
#