Browse Source

Merge pull request #11154 from dengqf6/antfs

[RFT] antfs: new package
lilik-openwrt-22.03
Rosen Penev 5 years ago
committed by GitHub
parent
commit
8fd12aa10b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 74 additions and 0 deletions
  1. +44
    -0
      kernel/antfs/Makefile
  2. +28
    -0
      utils/antfs-mount/Makefile
  3. +2
    -0
      utils/antfs-mount/files/mount.ntfs

+ 44
- 0
kernel/antfs/Makefile View File

@ -0,0 +1,44 @@
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=antfs
PKG_RELEASE:=1
PKG_SOURCE_URL:=https://github.com/klukonin/antfs.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2020-02-10
PKG_SOURCE_VERSION:=b41ba529f6b64b429527e09a06ce0326d5456c05
PKG_MIRROR_HASH:=dae039c0fe5bf1a2c8c1cca4211d607a4d6f56fc41b38444e2234b40d710d9db
PKG_LICENSE:=GPL-2.0-or-later
PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
define KernelPackage/fs-antfs
SUBMENU:=Filesystems
TITLE:=AVM NTFS Read/Write Driver
FILES:=$(PKG_BUILD_DIR)/antfs.ko
AUTOLOAD:=$(call AutoLoad,30,antfs,1)
DEPENDS:=+kmod-nls-base
endef
define KernelPackage/fs-antfs/description
Kernel module for NTFS Filesytem
endef
MAKE_OPTS:= \
ARCH="$(LINUX_KARCH)" \
CROSS_COMPILE="$(TARGET_CROSS)" \
M="$(PKG_BUILD_DIR)"
define Build/Compile
$(MAKE) -C "$(LINUX_DIR)" \
$(MAKE_OPTS) \
CONFIG_ANTFS_FS=m \
CONFIG_ANTFS_SYMLINKS=y \
ANTFS_VERSION=07.19-$(call version_abbrev,$(PKG_SOURCE_VERSION)) \
modules
endef
$(eval $(call KernelPackage,fs-antfs))

+ 28
- 0
utils/antfs-mount/Makefile View File

@ -0,0 +1,28 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=antfs-mount
PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk
define Package/antfs-mount
SECTION:=utils
CATEGORY:=Utilities
SUBMENU:=Filesystem
TITLE:=NTFS mount script for AVM NTFS driver
PKGARCH:=all
DEPENDS:=+kmod-fs-antfs
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/antfs-mount/install
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) ./files/mount.ntfs $(1)/sbin
endef
$(eval $(call BuildPackage,antfs-mount))

+ 2
- 0
utils/antfs-mount/files/mount.ntfs View File

@ -0,0 +1,2 @@
#!/bin/sh
mount -t antfs "$@"

Loading…
Cancel
Save