diff options
author | Pedro Baptista <pedro.miguel.baptista@gmail.com> | 2023-02-15 22:51:10 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-17 18:02:04 +0000 |
commit | 445caa139cf4b1f8a409b5a40d00b3967dc38f32 (patch) | |
tree | 473c661d40cf8d5741954974564360dcaaa75d13 /bitbake | |
parent | 5630cb5ccd4d16c192e5c40fd2972e275ce04cfe (diff) | |
download | poky-445caa139cf4b1f8a409b5a40d00b3967dc38f32.tar.gz |
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>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bblayers/action.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): | |||
66 | 66 | ||
67 | def do_remove_layer(self, args): | 67 | def do_remove_layer(self, args): |
68 | """Remove one or more layers from bblayers.conf.""" | 68 | """Remove one or more layers from bblayers.conf.""" |
69 | bblayers_conf = os.path.join('conf', 'bblayers.conf') | 69 | bblayers_conf = os.path.join(findTopdir() ,'conf', 'bblayers.conf') |
70 | if not os.path.exists(bblayers_conf): | 70 | if not os.path.exists(bblayers_conf): |
71 | sys.stderr.write("Unable to find bblayers.conf\n") | 71 | sys.stderr.write("Unable to find bblayers.conf\n") |
72 | return 1 | 72 | return 1 |