bcachefs-tools/dkms/Makefile
Will Fancher ff51fb28cf dkms: Use relative path for TRACE_INCLUDE_PATH
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.
2025-09-24 02:19:33 -04:00

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