fs: sdfat: Makefile use KERNELDIR variable

This commit is contained in:
TBK 2019-05-31 15:18:03 +02:00
parent ac668b16f4
commit 000c77a2cf
No known key found for this signature in database
GPG Key ID: 5FFB25718720C7D7
1 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,8 @@
# Makefile for the linux FAT12/16/32(VFAT)/64(exFAT) filesystem driver.
#
KERNELDIR=/lib/modules/$(shell uname -r)/build
obj-$(CONFIG_SDFAT_FS) += sdfat_fs.o
sdfat_fs-objs := sdfat.o core.o core_fat.o core_exfat.o api.o blkdev.o \
@ -13,10 +15,10 @@ sdfat_fs-$(CONFIG_SDFAT_STATISTICS) += statistics.o
all:
@$(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
@$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
clean:
@$(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
@$(MAKE) -C $(KERNELDIR) M=$(PWD) clean
cscope:
rm -rf cscope.files cscope.files