summaryrefslogtreecommitdiff
path: root/fs/exfat/Makefile
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-12-26 16:00:37 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-12-26 16:00:37 -0300
commit35acfa0fc609f2a2cd95cef4a6a9c3a5c38f1778 (patch)
tree281fc9db2a40c54ee94dc88fc2bf8c119cfafc15 /fs/exfat/Makefile
parentf3a16ba6a1152b8966dcadc668af4cf00623c7b1 (diff)
Add support for the exFAT file system, fix hangs on older intel hardware and update AUFSpck-4.3.3-gnu
Diffstat (limited to 'fs/exfat/Makefile')
-rw-r--r--fs/exfat/Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/fs/exfat/Makefile b/fs/exfat/Makefile
new file mode 100644
index 000000000..fb2be9dc5
--- /dev/null
+++ b/fs/exfat/Makefile
@@ -0,0 +1,55 @@
+#
+# Makefile for Linux FAT12/FAT16/FAT32(VFAT)/FAT64(ExFAT) filesystem driver.
+#
+
+ifneq ($(KERNELRELEASE),)
+# call from kernel build system
+
+obj-$(CONFIG_EXFAT_FS) += exfat.o
+
+exfat-objs := exfat_core.o exfat_super.o exfat_api.o exfat_blkdev.o exfat_cache.o \
+ exfat_data.o exfat_bitmap.o exfat_nls.o exfat_oal.o exfat_upcase.o
+
+else
+# external module build
+
+EXTRA_FLAGS += -I$(PWD)
+
+#
+# KDIR is a path to a directory containing kernel source.
+# It can be specified on the command line passed to make to enable the module to
+# be built and installed for a kernel other than the one currently running.
+# By default it is the path to the symbolic link created when
+# the current kernel's modules were installed, but
+# any valid path to the directory in which the target kernel's source is located
+# can be provided on the command line.
+#
+KDIR := /lib/modules/$(shell uname -r)/build
+MDIR := /lib/modules/$(shell uname -r)
+PWD := $(shell pwd)
+KREL := $(shell cd ${KDIR} && make -s 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