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:

The default exclusion list contains:

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.