]> code.ossystems Code Review - openembedded-core.git/commitdiff
staging.bbclass: Don't stage doc/manpage/info files
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Jul 2012 13:09:59 +0000 (13:09 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Jul 2012 15:58:33 +0000 (16:58 +0100)
There is no point in having doc, manpage or info files in the staging directory. They
just bloat the sstate package size and waste time as they're copied around.

We never used to stage these but it crept in when we started staging $datadir. This
patch corrects that so they're removed and stop making it into the sysroot.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/staging.bbclass

index ee5a025a3b1f1ab570dec67a53994d4c12ca8227..6540349ff7a70451268dda643e8135b042bf434a 100644 (file)
@@ -51,6 +51,8 @@ sysroot_stage_dirs() {
                sysroot_stage_libdir $from${base_libdir} $to${base_libdir}
        fi
        sysroot_stage_dir $from${datadir} $to${datadir}
+       # We don't care about docs/info/manpages
+       rm -rf $to${mandir}/ $to${docdir}/ $to${infodir}/
 }
 
 sysroot_stage_all() {