fs/exfat: import oriGinal library v1.2.9
[GitHub/moto-9609/android_kernel_motorola_exynos9610.git] / fs / exfat / Makefile
1 #
2 # Makefile for Linux FAT12/FAT16/FAT32(VFAT)/FAT64(ExFAT) filesystem driver.
3 #
4
5 ifneq ($(KERNELRELEASE),)
6 # call from kernel build system
7
8 obj-$(CONFIG_EXFAT_FS) += exfat.o
9
10 exfat-objs := exfat_core.o exfat_super.o exfat_api.o exfat_blkdev.o exfat_cache.o \
11 exfat_data.o exfat_bitmap.o exfat_nls.o exfat_oal.o exfat_upcase.o
12
13 else
14 # external module build
15
16 EXTRA_FLAGS += -I$(PWD)
17
18 #
19 # KDIR is a path to a directory containing kernel source.
20 # It can be specified on the command line passed to make to enable the module to
21 # be built and installed for a kernel other than the one currently running.
22 # By default it is the path to the symbolic link created when
23 # the current kernel's modules were installed, but
24 # any valid path to the directory in which the target kernel's source is located
25 # can be provided on the command line.
26 #
27 KDIR ?= /lib/modules/$(shell uname -r)/build
28 MDIR ?= /lib/modules/$(shell uname -r)
29 PWD := $(shell pwd)
30 PWD := $(shell pwd)
31
32 export CONFIG_EXFAT_FS := m
33
34 all:
35 $(MAKE) -C $(KDIR) M=$(PWD) modules
36
37 clean:
38 $(MAKE) -C $(KDIR) M=$(PWD) clean
39
40 help:
41 $(MAKE) -C $(KDIR) M=$(PWD) help
42
43 install: exfat.ko
44 rm -f ${MDIR}/kernel/fs/exfat/exfat.ko
45 install -m644 -b -D exfat.ko ${MDIR}/kernel/fs/exfat/exfat.ko
46 depmod -aq
47
48 uninstall:
49 rm -rf ${MDIR}/kernel/fs/exfat
50 depmod -aq
51
52 endif
53
54 .PHONY : all clean install uninstall