forked from openwrt/packages
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add kernel-sdfat to repo Patch adapted from cryptomilk/kernel-sdfat#4 Updated/Successor to exfat-nofuse module Signed-off-by: Daniel Engberg <[email protected]>
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# | ||
# Copyright (C) 2018 Daniel Engberg <[email protected]> | ||
# | ||
# 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:=kernel-sdfat | ||
PKG_VERSION:=20180522 | ||
PKG_RELEASE:=1 | ||
PKG_MAINTAINER:= | ||
PKG_LICENSE:=GPL-2.0 | ||
PKG_LICENSE_FILES:=LICENSE | ||
|
||
PKG_SOURCE_URL:=https://codeload.github.com/cryptomilk/$(PKG_NAME)/tar.gz/aa8183f?dummy=/ | ||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_HASH:=17e171bd9d6cdcb617d2e92ec8c06c308108e61fdf6ff70bcb1335b59d4d2c44 | ||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-aa8183f | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define KernelPackage/fs-sdfat | ||
SUBMENU:=Filesystems | ||
TITLE:=sdFAT kernel driver | ||
FILES:=$(PKG_BUILD_DIR)/sdfat_fs.ko | ||
AUTOLOAD:=$(call AutoLoad,30,sdfat_fs,1) | ||
DEPENDS:=+kmod-nls-base +kmod-nls-utf8 +kmod-nls-cp437 +kmod-nls-iso8859-1 @BUILD_PATENTED | ||
endef | ||
|
||
define KernelPackage/fs-sdfat/description | ||
Kernel module for FAT12/16/32/VFAT and exFAT filesytems | ||
endef | ||
|
||
MAKE_OPTS:= \ | ||
ARCH="$(LINUX_KARCH)" \ | ||
CROSS_COMPILE="$(TARGET_CROSS)" \ | ||
M="$(PKG_BUILD_DIR)" | ||
|
||
define Build/Compile | ||
$(MAKE) -C "$(LINUX_DIR)" \ | ||
$(MAKE_OPTS) \ | ||
CONFIG_SDFAT_FS=m \ | ||
modules | ||
endef | ||
|
||
$(eval $(call KernelPackage,fs-sdfat)) |
dfdb5a8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pprindeville
Hi,
If you have a few minutes to spare I would be very grateful.
I'm a bit confused mainly because I can't find any documentation.
The module builds and runs fine but it doesn't seem to announce supported filesystems?
Exported supported filesystems to kernel seems to be defined here?
https://github.com/cryptomilk/kernel-sdfat/blob/master/sdfat.c#L75
It's also on by default in Kconfig but perhaps it isn't imported by default meaning that I need to define variables for make when compiling?
https://github.com/cryptomilk/kernel-sdfat/blob/master/Kconfig#L18
Essentially this seems to confuse block-mount...
Using busybox mount does work but it's a bit noisy because I guess it tries all(?) available filesystems unless you specify.
I guess I could do a symlink to mount but that seems like a hack as other modules work fine without it.