[bitbake-devel] [PATCH] hob: delete an unused function used before for variable from configuration

Cristiana Voicu cristiana.voicu at intel.com
Fri Jul 26 11:20:36 UTC 2013


This function was used to filter the variables saved with the
termination "_HOB". Now all the variables are saved in conf/ directory
in order to be seen the same both from Hob and from command line.

Signed-off-by: Cristiana Voicu <cristiana.voicu at intel.com>
---
 bitbake/lib/bb/ui/crumbs/builder.py |   24 ------------------------
 1 file changed, 24 deletions(-)

diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py
index a7bd21c..6a8c5ba 100755
--- a/bitbake/lib/bb/ui/crumbs/builder.py
+++ b/bitbake/lib/bb/ui/crumbs/builder.py
@@ -300,30 +300,6 @@ class Parameters:
         self.distro_version = params["distro_version"]
         self.tune_pkgarch = params["tune_pkgarch"]
 
-def hob_conf_filter(fn, data):
-    if fn.endswith("/local.conf"):
-        distro = data.getVar("DISTRO_HOB")
-        if distro:
-            if distro != "defaultsetup":
-                data.setVar("DISTRO", distro)
-            else:
-                data.delVar("DISTRO")
-
-        keys = ["MACHINE_HOB", "SDKMACHINE_HOB", "PACKAGE_CLASSES_HOB", \
-                "BB_NUMBER_THREADS_HOB", "PARALLEL_MAKE_HOB", "DL_DIR_HOB", \
-                "SSTATE_DIR_HOB", "SSTATE_MIRRORS_HOB", "INCOMPATIBLE_LICENSE_HOB"]
-        for key in keys:
-            var_hob = data.getVar(key)
-            if var_hob:
-                data.setVar(key.split("_HOB")[0], var_hob)
-        return
-
-    if fn.endswith("/bblayers.conf"):
-        layers = data.getVar("BBLAYERS_HOB")
-        if layers:
-            data.setVar("BBLAYERS", layers)
-        return
-
 class Builder(gtk.Window):
 
     (INITIAL_CHECKS,
-- 
1.7.9.5




More information about the bitbake-devel mailing list