From: "Alejandro Hernandez Samaniego" <alejandro@enedino.org>
To: poky@lists.yoctoproject.org
Cc: Alejandro Enedino Hernandez Samaniego <alhe@linux.microsoft.com>
Subject: [PATCH] poky-tiny: Enable size optimization by default
Date: Thu, 29 Oct 2020 11:39:30 -0600 [thread overview]
Message-ID: <20201029173930.784694-1-alhe@linux.microsoft.com> (raw)
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}"
+
# FIXME: consider adding a new "tiny" feature
#DISTRO_FEATURES_append = " tiny"
--
2.25.1
next reply other threads:[~2020-10-29 17:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-29 17:39 Alejandro Hernandez Samaniego [this message]
2020-10-30 4:52 ` [poky] [PATCH] poky-tiny: Enable size optimization by default Khem Raj
2020-10-30 6:28 ` Mikko Rapeli
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=20201029173930.784694-1-alhe@linux.microsoft.com \
--to=alejandro@enedino.org \
--cc=alhe@linux.microsoft.com \
--cc=poky@lists.yoctoproject.org \
/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.