aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2008-02-26 17:09:20 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2008-02-26 17:09:20 +0000
commitd2d97c5dc951398d5bf3f4b70b748d82d0b0e01b (patch)
tree4c893bcfc30a27a016b7d9c0878c9a25197e0e19
parenta3c573c197e5f25dedb973e4fb4dc2763266d743 (diff)
downloadbitbake-d2d97c5dc951398d5bf3f4b70b748d82d0b0e01b.tar.gz
shell.py: Update to use cooker.buildFile()
-rw-r--r--ChangeLog1
-rw-r--r--lib/bb/shell.py23
2 files changed, 6 insertions, 18 deletions
diff --git a/ChangeLog b/ChangeLog
index b64e27304..f5a068f6a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -105,6 +105,7 @@ Changes in Bitbake 1.9.x:
the parsing loop and factoring some getVar calls outside a for loop
- Cooker: Remove a debug message from the parsing loop to lower overhead
- Convert build.py exec_task to use getVarFlags
+ - Update shell to use cooker.buildFile
Changes in Bitbake 1.8.0:
- Release 1.7.x as a stable series
diff --git a/lib/bb/shell.py b/lib/bb/shell.py
index cb91546fb..34828fe42 100644
--- a/lib/bb/shell.py
+++ b/lib/bb/shell.py
@@ -243,27 +243,13 @@ class BitBakeShellCommands:
oldcmd = cooker.configuration.cmd
cooker.configuration.cmd = cmd
- thisdata = data.createCopy(cooker.configuration.data)
- data.update_data(thisdata)
- data.expandKeys(thisdata)
-
try:
- bbfile_data = parse.handle( bf, thisdata )
+ cooker.buildFile(bf)
except parse.ParseError:
print "ERROR: Unable to open or parse '%s'" % bf
- else:
- # Remove stamp for target if force mode active
- if cooker.configuration.force:
- bb.msg.note(2, bb.msg.domain.RunQueue, "Remove stamp %s, %s" % (cmd, bf))
- bb.build.del_stamp('do_%s' % cmd, bbfile_data)
-
- item = data.getVar('PN', bbfile_data, 1)
- data.setVar( "_task_cache", [], bbfile_data ) # force
- try:
- cooker.tryBuildPackage( os.path.abspath( bf ), item, cmd, bbfile_data, True )
- except build.EventException, e:
- print "ERROR: Couldn't build '%s'" % name
- last_exception = e
+ except build.EventException, e:
+ print "ERROR: Couldn't build '%s'" % name
+ last_exception = e
cooker.configuration.cmd = oldcmd
fileBuild.usage = "<bbfile>"
@@ -586,6 +572,7 @@ SRC_URI = ""
def completeFilePath( bbfile ):
"""Get the complete bbfile path"""
+ if not cooker.status: return bbfile
if not cooker.status.pkg_fn: return bbfile
for key in cooker.status.pkg_fn.keys():
if key.endswith( bbfile ):