You've already forked linux-apfs-oot
mirror of
https://github.com/linux-apfs/linux-apfs-oot.git
synced 2026-05-01 15:01:20 -07:00
Allow changing KERNEL_DIR (#8)
Allow building in a different directory. This is useful on NixOS, where all software is stored under /nix. As a nice side-effect, this change also reduces code duplication a little.
This commit is contained in:
@@ -4,12 +4,13 @@
|
||||
#
|
||||
|
||||
KERNELRELEASE ?= $(shell uname -r)
|
||||
KERNEL_DIR ?= /lib/modules/$(KERNELRELEASE)/build
|
||||
|
||||
obj-m = apfs.o
|
||||
apfs-y = btree.o dir.o extents.o file.o inode.o key.o message.o \
|
||||
namei.o node.o object.o super.o symlink.o unicode.o xattr.o
|
||||
|
||||
default:
|
||||
make -C /lib/modules/$(KERNELRELEASE)/build M=$(shell pwd)
|
||||
make -C $(KERNEL_DIR) M=$(shell pwd)
|
||||
clean:
|
||||
make -C /lib/modules/$(KERNELRELEASE)/build M=$(shell pwd) clean
|
||||
make -C $(KERNEL_DIR) M=$(shell pwd) clean
|
||||
|
||||
Reference in New Issue
Block a user