mirror of
https://github.com/linux-apfs/linux-apfs-rw.git
synced 2026-08-18 02:19:59 -07:00
Using the official LZFSE library (which I already dumped here in the previous patch), add support for LZFSE compression. For testing I used images created with the following tool: https://github.com/Siguza/fscmp I've tested both resource and attribute compression. For resource compression, I also tested a file that had a single uncompressed block. That block had 0xff in the first byte, but I don't know if that's a general rule so it's better to just check for the first byte of the LZFSE magic. Signed-off-by: Ernesto A. Fernández <ernesto@corellium.com>
22 lines
672 B
Makefile
22 lines
672 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Makefile for the out-of-tree Linux APFS module.
|
|
#
|
|
|
|
KERNELRELEASE ?= $(shell uname -r)
|
|
KERNEL_DIR ?= /lib/modules/$(KERNELRELEASE)/build
|
|
PWD := $(shell pwd)
|
|
|
|
obj-m = apfs.o
|
|
apfs-y := btree.o compress.o dir.o extents.o file.o inode.o key.o libzbitmap.o \
|
|
lzfse/lzfse_decode.o lzfse/lzfse_decode_base.o lzfse/lzfse_fse.o \
|
|
lzfse/lzvn_decode_base.o message.o namei.o node.o object.o snapshot.o \
|
|
spaceman.o super.o symlink.o transaction.o unicode.o xattr.o xfield.o
|
|
|
|
default:
|
|
make -C $(KERNEL_DIR) M=$(PWD)
|
|
install:
|
|
make -C $(KERNEL_DIR) M=$(PWD) modules_install
|
|
clean:
|
|
make -C $(KERNEL_DIR) M=$(PWD) clean
|