public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* Re: [PATCH 1/2] set mode specific defaults for machine and distro
       [not found]     ` <3cdaaa27-1ef0-4e49-b700-d2b5049ff4de@siemens.com>
@ 2024-03-08 14:18       ` MOESSBAUER, Felix
  0 siblings, 0 replies; only message in thread
From: MOESSBAUER, Felix @ 2024-03-08 14:18 UTC (permalink / raw)
  To: isar-users, Kiszka, Jan, kas-devel

On Fri, 2024-03-08 at 15:07 +0100, Jan Kiszka wrote:
> On 08.03.24 15:03, Moessbauer, Felix (T CED OES-DE) wrote:
> > On Fri, 2024-03-08 at 14:30 +0100, Jan Kiszka wrote:
> > > On 08.03.24 13:22, Felix Moessbauer wrote:
> > > > When running with the ISAR build system, set these to values
> > > > which
> > > > correspond to entries in the ISAR core layer instead of yocto.
> > > > 
> > > > Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> > > > ---
> > > >  docs/format-changelog.rst                | 6 ++++++
> > > >  docs/userguide/project-configuration.inc | 4 ++--
> > > >  kas/config.py                            | 8 ++++++--
> > > >  3 files changed, 14 insertions(+), 4 deletions(-)
> > > > 
> > > > diff --git a/docs/format-changelog.rst b/docs/format-
> > > > changelog.rst
> > > > index 98f0c8daa..ea9133a65 100644
> > > > --- a/docs/format-changelog.rst
> > > > +++ b/docs/format-changelog.rst
> > > > @@ -163,3 +163,9 @@ Fixed
> > > >  
> > > >  - The key ``tag`` introduced in v15 was not supported in
> > > > ``defaults``.
> > > >    It's now added.
> > > > +
> > > > +Changed behavior
> > > > +~~~~~~~~~~~~~~~~
> > > > +
> > > > +- In ISAR mode, set ``machine`` to ``qemuarm64`` and
> > > > ``distro`` to
> > > > +  ``debian-bullseye`` if omitted (instead of ``qemux86-64``
> > > > and
> > > > ``poky``).
> > > > diff --git a/docs/userguide/project-configuration.inc
> > > > b/docs/userguide/project-configuration.inc
> > > > index 0e7637163..f31e360ab 100644
> > > > --- a/docs/userguide/project-configuration.inc
> > > > +++ b/docs/userguide/project-configuration.inc
> > > > @@ -273,12 +273,12 @@ Configuration reference
> > > >  ``machine``: string [optional]
> > > >    Contains the value of the ``MACHINE`` variable that is
> > > > written
> > > > into the
> > > >    ``local.conf``. Can be overwritten by the ``KAS_MACHINE``
> > > > environment
> > > > -  variable and defaults to ``qemux86-64``.
> > > > +  variable and defaults to ``qemux86-64`` (``qemuamd64`` on
> > > > ISAR).
> > > >  
> > > >  ``distro``: string [optional]
> > > >    Contains the value of the ``DISTRO`` variable that is
> > > > written
> > > > into the
> > > >    ``local.conf``. Can be overwritten by the ``KAS_DISTRO``
> > > > environment
> > > > -  variable and defaults to ``poky``.
> > > > +  variable and defaults to ``poky`` (``debian-bullseye`` on
> > > > ISAR).
> > > >  
> > > >  ``target``: string [optional] or list [optional]
> > > >    Contains the target or a list of targets to build by
> > > > bitbake.
> > > > Can be
> > > > diff --git a/kas/config.py b/kas/config.py
> > > > index 5918e6e1e..707631e35 100644
> > > > --- a/kas/config.py
> > > > +++ b/kas/config.py
> > > > @@ -192,15 +192,19 @@ class Config:
> > > >          """
> > > >              Returns the machine
> > > >          """
> > > > +        default = 'qemuamd64' if self.get_build_system() ==
> > > > 'isar'
> > > > \
> > > > +            else 'qemux86-64'
> > > 
> > > This would only help if the user included meta-isar - not
> > > generally
> > > the
> > > case.
> > 
> > Right. However it also does not hurt. Or do you prefer to not set
> > the
> > MACHINE at all in this case?
> 
> Anything which would make the resulting errors better readable and
> translatable into fitting defaults would be welcome. Not sure if
> leaving
> the machine blank would help either.

Unfortunately the error handling for that is completely missing in
ISAR. This only becomes visible when building a multiconfig target but
forgetting to set the machine and distro in the kas project config
(which is anyways just needed for the initial bitbake parsing).
Not much we can do here, except for putting the ISAR ML in CC.

PS: I just saw that the isar-init-build-env puts in "qemuarm" as
default. What...!

Felix

> 
> Jan
> 

-- 
Siemens AG, Technology
Linux Expert Center



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-03-08 14:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20240308122241.145329-1-felix.moessbauer@siemens.com>
     [not found] ` <eaafcdb2-51d2-4fe8-8266-bba37cdbfab0@siemens.com>
     [not found]   ` <c55a1b867884e5ff34e6b4055e9aebe9f424ef75.camel@siemens.com>
     [not found]     ` <3cdaaa27-1ef0-4e49-b700-d2b5049ff4de@siemens.com>
2024-03-08 14:18       ` [PATCH 1/2] set mode specific defaults for machine and distro MOESSBAUER, Felix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox