Makefile 965 B

1234567891011121314151617181920212223242526272829303132
  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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= stlink
  5. PKG_VERSION:= 04dc7ead42f99d80696cd12496ee2299428675e7
  6. PKG_RELEASE:= 1
  7. PKG_DESCR:= st flash utility
  8. PKG_SECTION:= dev/tools
  9. HOST_BUILDDEP:= cmake-host
  10. PKG_SITES:= https://github.com/texane/stlink.git
  11. PKG_CFLINE_STLINK:= depends on ADK_HOST_ONLY
  12. include $(ADK_TOPDIR)/mk/host.mk
  13. include $(ADK_TOPDIR)/mk/package.mk
  14. $(eval $(call HOST_template,STLINK,stlink,$(PKG_VERSION)-${PKG_RELEASE}))
  15. HOST_STYLE:= cmake
  16. host-build:
  17. (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  18. ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET})
  19. hostpost-install:
  20. (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  21. DESTDIR=$(STAGING_HOST_DIR) ${HOST_FAKE_FLAGS} ${HOST_INSTALL_TARGET})
  22. include ${ADK_TOPDIR}/mk/host-bottom.mk
  23. include ${ADK_TOPDIR}/mk/pkg-bottom.mk