Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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:= device-tree-compiler
  5. PKG_VERSION:= b06e55c88b9b922ff7e25cd62a4709b65524f0fc
  6. PKG_GIT:= hash
  7. PKG_RELEASE:= 1
  8. PKG_DESCR:= compiler for dts files
  9. PKG_SECTION:= sys/misc
  10. HOST_BUILDDEP:= m4-host flex-host
  11. PKG_URL:= http://www.devicetree.org/Device_Tree_Compiler
  12. PKG_SITES:= git://git.kernel.org/pub/scm/utils/dtc/dtc.git
  13. PKG_CFLINE_DEVICE_TREE_COMPILER:= depends on ADK_HOST_ONLY
  14. include $(ADK_TOPDIR)/mk/host.mk
  15. include $(ADK_TOPDIR)/mk/package.mk
  16. $(eval $(call HOST_template,DEVICE_TREE_COMPILER,device-tree-compiler,$(PKG_VERSION)-$(PKG_RELEASE)))
  17. HOST_STYLE:= manual
  18. host-build:
  19. (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  20. ${HOST_MAKE_FLAGS} dtc)
  21. device-tree-compiler-hostinstall:
  22. $(INSTALL_DIR) $(STAGING_HOST_DIR)/usr/bin
  23. $(INSTALL_BIN) $(WRKBUILD)/dtc $(STAGING_HOST_DIR)/usr/bin
  24. include $(ADK_TOPDIR)/mk/host-bottom.mk
  25. include $(ADK_TOPDIR)/mk/pkg-bottom.mk