diff options
author | Cristiana Voicu <cristiana.voicu@intel.com> | 2012-11-26 09:42:36 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-11-26 20:57:30 +0000 |
commit | 73b9f64357f03da95c5d4b4d0d56ff1bb1e3ff0d (patch) | |
tree | 80e061dda4e56d54a6774182d14237f53b4a8f80 /bitbake/lib/bb/ui/crumbs/hobeventhandler.py | |
parent | c6dc0b976776b94ba92a7be6d69ac3fe605eff2a (diff) | |
download | poky-73b9f64357f03da95c5d4b4d0d56ff1bb1e3ff0d.tar.gz |
bitbake: hob: make some layers non removable
- there are some layers which cannot be removed; so ,I have used
a new variable called BBLAYERS_NON_REMOVABLE located in bblayers.conf,
which contains those layers which cannot be deleted
- "meta-hob" layer is added to this variable in hob code, like it's
added to BBLAYERS var
[YOCTO #3176]
(Bitbake rev: 05da1621eed4c6201cd65372d229f63ea8a44b6e)
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobeventhandler.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py index 4b908f9041..ae1cefc538 100644 --- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py +++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py | |||
@@ -435,8 +435,11 @@ class HobHandler(gobject.GObject): | |||
435 | params["core_base"] = self.runCommand(["getVariable", "COREBASE"]) or "" | 435 | params["core_base"] = self.runCommand(["getVariable", "COREBASE"]) or "" |
436 | hob_layer = params["core_base"] + "/meta-hob" | 436 | hob_layer = params["core_base"] + "/meta-hob" |
437 | params["layer"] = self.runCommand(["getVariable", "BBLAYERS"]) or "" | 437 | params["layer"] = self.runCommand(["getVariable", "BBLAYERS"]) or "" |
438 | params["layers_non_removable"] = self.runCommand(["getVariable", "BBLAYERS_NON_REMOVABLE"]) | ||
438 | if hob_layer not in params["layer"].split(): | 439 | if hob_layer not in params["layer"].split(): |
439 | params["layer"] += (" " + hob_layer) | 440 | params["layer"] += (" " + hob_layer) |
441 | if hob_layer not in params["layers_non_removable"].split(): | ||
442 | params["layers_non_removable"] += (" " + hob_layer) | ||
440 | params["dldir"] = self.runCommand(["getVariable", "DL_DIR"]) or "" | 443 | params["dldir"] = self.runCommand(["getVariable", "DL_DIR"]) or "" |
441 | params["machine"] = self.runCommand(["getVariable", "MACHINE"]) or "" | 444 | params["machine"] = self.runCommand(["getVariable", "MACHINE"]) or "" |
442 | params["distro"] = self.runCommand(["getVariable", "DISTRO"]) or "defaultsetup" | 445 | params["distro"] = self.runCommand(["getVariable", "DISTRO"]) or "defaultsetup" |