mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
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>
This commit is contained in:
parent
d6f210f690
commit
2a5623dddc
1
bitbake/bin/bitbake-config-build
Symbolic link
1
bitbake/bin/bitbake-config-build
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
bitbake-layers
|
|
@ -18,13 +18,14 @@ import warnings
|
||||||
warnings.simplefilter("default")
|
warnings.simplefilter("default")
|
||||||
|
|
||||||
bindir = os.path.dirname(__file__)
|
bindir = os.path.dirname(__file__)
|
||||||
|
toolname = os.path.basename(__file__).split(".")[0]
|
||||||
topdir = os.path.dirname(bindir)
|
topdir = os.path.dirname(bindir)
|
||||||
sys.path[0:0] = [os.path.join(topdir, 'lib')]
|
sys.path[0:0] = [os.path.join(topdir, 'lib')]
|
||||||
|
|
||||||
import bb.tinfoil
|
import bb.tinfoil
|
||||||
import bb.msg
|
import bb.msg
|
||||||
|
|
||||||
logger = bb.msg.logger_create('bitbake-layers', sys.stdout)
|
logger = bb.msg.logger_create(toolname, sys.stdout)
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
|
@ -67,7 +68,8 @@ def main():
|
||||||
bbpaths = tinfoil.config_data.getVar('BBPATH').split(':')
|
bbpaths = tinfoil.config_data.getVar('BBPATH').split(':')
|
||||||
|
|
||||||
for path in ([topdir] + bbpaths):
|
for path in ([topdir] + bbpaths):
|
||||||
pluginpath = os.path.join(path, 'lib', 'bblayers')
|
pluginbasepath = {"bitbake-layers":'bblayers', 'bitbake-config-build':'bbconfigbuild'}[toolname]
|
||||||
|
pluginpath = os.path.join(path, 'lib', pluginbasepath)
|
||||||
bb.utils.load_plugins(logger, plugins, pluginpath)
|
bb.utils.load_plugins(logger, plugins, pluginpath)
|
||||||
|
|
||||||
registered = False
|
registered = False
|
||||||
|
|
Loading…
Reference in New Issue
Block a user