Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. include $(INCLUDE_DIR)/kernel.mk
  7. PKG_NAME:=exfat
  8. PKG_VERSION:=5.8.7
  9. PKG_RELEASE:=1
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=https://codeload.github.com/namjaejeon/linux-exfat-oot/tar.gz/$(PKG_VERSION)?
  12. PKG_HASH:=20254677bed3f456e89cc9d757c1a47abbadab4d75640eef4a995370a37be3f4
  13. PKG_MAINTAINER:=
  14. PKG_LICENSE:=GPL-2.0-only
  15. include $(INCLUDE_DIR)/package.mk
  16. TAR_OPTIONS+= --strip-components 1
  17. TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
  18. define KernelPackage/fs-exfat
  19. SECTION:=kernel
  20. CATEGORY:=Kernel modules
  21. SUBMENU:=Filesystems
  22. TITLE:=exFAT kernel module
  23. FILES:=$(PKG_BUILD_DIR)/exfat.ko
  24. AUTOLOAD:=$(call AutoProbe,exfat)
  25. DEPENDS:= +kmod-nls-base
  26. endef
  27. define KernelPackage/exfat/description
  28. This package provides the kernel module for exfat.
  29. endef
  30. define Build/Compile
  31. $(KERNEL_MAKE) M="$(PKG_BUILD_DIR)" \
  32. EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
  33. $(PKG_EXTRA_KCONFIG) \
  34. CONFIG_EXFAT_FS=m \
  35. modules
  36. endef
  37. $(eval $(call KernelPackage,fs-exfat))