Handle the parse only cmdline option when using --buildfile.
authorChris Larson <clarson@kergoth.com>
Wed, 22 Dec 2004 23:04:35 +0000 (23:04 +0000)
committerChris Larson <clarson@kergoth.com>
Wed, 22 Dec 2004 23:04:35 +0000 (23:04 +0000)
bin/bitbake

index 1acb335..3deb4e6 100755 (executable)
@@ -547,6 +547,10 @@ def executeOneBB( fn ):
         except IOError:
             bb.fatal("Unable to open %s" % fn)
 
+        if make.options.parse_only:
+            print "Requested parsing .bb files only.  Exiting."
+            sys.exit(0)
+
         name = bb.data.getVar('PN', d, 1)
         bb.event.fire(bb.event.PkgStarted(name, d))
         try: