[PATCH 0/1] Allow using this tree with dkms

25 views
Skip to first unread message

Chih-Hsuan Yen

unread,
Aug 24, 2019, 4:36:01 AM8/24/19
to linux...@googlegroups.com, Chih-Hsuan Yen
Hi,

I created a patch to allow this tree to be built with dkms. Could you
consider pull this patch?

An actual usage can be found in my unofficial Arch Linux user
package [1].

I use a random value for the PACKAGE_VERSION variable in dkms.conf. It
should be replaced with something else :)

Best,

Chih-Hsuan Yen

[1] https://aur.archlinux.org/packages/linux-apfs-dkms-git/

Chih-Hsuan Yen (1):
Allow using this tree with dkms

Makefile | 6 ++++--
dkms.conf | 7 +++++++
2 files changed, 11 insertions(+), 2 deletions(-)
create mode 100644 dkms.conf

--
2.23.0

Chih-Hsuan Yen

unread,
Aug 24, 2019, 4:36:08 AM8/24/19
to linux...@googlegroups.com, Chih-Hsuan Yen
* Add dkms.conf
* Make Makefile dkms-friendly
---
Makefile | 6 ++++--
dkms.conf | 7 +++++++
2 files changed, 11 insertions(+), 2 deletions(-)
create mode 100644 dkms.conf

diff --git a/Makefile b/Makefile
index 230ad37..2fee566 100644
--- a/Makefile
+++ b/Makefile
@@ -3,11 +3,13 @@
# Makefile for the out-of-tree Linux APFS module.
#

+KERNELRELEASE ?= $(shell uname -r)
+
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/$(shell uname -r)/build M=$(shell pwd)
+ make -C /lib/modules/$(KERNELRELEASE)/build M=$(shell pwd)
clean:
- make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) clean
+ make -C /lib/modules/$(KERNELRELEASE)/build M=$(shell pwd) clean
diff --git a/dkms.conf b/dkms.conf
new file mode 100644
index 0000000..70274e2
--- /dev/null
+++ b/dkms.conf
@@ -0,0 +1,7 @@
+PACKAGE_NAME="linux-apfs"
+PACKAGE_VERSION="0.1"
+
+BUILT_MODULE_NAME[0]="apfs"
+DEST_MODULE_LOCATION[0]="/extra"
+
+AUTOINSTALL="yes"
--
2.23.0

Ernesto A. Fernández

unread,
Aug 25, 2019, 6:39:53 PM8/25/19
to Chih-Hsuan Yen, linux...@googlegroups.com
Hi,

On Sat, Aug 24, 2019 at 04:34:12PM +0800, Chih-Hsuan Yen wrote:
> Hi,
>
> I created a patch to allow this tree to be built with dkms. Could you
> consider pull this patch?

Sure. I don't use dkms myself, so I'll take your word that this works
correctly.

>
> An actual usage can be found in my unofficial Arch Linux user
> package [1].
>
> I use a random value for the PACKAGE_VERSION variable in dkms.conf. It
> should be replaced with something else :)

0.1 is fine, I'll change it when I add write support.

>
> Best,
>
> Chih-Hsuan Yen

Thanks for the patch,
Ernesto

>
> [1] https://aur.archlinux.org/packages/linux-apfs-dkms-git/
>
> Chih-Hsuan Yen (1):
> Allow using this tree with dkms
>
> Makefile | 6 ++++--
> dkms.conf | 7 +++++++
> 2 files changed, 11 insertions(+), 2 deletions(-)
> create mode 100644 dkms.conf
>
> --
> 2.23.0
>
> --
> You received this message because you are subscribed to the Google Groups "linux-apfs" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to linux-apfs+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/linux-apfs/20190824083412.5271-1-yan12125%40gmail.com.

Chih-Hsuan Yen

unread,
Aug 25, 2019, 9:11:03 PM8/25/19
to Ernesto A. Fernández, linux-apfs
Ernesto A. Fernández <ernesto.mn...@gmail.com> 於 2019年8月26日 週一 上午6:39寫道:
Great, thanks!

Best,

Chih-Hsuan Yen
Reply all
Reply to author
Forward
0 new messages