Controllable compression
You can call the docompress
function in src_install
to control
which items in the destination folder ${D}
should be compressed and
which shouldn't be compressed. You can include or exclude directories or plain
files. The default inclusion list contains:
/usr/share/doc
/usr/share/info
/usr/share/man
The default exclusion list contains:
/usr/share/doc/${PF}/html
When a directory is in- or excluded, all files and directories in the given directories shall be added to the corresponding list. If a file is in- or excluded, the file shall be added to the corresponding list (exclusion is stronger than inclusion — if a file is in both lists, the inclusion will be ignored).
If the first argument of docompress
is -x
, the items specified
will be added to the exclusion list, otherwise they will be added to the
inclusion list.
docompress
is called, it is not required that the paths
specified as its arguments are pointing to existing files or directories.
However, if a file still doesn't exist when src_install
has completed,
it will be ignored with a warning.