summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/configurator.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/configurator.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/configurator.py17
1 files changed, 14 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/configurator.py b/bitbake/lib/bb/ui/crumbs/configurator.py
index ec48a4f3f0..587a6ff129 100644
--- a/bitbake/lib/bb/ui/crumbs/configurator.py
+++ b/bitbake/lib/bb/ui/crumbs/configurator.py
@@ -84,9 +84,6 @@ class Configurator(gobject.GObject):
84 pmake = getString('PARALLEL_MAKE') 84 pmake = getString('PARALLEL_MAKE')
85 if pmake and pmake != self.config.get('PARALLEL_MAKE', ''): 85 if pmake and pmake != self.config.get('PARALLEL_MAKE', ''):
86 self.config['PARALLEL_MAKE'] = pmake 86 self.config['PARALLEL_MAKE'] = pmake
87 incompat = getString('INCOMPATIBLE_LICENSE')
88 if incompat and incompat != self.config.get('INCOMPATIBLE_LICENSE', ''):
89 self.config['INCOMPATIBLE_LICENSE'] = incompat
90 pclass = getString('PACKAGE_CLASSES') 87 pclass = getString('PACKAGE_CLASSES')
91 if pclass and pclass != self.config.get('PACKAGE_CLASSES', ''): 88 if pclass and pclass != self.config.get('PACKAGE_CLASSES', ''):
92 self.config['PACKAGE_CLASSES'] = pclass 89 self.config['PACKAGE_CLASSES'] = pclass
@@ -94,11 +91,25 @@ class Configurator(gobject.GObject):
94 if fstypes and fstypes != self.config.get('IMAGE_FSTYPES', ''): 91 if fstypes and fstypes != self.config.get('IMAGE_FSTYPES', ''):
95 self.config['IMAGE_FSTYPES'] = fstypes 92 self.config['IMAGE_FSTYPES'] = fstypes
96 93
94 # Values which aren't always set in the conf must be explicitly
95 # loaded as empty values for save to work
96 incompat = getString('INCOMPATIBLE_LICENSE')
97 if incompat and incompat != self.config.get('INCOMPATIBLE_LICENSE', ''):
98 self.config['INCOMPATIBLE_LICENSE'] = incompat
99 else:
100 self.config['INCOMPATIBLE_LICENSE'] = ""
101
97 self.orig_config = copy.deepcopy(self.config) 102 self.orig_config = copy.deepcopy(self.config)
98 103
99 def setLocalConfVar(self, var, val): 104 def setLocalConfVar(self, var, val):
100 self.config[var] = val 105 self.config[var] = val
101 106
107 def getLocalConfVar(self, var):
108 if var in self.config:
109 return self.config[var]
110 else:
111 return ""
112
102 def _loadLayerConf(self, path): 113 def _loadLayerConf(self, path):
103 self.bblayers = path 114 self.bblayers = path
104 self.enabled_layers = {} 115 self.enabled_layers = {}