diff options
Diffstat (limited to 'bitbake-dev/lib/bb/cooker.py')
-rw-r--r-- | bitbake-dev/lib/bb/cooker.py | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/bitbake-dev/lib/bb/cooker.py b/bitbake-dev/lib/bb/cooker.py index 86229799f2..06f3395d7a 100644 --- a/bitbake-dev/lib/bb/cooker.py +++ b/bitbake-dev/lib/bb/cooker.py | |||
@@ -88,6 +88,24 @@ class BBCooker: | |||
88 | 88 | ||
89 | bb.data.inheritFromOS(self.configuration.data) | 89 | bb.data.inheritFromOS(self.configuration.data) |
90 | 90 | ||
91 | for f in self.configuration.file: | ||
92 | self.parseConfigurationFile( f ) | ||
93 | |||
94 | self.parseConfigurationFile( os.path.join( "conf", "bitbake.conf" ) ) | ||
95 | |||
96 | if not self.configuration.cmd: | ||
97 | self.configuration.cmd = bb.data.getVar("BB_DEFAULT_TASK", self.configuration.data, True) or "build" | ||
98 | |||
99 | bbpkgs = bb.data.getVar('BBPKGS', self.configuration.data, True) | ||
100 | if bbpkgs: | ||
101 | self.configuration.pkgs_to_build.extend(bbpkgs.split()) | ||
102 | |||
103 | # | ||
104 | # Special updated configuration we use for firing events | ||
105 | # | ||
106 | self.configuration.event_data = bb.data.createCopy(self.configuration.data) | ||
107 | bb.data.update_data(self.configuration.event_data) | ||
108 | |||
91 | # TOSTOP must not be set or our children will hang when they output | 109 | # TOSTOP must not be set or our children will hang when they output |
92 | fd = sys.stdout.fileno() | 110 | fd = sys.stdout.fileno() |
93 | if os.isatty(fd): | 111 | if os.isatty(fd): |
@@ -105,23 +123,7 @@ class BBCooker: | |||
105 | self.server.register_idle_function(self.runCommands, self) | 123 | self.server.register_idle_function(self.runCommands, self) |
106 | 124 | ||
107 | def parseConfiguration(self): | 125 | def parseConfiguration(self): |
108 | # | ||
109 | # Special updated configuration we use for firing events | ||
110 | # | ||
111 | self.configuration.event_data = bb.data.createCopy(self.configuration.data) | ||
112 | bb.data.update_data(self.configuration.event_data) | ||
113 | |||
114 | for f in self.configuration.file: | ||
115 | self.parseConfigurationFile( f ) | ||
116 | 126 | ||
117 | self.parseConfigurationFile( os.path.join( "conf", "bitbake.conf" ) ) | ||
118 | |||
119 | if not self.configuration.cmd: | ||
120 | self.configuration.cmd = bb.data.getVar("BB_DEFAULT_TASK", self.configuration.data, True) or "build" | ||
121 | |||
122 | bbpkgs = bb.data.getVar('BBPKGS', self.configuration.data, True) | ||
123 | if bbpkgs: | ||
124 | self.configuration.pkgs_to_build.extend(bbpkgs.split()) | ||
125 | 127 | ||
126 | # Change nice level if we're asked to | 128 | # Change nice level if we're asked to |
127 | nice = bb.data.getVar("BB_NICE_LEVEL", self.configuration.data, True) | 129 | nice = bb.data.getVar("BB_NICE_LEVEL", self.configuration.data, True) |
@@ -149,6 +151,9 @@ class BBCooker: | |||
149 | self.commandlineAction = ["showVersions"] | 151 | self.commandlineAction = ["showVersions"] |
150 | elif self.configuration.parse_only: | 152 | elif self.configuration.parse_only: |
151 | self.commandlineAction = ["parseFiles"] | 153 | self.commandlineAction = ["parseFiles"] |
154 | # FIXME - implement | ||
155 | #elif self.configuration.interactive: | ||
156 | # self.interactiveMode() | ||
152 | elif self.configuration.dot_graph: | 157 | elif self.configuration.dot_graph: |
153 | if self.configuration.pkgs_to_build: | 158 | if self.configuration.pkgs_to_build: |
154 | self.commandlineAction = ["generateDotGraph", self.configuration.pkgs_to_build, self.configuration.cmd] | 159 | self.commandlineAction = ["generateDotGraph", self.configuration.pkgs_to_build, self.configuration.cmd] |