diff options
author | Alexander Kanavin <alex@linutronix.de> | 2024-12-11 15:09:53 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-12-13 11:11:18 +0000 |
commit | 2a5623dddc1f32e918c54bc211fceffca1e61803 (patch) | |
tree | 807e0d4baa02eeefb7f83c678d3e0c4b90e68834 /bitbake | |
parent | d6f210f69046b881646206e6dac842294ea312e3 (diff) | |
download | poky-2a5623dddc1f32e918c54bc211fceffca1e61803.tar.gz |
bitbake: bitbake-config-build: add an alias to bitbake-layers
This alias is intended for managing specific local configs and it
is prompted by adding support for config fragments (in a separate
commit to oe-core); after some deliberation I concluded there should be
a separate tool, as bitbake-layers is already somewhat over-stuffed,
and this will give space for more build/conf/* operations in the future
that anyone can come up with (such as tweaking site-specific items
in site.conf etc.)
The alias completely reuses existing code via symlink and
the difference is in where it looks for plugins.
(Bitbake rev: ba90fe673aa87cb0cda9b2e465ebe2063551f527)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
l--------- | bitbake/bin/bitbake-config-build | 1 | ||||
-rwxr-xr-x | bitbake/bin/bitbake-layers | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/bin/bitbake-config-build b/bitbake/bin/bitbake-config-build new file mode 120000 index 0000000000..11e6df80c4 --- /dev/null +++ b/bitbake/bin/bitbake-config-build | |||
@@ -0,0 +1 @@ | |||
bitbake-layers \ No newline at end of file | |||
diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers index 7bd3ea20e4..341ecbcd97 100755 --- a/bitbake/bin/bitbake-layers +++ b/bitbake/bin/bitbake-layers | |||
@@ -18,13 +18,14 @@ import warnings | |||
18 | warnings.simplefilter("default") | 18 | warnings.simplefilter("default") |
19 | 19 | ||
20 | bindir = os.path.dirname(__file__) | 20 | bindir = os.path.dirname(__file__) |
21 | toolname = os.path.basename(__file__).split(".")[0] | ||
21 | topdir = os.path.dirname(bindir) | 22 | topdir = os.path.dirname(bindir) |
22 | sys.path[0:0] = [os.path.join(topdir, 'lib')] | 23 | sys.path[0:0] = [os.path.join(topdir, 'lib')] |
23 | 24 | ||
24 | import bb.tinfoil | 25 | import bb.tinfoil |
25 | import bb.msg | 26 | import bb.msg |
26 | 27 | ||
27 | logger = bb.msg.logger_create('bitbake-layers', sys.stdout) | 28 | logger = bb.msg.logger_create(toolname, sys.stdout) |
28 | 29 | ||
29 | def main(): | 30 | def main(): |
30 | parser = argparse.ArgumentParser( | 31 | parser = argparse.ArgumentParser( |
@@ -67,7 +68,8 @@ def main(): | |||
67 | bbpaths = tinfoil.config_data.getVar('BBPATH').split(':') | 68 | bbpaths = tinfoil.config_data.getVar('BBPATH').split(':') |
68 | 69 | ||
69 | for path in ([topdir] + bbpaths): | 70 | for path in ([topdir] + bbpaths): |
70 | pluginpath = os.path.join(path, 'lib', 'bblayers') | 71 | pluginbasepath = {"bitbake-layers":'bblayers', 'bitbake-config-build':'bbconfigbuild'}[toolname] |
72 | pluginpath = os.path.join(path, 'lib', pluginbasepath) | ||
71 | bb.utils.load_plugins(logger, plugins, pluginpath) | 73 | bb.utils.load_plugins(logger, plugins, pluginpath) |
72 | 74 | ||
73 | registered = False | 75 | registered = False |