From 32a2d2801e304992f671ba1eb8fefdef25ee8b9d Mon Sep 17 00:00:00 2001 From: Hongxu Jia Date: Tue, 16 Sep 2025 12:09:20 +0800 Subject: yocto-space-optimize.inc: move space optimize from recipe webkitgtk The yocto-space-optimize.inc is used to allow turning off the debug compiler options for a small set of recipes to reduce build on disk footprint and package/sstate sizes [1]. Move space optimize from recipe webkitgtk to it. Due to commit [2], update comments to remove `Unless DEBUG_BUILD is enabled' [1] https://github.com/openembedded/openembedded-core/commit/a0483b962dfbba051de2c0b1acbe268579a81f22 [2] https://github.com/openembedded/openembedded-core/commit/9badf68d78d995f7d5d4cf27e045f029fc6d4044 (From OE-Core rev: 007c4aea10e13bd9b2d66d016c25f31c2709cbf6) Signed-off-by: Hongxu Jia Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- meta/conf/distro/include/yocto-space-optimize.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta/conf/distro') diff --git a/meta/conf/distro/include/yocto-space-optimize.inc b/meta/conf/distro/include/yocto-space-optimize.inc index b83ba426e7..9e092df32a 100644 --- a/meta/conf/distro/include/yocto-space-optimize.inc +++ b/meta/conf/distro/include/yocto-space-optimize.inc @@ -8,3 +8,6 @@ DEBUG_LEVELFLAG:pn-clang-native = "" DEBUG_LEVELFLAG:pn-nativesdk-clang = "" # With -g, qemu workdir is 10GB, qemu-dbg is 363MB DEBUG_LEVELFLAG:pn-qemu = "" +# Pass -g1 to massively reduce the size of the +# debug symbols (4.3GB to 700M at time of writing) +DEBUG_LEVELFLAG:pn-webkitgtk = "-g1" -- cgit v1.2.3-54-g00ecf