All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Mikko Rapeli" <mikko.rapeli@bmw.de>
To: <raj.khem@gmail.com>
Cc: <alejandro@enedino.org>, <poky@lists.yoctoproject.org>,
	<alhe@linux.microsoft.com>
Subject: Re: [poky] [PATCH] poky-tiny: Enable size optimization by default
Date: Fri, 30 Oct 2020 06:28:31 +0000	[thread overview]
Message-ID: <20201030062830.GE1246345@korppu> (raw)
In-Reply-To: <CAMKF1sp0ueNXuvksM9EgKbZc1wfTg4Q8Sv8p6_tPuTtRVahEsA@mail.gmail.com>

On Thu, Oct 29, 2020 at 09:52:02PM -0700, Khem Raj wrote:
> On Thu, Oct 29, 2020 at 10:39 AM Alejandro Hernandez Samaniego
> <alejandro@enedino.org> wrote:
> >
> > Compiler size optimization reduces the size of the root
> > filesystem by 15%, since poky-tiny is meant to be used
> > on size constrained devices, enable it by default
> >
> > Signed-off-by: Alejandro Enedino Hernandez Samaniego <alhe@linux.microsoft.com>
> > ---
> >  meta-poky/conf/distro/poky-tiny.conf | 3 +++
> >  1 file changed, 3 insertions(+)
> >
> > diff --git a/meta-poky/conf/distro/poky-tiny.conf b/meta-poky/conf/distro/poky-tiny.conf
> > index 57826037f0..9a043b1ef5 100644
> > --- a/meta-poky/conf/distro/poky-tiny.conf
> > +++ b/meta-poky/conf/distro/poky-tiny.conf
> > @@ -32,6 +32,9 @@ require conf/distro/poky.conf
> >  DISTRO = "poky-tiny"
> >  DISTROOVERRIDES = "poky:poky-tiny"
> >  TCLIBC = "musl"
> > +
> > +FULL_OPTIMIZATION="-Os -pipe ${DEBUG_FLAGS}"
> > +
> 
> this looks good. Thanks for doing this.

Agreed! Unfortunately many, many recipes do add O2 or even O3 in
their own build scripts so the effect of this global Os setting
is not as good as it could be.

When I played with size optimization, I build the system first with
normal O2, then with Os and reviewed every single recipe where binary
package sizes did not change according to buildhistory.

Cheers,

-Mikko

  reply	other threads:[~2020-10-30  6:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-29 17:39 [PATCH] poky-tiny: Enable size optimization by default Alejandro Hernandez Samaniego
2020-10-30  4:52 ` [poky] " Khem Raj
2020-10-30  6:28   ` Mikko Rapeli [this message]
2020-10-30 14:36     ` Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201030062830.GE1246345@korppu \
    --to=mikko.rapeli@bmw.de \
    --cc=alejandro@enedino.org \
    --cc=alhe@linux.microsoft.com \
    --cc=poky@lists.yoctoproject.org \
    --cc=raj.khem@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.