From 445caa139cf4b1f8a409b5a40d00b3967dc38f32 Mon Sep 17 00:00:00 2001 From: Pedro Baptista Date: Wed, 15 Feb 2023 22:51:10 +0000 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bblayers/action.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/bblayers/action.py b/bitbake/lib/bblayers/action.py index d1ba101de2..0d7fd6edd1 100644 --- a/bitbake/lib/bblayers/action.py +++ b/bitbake/lib/bblayers/action.py @@ -66,7 +66,7 @@ class ActionPlugin(LayerPlugin): def do_remove_layer(self, args): """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): sys.stderr.write("Unable to find bblayers.conf\n") return 1 -- cgit v1.2.3-54-g00ecf