mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
Hob: Fix adding duplicated meta-hob layer
While adding meta-hob layer, we need to detect whether it already exists in current layers. (Bitbake rev: b195823d19bcb71bd5eef19acfe22b2dd670d90a) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
8b26fdcb3a
commit
345a2dd01c
@@ -383,7 +383,9 @@ class HobHandler(gobject.GObject):
|
||||
params = {}
|
||||
params["core_base"] = self.server.runCommand(["getVariable", "COREBASE"]) or ""
|
||||
hob_layer = params["core_base"] + "/meta-hob"
|
||||
params["layer"] = (self.server.runCommand(["getVariable", "BBLAYERS"]) or "") + " " + hob_layer
|
||||
params["layer"] = self.server.runCommand(["getVariable", "BBLAYERS"]) or ""
|
||||
if hob_layer not in params["layer"].split():
|
||||
params["layer"] += (" " + hob_layer)
|
||||
params["dldir"] = self.server.runCommand(["getVariable", "DL_DIR"]) or ""
|
||||
params["machine"] = self.server.runCommand(["getVariable", "MACHINE"]) or ""
|
||||
params["distro"] = self.server.runCommand(["getVariable", "DISTRO"]) or "defaultsetup"
|
||||
|
||||
Reference in New Issue
Block a user