Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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.10.1
  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:=0ff77dd7d39eb231d00c3c4909b9fad31ebeeb618bd6fa18fce142becc9c1f98
  13. PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/linux-exfat-oot-$(PKG_VERSION)
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=GPL-2.0-only
  16. include $(INCLUDE_DIR)/package.mk
  17. define KernelPackage/fs-exfat
  18. SECTION:=kernel
  19. CATEGORY:=Kernel modules
  20. SUBMENU:=Filesystems
  21. TITLE:=exFAT kernel module
  22. URL:=https://github.com/namjaejeon/linux-exfat-oot
  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))