summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2013-12-05 16:09:15 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-05 16:27:13 +0000
commit2bd4c2be9ffc71d6e7b21ce75c228a70ed00e6d2 (patch)
treee402be41035f9e2f5b6980e439b97311e4719211
parentf19546e02d3318ee69fd0c34e21aa97b74c987ec (diff)
downloadpoky-2bd4c2be9ffc71d6e7b21ce75c228a70ed00e6d2.tar.gz
bitbake: hob: changes to INHERIT var should use "append" operation
Setting INHERIT var means to remove other operations made on INHERIT. This is too intrusive, so we decided to use append for this case. [YOCTO #5448] (Bitbake rev: a2d0122c198ee50325e6f0e2f5d1c2284475fc7b) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobeventhandler.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
index ce8584df4c..7014935f6d 100644
--- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
@@ -306,9 +306,7 @@ class HobHandler(gobject.GObject):
306 self.runCommand(["createConfigFile", ".hob.conf"]) 306 self.runCommand(["createConfigFile", ".hob.conf"])
307 307
308 def set_extra_inherit(self, bbclass): 308 def set_extra_inherit(self, bbclass):
309 inherits = self.runCommand(["getVariable", "INHERIT"]) or "" 309 self.append_var_in_file("INHERIT", bbclass, ".hob.conf")
310 inherits = inherits + " " + bbclass
311 self.set_var_in_file("INHERIT", inherits, ".hob.conf")
312 310
313 def set_bblayers(self, bblayers): 311 def set_bblayers(self, bblayers):
314 self.set_var_in_file("BBLAYERS", " ".join(bblayers), "bblayers.conf") 312 self.set_var_in_file("BBLAYERS", " ".join(bblayers), "bblayers.conf")