diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2025-09-16 12:09:20 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-09-22 22:09:48 +0100 |
commit | 32a2d2801e304992f671ba1eb8fefdef25ee8b9d (patch) | |
tree | 3072e711422138e533b8503c1a548b0d7162daa7 | |
parent | a2443e25a694fb3b9708aa203753c4e039db2992 (diff) | |
download | poky-32a2d2801e304992f671ba1eb8fefdef25ee8b9d.tar.gz |
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 <hongxu.jia@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/conf/distro/include/yocto-space-optimize.inc | 3 | ||||
-rw-r--r-- | meta/recipes-sato/webkit/webkitgtk_2.48.5.bb | 4 |
2 files changed, 3 insertions, 4 deletions
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 = "" | |||
8 | DEBUG_LEVELFLAG:pn-nativesdk-clang = "" | 8 | DEBUG_LEVELFLAG:pn-nativesdk-clang = "" |
9 | # With -g, qemu workdir is 10GB, qemu-dbg is 363MB | 9 | # With -g, qemu workdir is 10GB, qemu-dbg is 363MB |
10 | DEBUG_LEVELFLAG:pn-qemu = "" | 10 | DEBUG_LEVELFLAG:pn-qemu = "" |
11 | # Pass -g1 to massively reduce the size of the | ||
12 | # debug symbols (4.3GB to 700M at time of writing) | ||
13 | DEBUG_LEVELFLAG:pn-webkitgtk = "-g1" | ||
diff --git a/meta/recipes-sato/webkit/webkitgtk_2.48.5.bb b/meta/recipes-sato/webkit/webkitgtk_2.48.5.bb index 35b8ee2a90..46031322b9 100644 --- a/meta/recipes-sato/webkit/webkitgtk_2.48.5.bb +++ b/meta/recipes-sato/webkit/webkitgtk_2.48.5.bb | |||
@@ -98,10 +98,6 @@ EXTRA_OECMAKE = " \ | |||
98 | -DENABLE_RELEASE_LOG=ON \ | 98 | -DENABLE_RELEASE_LOG=ON \ |
99 | " | 99 | " |
100 | 100 | ||
101 | # Unless DEBUG_BUILD is enabled, pass -g1 to massively reduce the size of the | ||
102 | # debug symbols (4.3GB to 700M at time of writing) | ||
103 | DEBUG_LEVELFLAG = "-g1" | ||
104 | |||
105 | # Javascript JIT is not supported on ARC | 101 | # Javascript JIT is not supported on ARC |
106 | EXTRA_OECMAKE:append:arc = " -DENABLE_JIT=OFF " | 102 | EXTRA_OECMAKE:append:arc = " -DENABLE_JIT=OFF " |
107 | # By default 25-bit "medium" calls are used on ARC | 103 | # By default 25-bit "medium" calls are used on ARC |