mirror of
https://github.com/linux-apfs/linux-apfs-rw.git
synced 2026-08-18 02:19:59 -07:00
The filesystem superblock has an apfs_modified_by field to report which implementation is responsible for the latest changes. This could be useful to track down bugs eventually, but it will need to have more information. Right now we only report my name and the name of the module; change it to also report the exact commit id, or the tag if there is one. There is a strict size limit here, so shorten my name to "eafer", which is what I use on github, so it will make the driver easy to track down. Also move the APFS_MODULE_ID_STRING macro definition to super.c. We'll now need to recompile that file with every build, but if we left it inside apfs.h then we would have to recompile everything all the time. Signed-off-by: Ernesto A. Fernández <ernesto@corellium.com>
25 lines
808 B
Makefile
25 lines
808 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)
|
|
GIT_COMMIT = $(shell git describe HEAD | tail -c 9)
|
|
|
|
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:
|
|
@printf '#define GIT_COMMIT\t"%s"\n' $(GIT_COMMIT) > version.h
|
|
make -C $(KERNEL_DIR) M=$(PWD)
|
|
install:
|
|
make -C $(KERNEL_DIR) M=$(PWD) modules_install
|
|
clean:
|
|
rm -f version.h
|
|
make -C $(KERNEL_DIR) M=$(PWD) clean
|