poky-tiny: Enable size optimization by default
PATCH 1/1 poky-tiny: Enable size optimization by default
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
--- meta-poky/conf/distro/poky-tiny.conf | 3 +++ 1 file changed, 3 insertions(+)
meta-poky/conf/distro/poky-tiny.conf +3 -0
@@ -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"
Signature · 1 line
2.25.1
Quoted 15 lines · Alejandro Hernandez Samaniego
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
--- meta-poky/conf/distro/poky-tiny.conf | 3 +++ 1 file changed, 3 insertions(+)meta-poky/conf/distro/poky-tiny.conf +0
-0
meta-poky/conf/distro/poky-tiny.conf require conf/distro/poky.conf · line 37
Quoted 6 lines
meta-poky/conf/distro/poky-tiny.conf +3
-0@@ -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.
Quoted 9 lines
meta-poky/conf/distro/poky-tiny.conf +0
-1# FIXME: consider adding a new "tiny" feature #DISTRO_FEATURES_append = " tiny" --2.25.1
Quoted 12 lines · Khem Raj
Quoted 10 lines · Alejandro Hernandez Samaniego
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
--- meta-poky/conf/distro/poky-tiny.conf | 3 +++ 1 file changed, 3 insertions(+)
Quoted 13 lines
meta-poky/conf/distro/poky-tiny.conf require conf/distro/poky.conf · line 37
Quoted 11 lines
meta-poky/conf/distro/poky-tiny.conf +3
-0@@ -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
Quoted 28 lines · On Thu, Oct 29, 2020 at 11:28 PM <[email protected]> wrote:
Quoted 12 lines · Khem Raj
Quoted 10 lines · Alejandro Hernandez Samaniego
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
--- meta-poky/conf/distro/poky-tiny.conf | 3 +++ 1 file changed, 3 insertions(+)Quoted 13 lines
meta-poky/conf/distro/poky-tiny.conf require conf/distro/poky.conf · line 37
Quoted 11 lines
meta-poky/conf/distro/poky-tiny.conf +3
-0@@ -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.
Quoted 8 lines
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.
yes its a common problem and perhaps should be patched and upstreamed into those packages.
Quoted 3 lines
Cheers,
-Mikko