summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/command.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/command.py')
-rw-r--r--bitbake/lib/bb/command.py60
1 files changed, 0 insertions, 60 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index a919f58d24..36891b923f 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -233,60 +233,11 @@ class CommandsSync:
233 command.cooker.configuration.postfile = postfiles 233 command.cooker.configuration.postfile = postfiles
234 setPrePostConfFiles.needconfig = False 234 setPrePostConfFiles.needconfig = False
235 235
236 def getCpuCount(self, command, params):
237 """
238 Get the CPU count on the bitbake server
239 """
240 return bb.utils.cpu_count()
241 getCpuCount.readonly = True
242 getCpuCount.needconfig = False
243
244 def matchFile(self, command, params): 236 def matchFile(self, command, params):
245 fMatch = params[0] 237 fMatch = params[0]
246 return command.cooker.matchFile(fMatch) 238 return command.cooker.matchFile(fMatch)
247 matchFile.needconfig = False 239 matchFile.needconfig = False
248 240
249 def generateNewImage(self, command, params):
250 image = params[0]
251 base_image = params[1]
252 package_queue = params[2]
253 timestamp = params[3]
254 description = params[4]
255 return command.cooker.generateNewImage(image, base_image,
256 package_queue, timestamp, description)
257
258 def ensureDir(self, command, params):
259 directory = params[0]
260 bb.utils.mkdirhier(directory)
261 ensureDir.needconfig = False
262
263 def setVarFile(self, command, params):
264 """
265 Save a variable in a file; used for saving in a configuration file
266 """
267 var = params[0]
268 val = params[1]
269 default_file = params[2]
270 op = params[3]
271 command.cooker.modifyConfigurationVar(var, val, default_file, op)
272 setVarFile.needconfig = False
273
274 def removeVarFile(self, command, params):
275 """
276 Remove a variable declaration from a file
277 """
278 var = params[0]
279 command.cooker.removeConfigurationVar(var)
280 removeVarFile.needconfig = False
281
282 def createConfigFile(self, command, params):
283 """
284 Create an extra configuration file
285 """
286 name = params[0]
287 command.cooker.createConfigFile(name)
288 createConfigFile.needconfig = False
289
290 def setEventMask(self, command, params): 241 def setEventMask(self, command, params):
291 handlerNum = params[0] 242 handlerNum = params[0]
292 llevel = params[1] 243 llevel = params[1]
@@ -646,17 +597,6 @@ class CommandsAsync:
646 command.finishAsyncCommand() 597 command.finishAsyncCommand()
647 generateTargetsTree.needcache = True 598 generateTargetsTree.needcache = True
648 599
649 def findCoreBaseFiles(self, command, params):
650 """
651 Find certain files in COREBASE directory. i.e. Layers
652 """
653 subdir = params[0]
654 filename = params[1]
655
656 command.cooker.findCoreBaseFiles(subdir, filename)
657 command.finishAsyncCommand()
658 findCoreBaseFiles.needcache = False
659
660 def findConfigFiles(self, command, params): 600 def findConfigFiles(self, command, params):
661 """ 601 """
662 Find config files which provide appropriate values 602 Find config files which provide appropriate values