.xz is a compressed file archive, so my guess is, you just have to compress the .ko file with xz-utils.
xz-utils