mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-09 00:00:17 +03:00
install_dkms currently patches the absolute path of DKMSDIR into trace.h, but this is fragile. For instance, if the DKMSDIR path contains the word "linux", then the __stringify in define_trace.h replaces it with its macro expansion "1" and breaks the path. It's better to just keep it relative. @koverstreet will have to figure out how to merge the libbcachefs part of this correctly.
13 lines
251 B
Makefile
13 lines
251 B
Makefile
ifneq (${KERNELRELEASE},)
|
|
ccflags-y := -I$(src)/include
|
|
obj-m += src/fs/bcachefs/
|
|
else
|
|
KDIR ?= /lib/modules/`uname -r`/build
|
|
|
|
default:
|
|
$(MAKE) -C $(KDIR) M=$$PWD BCACHEFS_DKMS=1 modules
|
|
|
|
clean:
|
|
$(MAKE) -C $(KDIR) M=$$PWD BCACHEFS_DKMS=1 clean
|
|
endif
|