diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-09-16 19:46:53 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-09-16 19:46:53 +0200 |
commit | a80dd76ff0fb103cb370e806173c320fe7f8197a (patch) | |
tree | 6fb6af5ec19649f0b572df160c3aed6f69e4f147 /package/ramips | |
parent | f4a185a3474ef5dfc966807d0d7603d515db7e94 (diff) | |
download | mtk-20170518-a80dd76ff0fb103cb370e806173c320fe7f8197a.zip mtk-20170518-a80dd76ff0fb103cb370e806173c320fe7f8197a.tar.gz mtk-20170518-a80dd76ff0fb103cb370e806173c320fe7f8197a.tar.bz2 |
package/ramips/drivers: add exfat-nofuse
Diffstat (limited to 'package/ramips')
-rwxr-xr-x | package/ramips/drivers/exfat-nofuse/Makefile | 54 | ||||
-rw-r--r-- | package/ramips/drivers/exfat-nofuse/config.in | 43 |
2 files changed, 97 insertions, 0 deletions
diff --git a/package/ramips/drivers/exfat-nofuse/Makefile b/package/ramips/drivers/exfat-nofuse/Makefile new file mode 100755 index 0000000..723156d --- /dev/null +++ b/package/ramips/drivers/exfat-nofuse/Makefile @@ -0,0 +1,54 @@ +# +# Copyright (C) 2014 MediaTek +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk +include $(INCLUDE_DIR)/kernel.mk + +PKG_NAME:=exfat-nofuse +PKG_VERSION:=2014-11-25 +PKG_RELEASE:=PKG_SOURCE_VERSION + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/dorimanx/exfat-nofuse.git +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_VERSION:=a862d506bd776c69b85741146e46f420dba78d00 + +PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_LICENSE:=GPLv2 +PKG_KCONFIG:=EXFAT_FS EXFAT_DISCARD EXFAT_DELAYED_SYNC EXFAT_KERNEL_DEBUG \ + EXFAT_DEBUG_MSG EXFAT_DEFAULT_CODEPAGE EXFAT_DEFAULT_IOCHARSET + +PKG_MAINTAINER:=Hua Shao <hua.shao@mediatek.com> + +include $(INCLUDE_DIR)/package.mk + + +define KernelPackage/exfat-nofuse + CATEGORY:=MTK Properties + SUBMENU:=Drivers + TITLE:=MS exFAT support + FILES:=$(PKG_BUILD_DIR)/exfat.ko + AUTOLOAD:=$(call AutoProbe,exfat) + DEPENDS:=+kmod-nls-base + MENU:=1 +endef + +define KernelPackage/exfat-nofuse/config + source "$(SOURCE)/config.in" +endef + +define Build/Compile + $(MAKE) -C "$(PKG_BUILD_DIR)" \ + KDIR="$(LINUX_DIR)" \ + CROSS_COMPILE="$(TARGET_CROSS)" \ + ARCH="$(LINUX_KARCH)" \ + $(foreach c, $(PKG_KCONFIG),$(if $(CONFIG_$c),CONFIG_$(c)=$(CONFIG_$(c)))) \ + all +endef + +$(eval $(call KernelPackage,exfat-nofuse)) diff --git a/package/ramips/drivers/exfat-nofuse/config.in b/package/ramips/drivers/exfat-nofuse/config.in new file mode 100644 index 0000000..63163dc --- /dev/null +++ b/package/ramips/drivers/exfat-nofuse/config.in @@ -0,0 +1,43 @@ +if PACKAGE_kmod-exfat-nofuse +config EXFAT_FS + tristate #"exFAT fs support" + default m + select NLS + depends on PACKAGE_kmod-exfat-nofuse + help + This adds support for the exFAT file system. + +config EXFAT_DISCARD + bool "enable discard support" + depends on EXFAT_FS + default y + +config EXFAT_DELAYED_SYNC + bool "enable delayed sync" + depends on EXFAT_FS + default n + +config EXFAT_KERNEL_DEBUG + bool "enable kernel debug features via ioctl" + depends on EXFAT_FS + default n + +config EXFAT_DEBUG_MSG + bool "print debug messages" + depends on EXFAT_FS + default n + +config EXFAT_DEFAULT_CODEPAGE + int "Default codepage for exFAT" + default 437 + depends on EXFAT_FS + help + This option should be set to the codepage of your exFAT filesystems. + +config EXFAT_DEFAULT_IOCHARSET + string "Default iocharset for exFAT" + default "utf8" + depends on EXFAT_FS + help + Set this to the default input/output character set you'd like exFAT to use. +endif |