summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobeventhandler.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobeventhandler.py26
1 files changed, 14 insertions, 12 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
index 1a7427a812..292d9056b2 100644
--- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
@@ -253,43 +253,42 @@ class HobHandler(gobject.GObject):
253 self.server.runCommand(["setVariable", "INHERIT", inherits]) 253 self.server.runCommand(["setVariable", "INHERIT", inherits])
254 254
255 def set_bblayers(self, bblayers): 255 def set_bblayers(self, bblayers):
256 self.server.runCommand(["setVariable", "BBLAYERS", " ".join(bblayers)]) 256 self.server.runCommand(["setVariable", "BBLAYERS_HOB", " ".join(bblayers)])
257 257
258 def set_machine(self, machine): 258 def set_machine(self, machine):
259 if machine: 259 if machine:
260 self.server.runCommand(["setVariable", "MACHINE", machine]) 260 self.server.runCommand(["setVariable", "MACHINE_HOB", machine])
261 261
262 def set_sdk_machine(self, sdk_machine): 262 def set_sdk_machine(self, sdk_machine):
263 self.server.runCommand(["setVariable", "SDKMACHINE", sdk_machine]) 263 self.server.runCommand(["setVariable", "SDKMACHINE_HOB", sdk_machine])
264 264
265 def set_image_fstypes(self, image_fstypes): 265 def set_image_fstypes(self, image_fstypes):
266 self.server.runCommand(["setVariable", "IMAGE_FSTYPES", image_fstypes]) 266 self.server.runCommand(["setVariable", "IMAGE_FSTYPES", image_fstypes])
267 267
268 def set_distro(self, distro): 268 def set_distro(self, distro):
269 if distro != "defaultsetup": 269 self.server.runCommand(["setVariable", "DISTRO_HOB", distro])
270 self.server.runCommand(["setVariable", "DISTRO", distro])
271 270
272 def set_package_format(self, format): 271 def set_package_format(self, format):
273 package_classes = "" 272 package_classes = ""
274 for pkgfmt in format.split(): 273 for pkgfmt in format.split():
275 package_classes += ("package_%s" % pkgfmt + " ") 274 package_classes += ("package_%s" % pkgfmt + " ")
276 self.server.runCommand(["setVariable", "PACKAGE_CLASSES", package_classes]) 275 self.server.runCommand(["setVariable", "PACKAGE_CLASSES_HOB", package_classes])
277 276
278 def set_bbthreads(self, threads): 277 def set_bbthreads(self, threads):
279 self.server.runCommand(["setVariable", "BB_NUMBER_THREADS", threads]) 278 self.server.runCommand(["setVariable", "BB_NUMBER_THREADS_HOB", threads])
280 279
281 def set_pmake(self, threads): 280 def set_pmake(self, threads):
282 pmake = "-j %s" % threads 281 pmake = "-j %s" % threads
283 self.server.runCommand(["setVariable", "PARALLEL_MAKE", pmake]) 282 self.server.runCommand(["setVariable", "PARALLEL_MAKE_HOB", pmake])
284 283
285 def set_dl_dir(self, directory): 284 def set_dl_dir(self, directory):
286 self.server.runCommand(["setVariable", "DL_DIR", directory]) 285 self.server.runCommand(["setVariable", "DL_DIR_HOB", directory])
287 286
288 def set_sstate_dir(self, directory): 287 def set_sstate_dir(self, directory):
289 self.server.runCommand(["setVariable", "SSTATE_DIR", directory]) 288 self.server.runCommand(["setVariable", "SSTATE_DIR_HOB", directory])
290 289
291 def set_sstate_mirror(self, url): 290 def set_sstate_mirror(self, url):
292 self.server.runCommand(["setVariable", "SSTATE_MIRROR", url]) 291 self.server.runCommand(["setVariable", "SSTATE_MIRROR_HOB", url])
293 292
294 def set_extra_size(self, image_extra_size): 293 def set_extra_size(self, image_extra_size):
295 self.server.runCommand(["setVariable", "IMAGE_ROOTFS_EXTRA_SPACE", str(image_extra_size)]) 294 self.server.runCommand(["setVariable", "IMAGE_ROOTFS_EXTRA_SPACE", str(image_extra_size)])
@@ -298,13 +297,16 @@ class HobHandler(gobject.GObject):
298 self.server.runCommand(["setVariable", "IMAGE_ROOTFS_SIZE", str(image_rootfs_size)]) 297 self.server.runCommand(["setVariable", "IMAGE_ROOTFS_SIZE", str(image_rootfs_size)])
299 298
300 def set_incompatible_license(self, incompat_license): 299 def set_incompatible_license(self, incompat_license):
301 self.server.runCommand(["setVariable", "INCOMPATIBLE_LICENSE", incompat_license]) 300 self.server.runCommand(["setVariable", "INCOMPATIBLE_LICENSE_HOB", incompat_license])
302 301
303 def set_extra_config(self, extra_setting): 302 def set_extra_config(self, extra_setting):
304 for key in extra_setting.keys(): 303 for key in extra_setting.keys():
305 value = extra_setting[key] 304 value = extra_setting[key]
306 self.server.runCommand(["setVariable", key, value]) 305 self.server.runCommand(["setVariable", key, value])
307 306
307 def set_config_filter(self, config_filter):
308 self.server.runCommand(["setConfFilter", config_filter])
309
308 def set_http_proxy(self, http_proxy): 310 def set_http_proxy(self, http_proxy):
309 self.server.runCommand(["setVariable", "http_proxy", http_proxy]) 311 self.server.runCommand(["setVariable", "http_proxy", http_proxy])
310 312