mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
bitbake: action.py: add topdir in bblayers_conf path for remove-layer
By including the full path to bblayers.conf the remove-layer command can be executed from any location, not only from the build directory. (Bitbake rev: 25cb4e17e8a4c0310df018b9df184b0155b267eb) Signed-off-by: Pedro Baptista <pedro.miguel.baptista@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
5630cb5ccd
commit
445caa139c
@@ -66,7 +66,7 @@ class ActionPlugin(LayerPlugin):
|
|||||||
|
|
||||||
def do_remove_layer(self, args):
|
def do_remove_layer(self, args):
|
||||||
"""Remove one or more layers from bblayers.conf."""
|
"""Remove one or more layers from bblayers.conf."""
|
||||||
bblayers_conf = os.path.join('conf', 'bblayers.conf')
|
bblayers_conf = os.path.join(findTopdir() ,'conf', 'bblayers.conf')
|
||||||
if not os.path.exists(bblayers_conf):
|
if not os.path.exists(bblayers_conf):
|
||||||
sys.stderr.write("Unable to find bblayers.conf\n")
|
sys.stderr.write("Unable to find bblayers.conf\n")
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user