Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= mtd-utils
  5. PKG_VERSION:= 1.5.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= a4df1ad29684be79b0fa699bdae01faf
  8. PKG_DESCR:= flash filesystem utilities
  9. PKG_SECTION:= fs
  10. HOST_BUILDDEP:= liblzo-host
  11. PKG_SITES:= http://openadk.org/distfiles/
  12. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  13. PKG_CFLINE_MTD_UTILS:= depends on ADK_HOST_ONLY
  14. include $(TOPDIR)/mk/host.mk
  15. include $(TOPDIR)/mk/package.mk
  16. $(eval $(call HOST_template,MTD_UTILS,mtd-utils,$(PKG_VERSION)-${PKG_RELEASE}))
  17. HOST_STYLE:= manual
  18. CPPFLAGS_FOR_BUILD+= -DWITHOUT_XATTR=1 -I./include
  19. host-build:
  20. (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  21. ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET})
  22. mtd-utils-hostinstall:
  23. ${INSTALL_DIR} ${STAGING_HOST_DIR}/usr/bin
  24. ${INSTALL_BIN} ${WRKBUILD}/mkfs.jffs2 \
  25. ${STAGING_HOST_DIR}/usr/bin
  26. include ${TOPDIR}/mk/host-bottom.mk
  27. include ${TOPDIR}/mk/pkg-bottom.mk