1
0

Makefile 1002 B

1234567891011121314151617181920212223242526272829303132333435
  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:= mtd-utils filesystem utilities
  9. PKG_SECTION:= fs
  10. HOST_BUILDDEP:= liblzo-host
  11. PKG_SITES:= http://openadk.org/distfiles/
  12. PKG_CFLINE_MTD_UTILS:= depends on ADK_HOST_ONLY
  13. include $(TOPDIR)/mk/host.mk
  14. include $(TOPDIR)/mk/package.mk
  15. $(eval $(call HOST_template,MTD_UTILS,mtd-utils,$(PKG_VERSION)-${PKG_RELEASE}))
  16. HOST_STYLE:= manual
  17. CPPFLAGS_FOR_BUILD+= -DWITHOUT_XATTR=1 -I./include
  18. host-build:
  19. (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  20. ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET})
  21. mtd-utils-hostinstall:
  22. ${INSTALL_DIR} ${STAGING_HOST_DIR}/usr/bin
  23. ${INSTALL_BIN} ${WRKBUILD}/mkfs.jffs2 \
  24. ${STAGING_HOST_DIR}/usr/bin
  25. include ${TOPDIR}/mk/host-bottom.mk
  26. include ${TOPDIR}/mk/pkg-bottom.mk