2021-11-16 18:36:02 -03:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2021-03-31 17:16:24 -03:00
|
|
|
#
|
|
|
|
|
# Makefile for the out-of-tree Linux APFS module.
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
KERNELRELEASE ?= $(shell uname -r)
|
2021-06-08 12:41:00 +02:00
|
|
|
KERNEL_DIR ?= /lib/modules/$(KERNELRELEASE)/build
|
2021-06-17 16:05:40 +02:00
|
|
|
PWD := $(shell pwd)
|
2021-03-31 17:16:24 -03:00
|
|
|
|
|
|
|
|
obj-m = apfs.o
|
2023-01-18 19:23:36 -03:00
|
|
|
apfs-y := btree.o compress.o dir.o extents.o file.o inode.o key.o libzbitmap.o \
|
2023-01-25 19:08:44 -03:00
|
|
|
lzfse/lzfse_decode.o lzfse/lzfse_decode_base.o lzfse/lzfse_fse.o \
|
2023-01-23 21:56:27 -03:00
|
|
|
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
|
2021-03-31 17:16:24 -03:00
|
|
|
|
2024-11-07 23:21:38 -03:00
|
|
|
# If you want mounts to be writable by default, run the build as:
|
2026-03-12 21:38:09 +05:30
|
|
|
# make APFS_CONFIG=-DCONFIG_APFS_RW_ALWAYS
|
2024-11-07 23:21:38 -03:00
|
|
|
# This is risky and not generally recommended.
|
2026-03-12 21:38:09 +05:30
|
|
|
ccflags-y += $(APFS_CONFIG)
|
2024-11-07 23:21:38 -03:00
|
|
|
|
2021-03-31 17:16:24 -03:00
|
|
|
default:
|
2024-01-17 22:30:49 -03:00
|
|
|
./genver.sh
|
2021-06-17 16:05:40 +02:00
|
|
|
make -C $(KERNEL_DIR) M=$(PWD)
|
2021-06-19 21:29:02 +02:00
|
|
|
install:
|
|
|
|
|
make -C $(KERNEL_DIR) M=$(PWD) modules_install
|
2021-03-31 17:16:24 -03:00
|
|
|
clean:
|
2023-11-03 21:20:45 -03:00
|
|
|
rm -f version.h
|
2021-06-17 16:05:40 +02:00
|
|
|
make -C $(KERNEL_DIR) M=$(PWD) clean
|