dkms: Fix BCACHEFS_DKMS definition

This commit is contained in:
Will Fancher 2025-09-24 15:26:25 -04:00
parent 9108a3727a
commit b80ca6c308
2 changed files with 6 additions and 5 deletions

View File

@ -1,12 +1,13 @@
export BCACHEFS_DKMS=1
ifneq (${KERNELRELEASE},)
ccflags-y := -I$(src)/include -DCONFIG_BCACHEFS_DKMS
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
$(MAKE) -C $(KDIR) M=$$PWD modules
clean:
$(MAKE) -C $(KDIR) M=$$PWD BCACHEFS_DKMS=1 clean
$(MAKE) -C $(KDIR) M=$$PWD clean
endif

View File

@ -102,8 +102,8 @@ bcachefs-y := \
vendor/closure.o \
vendor/min_heap.o
ifndef CONFIG_BCACHEFS_DKMS
obj-$(CONFIG_MEAN_AND_VARIANCE_UNIT_TEST) += mean_and_variance_test.o
ifndef BCACHEFS_DKMS
obj-$(CONFIG_MEAN_AND_VARIANCE_UNIT_TEST) += mean_and_variance_test.o
endif
# Silence "note: xyz changed in GCC X.X" messages