diff options
author | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2007-02-25 12:10:01 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2007-02-25 12:10:01 +0000 |
commit | cee1697942ab9b42557056d771ec2cfb7c81b523 (patch) | |
tree | 11bede56f484dec92c75c6be78394ee37ee86443 | |
parent | 3c3f98545132872ce178488794a4984c3c611890 (diff) | |
parent | 42616023e9a94e37d2fd5c6330ffbad089927b00 (diff) |
merge of '4d464c3102b9fdf9ec7f31a9771f62b336967b65'
and 'b8eb30a0fd93f61ff386bac7e2203fb3c883e888'
-rw-r--r-- | classes/base.bbclass | 10 |
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; # |