summaryrefslogtreecommitdiffstats
path: root/meta/conf
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-07-11 00:00:28 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-07-18 17:21:39 +0100
commitd9066258a1e48e75cf814fb0940ac420bcdd6e99 (patch)
tree1b83f763d0be81659d715e7765a3ade10a18a12d /meta/conf
parent431767f069e9a8aedcb99c3013a261d606288d6f (diff)
downloadpoky-d9066258a1e48e75cf814fb0940ac420bcdd6e99.tar.gz
distro/include: Add yocto-space-optimize, disabling debugging for large components
Add an include file to allow turning off the debug compiler options for a small set of recipes to reduce build on disk footprint and package/sstate sizes. This is currently applied to llvm and qemu target recipes. The llvm-staticdev package takes up around 1.3GB alone. These three changes lead to a reduction in TMPDIR size for a world build from 240GB to 199GB, also removing some very large sstate objects. There is more that could and should be done but this does illustrate one way to speed up and reduce build size in a focused way whilst we ideally look into other approaches. (From OE-Core rev: a0483b962dfbba051de2c0b1acbe268579a81f22) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r--meta/conf/distro/include/yocto-space-optimize.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/conf/distro/include/yocto-space-optimize.inc b/meta/conf/distro/include/yocto-space-optimize.inc
new file mode 100644
index 0000000000..407e8937f0
--- /dev/null
+++ b/meta/conf/distro/include/yocto-space-optimize.inc
@@ -0,0 +1,8 @@
1# Some components have debug data and workdirs that are simply too large to be useful
2# in general builds. Disable or reduce debugging for these cases to improve disk usage
3# and build speed.
4
5# With -g, llvm workdir is 40GB, llvm-staticdev is 1.3GB, llvm-dbg is 1GB
6DEBUG_LEVELFLAG:pn-llvm = ""
7# With -g, qemu workdir is 10GB, qemu-dbg is 363MB
8DEBUG_LEVELFLAG:pn-qemu = ""