Andrew Geissler | 5f35090 | 2021-07-23 13:09:54 -0400 | [diff] [blame] | 1 | # |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 2 | # Copyright BitBake Contributors |
| 3 | # |
Andrew Geissler | 5f35090 | 2021-07-23 13:09:54 -0400 | [diff] [blame] | 4 | # SPDX-License-Identifier: GPL-2.0-only |
| 5 | # |
| 6 | |
| 7 | import bb.compress._pipecompress |
| 8 | |
| 9 | |
| 10 | def open(*args, **kwargs): |
| 11 | return bb.compress._pipecompress.open_wrap(LZ4File, *args, **kwargs) |
| 12 | |
| 13 | |
| 14 | class 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"] |