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

login
register
mail settings
Submitter Cristiana Voicu
Date July 26, 2013, 11:20 a.m.
Message ID <1374837636-16094-1-git-send-email-cristiana.voicu@intel.com>
Download mbox | patch
Permalink /patch/54573/
State New
Headers show

Comments

Cristiana Voicu - July 26, 2013, 11:20 a.m.
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@intel.com>
---
 bitbake/lib/bb/ui/crumbs/builder.py |   24 ------------------------
 1 file changed, 24 deletions(-)

Patch

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,