multiconfig: implement initial support
This patch adds multiconfig support to kas by defining the "BBMULTICONFIG" variable in the "local.conf" file. Signed-off-by: Claudius Heine <ch@denx.de>
This commit is contained in:
parent
9370bd6267
commit
fa1575790f
@ -39,3 +39,12 @@ Added
|
||||
~~~~~
|
||||
|
||||
- ``Target`` key now allows to be a list of target names
|
||||
|
||||
Version 5
|
||||
---------
|
||||
|
||||
Changed behavior
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
- Using ``multiconfig:*`` targets adds appropriate ``BBMULTICONFIG`` entries to
|
||||
the ``local.conf`` automatically.
|
||||
|
@ -28,5 +28,5 @@ __copyright__ = 'Copyright (c) Siemens AG, 2017'
|
||||
__version__ = '0.14.0'
|
||||
|
||||
# Please update docs/format-changelog.rst when changing the file version.
|
||||
__file_version__ = 4
|
||||
__file_version__ = 5
|
||||
__compatible_file_version__ = 1
|
||||
|
@ -269,6 +269,15 @@ class Config:
|
||||
return os.environ.get('KAS_DISTRO',
|
||||
self._config.get('distro', 'poky'))
|
||||
|
||||
def get_multiconfig(self):
|
||||
"""
|
||||
Returns the multiconfig array as bitbake string
|
||||
"""
|
||||
return ' '.join(set(i.split(':')[1]
|
||||
for i in
|
||||
self.get_bitbake_targets()
|
||||
if i.startswith('multiconfig')))
|
||||
|
||||
def get_gitlabci_config(self):
|
||||
"""
|
||||
Returns the GitlabCI configuration
|
||||
|
@ -183,6 +183,8 @@ class WriteConfig(Command):
|
||||
fds.write(config.get_local_conf_header())
|
||||
fds.write('MACHINE ?= "{}"\n'.format(config.get_machine()))
|
||||
fds.write('DISTRO ?= "{}"\n'.format(config.get_distro()))
|
||||
fds.write('BBMULTICONFIG ?= "{}"\n'.format(
|
||||
config.get_multiconfig()))
|
||||
|
||||
_write_bblayers_conf(config)
|
||||
_write_local_conf(config)
|
||||
|
Loading…
Reference in New Issue
Block a user