Makefile 1007 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #
  2. # Copyright (C) 2009-2025 OpenWrt.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. PKG_NAME:=erofs-utils
  9. PKG_VERSION:=1.8.9
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL=https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git
  13. PKG_MIRROR_HASH:=feab7386de6faf11cb29af5bfa240ea119b14bfd66c14d80de0509c1ab16dcc6
  14. PKG_SOURCE_DATE:=2025-06-26
  15. PKG_SOURCE_VERSION:=81169bf3cfd26b8f2b3aa3b20da23971168a90a9
  16. PKG_FIXUP:=autoreconf
  17. include $(INCLUDE_DIR)/host-build.mk
  18. HOST_CONFIGURE_ARGS=\
  19. --enable-multithreading \
  20. --enable-lzma \
  21. --enable-lz4 \
  22. --disable-fuse \
  23. --with-uuid
  24. define Host/Install
  25. $(INSTALL_BIN) $(HOST_BUILD_DIR)/mkfs/mkfs.erofs $(STAGING_DIR_HOST)/bin/
  26. $(INSTALL_BIN) $(HOST_BUILD_DIR)/fsck/fsck.erofs $(STAGING_DIR_HOST)/bin/
  27. endef
  28. define Host/Clean
  29. rm -f $(STAGING_DIR_HOST)/bin/mkfs.erofs
  30. rm -f $(STAGING_DIR_HOST)/bin/fsck.erofs
  31. endef
  32. $(eval $(call HostBuild))