Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #
  2. # Copyright (C) 2014 Bruno Randolf <br1@einfach.org>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=exfat-nofuse
  10. PKG_VERSION=2017-01-03-$(PKG_SOURCE_VERSION)
  11. PKG_RELEASE:=1
  12. PKG_SOURCE=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  13. PKG_SOURCE_URL:=https://github.com/dorimanx/exfat-nofuse.git
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_SUBDIR=$(PKG_NAME)-$(PKG_VERSION)
  16. PKG_SOURCE_VERSION:=8d291f525ce6d88fe0d8b11b86fd5c2e900401d3
  17. PKG_MAINTAINER:=Bruno Randolf <br1@einfach.org>
  18. PKG_LICENSE:=GPL-2.0
  19. PKG_LICENSE_FILES:=LICENSE
  20. include $(INCLUDE_DIR)/package.mk
  21. define KernelPackage/fs-exfat
  22. SUBMENU:=Filesystems
  23. TITLE:=ExFAT Kernel driver
  24. FILES:=$(PKG_BUILD_DIR)/exfat.ko
  25. AUTOLOAD:=$(call AutoLoad,30,exfat,1)
  26. DEPENDS:=+kmod-nls-base
  27. endef
  28. define KernelPackage/fs-exfat/description
  29. Kernel module for ExFAT Filesytems
  30. endef
  31. MAKE_OPTS:= \
  32. ARCH="$(LINUX_KARCH)" \
  33. CROSS_COMPILE="$(TARGET_CROSS)" \
  34. M="$(PKG_BUILD_DIR)"
  35. define Build/Compile
  36. $(MAKE) -C "$(LINUX_DIR)" \
  37. $(MAKE_OPTS) \
  38. CONFIG_EXFAT_FS=m \
  39. modules
  40. endef
  41. $(eval $(call KernelPackage,fs-exfat))