From: Richard Purdie Date: Wed, 27 Jan 2021 17:15:17 +0000 (+0000) Subject: staging: Clean up files installed into the sysroot X-Git-Tag: 2020-04.6-dunfell~44 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=e0cd2e1f9ae956d72b8033ce1c4403d8bd99d3d5;p=openembedded-core.git 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. Signed-off-by: Richard Purdie (cherry picked from commit 366c72941fe1c24d0b1d96df46e13cb9eb4e79d6) Signed-off-by: Steve Sakoman --- diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass index 5b04f88b2d..506ce0665e 100644 --- a/meta/classes/staging.bbclass +++ b/meta/classes/staging.bbclass @@ -27,11 +27,15 @@ SYSROOT_DIRS_BLACKLIST = " \ ${mandir} \ ${docdir} \ ${infodir} \ + ${datadir}/X11/locale \ ${datadir}/applications \ + ${datadir}/bash-completion \ ${datadir}/fonts \ ${datadir}/gtk-doc/html \ + ${datadir}/installed-tests \ ${datadir}/locale \ ${datadir}/pixmaps \ + ${datadir}/terminfo \ ${libdir}/${BPN}/ptest \ "