c3d20fe263cb1aa70ead2710f0ace580b32e4b69
[openwrt/staging/wigyori.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.7
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:=20254677bed3f456e89cc9d757c1a47abbadab4d75640eef4a995370a37be3f4
16
17 PKG_MAINTAINER:=
18 PKG_LICENSE:=GPL-2.0-only
19
20 include $(INCLUDE_DIR)/package.mk
21
22 TAR_OPTIONS+= --strip-components 1
23 TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
24
25 define KernelPackage/fs-exfat
26 SECTION:=kernel
27 CATEGORY:=Kernel modules
28 SUBMENU:=Filesystems
29 TITLE:=exFAT kernel module
30 FILES:=$(PKG_BUILD_DIR)/exfat.ko
31 AUTOLOAD:=$(call AutoProbe,exfat)
32 DEPENDS:= +kmod-nls-base
33 endef
34
35 define KernelPackage/exfat/description
36 This package provides the kernel module for exfat.
37 endef
38
39 define Build/Compile
40 $(KERNEL_MAKE) M="$(PKG_BUILD_DIR)" \
41 EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
42 $(PKG_EXTRA_KCONFIG) \
43 CONFIG_EXFAT_FS=m \
44 modules
45 endef
46
47 $(eval $(call KernelPackage,fs-exfat))