diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-27 17:15:17 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-28 23:12:05 +0000 |
commit | a89f77b92d712a3741e3c0b4002698a608cc6f3f (patch) | |
tree | efa11f2b18f4be33c72664ab7620ae3dd538f0f6 | |
parent | b5869bf29a7fbdd6e43761af33937486ee3a7f5d (diff) | |
download | poky-a89f77b92d712a3741e3c0b4002698a608cc6f3f.tar.gz |
staging: Clean up files installed into the sysroot
There are a variety of files being installed into $datadir which we
don't need. Pick the top "offenders" which amount of thousands of files
and simply don't install them. These include things like test data,
terminfo data, locale data for native tools and so on. This saves
copying these files into native and target sysroots and should improve
performance (smaller sstate, fewer files to copy around).
With this and the python recipe change, alsa-tools went from:
recipe-sysroot: 18357
recipe-sysroot-native: 14129
to
recipe-sysroot: 10809
recipe-sysroot-native: 8079
which is a decent improvement.
(From OE-Core rev: 366c72941fe1c24d0b1d96df46e13cb9eb4e79d6)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/staging.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass index 12e0eab4f0..bbe8cff9b1 100644 --- a/meta/classes/staging.bbclass +++ b/meta/classes/staging.bbclass | |||
@@ -28,11 +28,15 @@ SYSROOT_DIRS_BLACKLIST = " \ | |||
28 | ${mandir} \ | 28 | ${mandir} \ |
29 | ${docdir} \ | 29 | ${docdir} \ |
30 | ${infodir} \ | 30 | ${infodir} \ |
31 | ${datadir}/X11/locale \ | ||
31 | ${datadir}/applications \ | 32 | ${datadir}/applications \ |
33 | ${datadir}/bash-completion \ | ||
32 | ${datadir}/fonts \ | 34 | ${datadir}/fonts \ |
33 | ${datadir}/gtk-doc/html \ | 35 | ${datadir}/gtk-doc/html \ |
36 | ${datadir}/installed-tests \ | ||
34 | ${datadir}/locale \ | 37 | ${datadir}/locale \ |
35 | ${datadir}/pixmaps \ | 38 | ${datadir}/pixmaps \ |
39 | ${datadir}/terminfo \ | ||
36 | ${libdir}/${BPN}/ptest \ | 40 | ${libdir}/${BPN}/ptest \ |
37 | " | 41 | " |
38 | 42 | ||