Makefile 892 B

123456789101112131415161718192021222324252627282930313233343536
  1. #
  2. # Copyright (C) 2015 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:=make-ext4fs
  9. PKG_VERSION:=2015-05-01
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=http://git.openwrt.org/project/make_ext4fs.git
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_VERSION:=7c15bef6c732896d9ffb883fb1480fcd60c94a50
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_MIRROR_MD5SUM:=d81eca37852cbf840108e1a8ad8fb22f
  16. PKG_CAT:=zcat
  17. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)
  18. include $(INCLUDE_DIR)/host-build.mk
  19. define Host/Compile
  20. $(MAKE) -C $(HOST_BUILD_DIR) make_ext4fs
  21. endef
  22. define Host/Install
  23. $(INSTALL_BIN) $(HOST_BUILD_DIR)/make_ext4fs $(STAGING_DIR_HOST)/bin/
  24. endef
  25. define Host/Clean
  26. rm -f $(STAGING_DIR_HOST)/bin/make_ext4fs
  27. endef
  28. $(eval $(call HostBuild))