summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/command.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-06-09 17:13:51 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-12 15:07:39 +0100
commit833520d2fb8cdef2f6fdc7a0550aba1f67724c27 (patch)
treed9dfe6f06933b4091c0c9c95a7c49da8d0253370 /bitbake/lib/bb/command.py
parent3d4c64fb9ff33a074328c37c7803c13ecc95f689 (diff)
downloadpoky-833520d2fb8cdef2f6fdc7a0550aba1f67724c27.tar.gz
bitbake: command / cooker: drop Hob support commands and functions
Drop a number of the commands and support functions that were created solely to support functionality in the now-removed Hob UI. In most cases we now have this functionality elsewhere e.g. to modify config files and recipes we have bb.utils.edit_metadata_file() and friends, and in OE we have oe.recipeutils.patch_recipe_file() and friends which build on top of the former. Additionally, some of it represented pretty egregious incursion of OE metadata-specific references into BitBake code. For now I have left in the find*File functions and commands as they are relatively generic and possibly still useful, but they might be removed in future. (Bitbake rev: a322f13183c66a28d93cc4bc3d839d95fc1d90f4) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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