Skip to content

Commit

Permalink
fs: exfat: Add support for building inside kernel
Browse files Browse the repository at this point in the history
Change-Id: I963dfd24ffbb488efcbb7a504e9b811f54adcff7
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: TogoFire <italomellopereira@gmail.com>
  • Loading branch information
UtsavBalar1231 authored and TogoFire committed Jan 18, 2023
1 parent f092de8 commit 05ad7bc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 86 deletions.
3 changes: 2 additions & 1 deletion fs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,11 @@ endmenu
endif # BLOCK

if BLOCK
menu "DOS/FAT/SDFAT/NT Filesystems"
menu "DOS/FAT/EXFAT/SDFAT/NT Filesystems"

source "fs/fat/Kconfig"
source "fs/sdfat/Kconfig"
source "fs/exfat/Kconfig"
source "fs/ntfs/Kconfig"

endmenu
Expand Down
1 change: 1 addition & 0 deletions fs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ obj-$(CONFIG_CODA_FS) += coda/
obj-$(CONFIG_MINIX_FS) += minix/
obj-$(CONFIG_FAT_FS) += fat/
obj-$(CONFIG_SDFAT_FS) += sdfat/
obj-$(CONFIG_EXFAT_FS) += exfat/
obj-$(CONFIG_BFS_FS) += bfs/
obj-$(CONFIG_ISO9660_FS) += isofs/
obj-$(CONFIG_HFSPLUS_FS) += hfsplus/ # Before hfs to find wrapped HFS+
Expand Down
32 changes: 0 additions & 32 deletions fs/exfat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,7 @@
#
# Makefile for the linux exFAT filesystem support.
#
ifneq ($(KERNELRELEASE),)
obj-$(CONFIG_EXFAT_FS) += exfat.o

exfat-y := inode.o namei.o dir.o super.o fatent.o cache.o nls.o misc.o \
file.o balloc.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
53 changes: 0 additions & 53 deletions fs/exfat/README.md

This file was deleted.

0 comments on commit 05ad7bc

Please sign in to comment.