On Tue, 2021-07-27 at 12:51 +0200, Jan Kiszka via Xenomai wrote:
> On 27.07.21 02:42, Hongzhan Chen via Xenomai wrote:
> > For performance or latency testing and demonstration, debug switches
> > should be off but it is on by default.
> > 
> > Signed-off-by: Hongzhan Chen <[email protected]>
> > ---
> >  opt-set-nodbg.yml | 20 ++++++++++++++++++++
> >  1 file changed, 20 insertions(+)
> >  create mode 100644 opt-set-nodbg.yml
> > 
> > diff --git a/opt-set-nodbg.yml b/opt-set-nodbg.yml
> > new file mode 100644
> > index 0000000..16a2fec
> > --- /dev/null
> > +++ b/opt-set-nodbg.yml
> > @@ -0,0 +1,20 @@
> > +#
> > +# Xenomai Real-Time System
> > +#
> > +# Copyright (C) 2021 Intel Corporation
> > +#
> > +# Authors:
> > +#  Hongzhan Chen <[email protected]>
> > +#
> > +# SPDX-License-Identifier: MIT
> > +#
> > +
> > +header:
> > +  version: 10
> > +
> > +# to use kernel config fragments for disabling dbg and
> > +# improving performance
> > +
> > +local_conf_header:
> > +  distro-nodbg: |
> > +    DISTRO_NODBG = "YES"
> > 
> 
> We tend to use "0" / "1" for bitbake boolean vars.
> 
> Furthermore, I wonder if we shouldn't switch default to no-debug and
> explicitly turn debugging on in our CI/testing.

I thought the same. Images generated by xenomai-images are often used
as reference images, so I assume they should be "production ready" by
default and CI could enable debug builds.

> 
> In any case, some short hint on this control in the README would be good.
> 
> Jan
> 

Reply via email to