blob: 88b098932267dbb00488484055a4d03a52f7ef7e [file] [log] [blame]
Andrew Geissler5f350902021-07-23 13:09:54 -04001#
Patrick Williams92b42cb2022-09-03 06:53:57 -05002# Copyright BitBake Contributors
3#
Andrew Geissler5f350902021-07-23 13:09:54 -04004# SPDX-License-Identifier: GPL-2.0-only
5#
6
7import bb.compress._pipecompress
8
9
10def open(*args, **kwargs):
11 return bb.compress._pipecompress.open_wrap(LZ4File, *args, **kwargs)
12
13
14class LZ4File(bb.compress._pipecompress.PipeFile):
15 def get_compress(self):
16 return ["lz4c", "-z", "-c"]
17
18 def get_decompress(self):
19 return ["lz4c", "-d", "-c"]