summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>2005-05-30 22:10:10 +0000
committerMichael 'Mickey' Lauer <mickey@vanille-media.de>2005-05-30 22:10:10 +0000
commit98514dd57444c298fd7e993846727dfd93abe33e (patch)
treeaaac1e38a7180db88f83a6e48eb583f899ee91bc
parent127b47c3dbbd36d54311bc31b712493cb8e2b424 (diff)
downloadbitbake-98514dd57444c298fd7e993846727dfd93abe33e.tar.gz
calculate absolute path when parsing a bitbake file. this fixes -b with
relative paths
-rwxr-xr-xbin/bitbake6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/bitbake b/bin/bitbake
index 03ae98349..0d4f51778 100755
--- a/bin/bitbake
+++ b/bin/bitbake
@@ -620,15 +620,15 @@ class BBCooker:
if make.options.interactive:
self.interactiveMode()
- bf = make.options.buildfile
- if bf:
+ if make.options.buildfile is not None:
+ bf = os.path.abspath( make.options.buildfile )
try:
bbfile_data = bb.parse.handle(bf, make.cfg)
except IOError:
bb.fatal("Unable to open %s" % bf)
item = bb.data.getVar('PN', bbfile_data, 1)
- self.tryBuildPackage( os.path.abspath( bf ), item, bbfile_data )
+ self.tryBuildPackage( bf, item, bbfile_data )
sys.exit( self.stats.show() )
# initialise the parsing status now we know we will need deps