|
@@ -0,0 +1,32 @@
|
|
|
+# This file is part of the OpenADK project. OpenADK is copyrighted
|
|
|
+# material, please see the LICENCE file in the top-level directory.
|
|
|
+
|
|
|
+include $(ADK_TOPDIR)/rules.mk
|
|
|
+
|
|
|
+PKG_NAME:= device-tree-compiler
|
|
|
+PKG_VERSION:= 8b927bf3b80de4b0a49e6b6e4a56293e9baec364
|
|
|
+PKG_RELEASE:= 1
|
|
|
+PKG_DESCR:= compiler for dts files
|
|
|
+PKG_SECTION:= sys/misc
|
|
|
+PKG_URL:= http://www.devicetree.org/Device_Tree_Compiler
|
|
|
+PKG_SITES:= git://git.kernel.org/pub/scm/utils/dtc/dtc.git
|
|
|
+
|
|
|
+PKG_CFLINE_DEVICE_TREE_COMPILER:= depends on ADK_HOST_ONLY
|
|
|
+
|
|
|
+include $(ADK_TOPDIR)/mk/host.mk
|
|
|
+include $(ADK_TOPDIR)/mk/package.mk
|
|
|
+
|
|
|
+$(eval $(call HOST_template,DEVICE_TREE_COMPILER,device-tree-compiler,$(PKG_VERSION)-$(PKG_RELEASE)))
|
|
|
+
|
|
|
+HOST_STYLE:= manual
|
|
|
+
|
|
|
+host-build:
|
|
|
+ (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
|
|
|
+ ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET})
|
|
|
+
|
|
|
+device-tree-compiler-hostinstall:
|
|
|
+ $(INSTALL_DIR) $(STAGING_HOST_DIR)/usr/bin
|
|
|
+ $(INSTALL_BIN) $(WRKBUILD)/dtc $(STAGING_HOST_DIR)/usr/bin
|
|
|
+
|
|
|
+include $(ADK_TOPDIR)/mk/host-bottom.mk
|
|
|
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk
|