I checked the script and it makes sense. It is backward compatible, so works even with uncompressed kernel. And I also tested it with TOS kernel manually compressed. Would merge it everywhere as it just adds an option.
Fixes https://gitlab.labs.nic.cz/turris/turris-build/issues/141