exfat: add out of tree module
[openwrt/staging/chunkeey.git] / package / kernel / exfat / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7 include $(INCLUDE_DIR)/kernel.mk
8
9 PKG_NAME:=exfat
10 PKG_VERSION:=5.8.4
11 PKG_RELEASE:=1
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=https://codeload.github.com/namjaejeon/linux-exfat-oot/tar.gz/$(PKG_VERSION)?
15 PKG_HASH:=47162495bdf9a7e02d6142dfcd4364d7325a4cf75a0439926cf9e8a9d959627b
16
17 PKG_MAINTAINER:=
18 PKG_LICENSE:=GPL-2.0-only
19
20 #PKG_BUILD_PARALLEL:=1
21 #PKG_USE_MIPS16:=0
22
23 # exfat-oot's makefile needs this to know where to build the kernel module
24 #export KERNELDIR:=$(LINUX_DIR)
25
26 include $(INCLUDE_DIR)/package.mk
27 #include $(INCLUDE_DIR)/kernel-defaults.mk
28
29 TAR_OPTIONS+= --strip-components 1
30 TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
31
32 define KernelPackage/fs-exfat
33 SECTION:=kernel
34 CATEGORY:=Kernel modules
35 SUBMENU:=Filesystems
36 TITLE:=exFAT kernel module
37 FILES:=$(PKG_BUILD_DIR)/exfat.ko
38 AUTOLOAD:=$(call AutoProbe,exfat)
39 endef
40
41 define KernelPackage/exfat/description
42 This package provides the kernel module for exfat.
43 endef
44
45 define Build/Compile
46 $(KERNEL_MAKE) M="$(PKG_BUILD_DIR)" \
47 EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
48 $(PKG_EXTRA_KCONFIG) \
49 CONFIG_EXFAT_FS=m \
50 modules
51 # $(MAKE) -C $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION) M="$(PKG_BUILD_DIR)" modules
52 endef
53
54 $(eval $(call KernelPackage,fs-exfat))