Opensource exfat-linux driver provide better performance Comparing with the existing Moto exfat-nofuse It could support various kernel versions l(CR) 5.4/4.19/4.14/4.9 Original source :https://github.com/arter97/exfat-linux.git version 5.8-2arter97 This commit also integrates almost all the exfat upstream changes from kernel 5.8-5.16 listed in: https://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat.git/log/fs/exfat?h=exfat-for-5.16-rc1 Change-Id: I7c0db070ee33be8f7f24a42f987b4e825d957998 Signed-off-by: a17671 <a17671@motorola.com> Reviewed-on: https://gerrit.mot.com/2137224 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xinmin Fu <fuxm1@motorola.com> Reviewed-by: Chuanchun Zhu <zhucc2@motorola.com> Reviewed-by: Xiaojun Ji <jixj@motorola.com> Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
44 lines
890 B
Makefile
Executable File
44 lines
890 B
Makefile
Executable File
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
#
|
|
# Makefile for the linux exFAT filesystem support.
|
|
#
|
|
|
|
ifneq ($(KERNELRELEASE),)
|
|
# Called from inline kernel build
|
|
# DKMS_DEFINE
|
|
obj-$(CONFIG_EXFAT_FS) += exfat.o
|
|
|
|
exfat-objs := inode.o namei.o dir.o super.o fatent.o cache.o nls.o misc.o \
|
|
file.o balloc.o xattr.o
|
|
else
|
|
# Called from external kernel module build
|
|
|
|
KERNELRELEASE ?= $(shell uname -r)
|
|
KDIR ?= /lib/modules/${KERNELRELEASE}/build
|
|
MDIR ?= /lib/modules/${KERNELRELEASE}
|
|
PWD := $(shell pwd)
|
|
|
|
export CONFIG_EXFAT_FS := m
|
|
|
|
all:
|
|
$(MAKE) -C $(KDIR) M=$(PWD) modules
|
|
|
|
clean:
|
|
$(MAKE) -C $(KDIR) M=$(PWD) clean
|
|
|
|
help:
|
|
$(MAKE) -C $(KDIR) M=$(PWD) help
|
|
|
|
install: exfat.ko
|
|
rm -f ${MDIR}/kernel/fs/exfat/exfat.ko
|
|
install -m644 -b -D exfat.ko ${MDIR}/kernel/fs/exfat/exfat.ko
|
|
depmod -aq
|
|
|
|
uninstall:
|
|
rm -rf ${MDIR}/kernel/fs/exfat
|
|
depmod -aq
|
|
|
|
endif
|
|
|
|
.PHONY : all clean install uninstall
|