Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #
  2. # Copyright (C) 2008-2012 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:=yaffs2_android
  9. PKG_VERSION:=2008-12-18
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  11. PKG_SOURCE_URL:=https://android.googlesource.com/platform/external/yaffs2
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_SUBDIR:=$(PKG_NAME)
  14. PKG_SOURCE_VERSION:=d333fc232d7e5ae3370080d5d6f7d88ea9c6b3a1
  15. PKG_MIRROR_MD5SUM:=8ba9beeda93681a5fc3ea79bdc8186d7ed8c73779e7e64302ce38ab1c1a0faf5
  16. HOST_BUILD_DIR=$(BUILD_DIR_HOST)/$(PKG_NAME)
  17. include $(INCLUDE_DIR)/host-build.mk
  18. define Host/Compile
  19. $(MAKE) -C $(HOST_BUILD_DIR)/yaffs2/utils \
  20. CC="$(HOSTCC)" \
  21. CFLAGS="$(HOST_CFLAGS) -include endian.h" \
  22. mkyaffs2image
  23. endef
  24. define Host/Install
  25. $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
  26. $(INSTALL_BIN) $(HOST_BUILD_DIR)/yaffs2/utils/mkyaffs2image $(STAGING_DIR_HOST)/bin/
  27. endef
  28. define Host/Clean
  29. rm -f $(STAGING_DIR_HOST)/bin/mkyaffs2image
  30. endef
  31. $(eval $(call HostBuild))