cooker.py: Add parseConfiguration() function and move inheritFromOS call outside...
authorRichard Purdie <rpurdie@linux.intel.com>
Tue, 30 Sep 2008 20:41:10 +0000 (20:41 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 30 Sep 2008 20:41:10 +0000 (20:41 +0000)
bin/bitbake
lib/bb/cooker.py
lib/bb/parse/parse_py/ConfHandler.py

index 4492bf0..e262d0b 100755 (executable)
@@ -113,6 +113,8 @@ Default BBFILES are the .bb files in the current directory.""" )
 
     cooker = bb.cooker.BBCooker(configuration)
 
+    cooker.parseConfiguration()
+
     if configuration.profile:
         try:
             import cProfile as profile
index 8e6acb1..50624d8 100644 (file)
@@ -59,6 +59,10 @@ class BBCooker:
 
         self.configuration.data = bb.data.init()
 
+    def parseConfiguration(self):
+
+        bb.data.inheritFromOS(self.configuration.data)
+
         for f in self.configuration.file:
             self.parseConfigurationFile( f )
 
index e6488bb..f8a4968 100644 (file)
@@ -118,7 +118,6 @@ def handle(fn, data, include = 0):
     init(data)
 
     if include == 0:
-        bb.data.inheritFromOS(data)
         oldfile = None
     else:
         oldfile = bb.data.getVar('FILE', data)