summaryrefslogtreecommitdiff
path: root/classes/base.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/base.bbclass')
-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;
#