Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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.4
  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:=47162495bdf9a7e02d6142dfcd4364d7325a4cf75a0439926cf9e8a9d959627b
  13. PKG_MAINTAINER:=
  14. PKG_LICENSE:=GPL-2.0-only
  15. #PKG_BUILD_PARALLEL:=1
  16. #PKG_USE_MIPS16:=0
  17. # exfat-oot's makefile needs this to know where to build the kernel module
  18. #export KERNELDIR:=$(LINUX_DIR)
  19. include $(INCLUDE_DIR)/package.mk
  20. #include $(INCLUDE_DIR)/kernel-defaults.mk
  21. TAR_OPTIONS+= --strip-components 1
  22. TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
  23. define KernelPackage/fs-exfat
  24. SECTION:=kernel
  25. CATEGORY:=Kernel modules
  26. SUBMENU:=Filesystems
  27. TITLE:=exFAT kernel module
  28. FILES:=$(PKG_BUILD_DIR)/exfat.ko
  29. AUTOLOAD:=$(call AutoProbe,exfat)
  30. DEPENDS:= +kmod-nls-base
  31. endef
  32. define KernelPackage/exfat/description
  33. This package provides the kernel module for exfat.
  34. endef
  35. define Build/Compile
  36. $(KERNEL_MAKE) M="$(PKG_BUILD_DIR)" \
  37. EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
  38. $(PKG_EXTRA_KCONFIG) \
  39. CONFIG_EXFAT_FS=m \
  40. modules
  41. # $(MAKE) -C $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION) M="$(PKG_BUILD_DIR)" modules
  42. endef
  43. $(eval $(call KernelPackage,fs-exfat))